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.
24 unevaluatedProperties: false
34 Maximum brightness possible for the LED
35 $ref: /schemas/types.yaml#/definitions/uint32
39 Brightness to be set if LED's default state is on. Used only during
40 initialization. If the option is not set then max brightness is used.
41 $ref: /schemas/types.yaml#/definitions/uint32
47 additionalProperties: false
52 #include <dt-bindings/leds/common.h>
55 compatible = "pwm-leds";
58 label = "omap4::keypad";
59 pwms = <&twl_pwm 0 7812500>;
60 max-brightness = <127>;
64 color = <LED_COLOR_ID_GREEN>;
65 function = LED_FUNCTION_CHARGING;
66 pwms = <&twl_pwmled 0 7812500>;
67 max-brightness = <255>;