diff options
author | Parth Malkan <parthmalkan@google.com> | 2022-06-01 19:04:40 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-29 19:49:28 +0000 |
commit | 78707e17f6394eca3784e696b8adb6a718bc0e37 (patch) | |
tree | 5a9273576b545342a7121eda5d601832a54272b7 /zephyr/dts/bindings/leds/cros-ec,led-colors.yaml | |
parent | e0345e787931903bcc0f2660d3d42feea9cca413 (diff) | |
download | chrome-ec-78707e17f6394eca3784e696b8adb6a718bc0e37.tar.gz |
zephyr: LED: yaml files cleanup
Rename cros-ec,led-colors.yaml to cros-ec,led-policy.yaml to avoid name
conflict with child node of the same name and to reflect the purpose of
the nodes. Also, update description of properties.
BRANCH=None
BUG=b:227798487
TEST=zmake build --all
Signed-off-by: Parth Malkan <parthmalkan@google.com>
Cq-Depend: chromium:3685751, chromium:3685752
Cq-Depend: chromium:3685753, chromium:3783354
Cq-Depend: chromium:3783355, chromium:3783356
Cq-Depend: chromium:3783357, chromium:3783185
Cq-Depend: chromium:3783183
Change-Id: I10567f48da3978ead99150bf23853d3a376a14ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3685750
Tested-by: Bob Moragues <moragues@chromium.org>
Commit-Queue: Bob Moragues <moragues@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/leds/cros-ec,led-colors.yaml')
-rw-r--r-- | zephyr/dts/bindings/leds/cros-ec,led-colors.yaml | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/zephyr/dts/bindings/leds/cros-ec,led-colors.yaml b/zephyr/dts/bindings/leds/cros-ec,led-colors.yaml deleted file mode 100644 index cd10ca9a60..0000000000 --- a/zephyr/dts/bindings/leds/cros-ec,led-colors.yaml +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 2021 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -description: LED colors parent node - -compatible: "cros-ec,led-colors" - -child-binding: - description: LED Color nodes to describe the policy combination a node - depends on, and the color to set to for that combination. - e.g. If Blue color needs to be set for charge state discharge - in S0, a node looks like - power-state-discharge-s0 { - charge-state = "PWR_STATE_DISCHARGE"; - chipset-state = "POWER_S0"; - color-0 { - led-color = "LED_BLUE"; - }; - }; - - properties: - charge-state: - description: If the LED color depends on charge state, this - property is used to describe it. - type: string - required: false - enum: - - PWR_STATE_CHARGE - - PWR_STATE_DISCHARGE - - PWR_STATE_ERROR - - 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. - type: string - required: false - enum: - - POWER_S0 - - POWER_S3 - - POWER_S5 - - batt-lvl: - description: If the LED color depends on current battery level, this property - is used to describe the batt_lvl range using closed interval [x,y]. - Use the macros defined in dt-bindings/battery.h. - e.g. <BATTERY_LEVEL_EMPTY BATTERY_LEVEL_LOW> describes battery level - range of BATTERY_LEVEL_EMPTY to BATTERY_LEVEL_LOW inclusive. - type: array - required: false - - extra-flag: - description: If the LED color depends on additional factors - type: string - required: false - enum: - - NONE - - LED_CHFLAG_FORCE_IDLE - - LED_CHFLAG_DEFAULT - - child-binding: - description: Color enum - properties: - led-color: - description: Handle to LED pins node that describes pins to set - to enable a particular color - type: phandle - required: true - period-ms: - description: In case of blinking LEDs, amount of time in msecs - the LED color is active. This value must be a - multiple of HOOK_TICK_INTERVAL_MS - e.g. - power-state-error { - charge-state = "PWR_STATE_ERROR"; - /* One sec Amber, one sec Off */ - color-0 { - led-color = "LED_AMBER"; - period-ms = <1000>; - }; - color-1 { - led-color = "LED_OFF"; - period-ms = <1000>; - }; - }; - type: int - required: false |