diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-28 21:53:01 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-28 21:53:01 -0500 |
| commit | 268943fb7529a15254a5247372119ba4bd735e94 (patch) | |
| tree | 790d42cfade2a35b0eec5e1b7e0ac3795d399bcc /Documentation/devicetree | |
| parent | 2ad48ee810335bdd99de96e1a0796ba34c0e8301 (diff) | |
| parent | 3cb6f44aedf519dce4a9106dec675b94d675c539 (diff) | |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds
Pull LED subsystem update from Bryan Wu:
"Basically this cycle is mostly cleanup for LED subsystem"
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds:
leds: s3c24xx: Remove hardware.h inclusion
leds: replace list_for_each with list_for_each_entry
leds: kirkwood: Cleanup in header files
leds: pwm: Remove a warning on non-DT platforms
leds: leds-pwm: fix duty time overflow.
leds: leds-mc13783: Remove unneeded mc13xxx_{un}lock
leds: leds-mc13783: Remove duplicate field in platform data
drivers: leds: leds-tca6507: check CONFIG_GPIOLIB whether defined for 'gpio_base'
leds: lp5523: Support LED MUX configuration on running a pattern
leds: lp5521/5523: Fix multiple engine usage bug
LEDS: tca6507 - fix up some comments.
LEDS: tca6507: add device-tree support for GPIO configuration.
LEDS: tca6507 - fix bugs in parsing of device-tree configuration.
Diffstat (limited to 'Documentation/devicetree')
| -rw-r--r-- | Documentation/devicetree/bindings/leds/tca6507.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/tca6507.txt b/Documentation/devicetree/bindings/leds/tca6507.txt index 80ff3dfb1f32..d7221b84987c 100644 --- a/Documentation/devicetree/bindings/leds/tca6507.txt +++ b/Documentation/devicetree/bindings/leds/tca6507.txt | |||
| @@ -2,6 +2,13 @@ LEDs connected to tca6507 | |||
| 2 | 2 | ||
| 3 | Required properties: | 3 | Required properties: |
| 4 | - compatible : should be : "ti,tca6507". | 4 | - compatible : should be : "ti,tca6507". |
| 5 | - #address-cells: must be 1 | ||
| 6 | - #size-cells: must be 0 | ||
| 7 | - reg: typically 0x45. | ||
| 8 | |||
| 9 | Optional properties: | ||
| 10 | - gpio-controller: allows lines to be used as output-only GPIOs. | ||
| 11 | - #gpio-cells: if present, must be 0. | ||
| 5 | 12 | ||
| 6 | Each led is represented as a sub-node of the ti,tca6507 device. | 13 | Each led is represented as a sub-node of the ti,tca6507 device. |
| 7 | 14 | ||
| @@ -10,6 +17,7 @@ LED sub-node properties: | |||
| 10 | - reg : number of LED line (could be from 0 to 6) | 17 | - reg : number of LED line (could be from 0 to 6) |
| 11 | - linux,default-trigger : (optional) | 18 | - linux,default-trigger : (optional) |
| 12 | see Documentation/devicetree/bindings/leds/common.txt | 19 | see Documentation/devicetree/bindings/leds/common.txt |
| 20 | - compatible: either "led" (the default) or "gpio". | ||
| 13 | 21 | ||
| 14 | Examples: | 22 | Examples: |
| 15 | 23 | ||
| @@ -19,6 +27,9 @@ tca6507@45 { | |||
| 19 | #size-cells = <0>; | 27 | #size-cells = <0>; |
| 20 | reg = <0x45>; | 28 | reg = <0x45>; |
| 21 | 29 | ||
| 30 | gpio-controller; | ||
| 31 | #gpio-cells = <2>; | ||
| 32 | |||
| 22 | led0: red-aux@0 { | 33 | led0: red-aux@0 { |
| 23 | label = "red:aux"; | 34 | label = "red:aux"; |
| 24 | reg = <0x0>; | 35 | reg = <0x0>; |
| @@ -29,5 +40,10 @@ tca6507@45 { | |||
| 29 | reg = <0x5>; | 40 | reg = <0x5>; |
| 30 | linux,default-trigger = "default-on"; | 41 | linux,default-trigger = "default-on"; |
| 31 | }; | 42 | }; |
| 43 | |||
| 44 | wifi-reset@6 { | ||
| 45 | reg = <0x6>; | ||
| 46 | compatible = "gpio"; | ||
| 47 | }; | ||
| 32 | }; | 48 | }; |
| 33 | 49 | ||
