diff options
author | Parth Malkan <parthmalkan@google.com> | 2022-04-26 15:43:00 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-29 00:14:26 +0000 |
commit | 6454951a5b2532ce246c4b85c8b2d92e4a45c452 (patch) | |
tree | 98647b3f62a7faee9501016a814f7c4d1f72e52b /zephyr/dts/bindings/leds | |
parent | cd4e03e727c1adae841b912e2971d0ee84b842f8 (diff) | |
download | chrome-ec-6454951a5b2532ce246c4b85c8b2d92e4a45c452.tar.gz |
zephyr: LED: Add led-id and charge port properties
Charge port property is to match the policy node with active charge
port. led-id property is used as a link between color nodes and pins
nodes in case of multi-LEDs
BUG=b:227528898
TEST=zmake build lazor
BRANCH=none
Signed-off-by: Parth Malkan <parthmalkan@google.com>
Cq-Depend: chromium:3612219
Change-Id: I27711e74e0208ebeb77044285af9500b3a3f40c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3609114
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr/dts/bindings/leds')
-rw-r--r-- | zephyr/dts/bindings/leds/cros-ec,led-colors.yaml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/leds/cros-ec,led-colors.yaml b/zephyr/dts/bindings/leds/cros-ec,led-colors.yaml index c919d625c2..f99804cb94 100644 --- a/zephyr/dts/bindings/leds/cros-ec,led-colors.yaml +++ b/zephyr/dts/bindings/leds/cros-ec,led-colors.yaml @@ -32,6 +32,11 @@ child-binding: - PWR_STATE_IDLE - PWR_STATE_CHARGE_NEAR_FULL + charge-port: + description: If the LED color depends on the charging port (left or right) + type: int + required: false + chipset-state: description: If the LED color depends on chipset state, this property is used to describe it. @@ -67,6 +72,19 @@ child-binding: - LED_YELLOW - LED_WHITE - LED_AMBER + led-id: + description: Used to link the color nodes with the pin nodes in + case of multiple LEDs. + type: string + required: true + enum: + - EC_LED_ID_BATTERY_LED + - EC_LED_ID_POWER_LED + - EC_LED_ID_ADAPTER_LED + - EC_LED_ID_LEFT_LED + - EC_LED_ID_RIGHT_LED + - EC_LED_ID_RECOVERY_HW_REINIT_LED + - EC_LED_ID_SYSRQ_DEBUG_LED period-ms: description: In case of blinking LEDs, amount of time in msecs the LED color is active. This value must be a |