diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-09-11 13:56:57 +0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-09-14 01:13:42 +0400 |
commit | 5b1e9e80c044442cc80eb6bb03b11165515eedb8 (patch) | |
tree | e5863d662a6376bbaa27d051b86a24be7f6dacfc /arch/arm/boot/dts/armada-370-rd.dts | |
parent | e8db78dd6af727fdbeefa1fc624bc5d7c572d841 (diff) | |
download | linux-5b1e9e80c044442cc80eb6bb03b11165515eedb8.tar.xz |
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>
Diffstat (limited to 'arch/arm/boot/dts/armada-370-rd.dts')
-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 @@ marvell,pins = "mpp8"; marvell,function = "gpio"; }; + + led_pins: led-pins { + marvell,pins = "mpp32"; + marvell,function = "gpio"; + }; }; serial@12000 { @@ -125,6 +130,18 @@ pinctrl-names = "default"; }; + gpio_leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&led_pins>; + + sw_led { + label = "370rd:green:sw"; + gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; + default-state = "keep"; + }; + }; + nand@d0000 { status = "okay"; num-cs = <1>; |