diff options
| author | Tony Lindgren <tmlind@panda> | 2013-06-26 08:52:49 -0400 |
|---|---|---|
| committer | Bryan Wu <cooloney@gmail.com> | 2013-08-26 20:22:10 -0400 |
| commit | 81d22878092feab779f3efaab404036d31dc06f8 (patch) | |
| tree | 4472aad855b02ad6ece4819fe29612ace2526772 /Documentation | |
| parent | d8dfad3876e4386666b759da3c833d62fb8b2267 (diff) | |
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>
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/devicetree/bindings/leds/pca9633.txt | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/pca9633.txt b/Documentation/devicetree/bindings/leds/pca9633.txt new file mode 100644 index 000000000000..8140512c0ac8 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/pca9633.txt | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | LEDs connected to pca9633 or pca9632 | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible : should be : "nxp,pca963x" | ||
| 5 | |||
| 6 | Optional properties: | ||
| 7 | - nxp,totem-pole : use totem pole (push-pull) instead of default open-drain | ||
| 8 | |||
| 9 | Each led is represented as a sub-node of the nxp,pca9633 device. | ||
| 10 | |||
| 11 | LED sub-node properties: | ||
| 12 | - label : (optional) see Documentation/devicetree/bindings/leds/common.txt | ||
| 13 | - reg : number of LED line (could be from 0 to 4) | ||
| 14 | - linux,default-trigger : (optional) | ||
| 15 | see Documentation/devicetree/bindings/leds/common.txt | ||
| 16 | |||
| 17 | Examples: | ||
| 18 | |||
| 19 | pca9632: pca9632 { | ||
| 20 | compatible = "nxp,pca9632", "nxp,pca963x"; | ||
| 21 | #address-cells = <1>; | ||
| 22 | #size-cells = <0>; | ||
| 23 | reg = <0x62>; | ||
| 24 | |||
| 25 | red@0 { | ||
| 26 | label = "red"; | ||
| 27 | reg = <0>; | ||
| 28 | linux,default-trigger = "none"; | ||
| 29 | }; | ||
| 30 | green@1 { | ||
| 31 | label = "green"; | ||
| 32 | reg = <1>; | ||
| 33 | linux,default-trigger = "none"; | ||
| 34 | }; | ||
| 35 | blue@2 { | ||
| 36 | label = "blue"; | ||
| 37 | reg = <2>; | ||
| 38 | linux,default-trigger = "none"; | ||
| 39 | }; | ||
| 40 | unused@3 { | ||
| 41 | label = "unused"; | ||
| 42 | reg = <3>; | ||
| 43 | linux,default-trigger = "none"; | ||
| 44 | }; | ||
| 45 | }; | ||
