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" 12 "ibm,pca9552" 13 "nxp,pca9553" 13 "nxp,pca9553" 14 - #address-cells: must be 1 14 - #address-cells: must be 1 15 - #size-cells: must be 0 15 - #size-cells: must be 0 16 - reg: I2C slave address. depends on the model 16 - reg: I2C slave address. depends on the model. 17 17 18 Optional properties: 18 Optional properties: 19 - gpio-controller: allows pins to be used as G 19 - gpio-controller: allows pins to be used as GPIOs. 20 - #gpio-cells: must be 2. 20 - #gpio-cells: must be 2. 21 - gpio-line-names: define the names of the GPI 21 - gpio-line-names: define the names of the GPIO lines 22 22 23 LED sub-node properties: 23 LED sub-node properties: 24 - reg : number of LED line. 24 - reg : number of LED line. 25 from 0 to 1 for the pca9550 25 from 0 to 1 for the pca9550 26 from 0 to 7 for the pca9551 26 from 0 to 7 for the pca9551 27 from 0 to 15 for the pca9552 27 from 0 to 15 for the pca9552 28 from 0 to 3 for the pca9553 28 from 0 to 3 for the pca9553 29 - type: (optional) either 29 - type: (optional) either 30 PCA955X_TYPE_NONE 30 PCA955X_TYPE_NONE 31 PCA955X_TYPE_LED 31 PCA955X_TYPE_LED 32 PCA955X_TYPE_GPIO 32 PCA955X_TYPE_GPIO 33 see dt-bindings/leds/leds-pca955x.h (d 33 see dt-bindings/leds/leds-pca955x.h (default to LED) 34 - label : (optional) 34 - label : (optional) 35 see Documentation/devicetree/bindings/ 35 see Documentation/devicetree/bindings/leds/common.txt 36 - linux,default-trigger : (optional) 36 - linux,default-trigger : (optional) 37 see Documentation/devicetree/bindings/ 37 see Documentation/devicetree/bindings/leds/common.txt 38 38 39 Examples: 39 Examples: 40 40 41 pca9552: pca9552@60 { 41 pca9552: pca9552@60 { 42 compatible = "nxp,pca9552"; 42 compatible = "nxp,pca9552"; 43 #address-cells = <1>; 43 #address-cells = <1>; 44 #size-cells = <0>; 44 #size-cells = <0>; 45 reg = <0x60>; 45 reg = <0x60>; 46 46 47 gpio-controller; 47 gpio-controller; 48 #gpio-cells = <2>; 48 #gpio-cells = <2>; 49 gpio-line-names = "GPIO12", "GPIO13", 49 gpio-line-names = "GPIO12", "GPIO13", "GPIO14", "GPIO15"; 50 50 51 gpio@12 { 51 gpio@12 { 52 reg = <12>; 52 reg = <12>; 53 type = <PCA955X_TYPE_GPIO>; 53 type = <PCA955X_TYPE_GPIO>; 54 }; 54 }; 55 gpio@13 { 55 gpio@13 { 56 reg = <13>; 56 reg = <13>; 57 type = <PCA955X_TYPE_GPIO>; 57 type = <PCA955X_TYPE_GPIO>; 58 }; 58 }; 59 gpio@14 { 59 gpio@14 { 60 reg = <14>; 60 reg = <14>; 61 type = <PCA955X_TYPE_GPIO>; 61 type = <PCA955X_TYPE_GPIO>; 62 }; 62 }; 63 gpio@15 { 63 gpio@15 { 64 reg = <15>; 64 reg = <15>; 65 type = <PCA955X_TYPE_GPIO>; 65 type = <PCA955X_TYPE_GPIO>; 66 }; 66 }; 67 67 68 led@0 { 68 led@0 { 69 label = "red:power"; 69 label = "red:power"; 70 linux,default-trigger = "defau 70 linux,default-trigger = "default-on"; 71 reg = <0>; 71 reg = <0>; 72 type = <PCA955X_TYPE_LED>; 72 type = <PCA955X_TYPE_LED>; 73 }; 73 }; 74 led@1 { 74 led@1 { 75 label = "green:power"; 75 label = "green:power"; 76 reg = <1>; 76 reg = <1>; 77 type = <PCA955X_TYPE_LED>; 77 type = <PCA955X_TYPE_LED>; 78 }; 78 }; 79 led@2 { 79 led@2 { 80 label = "pca9552:yellow"; 80 label = "pca9552:yellow"; 81 reg = <2>; 81 reg = <2>; 82 type = <PCA955X_TYPE_LED>; 82 type = <PCA955X_TYPE_LED>; 83 }; 83 }; 84 led@3 { 84 led@3 { 85 label = "pca9552:white"; 85 label = "pca9552:white"; 86 reg = <3>; 86 reg = <3>; 87 type = <PCA955X_TYPE_LED>; 87 type = <PCA955X_TYPE_LED>; 88 }; 88 }; 89 }; 89 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.