summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/gpio
diff options
context:
space:
mode:
authorDawid Niedzwiecki <dn@semihalf.com>2021-04-09 09:18:48 +0200
committerCommit Bot <commit-bot@chromium.org>2021-04-12 08:15:20 +0000
commit404eb20677dff653e2f5d511b450934441e3c87d (patch)
treebe32afd29ffd2149d1be353cfef3dede54248a83 /zephyr/dts/bindings/gpio
parent52cfe6a41f0f81a7e07a485d2770a91dd63b3d3e (diff)
downloadchrome-ec-404eb20677dff653e2f5d511b450934441e3c87d.tar.gz
zephyr: lazor: Add LED support
Add GPIOs to control the LED and add board/lazor/led.c to the compiled list. The color of the LED will be changing when the charging is supported. BUG=b:182398910 BRANCH=none TEST=Verfiy the LED color according to the charging state. If the charging is not supported, disable led_set_color function and set the color manually with gpioset GPIO_EC_CHG_LED_Y/B_C1 0/1. Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I910c58efa6b3771bacb264398acdcf171071f04a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2817478 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/gpio')
-rw-r--r--zephyr/dts/bindings/gpio/gpio-enum-name.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/gpio/gpio-enum-name.yaml b/zephyr/dts/bindings/gpio/gpio-enum-name.yaml
index 321e0a62e3..d30984184d 100644
--- a/zephyr/dts/bindings/gpio/gpio-enum-name.yaml
+++ b/zephyr/dts/bindings/gpio/gpio-enum-name.yaml
@@ -21,6 +21,8 @@ properties:
- GPIO_DP_MUX_SEL
- GPIO_EC_ALS_RGB_INT_L
- GPIO_EC_BATT_PRES_ODL
+ - GPIO_EC_CHG_LED_B_C1
+ - GPIO_EC_CHG_LED_Y_C1
- GPIO_EC_I2C0_SENSOR_SCL
- GPIO_EC_I2C0_SENSOR_SDA
- GPIO_EC_I2C1_USB_C0_SCL