Selaa lähdekoodia

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 <ezequiel.garcia@free-electrons.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Ezequiel Garcia 12 vuotta sitten
vanhempi
commit
8c75e7b3d2
1 muutettua tiedostoa jossa 11 lisäystä ja 0 poistoa
  1. 11 0
      arch/arm/boot/dts/armada-370-rd.dts

+ 11 - 0
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>;
+		};
+	};
 };