diff options
| author | Lech Perczak | 2025-02-04 20:15:16 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-03-17 15:40:46 +0000 |
| commit | c61a6efdf514e2c6198e476a742eff339a071230 (patch) | |
| tree | 9c7c1351ff88b42e7efc5ad20bf0a59a9c290e01 | |
| parent | b5367180b9f1fbde55d3ec2cca6d77f034b1bc11 (diff) | |
| download | openwrt-c61a6efdf514e2c6198e476a742eff339a071230.tar.gz | |
ath79: TP-link Archer C7v2: 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@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/12487
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi b/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi index 221582e66d..c1bd3f759b 100644 --- a/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi @@ -115,8 +115,9 @@ &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 */ @@ -134,9 +135,13 @@ ð0 { status = "okay"; - phy-handle = <&phy0>; pll-data = <0x56000000 0x00000101 0x00001616>; + fixed-link { + speed = <1000>; + full-duplex; + }; + gmac-config { device = <&gmac>; rgmii-enabled = <1>; |