Skip to content

Commit 0885de4

Browse files
committed
ath79: add support for TP-Link TL-R473G
1 parent 2d413d5 commit 0885de4

File tree

4 files changed

+122
-0
lines changed

4 files changed

+122
-0
lines changed

target/linux/ath79/config-6.6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ CONFIG_REGMAP_MMIO=y
184184
CONFIG_REGULATOR=y
185185
CONFIG_RESET_ATH79=y
186186
CONFIG_RESET_CONTROLLER=y
187+
CONFIG_RTL8367S_GSW=y
187188
CONFIG_SERIAL_8250_NR_UARTS=1
188189
CONFIG_SERIAL_8250_RUNTIME_UARTS=1
189190
CONFIG_SERIAL_AR933X=y
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2+
3+
#include "qca9563_tplink_archer-x7-v5.dtsi"
4+
5+
/ {
6+
compatible = "tplink,tl-r473g", "qca,qca9563";
7+
model = "TP-Link TL-R473G";
8+
9+
aliases {
10+
label-mac-device = &eth0;
11+
};
12+
13+
rtl8367s {
14+
compatible = "realtek,rtl8367b";
15+
cpu_port = <7>;
16+
realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
17+
mii-bus = <&mdio0>;
18+
phy-id = <29>;
19+
};
20+
};
21+
22+
&keys {
23+
reset {
24+
label = "Reset button";
25+
linux,code = <KEY_RESTART>;
26+
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
27+
debounce-interval = <60>;
28+
};
29+
};
30+
31+
&mtdparts {
32+
partition@0 {
33+
label = "factory-uboot";
34+
reg = <0x000000 0x020000>;
35+
read-only;
36+
};
37+
38+
partition@20000 {
39+
label = "u-boot";
40+
reg = <0x020000 0x020000>;
41+
read-only;
42+
};
43+
44+
partition@40000 {
45+
label = "partition-table";
46+
reg = <0x040000 0x010000>;
47+
read-only;
48+
};
49+
50+
art: partition@50000 {
51+
label = "art";
52+
reg = <0x050000 0x010000>;
53+
read-only;
54+
};
55+
56+
info: partition@60000 {
57+
label = "info";
58+
reg = <0x060000 0x020000>;
59+
read-only;
60+
};
61+
62+
partition@80000 {
63+
label = "user-config";
64+
reg = <0x080000 0x040000>;
65+
read-only;
66+
};
67+
68+
partition@c0000 {
69+
label = "firmware";
70+
reg = <0x0c0000 0xf00000>;
71+
compatible = "denx,uimage";
72+
};
73+
74+
partition@ff0000 {
75+
label = "default-config";
76+
reg = <0xff0000 0x010000>;
77+
read-only;
78+
};
79+
};
80+
81+
&eth0 {
82+
nvmem-cells = <&macaddr_info_8>;
83+
nvmem-cell-names = "mac-address";
84+
};
85+
86+
&wmac {
87+
mtd-cal-data = <&art 0x1000>;
88+
89+
nvmem-cells = <&macaddr_info_8>;
90+
nvmem-cell-names = "mac-address";
91+
};
92+
93+
&info {
94+
compatible = "nvmem-cells";
95+
#address-cells = <1>;
96+
#size-cells = <1>;
97+
98+
macaddr_info_8: macaddr@8 {
99+
reg = <0x8 0x6>;
100+
};
101+
};
102+
103+
&mdio0 {
104+
status = "okay";
105+
106+
phy-mask = <0>;
107+
108+
phy0: ethernet-phy@0 {
109+
reg = <0>;
110+
phy-mode = "rgmii";
111+
};
112+
};

target/linux/ath79/generic/base-files/etc/board.d/02_network

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ ath79_setup_interfaces()
193193
tplink,archer-c60-v1|\
194194
tplink,archer-c60-v2|\
195195
tplink,archer-c60-v3|\
196+
tplink,tl-r473g|\
196197
tplink,tl-wdr3500-v1|\
197198
tplink,tl-wr842n-v1|\
198199
tplink,tl-wr842n-v3|\

target/linux/ath79/image/generic-tp-link.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,14 @@ define Device/tplink_tl-mr6400-v1
540540
endef
541541
TARGET_DEVICES += tplink_tl-mr6400-v1
542542

543+
define Device/tplink_tl-r473g
544+
$(Device/tplink-safeloader-uimage)
545+
SOC := qca9563
546+
DEVICE_MODEL := TL-R473G
547+
TPLINK_BOARD_ID := TL-R473GP-AC
548+
endef
549+
TARGET_DEVICES += tplink_tl-r473g
550+
543551
define Device/tplink_tl-wa1201-v2
544552
$(Device/tplink-safeloader-uimage)
545553
SOC := qca9563

0 commit comments

Comments
 (0)