]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: TP-link TL-WR1043ND v2/v3: use fixed-link for AR8327 switch connection
authorLech Perczak <lech.perczak@gmail.com>
Tue, 4 Feb 2025 20:15:21 +0000 (21:15 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 17 Mar 2025 15:40:46 +0000 (16:40 +0100)
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@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/12487
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi

index 49af23bf02b8022aeeeb1953354515e17b419408..486b5c5218c02b8956abfd9e501e6a71e1570b1c 100644 (file)
 &mdio0 {
        status = "okay";
 
-       phy0: ethernet-phy@0 {
-               reg = <0>;
+       switch@1f {
+               compatible = "qca,ar8327";
+               reg = <0x1f>;
+
                qca,ar8327-initvals = <
                        0x04 0x00080080 /* PORT0 PAD MODE CTRL */
                        0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
 
        nvmem-cells = <&macaddr_uboot_1fc00 1>;
        nvmem-cell-names = "mac-address";
-       phy-handle = <&phy0>;
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+       };
 };
 
 &eth1 {