summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml')
-rw-r--r--zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml21
1 files changed, 8 insertions, 13 deletions
diff --git a/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml b/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml
index 5ee8e112b5..19fee69be4 100644
--- a/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml
+++ b/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml
@@ -14,8 +14,8 @@ child-binding:
looks like this where 100 is PWM duty cycle in percentage.
color-amber {
led-color = "LED_AMBER";
- led-pwms = <&pwm_led_y &pwm_led_b>;
- led-values = <100 0>;
+ led-pins = <&pwm_led_y 100>,
+ <&pwm_led_b 0>;
};
properties:
led-color:
@@ -59,16 +59,11 @@ child-binding:
- EC_LED_COLOR_YELLOW
- EC_LED_COLOR_WHITE
- EC_LED_COLOR_AMBER
- led-pwms:
- type: phandles
+ led-pins:
+ type: phandle-array
required: true
description: |
- This property is used to specify an array of pwms 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 pwm-pins to set a particular color.
+ This property is used to specify an array of PWM pins and
+ corresponding values to enable a particular color.
+ e.g. Amber color - led-pins = <&pwm_led_y 100>,
+ <&pwm_led_b 0>;