Merge remote-tracking branches 'spi/fix/dw', 'spi/fix/lantiq' and 'spi/fix/pl022...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / leds / pca963x.txt
1 LEDs connected to pca9632, pca9633 or pca9634
2
3 Required properties:
4 - compatible : should be : "nxp,pca9632", "nxp,pca9633", "nxp,pca9634" or "nxp,pca9635"
5
6 Optional 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
14 Each led is represented as a sub-node of the nxp,pca963x device.
15
16 LED sub-node properties:
17 - label : (optional) see Documentation/devicetree/bindings/leds/common.txt
18 - reg : number of LED line (could be from 0 to 3 in pca9632 or pca9633,
19                 0 to 7 in pca9634, or 0 to 15 in pca9635)
20 - linux,default-trigger : (optional)
21    see Documentation/devicetree/bindings/leds/common.txt
22
23 Examples:
24
25 pca9632: pca9632 {
26         compatible = "nxp,pca9632";
27         #address-cells = <1>;
28         #size-cells = <0>;
29         reg = <0x62>;
30
31         red@0 {
32                 label = "red";
33                 reg = <0>;
34                 linux,default-trigger = "none";
35         };
36         green@1 {
37                 label = "green";
38                 reg = <1>;
39                 linux,default-trigger = "none";
40         };
41         blue@2 {
42                 label = "blue";
43                 reg = <2>;
44                 linux,default-trigger = "none";
45         };
46         unused@3 {
47                 label = "unused";
48                 reg = <3>;
49                 linux,default-trigger = "none";
50         };
51 };