[openwrt/openwrt] ath79: TP-link TL-WDR4300: use fixed-link for AR8327 switch connection
LEDE Commits
lede-commits at lists.infradead.org
Mon Mar 17 08:42:09 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/acd6f48e8715db3ac7648a94e94791527feaef18
commit acd6f48e8715db3ac7648a94e94791527feaef18
Author: Lech Perczak <lech.perczak at gmail.com>
AuthorDate: Tue Feb 4 21:14:52 2025 +0100
ath79: TP-link TL-WDR4300: 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/ar9344_tplink_tl-wdr4300.dtsi | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi
index 7aa1989290..734f72a9c5 100644
--- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi
+++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi
@@ -97,9 +97,9 @@
&mdio0 {
status = "okay";
- phy0: ethernet-phy at 0 {
- reg = <0>;
- phy-mode = "rgmii";
+ switch at 1f {
+ compatible = "qca,ar8327";
+ reg = <0x1f>;
qca,ar8327-initvals = <
0x04 0x07600000 /* PORT0 PAD MODE CTRL */
@@ -123,5 +123,9 @@
nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
- phy-handle = <&phy0>;
+
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
};
More information about the lede-commits
mailing list