aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-12-21 21:49:25 +0000
committerDaniel Golle <daniel@makrotopia.org>2022-01-01 22:29:43 +0000
commit280bb7c10c37027491879be7da6f1c43d0976f1a (patch)
treed8802539470e7e5475e9542fd0469a6800674609
parent1e5df4d5506adbc70c645189e55cef85b07a1196 (diff)
downloadupstream-280bb7c10c37027491879be7da6f1c43d0976f1a.tar.gz
upstream-280bb7c10c37027491879be7da6f1c43d0976f1a.tar.bz2
upstream-280bb7c10c37027491879be7da6f1c43d0976f1a.zip
mvebu: puzzle-m902: add GPIO reset button
Add reset button to device tree so it has the function expected from usual OpenWrt devices. Signed-off-by: Daniel Golle <daniel@makrotopia.org> (cherry picked from commit ddad936fc60ced1783232af3eddee75347f0d08f)
-rw-r--r--target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
index 8d2d53d03c..bfa7874a67 100644
--- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
+++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
@@ -8,6 +8,7 @@
#include "cn9130.dtsi"
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/ {
model = "iEi Puzzle-M902";
@@ -49,6 +50,16 @@
reg = <0x0 0x0 0x0 0x80000000>;
};
+ gpio_keys {
+ compatible = "gpio-keys";
+
+ reset {
+ label = "Reset";
+ linux,code = <KEY_RESTART>;
+ gpios = <&cp0_gpio2 4 GPIO_ACTIVE_LOW>;
+ };
+ };
+
cp2_reg_usb3_vbus0: cp2_usb3_vbus@0 {
compatible = "regulator-fixed";
regulator-name = "cp2-xhci0-vbus";