115201b5dSCédric Le Goater* NXP - pca955x LED driver 215201b5dSCédric Le Goater 315201b5dSCédric Le GoaterThe PCA955x family of chips are I2C LED blinkers whose pins not used 415201b5dSCédric Le Goaterto control LEDs can be used as general purpose I/Os. The GPIO pins can 515201b5dSCédric Le Goaterbe input or output, and output pins can also be pulse-width controlled. 615201b5dSCédric Le Goater 715201b5dSCédric Le GoaterRequired properties: 815201b5dSCédric Le Goater- compatible : should be one of : 915201b5dSCédric Le Goater "nxp,pca9550" 1015201b5dSCédric Le Goater "nxp,pca9551" 1115201b5dSCédric Le Goater "nxp,pca9552" 12*8ebe6d29SEddie James "ibm,pca9552" 1315201b5dSCédric Le Goater "nxp,pca9553" 1415201b5dSCédric Le Goater- #address-cells: must be 1 1515201b5dSCédric Le Goater- #size-cells: must be 0 1615201b5dSCédric Le Goater- reg: I2C slave address. depends on the model. 1715201b5dSCédric Le Goater 1815201b5dSCédric Le GoaterOptional properties: 1915201b5dSCédric Le Goater- gpio-controller: allows pins to be used as GPIOs. 2015201b5dSCédric Le Goater- #gpio-cells: must be 2. 2115201b5dSCédric Le Goater- gpio-line-names: define the names of the GPIO lines 2215201b5dSCédric Le Goater 2315201b5dSCédric Le GoaterLED sub-node properties: 2415201b5dSCédric Le Goater- reg : number of LED line. 2515201b5dSCédric Le Goater from 0 to 1 for the pca9550 2615201b5dSCédric Le Goater from 0 to 7 for the pca9551 2715201b5dSCédric Le Goater from 0 to 15 for the pca9552 2815201b5dSCédric Le Goater from 0 to 3 for the pca9553 2915201b5dSCédric Le Goater- type: (optional) either 30528c1d71SFlavio Suligoi PCA955X_TYPE_NONE 31528c1d71SFlavio Suligoi PCA955X_TYPE_LED 32528c1d71SFlavio Suligoi PCA955X_TYPE_GPIO 3315201b5dSCédric Le Goater see dt-bindings/leds/leds-pca955x.h (default to LED) 3415201b5dSCédric Le Goater- label : (optional) 3515201b5dSCédric Le Goater see Documentation/devicetree/bindings/leds/common.txt 3615201b5dSCédric Le Goater- linux,default-trigger : (optional) 3715201b5dSCédric Le Goater see Documentation/devicetree/bindings/leds/common.txt 3815201b5dSCédric Le Goater 3915201b5dSCédric Le GoaterExamples: 4015201b5dSCédric Le Goater 4115201b5dSCédric Le Goaterpca9552: pca9552@60 { 4215201b5dSCédric Le Goater compatible = "nxp,pca9552"; 4315201b5dSCédric Le Goater #address-cells = <1>; 4415201b5dSCédric Le Goater #size-cells = <0>; 4515201b5dSCédric Le Goater reg = <0x60>; 4615201b5dSCédric Le Goater 4715201b5dSCédric Le Goater gpio-controller; 4815201b5dSCédric Le Goater #gpio-cells = <2>; 4915201b5dSCédric Le Goater gpio-line-names = "GPIO12", "GPIO13", "GPIO14", "GPIO15"; 5015201b5dSCédric Le Goater 5115201b5dSCédric Le Goater gpio@12 { 5215201b5dSCédric Le Goater reg = <12>; 5315201b5dSCédric Le Goater type = <PCA955X_TYPE_GPIO>; 5415201b5dSCédric Le Goater }; 5515201b5dSCédric Le Goater gpio@13 { 5615201b5dSCédric Le Goater reg = <13>; 5715201b5dSCédric Le Goater type = <PCA955X_TYPE_GPIO>; 5815201b5dSCédric Le Goater }; 5915201b5dSCédric Le Goater gpio@14 { 6015201b5dSCédric Le Goater reg = <14>; 6115201b5dSCédric Le Goater type = <PCA955X_TYPE_GPIO>; 6215201b5dSCédric Le Goater }; 6315201b5dSCédric Le Goater gpio@15 { 6415201b5dSCédric Le Goater reg = <15>; 6515201b5dSCédric Le Goater type = <PCA955X_TYPE_GPIO>; 6615201b5dSCédric Le Goater }; 6715201b5dSCédric Le Goater 6815201b5dSCédric Le Goater led@0 { 6915201b5dSCédric Le Goater label = "red:power"; 7015201b5dSCédric Le Goater linux,default-trigger = "default-on"; 7115201b5dSCédric Le Goater reg = <0>; 7215201b5dSCédric Le Goater type = <PCA955X_TYPE_LED>; 7315201b5dSCédric Le Goater }; 7415201b5dSCédric Le Goater led@1 { 7515201b5dSCédric Le Goater label = "green:power"; 7615201b5dSCédric Le Goater reg = <1>; 7715201b5dSCédric Le Goater type = <PCA955X_TYPE_LED>; 7815201b5dSCédric Le Goater }; 7915201b5dSCédric Le Goater led@2 { 8015201b5dSCédric Le Goater label = "pca9552:yellow"; 8115201b5dSCédric Le Goater reg = <2>; 8215201b5dSCédric Le Goater type = <PCA955X_TYPE_LED>; 8315201b5dSCédric Le Goater }; 8415201b5dSCédric Le Goater led@3 { 8515201b5dSCédric Le Goater label = "pca9552:white"; 8615201b5dSCédric Le Goater reg = <3>; 8715201b5dSCédric Le Goater type = <PCA955X_TYPE_LED>; 8815201b5dSCédric Le Goater }; 8915201b5dSCédric Le Goater}; 90