Commit | Line | Data |
---|---|---|
af67384f | 1 | LEDs connected to pca9632, pca9633 or pca9634 |
81d22878 TL |
2 | |
3 | Required properties: | |
7e774390 | 4 | - compatible : should be : "nxp,pca9632", "nxp,pca9633", "nxp,pca9634" or "nxp,pca9635" |
81d22878 TL |
5 | |
6 | Optional properties: | |
7e774390 PM |
7 | - nxp,totem-pole : use totem pole (push-pull) instead of open-drain (pca9632 defaults |
8 | to open-drain, newer chips to totem pole) | |
8465b018 | 9 | - nxp,hw-blink : use hardware blinking instead of software blinking |
81d22878 | 10 | |
af67384f | 11 | Each led is represented as a sub-node of the nxp,pca963x device. |
81d22878 TL |
12 | |
13 | LED sub-node properties: | |
14 | - label : (optional) see Documentation/devicetree/bindings/leds/common.txt | |
7e774390 PM |
15 | - reg : number of LED line (could be from 0 to 3 in pca9632 or pca9633, |
16 | 0 to 7 in pca9634, or 0 to 15 in pca9635) | |
81d22878 TL |
17 | - linux,default-trigger : (optional) |
18 | see Documentation/devicetree/bindings/leds/common.txt | |
19 | ||
20 | Examples: | |
21 | ||
22 | pca9632: pca9632 { | |
af67384f | 23 | compatible = "nxp,pca9632"; |
81d22878 TL |
24 | #address-cells = <1>; |
25 | #size-cells = <0>; | |
26 | reg = <0x62>; | |
27 | ||
28 | red@0 { | |
29 | label = "red"; | |
30 | reg = <0>; | |
31 | linux,default-trigger = "none"; | |
32 | }; | |
33 | green@1 { | |
34 | label = "green"; | |
35 | reg = <1>; | |
36 | linux,default-trigger = "none"; | |
37 | }; | |
38 | blue@2 { | |
39 | label = "blue"; | |
40 | reg = <2>; | |
41 | linux,default-trigger = "none"; | |
42 | }; | |
43 | unused@3 { | |
44 | label = "unused"; | |
45 | reg = <3>; | |
46 | linux,default-trigger = "none"; | |
47 | }; | |
48 | }; |