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