diff --git a/target/linux/ath79/config-6.6 b/target/linux/ath79/config-6.6 index c43dbfd71..32ccdcbd9 100644 --- a/target/linux/ath79/config-6.6 +++ b/target/linux/ath79/config-6.6 @@ -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 diff --git a/target/linux/ath79/dts/qca9563_tplink_tl-r473g.dts b/target/linux/ath79/dts/qca9563_tplink_tl-r473g.dts new file mode 100644 index 000000000..3614cec9f --- /dev/null +++ b/target/linux/ath79/dts/qca9563_tplink_tl-r473g.dts @@ -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 = ; + 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"; + }; +}; diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network index ab89a4666..fe3af0fac 100644 --- a/target/linux/ath79/generic/base-files/etc/board.d/02_network +++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network @@ -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|\ diff --git a/target/linux/ath79/image/generic-tp-link.mk b/target/linux/ath79/image/generic-tp-link.mk index 37a0fcc16..7d047d465 100644 --- a/target/linux/ath79/image/generic-tp-link.mk +++ b/target/linux/ath79/image/generic-tp-link.mk @@ -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