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