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