summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml')
-rw-r--r--zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml19
1 files changed, 7 insertions, 12 deletions
diff --git a/zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml b/zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml
index fbf4e5217c..2e5fe7cff0 100644
--- a/zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml
+++ b/zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml
@@ -15,8 +15,8 @@ child-binding:
the LED and 0 always turns off the LED. So a node looks like
color-amber {
led-color = "LED_AMBER";
- led-pins = <&gpio_ec_chg_led_y_c1 gpio_ec_chg_led_b_c1>;
- led-values = <1 0>;
+ led-pins = <&gpio_ec_chg_led_y_c1 1>,
+ <&gpio_ec_chg_led_b_c1 0>;
};
properties:
led-color:
@@ -61,15 +61,10 @@ child-binding:
- EC_LED_COLOR_WHITE
- EC_LED_COLOR_AMBER
led-pins:
- type: phandles
+ type: phandle-array
required: true
description: |
- This property is used to specify an array of gpio pins to set a
- particular color.
-
- led-values:
- type: array
- required: true
- description: |
- This property is used to specify an array of values to set on the
- corresponding led-pins to set a particular color.
+ This property is used to specify an array of gpio pins and
+ corresponding values to enable a particular color.
+ e.g. Amber color - led-pins = <&gpio_ec_chg_led_y_c1 1>,
+ <&gpio_ec_chg_led_b_c1 0>;