| .. | .. |
|---|
| 14 | 14 | - reg: Port this LED is connected to. |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | Optional child properties: |
|---|
| 17 | | -- label: See Documentation/devicetree/bindings/leds/common.txt. |
|---|
| 17 | +- function: See Documentation/devicetree/bindings/leds/common.txt. |
|---|
| 18 | +- color: See Documentation/devicetree/bindings/leds/common.txt. |
|---|
| 19 | +- label: See Documentation/devicetree/bindings/leds/common.txt (deprecated). |
|---|
| 18 | 20 | |
|---|
| 19 | 21 | Examples: |
|---|
| 20 | 22 | |
|---|
| .. | .. |
|---|
| 25 | 27 | reg = <0x200>; |
|---|
| 26 | 28 | |
|---|
| 27 | 29 | led@0 { |
|---|
| 28 | | - label = "red"; |
|---|
| 30 | + color = <LED_COLOR_ID_RED>; |
|---|
| 29 | 31 | reg = <0x0>; |
|---|
| 30 | 32 | }; |
|---|
| 31 | 33 | |
|---|
| 32 | 34 | led@1 { |
|---|
| 33 | | - label = "green"; |
|---|
| 35 | + color = <LED_COLOR_ID_GREEN>; |
|---|
| 34 | 36 | reg = <0x1>; |
|---|
| 35 | 37 | }; |
|---|
| 36 | 38 | |
|---|
| 37 | 39 | led@2 { |
|---|
| 38 | | - label = "blue"; |
|---|
| 40 | + color = <LED_COLOR_ID_BLUE>; |
|---|
| 39 | 41 | reg = <0x2>; |
|---|
| 40 | 42 | }; |
|---|
| 41 | 43 | }; |
|---|