diff options
Diffstat (limited to 'zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml')
-rw-r--r-- | zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml b/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml index 2a16c9150c..ed0659aaac 100644 --- a/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml +++ b/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml @@ -33,4 +33,36 @@ properties: leds = <&pwm_led0>; }; - # TODO(b/177452529): add led_color_map support + color-map-red: + type: array + required: true + description: | + A map of PWM duty cycles per color, up to three channels. + + For example + color-map-red = <100 0 0>; + color-map-green = < 0 100 0>; + color-map-blue = < 0 0 100>; + color-map-yellow = <100 70 0>; + color-map-white = <100 70 100>; + color-map-amber = <100 20 0>; + + color-map-green: + type: array + required: true + + color-map-blue: + type: array + required: true + + color-map-yellow: + type: array + required: true + + color-map-white: + type: array + required: true + + color-map-amber: + type: array + required: true |