-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Tony Lindgren
authored and
Bryan Wu
committed
Aug 27, 2013
1 parent
d8dfad3
commit 81d2287
Showing
2 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters