diff options
Diffstat (limited to 'zephyr/projects/nissa/xivu/led_policy.dts')
-rw-r--r-- | zephyr/projects/nissa/xivu/led_policy.dts | 60 |
1 files changed, 18 insertions, 42 deletions
diff --git a/zephyr/projects/nissa/xivu/led_policy.dts b/zephyr/projects/nissa/xivu/led_policy.dts index 5bb9869ba6..3f7efcf1bf 100644 --- a/zephyr/projects/nissa/xivu/led_policy.dts +++ b/zephyr/projects/nissa/xivu/led_policy.dts @@ -1,20 +1,32 @@ -#include <dt-bindings/battery.h> - / { led-colors { compatible = "cros-ec,led-policy"; power-state-charge { charge-state = "PWR_STATE_CHARGE"; + /* Battery percent range (>= Empty, <= 94%) */ + batt-lvl = <0 94>; color-0 { led-color = <&color_amber>; }; }; + power-state-near-full { + charge-state = "PWR_STATE_CHARGE"; + /* Battery percent range (>= 95%, <= Full) */ + batt-lvl = <95 100>; + + color-0 { + led-color = <&color_white>; + }; + }; + power-state-discharge-s0 { charge-state = "PWR_STATE_DISCHARGE"; chipset-state = "POWER_S0"; + /* Battery percent range (>= 11%, <= Full) */ + batt-lvl = <11 100>; color-0 { led-color = <&color_white>; @@ -45,19 +57,11 @@ }; }; - power-state-near-full { - charge-state = "PWR_STATE_CHARGE_NEAR_FULL"; - - color-0 { - led-color = <&color_white>; - }; - }; - - power-state-charge-s0-batt-low { - charge-state = "PWR_STATE_CHARGE"; + power-state-discharge-s0-batt-low { + charge-state = "PWR_STATE_DISCHARGE"; chipset-state = "POWER_S0"; - /* Battery percent range (>= Empty, <= Low) */ - batt-lvl = <BATTERY_LEVEL_EMPTY BATTERY_LEVEL_LOW>; + /* Battery percent range (>= Empty, <= 10%) */ + batt-lvl = <0 10>; /* Amber 1 sec, off 3 sec */ color-0 { @@ -70,34 +74,6 @@ }; }; - power-state-charge-s3-batt-low { - charge-state = "PWR_STATE_CHARGE"; - chipset-state = "POWER_S3"; - /* Battery percent range (>= Empty, <= Low) */ - batt-lvl = <BATTERY_LEVEL_EMPTY BATTERY_LEVEL_LOW>; - - /* White 1 sec, off 3 sec */ - color-0 { - led-color = <&color_white>; - period-ms = <1000>; - }; - color-1 { - led-color = <&color_off>; - period-ms = <3000>; - }; - }; - - power-state-charge-s5-batt-low { - charge-state = "PWR_STATE_CHARGE"; - chipset-state = "POWER_S5"; - /* Battery percent range (>= Empty, <= Low) */ - batt-lvl = <BATTERY_LEVEL_EMPTY BATTERY_LEVEL_LOW>; - - color-0 { - led-color = <&color_off>; - }; - }; - power-state-error-s0 { charge-state = "PWR_STATE_ERROR"; chipset-state = "POWER_S0"; |