1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/leds/leds-pwm-multicolor.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Multi-color LEDs connected to PWM
10 - Sven Schwermer <sven.schwermer@disruptive-technologies.com>
13 This driver combines several monochrome PWM LEDs into one multi-color
14 LED using the multicolor LED class.
18 const: pwm-leds-multicolor
22 $ref: leds-class-multicolor.yaml#
23 unevaluatedProperties: false
28 Maximum brightness possible for the LED
29 $ref: /schemas/types.yaml#/definitions/uint32
36 additionalProperties: false
45 description: For PWMs where the LED is wired to supply rather than ground.
57 additionalProperties: false
61 #include <dt-bindings/leds/common.h>
64 compatible = "pwm-leds-multicolor";
67 color = <LED_COLOR_ID_RGB>;
68 function = LED_FUNCTION_INDICATOR;
69 max-brightness = <65535>;
72 pwms = <&pwm1 0 1000000>;
73 color = <LED_COLOR_ID_RED>;
77 pwms = <&pwm2 0 1000000>;
78 color = <LED_COLOR_ID_GREEN>;
82 pwms = <&pwm3 0 1000000>;
83 color = <LED_COLOR_ID_BLUE>;