summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml b/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml
index cc27013ca9..2a16c9150c 100644
--- a/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml
+++ b/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml
@@ -11,9 +11,26 @@ include: base.yaml
properties:
leds:
type: phandles
+ required: true
description: |
List of pwm-leds nodes. These are expected to have a pwms property
pointing to the relevant PWMs, in red, green, blue and optionally sidesel
order.
+ For example
+ pwmleds {
+ compatible = "pwm-leds";
+ pwm_led0: pwm_led_0 {
+ pwms = <&led3_red
+ &led2_green
+ &led1_blue
+ &led3_sidesel
+ >;
+ };
+ };
+ cros-pwmleds {
+ compatible = "cros-ec,pwm-leds";
+ leds = <&pwm_led0>;
+ };
+
# TODO(b/177452529): add led_color_map support