4 - compatible : should be "pwm-leds".
6 Each LED is represented as a sub-node of the pwm-leds device. Each
7 node's name represents the name of the corresponding LED.
9 LED sub-node properties:
10 - pwms : PWM property to point to the PWM device (phandle)/port (id) and to
11 specify the period time to be used: <&phandle id period_ns>;
12 - pwm-names : (optional) Name to be used by the PWM subsystem for the PWM device
13 For the pwms and pwm-names property please refer to:
14 Documentation/devicetree/bindings/pwm/pwm.txt
15 - max-brightness : Maximum brightness possible for the LED
16 - active-low : (optional) For PWMs where the LED is wired to supply
19 see Documentation/devicetree/bindings/leds/common.txt
20 - linux,default-trigger : (optional)
21 see Documentation/devicetree/bindings/leds/common.txt
26 /* provides two PWMs (id 0, 1 for PWM1 and PWM2) */
27 compatible = "ti,twl6030-pwm";
32 /* provides one PWM (id 0 for Charing indicator LED) */
33 compatible = "ti,twl6030-pwmled";
38 compatible = "pwm-leds";
40 label = "omap4::keypad";
41 pwms = <&twl_pwm 0 7812500>;
42 max-brightness = <127>;
46 label = "omap4:green:chrg";
47 pwms = <&twl_pwmled 0 7812500>;
48 max-brightness = <255>;