mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-08 21:42:04 +08:00
ath79: add TP-Link TL-R473G support
This commit is contained in:
parent
6dae534e45
commit
31ddab04e2
@ -184,6 +184,7 @@ CONFIG_REGMAP_MMIO=y
|
||||
CONFIG_REGULATOR=y
|
||||
CONFIG_RESET_ATH79=y
|
||||
CONFIG_RESET_CONTROLLER=y
|
||||
CONFIG_RTL8367S_GSW=y
|
||||
CONFIG_SERIAL_8250_NR_UARTS=1
|
||||
CONFIG_SERIAL_8250_RUNTIME_UARTS=1
|
||||
CONFIG_SERIAL_AR933X=y
|
||||
|
111
target/linux/ath79/dts/qca9563_tplink_tl-r473g.dts
Normal file
111
target/linux/ath79/dts/qca9563_tplink_tl-r473g.dts
Normal file
@ -0,0 +1,111 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "qca9563_tplink_archer-x7-v5.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "tplink,tl-r473g", "qca,qca9563";
|
||||
model = "TP-Link TL-R473G";
|
||||
|
||||
aliases {
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
rtl8367s {
|
||||
compatible = "realtek,rtl8367b";
|
||||
realtek,extif = <7 1 0 1 1 1 1 1 1 2>;
|
||||
mii-bus = <&mdio0>;
|
||||
phy-id = <29>;
|
||||
};
|
||||
};
|
||||
|
||||
&keys {
|
||||
reset {
|
||||
label = "Reset button";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
&mtdparts {
|
||||
partition@0 {
|
||||
label = "factory-uboot";
|
||||
reg = <0x000000 0x020000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@20000 {
|
||||
label = "u-boot";
|
||||
reg = <0x020000 0x020000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "partition-table";
|
||||
reg = <0x040000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
art: partition@50000 {
|
||||
label = "art";
|
||||
reg = <0x050000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
info: partition@60000 {
|
||||
label = "info";
|
||||
reg = <0x060000 0x020000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@80000 {
|
||||
label = "user-config";
|
||||
reg = <0x080000 0x040000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@c0000 {
|
||||
label = "firmware";
|
||||
reg = <0x0c0000 0xf00000>;
|
||||
compatible = "denx,uimage";
|
||||
};
|
||||
|
||||
partition@ff0000 {
|
||||
label = "default-config";
|
||||
reg = <0xff0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
nvmem-cells = <&macaddr_info_8>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
|
||||
nvmem-cells = <&macaddr_info_8>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&info {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_info_8: macaddr@8 {
|
||||
reg = <0x8 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <0>;
|
||||
|
||||
phy0: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
phy-mode = "rgmii";
|
||||
};
|
||||
};
|
@ -193,6 +193,7 @@ ath79_setup_interfaces()
|
||||
tplink,archer-c60-v1|\
|
||||
tplink,archer-c60-v2|\
|
||||
tplink,archer-c60-v3|\
|
||||
tplink,tl-r473g|\
|
||||
tplink,tl-wdr3500-v1|\
|
||||
tplink,tl-wr842n-v1|\
|
||||
tplink,tl-wr842n-v3|\
|
||||
|
@ -540,6 +540,14 @@ define Device/tplink_tl-mr6400-v1
|
||||
endef
|
||||
TARGET_DEVICES += tplink_tl-mr6400-v1
|
||||
|
||||
define Device/tplink_tl-r473g
|
||||
$(Device/tplink-safeloader-uimage)
|
||||
SOC := qca9563
|
||||
DEVICE_MODEL := TL-R473G
|
||||
TPLINK_BOARD_ID := TL-R473GP-AC
|
||||
endef
|
||||
TARGET_DEVICES += tplink_tl-r473g
|
||||
|
||||
define Device/tplink_tl-wa1201-v2
|
||||
$(Device/tplink-safeloader-uimage)
|
||||
SOC := qca9563
|
||||
|
Loading…
x
Reference in New Issue
Block a user