diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-09-11 05:56:57 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-09-13 17:13:42 -0400 |
commit | 5b1e9e80c044442cc80eb6bb03b11165515eedb8 (patch) | |
tree | e5863d662a6376bbaa27d051b86a24be7f6dacfc | |
parent | e8db78dd6af727fdbeefa1fc624bc5d7c572d841 (diff) |
ARM: mvebu: add user LED support of Armada 370 RD
The Armada 370 RD has a GPIO controlled LED connected on MPP32, so
this commit adds the relevant hardware description to Armada 370 RD
Device Tree.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lkml.kernel.org/r/1410429419-29820-3-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r-- | arch/arm/boot/dts/armada-370-rd.dts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts index ea61d8c05240..14c66e4adbc0 100644 --- a/arch/arm/boot/dts/armada-370-rd.dts +++ b/arch/arm/boot/dts/armada-370-rd.dts | |||
@@ -55,6 +55,11 @@ | |||
55 | marvell,pins = "mpp8"; | 55 | marvell,pins = "mpp8"; |
56 | marvell,function = "gpio"; | 56 | marvell,function = "gpio"; |
57 | }; | 57 | }; |
58 | |||
59 | led_pins: led-pins { | ||
60 | marvell,pins = "mpp32"; | ||
61 | marvell,function = "gpio"; | ||
62 | }; | ||
58 | }; | 63 | }; |
59 | 64 | ||
60 | serial@12000 { | 65 | serial@12000 { |
@@ -125,6 +130,18 @@ | |||
125 | pinctrl-names = "default"; | 130 | pinctrl-names = "default"; |
126 | }; | 131 | }; |
127 | 132 | ||
133 | gpio_leds { | ||
134 | compatible = "gpio-leds"; | ||
135 | pinctrl-names = "default"; | ||
136 | pinctrl-0 = <&led_pins>; | ||
137 | |||
138 | sw_led { | ||
139 | label = "370rd:green:sw"; | ||
140 | gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; | ||
141 | default-state = "keep"; | ||
142 | }; | ||
143 | }; | ||
144 | |||
128 | nand@d0000 { | 145 | nand@d0000 { |
129 | status = "okay"; | 146 | status = "okay"; |
130 | num-cs = <1>; | 147 | num-cs = <1>; |