From a5885ea4075cc58e433bafb3ffdecb926e99973f Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Thu, 4 Apr 2019 10:50:17 +0200 Subject: 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 Signed-off-by: Adrian Schmutzler --- target/linux/ath79/dts/qca9563_tplink_archer-a7-v5.dts | 9 +++++++++ target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts | 9 +++++++++ target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi | 7 ------- 3 files changed, 18 insertions(+), 7 deletions(-) (limited to 'target/linux/ath79') diff --git a/target/linux/ath79/dts/qca9563_tplink_archer-a7-v5.dts b/target/linux/ath79/dts/qca9563_tplink_archer-a7-v5.dts index 8cf86c0bc4..a9174df4fa 100644 --- a/target/linux/ath79/dts/qca9563_tplink_archer-a7-v5.dts +++ b/target/linux/ath79/dts/qca9563_tplink_archer-a7-v5.dts @@ -8,6 +8,15 @@ model = "TP-Link Archer A7 v5"; }; +&gpio_keys { + reset { + label = "Reset button"; + linux,code = ; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; +}; + &mtdparts { factory-uboot@0 { label = "factory-uboot"; 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 = ; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; +}; + &mtdparts { partition@0 { label = "factory-uboot"; diff --git a/target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi b/target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi index e019a04254..ba75cfc4d8 100644 --- a/target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi +++ b/target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi @@ -85,13 +85,6 @@ gpio_keys: keys { compatible = "gpio-keys"; - reset { - label = "Reset button"; - linux,code = ; - gpios = <&gpio 11 GPIO_ACTIVE_LOW>; - debounce-interval = <60>; - }; - wps { label = "WPS button"; linux,code = ; -- cgit v1.2.3