LED connected to PWM Required properties: - compatible : should be "pwm-leds". Each LED is represented as a sub-node of the pwm-leds device. Each node's name represents the name of the corresponding LED. LED sub-node properties: - pwms : PWM property to point to the PWM device (phandle)/port (id) and to specify the period time to be used: <&phandle id period_ns>; - pwm-names : (optional) Name to be used by the PWM subsystem for the PWM device For the pwms and pwm-names property please refer to: Documentation/devicetree/bindings/pwm/pwm.txt - max-brightness : Maximum brightness possible for the LED - active-low : (optional) For PWMs where the LED is wired to supply rather than ground. - label : (optional) see Documentation/devicetree/bindings/leds/common.txt - linux,default-trigger : (optional) see Documentation/devicetree/bindings/leds/common.txt Example: twl_pwm: pwm { /* provides two PWMs (id 0, 1 for PWM1 and PWM2) */ compatible = "ti,twl6030-pwm"; #pwm-cells = <2>; }; twl_pwmled: pwmled { /* provides one PWM (id 0 for Charing indicator LED) */ compatible = "ti,twl6030-pwmled"; #pwm-cells = <2>; }; pwmleds { compatible = "pwm-leds"; kpad { label = "omap4::keypad"; pwms = <&twl_pwm 0 7812500>; max-brightness = <127>; }; charging { label = "omap4:green:chrg"; pwms = <&twl_pwmled 0 7812500>; max-brightness = <255>; }; }; lass='sub'>net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2016-05-23 16:24:25 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-23 17:04:14 -0700
commita0c20deae992527ba90df9a6f87d396b7cee3922 (patch)
treee02f029e0e13cd7a62a06c5994cbf0a4aefd2d8a /Documentation
parent7a0058ec78602da02b34fa2ae3afc523e90d1ab2 (diff)
kdump: fix gdb macros work work with newer and 64-bit kernels
Lots of little changes needed to be made to clean these up, remove the four byte pointer assumption and traverse the pid queue properly. Also consolidate the traceback code into a single function instead of having three copies of it. Link: http://lkml.kernel.org/r/1462926655-9390-1-git-send-email-minyard@acm.org Signed-off-by: Corey Minyard <cminyard@mvista.com> Acked-by: Baoquan He <bhe@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Cc: Haren Myneni <hbabu@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')