Ricardo Ribalda Delgado | af67384 | 2013-08-14 14:23:47 -0700 | [diff] [blame] | 1 | LEDs connected to pca9632, pca9633 or pca9634 |
Tony Lindgren | 81d2287 | 2013-06-26 15:52:49 +0300 | [diff] [blame] | 2 | |
| 3 | Required properties: |
Peter Meerwald | 7e77439 | 2014-07-02 22:50:36 -0700 | [diff] [blame] | 4 | - compatible : should be : "nxp,pca9632", "nxp,pca9633", "nxp,pca9634" or "nxp,pca9635" |
Tony Lindgren | 81d2287 | 2013-06-26 15:52:49 +0300 | [diff] [blame] | 5 | |
| 6 | Optional properties: |
Peter Meerwald | 7e77439 | 2014-07-02 22:50:36 -0700 | [diff] [blame] | 7 | - nxp,totem-pole : use totem pole (push-pull) instead of open-drain (pca9632 defaults |
| 8 | to open-drain, newer chips to totem pole) |
Mark A. Greer | 8465b01 | 2013-07-25 10:16:41 -0700 | [diff] [blame] | 9 | - nxp,hw-blink : use hardware blinking instead of software blinking |
Tony Lindgren | 81d2287 | 2013-06-26 15:52:49 +0300 | [diff] [blame] | 10 | |
Ricardo Ribalda Delgado | af67384 | 2013-08-14 14:23:47 -0700 | [diff] [blame] | 11 | Each led is represented as a sub-node of the nxp,pca963x device. |
Tony Lindgren | 81d2287 | 2013-06-26 15:52:49 +0300 | [diff] [blame] | 12 | |
| 13 | LED sub-node properties: |
| 14 | - label : (optional) see Documentation/devicetree/bindings/leds/common.txt |
Peter Meerwald | 7e77439 | 2014-07-02 22:50:36 -0700 | [diff] [blame] | 15 | - reg : number of LED line (could be from 0 to 3 in pca9632 or pca9633, |
| 16 | 0 to 7 in pca9634, or 0 to 15 in pca9635) |
Tony Lindgren | 81d2287 | 2013-06-26 15:52:49 +0300 | [diff] [blame] | 17 | - linux,default-trigger : (optional) |
| 18 | see Documentation/devicetree/bindings/leds/common.txt |
| 19 | |
| 20 | Examples: |
| 21 | |
| 22 | pca9632: pca9632 { |
Ricardo Ribalda Delgado | af67384 | 2013-08-14 14:23:47 -0700 | [diff] [blame] | 23 | compatible = "nxp,pca9632"; |
Tony Lindgren | 81d2287 | 2013-06-26 15:52:49 +0300 | [diff] [blame] | 24 | #address-cells = <1>; |
| 25 | #size-cells = <0>; |
| 26 | reg = <0x62>; |
| 27 | |
| 28 | red@0 { |
| 29 | label = "red"; |
| 30 | reg = <0>; |
| 31 | linux,default-trigger = "none"; |
| 32 | }; |
| 33 | green@1 { |
| 34 | label = "green"; |
| 35 | reg = <1>; |
| 36 | linux,default-trigger = "none"; |
| 37 | }; |
| 38 | blue@2 { |
| 39 | label = "blue"; |
| 40 | reg = <2>; |
| 41 | linux,default-trigger = "none"; |
| 42 | }; |
| 43 | unused@3 { |
| 44 | label = "unused"; |
| 45 | reg = <3>; |
| 46 | linux,default-trigger = "none"; |
| 47 | }; |
| 48 | }; |