ARM: mvebu: Add button on Armada 370 Reference Design board
PATCH 1/1 ARM: mvebu: Add button on Armada 370 Reference Design board
The Marvell Armada 370 Reference Design board has a software-controlled button on the front side, marked as "SW".
This patch adds minimal support for this button.
--- arch/arm/boot/dts/armada-370-rd.dts | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
arch/arm/boot/dts/armada-370-rd.dts +11 -0
@@ -65,4 +65,15 @@ /* No CD or WP GPIOs */ }; }; + + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + button at 1 { + label = "Software Button"; + linux,code = <116>; + gpios = <&gpio0 6 1>; + }; + }; };
Signature · 1 line
1.7.8.6
PATCH 1/1 ARM: mvebu: Add button on Armada 370 Reference Design board
Hello Ezequiel,
Le 03/21/13 20:43, Ezequiel Garcia a ?crit :
Quoted 3 lines
The Marvell Armada 370 Reference Design board has a software-controlled button on the front side, marked as "SW".
This patch adds minimal support for this button.
This is also what I found out while playing with gpio exporting, looks good!
Quoted 2 lines
Signed-off-by Ezequiel Garcia <[email protected]>
Quoted 25 lines
--- arch/arm/boot/dts/armada-370-rd.dts | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)arch/arm/boot/dts/armada-370-rd.dts +11
-0@@ -65,4 +65,15 @@ /* No CD or WP GPIOs */ }; }; + + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + button at 1 { + label = "Software Button"; + linux,code = <116>; + gpios = <&gpio0 6 1>; + }; + }; };
Jason Cooper
AppliedPATCH 1/1 ARM: mvebu: Add button on Armada 370 Reference Design board
In reply to Ezequiel GarciaQuoted 8 lines · Ezequiel Garcia
The Marvell Armada 370 Reference Design board has a software-controlled button on the front side, marked as "SW".
This patch adds minimal support for this button.Signed-off-by Ezequiel Garcia <[email protected]>--- arch/arm/boot/dts/armada-370-rd.dts | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
Applied to mvebu/dt
thx,
Jason.