diff options
author | Parth Malkan <parthmalkan@google.com> | 2022-08-03 11:34:51 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-18 01:26:55 +0000 |
commit | 38eda2523b5e326f1ac3d105af29f4ea89ab9212 (patch) | |
tree | fe4ea4245b5fd51249f4fce4853d473305adcb10 /zephyr/dts/bindings | |
parent | 4958ef20368d4004df30bb54dedc210245df37a5 (diff) | |
download | chrome-ec-38eda2523b5e326f1ac3d105af29f4ea89ab9212.tar.gz |
zephyr: LED: Remove extra_flag property
This change removes extra_flag property used to differentiate between
forced and unforced PWR_STATE_IDLE. Instead, it uses additional
charge_state PWR_STATE_FORCED_IDLE to make this differentiation.
BUG=b:241167493
TEST=zmake build --all
Tested on Skyrim proto using console command chgstate idle on|off and
observed LED behavior
BRANCH=None
Signed-off-by: Parth Malkan <parthmalkan@google.com>
Change-Id: I368a09c8b0f7b12a15a834ad850c219e976b58a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3807136
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr/dts/bindings')
-rw-r--r-- | zephyr/dts/bindings/leds/cros-ec,led-policy.yaml | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/zephyr/dts/bindings/leds/cros-ec,led-policy.yaml b/zephyr/dts/bindings/leds/cros-ec,led-policy.yaml index 206ccdb143..5c46750a37 100644 --- a/zephyr/dts/bindings/leds/cros-ec,led-policy.yaml +++ b/zephyr/dts/bindings/leds/cros-ec,led-policy.yaml @@ -26,6 +26,14 @@ child-binding: description: | If the LED color depends on charge state, this property is used to describe it. + PWR_STATE_CHARGE - AC is connected, battery is charging. + PWR_STATE_DISCHARGE - AC is not connected, battery is discharging. + PWR_STATE_ERROR - Battery is in error state. + PWR_STATE_IDLE - AC is connected, battery is not charging. + PWR_STATE_FORCED_IDLE - AC is connected, battery is not charging. + Used during factory testing. + PWR_STATE_CHARGE_NEAR_FULL - AC is connected, battery is charging + and close to fully charged. type: string required: false enum: @@ -33,6 +41,7 @@ child-binding: - PWR_STATE_DISCHARGE - PWR_STATE_ERROR - PWR_STATE_IDLE + - PWR_STATE_FORCED_IDLE - PWR_STATE_CHARGE_NEAR_FULL charge-port: @@ -62,23 +71,6 @@ child-binding: type: array required: false - extra-flag: - description: | - This property is used if the LED color depends on additional - factors. - e.g. - LED_CHFLAG_FORCE_IDLE - The LED policy is only applied when battery - charging is disabled. - LED_CHFLAG_DEFAULT - The LED policy is only applied when battery - charging is allowed. - NONE - extra-flag is ignored and LED policy is always applied. - type: string - required: false - enum: - - NONE - - LED_CHFLAG_FORCE_IDLE - - LED_CHFLAG_DEFAULT - child-binding: description: Color enum properties: |