1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/leds/leds-pwm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: LEDs connected to PWM
10 - Pavel Machek <pavel@ucw.cz>
13 Each LED is represented as a sub-node of the pwm-leds device. Each
14 node's name represents the name of the corresponding LED.
34 Maximum brightness possible for the LED
35 $ref: /schemas/types.yaml#/definitions/uint32
39 For PWMs where the LED is wired to supply rather than ground.
46 additionalProperties: false
51 #include <dt-bindings/leds/common.h>
54 compatible = "pwm-leds";
57 label = "omap4::keypad";
58 pwms = <&twl_pwm 0 7812500>;
59 max-brightness = <127>;
63 color = <LED_COLOR_ID_GREEN>;
64 function = LED_FUNCTION_CHARGING;
65 pwms = <&twl_pwmled 0 7812500>;
66 max-brightness = <255>;