1*4882a593SmuzhiyunLEDs connected to pca9632, pca9633 or pca9634 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunRequired properties: 4*4882a593Smuzhiyun- compatible : should be : "nxp,pca9632", "nxp,pca9633", "nxp,pca9634" or "nxp,pca9635" 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunOptional properties: 7*4882a593Smuzhiyun- nxp,totem-pole : use totem pole (push-pull) instead of open-drain (pca9632 defaults 8*4882a593Smuzhiyun to open-drain, newer chips to totem pole) 9*4882a593Smuzhiyun- nxp,hw-blink : use hardware blinking instead of software blinking 10*4882a593Smuzhiyun- nxp,period-scale : In some configurations, the chip blinks faster than expected. 11*4882a593Smuzhiyun This parameter provides a scaling ratio (fixed point, decimal divided 12*4882a593Smuzhiyun by 1000) to compensate, e.g. 1300=1.3x and 750=0.75x. 13*4882a593Smuzhiyun- nxp,inverted-out: invert the polarity of the generated PWM 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunEach led is represented as a sub-node of the nxp,pca963x device. 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunLED sub-node properties: 18*4882a593Smuzhiyun- label : (optional) see Documentation/devicetree/bindings/leds/common.txt 19*4882a593Smuzhiyun- reg : number of LED line (could be from 0 to 3 in pca9632 or pca9633, 20*4882a593Smuzhiyun 0 to 7 in pca9634, or 0 to 15 in pca9635) 21*4882a593Smuzhiyun- linux,default-trigger : (optional) 22*4882a593Smuzhiyun see Documentation/devicetree/bindings/leds/common.txt 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunExamples: 25*4882a593Smuzhiyun 26*4882a593Smuzhiyunpca9632: pca9632 { 27*4882a593Smuzhiyun compatible = "nxp,pca9632"; 28*4882a593Smuzhiyun #address-cells = <1>; 29*4882a593Smuzhiyun #size-cells = <0>; 30*4882a593Smuzhiyun reg = <0x62>; 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun red@0 { 33*4882a593Smuzhiyun label = "red"; 34*4882a593Smuzhiyun reg = <0>; 35*4882a593Smuzhiyun linux,default-trigger = "none"; 36*4882a593Smuzhiyun }; 37*4882a593Smuzhiyun green@1 { 38*4882a593Smuzhiyun label = "green"; 39*4882a593Smuzhiyun reg = <1>; 40*4882a593Smuzhiyun linux,default-trigger = "none"; 41*4882a593Smuzhiyun }; 42*4882a593Smuzhiyun blue@2 { 43*4882a593Smuzhiyun label = "blue"; 44*4882a593Smuzhiyun reg = <2>; 45*4882a593Smuzhiyun linux,default-trigger = "none"; 46*4882a593Smuzhiyun }; 47*4882a593Smuzhiyun unused@3 { 48*4882a593Smuzhiyun label = "unused"; 49*4882a593Smuzhiyun reg = <3>; 50*4882a593Smuzhiyun linux,default-trigger = "none"; 51*4882a593Smuzhiyun }; 52*4882a593Smuzhiyun}; 53