1
0

leds: Add device tree binding for pca9633

Similar to tca6507, we can just parse the standard LED
properties for pca9633.

Tested on a pca9632, which is compatible with pca9633.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Este cometimento está contido em:
Tony Lindgren
2013-06-26 15:52:49 +03:00
cometido por Bryan Wu
ascendente d8dfad3876
cometimento 81d2287809
2 ficheiros modificados com 116 adições e 0 eliminações

Ver ficheiro

@@ -0,0 +1,45 @@
LEDs connected to pca9633 or pca9632
Required properties:
- compatible : should be : "nxp,pca963x"
Optional properties:
- nxp,totem-pole : use totem pole (push-pull) instead of default open-drain
Each led is represented as a sub-node of the nxp,pca9633 device.
LED sub-node properties:
- label : (optional) see Documentation/devicetree/bindings/leds/common.txt
- reg : number of LED line (could be from 0 to 4)
- linux,default-trigger : (optional)
see Documentation/devicetree/bindings/leds/common.txt
Examples:
pca9632: pca9632 {
compatible = "nxp,pca9632", "nxp,pca963x";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x62>;
red@0 {
label = "red";
reg = <0>;
linux,default-trigger = "none";
};
green@1 {
label = "green";
reg = <1>;
linux,default-trigger = "none";
};
blue@2 {
label = "blue";
reg = <2>;
linux,default-trigger = "none";
};
unused@3 {
label = "unused";
reg = <3>;
linux,default-trigger = "none";
};
};