From: Ezequiel Garcia Date: Thu, 21 Mar 2013 19:43:08 +0000 (-0300) Subject: ARM: mvebu: Add button on Armada 370 Reference Design board X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8c75e7b3d2a63a43b791e2a13229ad5e048497ce;p=deliverable%2Flinux.git 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. Signed-off-by: Ezequiel Garcia Acked-by: Florian Fainelli Signed-off-by: Jason Cooper --- diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts index f8e4855bc9a5..0656c815616e 100644 --- a/arch/arm/boot/dts/armada-370-rd.dts +++ b/arch/arm/boot/dts/armada-370-rd.dts @@ -65,4 +65,15 @@ /* No CD or WP GPIOs */ }; }; + + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + button@1 { + label = "Software Button"; + linux,code = <116>; + gpios = <&gpio0 6 1>; + }; + }; };