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-pca955x.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 * NXP - pca955x LED driver
    2 
    3 The PCA955x family of chips are I2C LED blinkers whose pins not used
    4 to control LEDs can be used as general purpose I/Os. The GPIO pins can
    5 be input or output, and output pins can also be pulse-width controlled.
    6 
    7 Required properties:
    8 - compatible : should be one of :
    9         "nxp,pca9550"
   10         "nxp,pca9551"
   11         "nxp,pca9552"
   12         "ibm,pca9552"
   13         "nxp,pca9553"
   14 - #address-cells: must be 1
   15 - #size-cells: must be 0
   16 - reg: I2C slave address. depends on the model.
   17 
   18 Optional properties:
   19 - gpio-controller: allows pins to be used as GPIOs.
   20 - #gpio-cells: must be 2.
   21 - gpio-line-names: define the names of the GPIO lines
   22 
   23 LED sub-node properties:
   24 - reg : number of LED line.
   25                 from 0 to  1 for the pca9550
   26                 from 0 to  7 for the pca9551
   27                 from 0 to 15 for the pca9552
   28                 from 0 to  3 for the pca9553
   29 - type: (optional) either
   30         PCA955X_TYPE_NONE
   31         PCA955X_TYPE_LED
   32         PCA955X_TYPE_GPIO
   33         see dt-bindings/leds/leds-pca955x.h (default to LED)
   34 - label : (optional)
   35         see Documentation/devicetree/bindings/leds/common.txt
   36 - linux,default-trigger : (optional)
   37         see Documentation/devicetree/bindings/leds/common.txt
   38 
   39 Examples:
   40 
   41 pca9552: pca9552@60 {
   42         compatible = "nxp,pca9552";
   43         #address-cells = <1>;
   44         #size-cells = <0>;
   45         reg = <0x60>;
   46 
   47         gpio-controller;
   48         #gpio-cells = <2>;
   49         gpio-line-names = "GPIO12", "GPIO13", "GPIO14", "GPIO15";
   50 
   51         gpio@12 {
   52                 reg = <12>;
   53                 type = <PCA955X_TYPE_GPIO>;
   54         };
   55         gpio@13 {
   56                 reg = <13>;
   57                 type = <PCA955X_TYPE_GPIO>;
   58         };
   59         gpio@14 {
   60                 reg = <14>;
   61                 type = <PCA955X_TYPE_GPIO>;
   62         };
   63         gpio@15 {
   64                 reg = <15>;
   65                 type = <PCA955X_TYPE_GPIO>;
   66         };
   67 
   68         led@0 {
   69                 label = "red:power";
   70                 linux,default-trigger = "default-on";
   71                 reg = <0>;
   72                 type = <PCA955X_TYPE_LED>;
   73         };
   74         led@1 {
   75                 label = "green:power";
   76                 reg = <1>;
   77                 type = <PCA955X_TYPE_LED>;
   78         };
   79         led@2 {
   80                 label = "pca9552:yellow";
   81                 reg = <2>;
   82                 type = <PCA955X_TYPE_LED>;
   83         };
   84         led@3 {
   85                 label = "pca9552:white";
   86                 reg = <3>;
   87                 type = <PCA955X_TYPE_LED>;
   88         };
   89 };

Cache object: 3267f589bbb0147db339d790046798a0


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