Skip to content

Commit a597bf2

Browse files
Josh-Tsaiquinchou77
authored andcommitted
fwk: azalea: modified the period-ms value to meet the target time
We modified the LED driver to change the LED color duration at runtime. This change modifies the period-ms value to meet the target time. BRANCH=fwk-main BUG=None TEST=When the system enter suspend, the led breathing can meet the period-ms value. Signed-off-by: Josh Tsai <[email protected]> (cherry picked from commit 5721b31f9e350c9aa0ff16566b9072aec1754b6c)
1 parent c95189e commit a597bf2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

zephyr/program/framework/azalea/led_policy.dtsi

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,29 +103,25 @@
103103
led-id = "EC_LED_ID_POWER_LED";
104104
transition = "LED_TRANSITION_LINEAR";
105105

106-
/* period-ms =
107-
* target time * tick time (200ms) / deferred time (10ms)
108-
*/
109-
110106
/* Fade time target 600ms (In, low to high) */
111107
color-0 {
112108
led-color = "LED_WHITE";
113-
period-ms = <12000>;
109+
period-ms = <600>;
114110
};
115111
/* Duration time target 900ms */
116112
color-1 {
117113
led-color = "LED_WHITE";
118-
period-ms = <18000>;
114+
period-ms = <900>;
119115
};
120116
/* Fade time target 600ms (Out, high to low) */
121117
color-2 {
122118
led-color = "LED_OFF";
123-
period-ms = <12000>;
119+
period-ms = <600>;
124120
};
125121
/* Interval time target 1900ms */
126122
color-3 {
127123
led-color = "LED_OFF";
128-
period-ms = <37000>;
124+
period-ms = <1900>;
129125
};
130126
};
131127
};

0 commit comments

Comments
 (0)