~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/leds/leds-pca955x.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/leds/leds-pca955x.txt (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/leds/leds-pca955x.txt (Version linux-5.9.16)


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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php