[openwrt/openwrt] ath79: TP-link TL-WR1043ND v2/v3: use fixed-link for AR8327 switch connection
LEDE Commits
lede-commits at lists.infradead.org
Mon Mar 17 08:42:13 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/af64c180b3e460e7fb8e9fa337f890095c3380a4
commit af64c180b3e460e7fb8e9fa337f890095c3380a4
Author: Lech Perczak <lech.perczak at gmail.com>
AuthorDate: Tue Feb 4 21:15:21 2025 +0100
ath79: TP-link TL-WR1043ND v2/v3: use fixed-link for AR8327 switch connection
Attaching PHY driver to the switch, while adding LEDs binding causes the
PHY driver to create additional LED instances, handled incorrectly by
the PHY driver, which are non-functional. Use fixed-link to attach the
switch driver, instead of PHY driver, to prevent that.
This has a side effect of not logging switch port up/down events in the kernel
log.
Signed-off-by: Lech Perczak <lech.perczak at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/12487
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi
index 49af23bf02..486b5c5218 100644
--- a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi
+++ b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi
@@ -143,8 +143,10 @@
&mdio0 {
status = "okay";
- phy0: ethernet-phy at 0 {
- reg = <0>;
+ switch at 1f {
+ compatible = "qca,ar8327";
+ reg = <0x1f>;
+
qca,ar8327-initvals = <
0x04 0x00080080 /* PORT0 PAD MODE CTRL */
0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
@@ -166,7 +168,11 @@
nvmem-cells = <&macaddr_uboot_1fc00 1>;
nvmem-cell-names = "mac-address";
- phy-handle = <&phy0>;
+
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
};
ð1 {
More information about the lede-commits
mailing list