aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/qca9558_tl-archer-c7-v2.dts
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2018-07-17 17:09:14 +0800
committerJohn Crispin <john@phrozen.org>2018-07-30 10:43:34 +0200
commitb6c8e5deaef86419b870047de9935814de7c71ba (patch)
tree59edf8b4c2e4e810f1b0db48ae89fdb6f366fbb1 /target/linux/ath79/dts/qca9558_tl-archer-c7-v2.dts
parent18db385eb7b6b693d949fe049e7ba74c271079b5 (diff)
downloadupstream-b6c8e5deaef86419b870047de9935814de7c71ba.tar.gz
upstream-b6c8e5deaef86419b870047de9935814de7c71ba.tar.bz2
upstream-b6c8e5deaef86419b870047de9935814de7c71ba.zip
ath79: Fix support for TP-LINK Archer C7 v2
Remove mdio1 and phy1 handle. AR8327N is controlled through mdio0. Add gmac-config for Archer C7. Remove ucidef_set_interfaces_lan_wan. They can be determined by config_generate automatically. The following are for adding support for WDR4900 v2/Archer C7 v1 and other devices that shared the same machine file in ar71xx: Move mtd partitions to archer-c7-v2.dts. Only Archer C7 v2 has 16M flash. Flash on Archer C7 v1/TL-WDR4900 v2 is 8M. Add label for wlan leds. The default trigger for archer c7/wdr4900 is different. Move wlan5g led to archer-c7-v2.dts. 5G led on WDR4900 is connected to ar9380. Move rfkill definition to archer-c7-v2.dts. There is no such a button on wdr4900 v2. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ath79/dts/qca9558_tl-archer-c7-v2.dts')
-rw-r--r--target/linux/ath79/dts/qca9558_tl-archer-c7-v2.dts34
1 files changed, 32 insertions, 2 deletions
diff --git a/target/linux/ath79/dts/qca9558_tl-archer-c7-v2.dts b/target/linux/ath79/dts/qca9558_tl-archer-c7-v2.dts
index 980aa35b91..fdb35a1791 100644
--- a/target/linux/ath79/dts/qca9558_tl-archer-c7-v2.dts
+++ b/target/linux/ath79/dts/qca9558_tl-archer-c7-v2.dts
@@ -11,6 +11,36 @@
model = "TP-Link Archer C7 Version 2";
};
-&rfkill {
- gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
+&gpio_keys {
+ rfkill {
+ gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
+ linux,input-type = <EV_SW>;
+ debounce-interval = <60>;
+ };
};
+
+&gpio_leds {
+ wlan5g {
+ label = "tp-link:green:wlan5g";
+ gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ linux,default-trigger = "phy0tpt";
+ };
+};
+
+&mtdparts {
+ uboot: u-boot@0 {
+ reg = <0x000000 0x020000>;
+ read-only;
+ };
+
+ firmware@20000 {
+ reg = <0x020000 0xfd0000>;
+ };
+
+ art: art@ff0000 {
+ reg = <0xff0000 0x010000>;
+ read-only;
+ };
+}; \ No newline at end of file