The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/leds/leds-pwm.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 LED connected to PWM
    2 
    3 Required properties:
    4 - compatible : should be "pwm-leds".
    5 
    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.
    8 
    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
   17   rather than ground.
   18 - label :  (optional)
   19   see Documentation/devicetree/bindings/leds/common.txt
   20 - linux,default-trigger :  (optional)
   21   see Documentation/devicetree/bindings/leds/common.txt
   22 
   23 Example:
   24 
   25 twl_pwm: pwm {
   26         /* provides two PWMs (id 0, 1 for PWM1 and PWM2) */
   27         compatible = "ti,twl6030-pwm";
   28         #pwm-cells = <2>;
   29 };
   30 
   31 twl_pwmled: pwmled {
   32         /* provides one PWM (id 0 for Charing indicator LED) */
   33         compatible = "ti,twl6030-pwmled";
   34         #pwm-cells = <2>;
   35 };
   36 
   37 pwmleds {
   38         compatible = "pwm-leds";
   39         kpad {
   40                 label = "omap4::keypad";
   41                 pwms = <&twl_pwm 0 7812500>;
   42                 max-brightness = <127>;
   43         };
   44 
   45         charging {
   46                 label = "omap4:green:chrg";
   47                 pwms = <&twl_pwmled 0 7812500>;
   48                 max-brightness = <255>;
   49         };
   50 };

Cache object: 85f6f757160cd8d643f4f3a38962f8bd


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.