blob: dafbe9931c2baa992adab30bcb5c9a50373709bd [file] [log] [blame]
Ricardo Ribalda Delgadoaf673842013-08-14 14:23:47 -07001LEDs connected to pca9632, pca9633 or pca9634
Tony Lindgren81d22872013-06-26 15:52:49 +03002
3Required properties:
Peter Meerwald7e774392014-07-02 22:50:36 -07004- compatible : should be : "nxp,pca9632", "nxp,pca9633", "nxp,pca9634" or "nxp,pca9635"
Tony Lindgren81d22872013-06-26 15:52:49 +03005
6Optional properties:
Peter Meerwald7e774392014-07-02 22:50:36 -07007- nxp,totem-pole : use totem pole (push-pull) instead of open-drain (pca9632 defaults
8 to open-drain, newer chips to totem pole)
Mark A. Greer8465b012013-07-25 10:16:41 -07009- nxp,hw-blink : use hardware blinking instead of software blinking
Tony Lindgren81d22872013-06-26 15:52:49 +030010
Ricardo Ribalda Delgadoaf673842013-08-14 14:23:47 -070011Each led is represented as a sub-node of the nxp,pca963x device.
Tony Lindgren81d22872013-06-26 15:52:49 +030012
13LED sub-node properties:
14- label : (optional) see Documentation/devicetree/bindings/leds/common.txt
Peter Meerwald7e774392014-07-02 22:50:36 -070015- 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)
Tony Lindgren81d22872013-06-26 15:52:49 +030017- linux,default-trigger : (optional)
18 see Documentation/devicetree/bindings/leds/common.txt
19
20Examples:
21
22pca9632: pca9632 {
Ricardo Ribalda Delgadoaf673842013-08-14 14:23:47 -070023 compatible = "nxp,pca9632";
Tony Lindgren81d22872013-06-26 15:52:49 +030024 #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};