Masanari Iida | 372c1d6 | 2013-04-10 22:33:46 +0900 | [diff] [blame] | 1 | LEDs connected to tca6507 |
Marek Belisko | 60c681a | 2012-11-30 14:00:50 -0800 | [diff] [blame] | 2 | |
| 3 | Required properties: |
| 4 | - compatible : should be : "ti,tca6507". |
NeilBrown | 10ead6e | 2013-10-31 19:41:20 -0700 | [diff] [blame] | 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. |
Marek Belisko | 60c681a | 2012-11-30 14:00:50 -0800 | [diff] [blame] | 12 | |
| 13 | Each led is represented as a sub-node of the ti,tca6507 device. |
| 14 | |
| 15 | LED sub-node properties: |
| 16 | - label : (optional) see Documentation/devicetree/bindings/leds/common.txt |
| 17 | - reg : number of LED line (could be from 0 to 6) |
| 18 | - linux,default-trigger : (optional) |
| 19 | see Documentation/devicetree/bindings/leds/common.txt |
NeilBrown | 10ead6e | 2013-10-31 19:41:20 -0700 | [diff] [blame] | 20 | - compatible: either "led" (the default) or "gpio". |
Marek Belisko | 60c681a | 2012-11-30 14:00:50 -0800 | [diff] [blame] | 21 | |
| 22 | Examples: |
| 23 | |
| 24 | tca6507@45 { |
| 25 | compatible = "ti,tca6507"; |
| 26 | #address-cells = <1>; |
| 27 | #size-cells = <0>; |
| 28 | reg = <0x45>; |
| 29 | |
NeilBrown | 10ead6e | 2013-10-31 19:41:20 -0700 | [diff] [blame] | 30 | gpio-controller; |
| 31 | #gpio-cells = <2>; |
| 32 | |
Marek Belisko | 60c681a | 2012-11-30 14:00:50 -0800 | [diff] [blame] | 33 | led0: red-aux@0 { |
| 34 | label = "red:aux"; |
| 35 | reg = <0x0>; |
| 36 | }; |
| 37 | |
| 38 | led1: green-aux@1 { |
| 39 | label = "green:aux"; |
| 40 | reg = <0x5>; |
| 41 | linux,default-trigger = "default-on"; |
| 42 | }; |
NeilBrown | 10ead6e | 2013-10-31 19:41:20 -0700 | [diff] [blame] | 43 | |
| 44 | wifi-reset@6 { |
| 45 | reg = <0x6>; |
| 46 | compatible = "gpio"; |
| 47 | }; |
Marek Belisko | 60c681a | 2012-11-30 14:00:50 -0800 | [diff] [blame] | 48 | }; |
| 49 | |