156a1740cSRicardo Ribalda DelgadoLEDs connected to pca9632, pca9633 or pca9634 256a1740cSRicardo Ribalda Delgado 356a1740cSRicardo Ribalda DelgadoRequired properties: 47e774390SPeter Meerwald- compatible : should be : "nxp,pca9632", "nxp,pca9633", "nxp,pca9634" or "nxp,pca9635" 556a1740cSRicardo Ribalda Delgado 656a1740cSRicardo Ribalda DelgadoOptional properties: 77e774390SPeter Meerwald- nxp,totem-pole : use totem pole (push-pull) instead of open-drain (pca9632 defaults 87e774390SPeter Meerwald to open-drain, newer chips to totem pole) 956a1740cSRicardo Ribalda Delgado- nxp,hw-blink : use hardware blinking instead of software blinking 1035c7d301SMatt Ranostay- nxp,period-scale : In some configurations, the chip blinks faster than expected. 1135c7d301SMatt Ranostay This parameter provides a scaling ratio (fixed point, decimal divided 1235c7d301SMatt Ranostay by 1000) to compensate, e.g. 1300=1.3x and 750=0.75x. 13*bb29b9ccSAnders Darander- nxp,inverted-out: invert the polarity of the generated PWM 1456a1740cSRicardo Ribalda Delgado 1556a1740cSRicardo Ribalda DelgadoEach led is represented as a sub-node of the nxp,pca963x device. 1656a1740cSRicardo Ribalda Delgado 1756a1740cSRicardo Ribalda DelgadoLED sub-node properties: 1856a1740cSRicardo Ribalda Delgado- label : (optional) see Documentation/devicetree/bindings/leds/common.txt 197e774390SPeter Meerwald- reg : number of LED line (could be from 0 to 3 in pca9632 or pca9633, 207e774390SPeter Meerwald 0 to 7 in pca9634, or 0 to 15 in pca9635) 2156a1740cSRicardo Ribalda Delgado- linux,default-trigger : (optional) 2256a1740cSRicardo Ribalda Delgado see Documentation/devicetree/bindings/leds/common.txt 2356a1740cSRicardo Ribalda Delgado 2456a1740cSRicardo Ribalda DelgadoExamples: 2556a1740cSRicardo Ribalda Delgado 2656a1740cSRicardo Ribalda Delgadopca9632: pca9632 { 2756a1740cSRicardo Ribalda Delgado compatible = "nxp,pca9632"; 2856a1740cSRicardo Ribalda Delgado #address-cells = <1>; 2956a1740cSRicardo Ribalda Delgado #size-cells = <0>; 3056a1740cSRicardo Ribalda Delgado reg = <0x62>; 3156a1740cSRicardo Ribalda Delgado 3256a1740cSRicardo Ribalda Delgado red@0 { 3356a1740cSRicardo Ribalda Delgado label = "red"; 3456a1740cSRicardo Ribalda Delgado reg = <0>; 3556a1740cSRicardo Ribalda Delgado linux,default-trigger = "none"; 3656a1740cSRicardo Ribalda Delgado }; 3756a1740cSRicardo Ribalda Delgado green@1 { 3856a1740cSRicardo Ribalda Delgado label = "green"; 3956a1740cSRicardo Ribalda Delgado reg = <1>; 4056a1740cSRicardo Ribalda Delgado linux,default-trigger = "none"; 4156a1740cSRicardo Ribalda Delgado }; 4256a1740cSRicardo Ribalda Delgado blue@2 { 4356a1740cSRicardo Ribalda Delgado label = "blue"; 4456a1740cSRicardo Ribalda Delgado reg = <2>; 4556a1740cSRicardo Ribalda Delgado linux,default-trigger = "none"; 4656a1740cSRicardo Ribalda Delgado }; 4756a1740cSRicardo Ribalda Delgado unused@3 { 4856a1740cSRicardo Ribalda Delgado label = "unused"; 4956a1740cSRicardo Ribalda Delgado reg = <3>; 5056a1740cSRicardo Ribalda Delgado linux,default-trigger = "none"; 5156a1740cSRicardo Ribalda Delgado }; 5256a1740cSRicardo Ribalda Delgado}; 53