aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2021-03-25 13:26:15 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2021-03-29 21:38:24 +0200
commit7bb8aded105792eaa24319a3c52b1f92d8c93860 (patch)
treedffaaf4715bff437f67da01a9ed99e9b4370b359
parent9ce0f2b90c2da573e258acb945822ba73b628d6b (diff)
downloadupstream-7bb8aded105792eaa24319a3c52b1f92d8c93860.tar.gz
upstream-7bb8aded105792eaa24319a3c52b1f92d8c93860.tar.bz2
upstream-7bb8aded105792eaa24319a3c52b1f92d8c93860.zip
mvebu: Add button support for GL.iNet GL-MV1000
The original patch to support this device advertised support for the reset button and the "switch" in the commit message. But neither were actually integrated in the device tree or documented anywere. The button itself is now used to trigger a reset (as described in the official GL.iNet documentation). The switch itself is registered as BTN_0 like other devices from GL.iNet in ath79. Fixes: 050c24f05c85 ("mvebu: add support for GL.iNet GL-MV1000") Signed-off-by: Sven Eckelmann <sven@narfation.org> (cherry picked from commit 01b911a9381426314762822f97e3a7e658295f50)
-rw-r--r--target/linux/mvebu/files/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts
index 0e15debdea..7c85ab4a9d 100644
--- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts
+++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts
@@ -2,6 +2,7 @@
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
#include "armada-372x.dtsi"
/ {
@@ -37,6 +38,22 @@
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";