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-an30259a.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 * Panasonic AN30259A 3-channel LED driver
    2 
    3 The AN30259A is a LED controller capable of driving three LEDs independently. It supports
    4 constant current output and sloping current output modes. The chip is connected over I2C.
    5 
    6 Required properties:
    7         - compatible: Must be "panasonic,an30259a".
    8         - reg: I2C slave address.
    9         - #address-cells: Must be 1.
   10         - #size-cells: Must be 0.
   11 
   12 Each LED is represented as a sub-node of the panasonic,an30259a node.
   13 
   14 Required sub-node properties:
   15         - reg: Pin that the LED is connected to. Must be 1, 2, or 3.
   16 
   17 Optional sub-node properties:
   18         - function :
   19                 see Documentation/devicetree/bindings/leds/common.txt
   20         - color :
   21                 see Documentation/devicetree/bindings/leds/common.txt
   22         - label :
   23                 see Documentation/devicetree/bindings/leds/common.txt (deprecated)
   24         - linux,default-trigger :
   25                 see Documentation/devicetree/bindings/leds/common.txt
   26 
   27 Example:
   28 
   29 #include <dt-bindings/leds/common.h>
   30 
   31 led-controller@30 {
   32         compatible = "panasonic,an30259a";
   33         reg = <0x30>;
   34         #address-cells = <1>;
   35         #size-cells = <0>;
   36 
   37         led@1 {
   38                 reg = <1>;
   39                 linux,default-trigger = "heartbeat";
   40                 function = LED_FUNCTION_INDICATOR;
   41                 color = <LED_COLOR_ID_RED>;
   42         };
   43 
   44         led@2 {
   45                 reg = <2>;
   46                 function = LED_FUNCTION_INDICATOR;
   47                 color = <LED_COLOR_ID_GREEN>;
   48         };
   49 
   50         led@3 {
   51                 reg = <3>;
   52                 function = LED_FUNCTION_INDICATOR;
   53                 color = <LED_COLOR_ID_BLUE>;
   54         };
   55 };

Cache object: c5c747a5384172c83c5386f010ccd283


[ 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.