mvebu: Add button support for GL.iNet GL-MV1000
[openwrt/staging/chunkeey.git] / target / linux / mvebu / files / arch / arm64 / boot / dts / marvell / armada-3720-gl-mv1000.dts
index 0e15debdea07668d8525e4884184151e6247f8a9..7c85ab4a9dae7eb9dfbff57429e6c7d497732fe9 100644 (file)
@@ -2,6 +2,7 @@
 
 /dts-v1/;
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 #include "armada-372x.dtsi"
 
 / {
                enable-active-high;
        };
 
+       keys {
+               compatible = "gpio-keys";
+
+               reset {
+                       label = "reset";
+                       linux,code = <KEY_RESTART>;
+                       gpios = <&gpionb 14 GPIO_ACTIVE_LOW>;
+               };
+
+               switch {
+                       label = "switch";
+                       linux,code = <BTN_0>;
+                       gpios = <&gpiosb 22 GPIO_ACTIVE_LOW>;
+               };
+       };
+
        leds {
                compatible = "gpio-leds";