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/tca6507.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 LEDs connected to tca6507
    2 
    3 Required properties:
    4 - compatible : should be : "ti,tca6507".
    5 - #address-cells: must be 1
    6 - #size-cells: must be 0
    7 - reg: typically 0x45.
    8 
    9 Optional properties:
   10 - gpio-controller: allows lines to be used as output-only GPIOs.
   11 - #gpio-cells: if present, must not be 0.
   12 
   13 Each led is represented as a sub-node of the ti,tca6507 device.
   14 
   15 LED sub-node properties:
   16 - label : (optional) see Documentation/devicetree/bindings/leds/common.txt
   17 - reg : number of LED line (could be from 0 to 6)
   18 - linux,default-trigger : (optional)
   19    see Documentation/devicetree/bindings/leds/common.txt
   20 - compatible: either "led" (the default) or "gpio".
   21 
   22 Examples:
   23 
   24 tca6507@45 {
   25         compatible = "ti,tca6507";
   26         #address-cells = <1>;
   27         #size-cells = <0>;
   28         reg = <0x45>;
   29 
   30         gpio-controller;
   31         #gpio-cells = <2>;
   32 
   33         led0: red-aux@0 {
   34                 label = "red:aux";
   35                 reg = <0x0>;
   36         };
   37 
   38         led1: green-aux@1 {
   39                 label = "green:aux";
   40                 reg = <0x5>;
   41                 linux,default-trigger = "default-on";
   42         };
   43 
   44         wifi-reset@6 {
   45                 reg = <0x6>;
   46                 compatible = "gpio";
   47         };
   48 };
   49 

Cache object: 9d0b3ccd3aec9d98de95c8d890f657ff


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