Skip to content

Commit 31ddab0

Browse files
committed
ath79: add TP-Link TL-R473G support
1 parent 6dae534 commit 31ddab0

File tree

4 files changed

+121
-0
lines changed

4 files changed

+121
-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: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
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+
realtek,extif = <7 1 0 1 1 1 1 1 1 2>;
16+
mii-bus = <&mdio0>;
17+
phy-id = <29>;
18+
};
19+
};
20+
21+
&keys {
22+
reset {
23+
label = "Reset button";
24+
linux,code = <KEY_RESTART>;
25+
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
26+
debounce-interval = <60>;
27+
};
28+
};
29+
30+
&mtdparts {
31+
partition@0 {
32+
label = "factory-uboot";
33+
reg = <0x000000 0x020000>;
34+
read-only;
35+
};
36+
37+
partition@20000 {
38+
label = "u-boot";
39+
reg = <0x020000 0x020000>;
40+
read-only;
41+
};
42+
43+
partition@40000 {
44+
label = "partition-table";
45+
reg = <0x040000 0x010000>;
46+
read-only;
47+
};
48+
49+
art: partition@50000 {
50+
label = "art";
51+
reg = <0x050000 0x010000>;
52+
read-only;
53+
};
54+
55+
info: partition@60000 {
56+
label = "info";
57+
reg = <0x060000 0x020000>;
58+
read-only;
59+
};
60+
61+
partition@80000 {
62+
label = "user-config";
63+
reg = <0x080000 0x040000>;
64+
read-only;
65+
};
66+
67+
partition@c0000 {
68+
label = "firmware";
69+
reg = <0x0c0000 0xf00000>;
70+
compatible = "denx,uimage";
71+
};
72+
73+
partition@ff0000 {
74+
label = "default-config";
75+
reg = <0xff0000 0x010000>;
76+
read-only;
77+
};
78+
};
79+
80+
&eth0 {
81+
nvmem-cells = <&macaddr_info_8>;
82+
nvmem-cell-names = "mac-address";
83+
};
84+
85+
&wmac {
86+
mtd-cal-data = <&art 0x1000>;
87+
88+
nvmem-cells = <&macaddr_info_8>;
89+
nvmem-cell-names = "mac-address";
90+
};
91+
92+
&info {
93+
compatible = "nvmem-cells";
94+
#address-cells = <1>;
95+
#size-cells = <1>;
96+
97+
macaddr_info_8: macaddr@8 {
98+
reg = <0x8 0x6>;
99+
};
100+
};
101+
102+
&mdio0 {
103+
status = "okay";
104+
105+
phy-mask = <0>;
106+
107+
phy0: ethernet-phy@0 {
108+
reg = <0>;
109+
phy-mode = "rgmii";
110+
};
111+
};

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)