aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-04-04 10:50:17 +0200
committerPetr Štetiar <ynezz@true.cz>2019-04-08 18:37:04 +0200
commita5885ea4075cc58e433bafb3ffdecb926e99973f (patch)
treeb9581234187663295255bf00c9ab720f3410b139 /target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts
parent6f354c4d3230a95ba77e959c3f62e07db484cf7d (diff)
downloadupstream-a5885ea4075cc58e433bafb3ffdecb926e99973f.tar.gz
upstream-a5885ea4075cc58e433bafb3ffdecb926e99973f.tar.bz2
upstream-a5885ea4075cc58e433bafb3ffdecb926e99973f.zip
ath79: Fix GPIO reset button on TP-Link Archer C7v5
The GPIO for the reset button for the Archer C7v5 changed from ar71xx to ath79. An investigation based on tests revealed that the A7v5 responds on "11", while the C7v5 responds on "5" as set for ar71xx. Thus, we just define this in the DTS files instead of in the common DTSI. Tested-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts')
-rw-r--r--target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts b/target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts
index 026d6c65e3..8059b48510 100644
--- a/target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts
+++ b/target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts
@@ -8,6 +8,15 @@
model = "TP-Link Archer C7 v5";
};
+&gpio_keys {
+ reset {
+ label = "Reset button";
+ linux,code = <KEY_RESTART>;
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
+ debounce-interval = <60>;
+ };
+};
+
&mtdparts {
partition@0 {
label = "factory-uboot";