aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-05-10 15:14:13 +0200
committerPetr Štetiar <ynezz@true.cz>2019-05-15 13:34:24 +0200
commit33ce2ad3e7ea760e3856b88727bc79aaf9c29fc9 (patch)
tree3f6fe47bc6f55b36951ccf4e4582c1745bcd85fc /target
parente9652e1696d94e57f96a06658da931fbac7c44c4 (diff)
downloadupstream-33ce2ad3e7ea760e3856b88727bc79aaf9c29fc9.tar.gz
upstream-33ce2ad3e7ea760e3856b88727bc79aaf9c29fc9.tar.bz2
upstream-33ce2ad3e7ea760e3856b88727bc79aaf9c29fc9.zip
ath79: Add missing reset button for TP-Link CPE210 v2 and v3
Reset button support seems to be missing in ath79. Run-tested on CPE210 v2. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ath79/dts/qca9533_tplink_cpe210.dtsi10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/qca9533_tplink_cpe210.dtsi b/target/linux/ath79/dts/qca9533_tplink_cpe210.dtsi
index ee1f904491..a1cf05b05c 100644
--- a/target/linux/ath79/dts/qca9533_tplink_cpe210.dtsi
+++ b/target/linux/ath79/dts/qca9533_tplink_cpe210.dtsi
@@ -47,6 +47,16 @@
};
};
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ reset_button {
+ label = "Reset button";
+ linux,code = <KEY_RESTART>;
+ gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+ };
+ };
};
&uart {