summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChukun Pan2025-01-15 15:10:26 +0000
committerChukun Pan2025-01-23 02:36:27 +0000
commit4c380d0f25f84da191ac824c2470d3851844cdd7 (patch)
tree8838862e21dd102dae9b41fe6fb25d4900d15465
parent64d1b1089c25d778f5f22bfc0c1590a2e83b664e (diff)
downloadjow-4c380d0f25f84da191ac824c2470d3851844cdd7.tar.gz
mediatek: use standard PHY reset bindings for Cudy WR3000H
Use generic Ethernet PHY reset bindings. Remove the useless lan label as connected switch. Fixes: 9d66b8b ("mediatek: filogic: Add support for cudy wr3000h") Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
-rw-r--r--target/linux/mediatek/dts/mt7981b-cudy-wr3000h-v1.dts22
1 files changed, 5 insertions, 17 deletions
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-wr3000h-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-wr3000h-v1.dts
index 13c99db988..3b858f7638 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-wr3000h-v1.dts
+++ b/target/linux/mediatek/dts/mt7981b-cudy-wr3000h-v1.dts
@@ -39,17 +39,6 @@
};
};
- gpio-export {
- compatible = "gpio-export";
- #size-cells = <0>;
-
- phyreset {
- gpio-export,name = "phyreset";
- gpio-export,output = <1>;
- gpios = <&pio 3 GPIO_ACTIVE_LOW>;
- };
- };
-
leds {
compatible = "gpio-leds";
@@ -132,7 +121,6 @@
&eth {
pinctrl-names = "default";
pinctrl-0 = <&mdio_pins>;
-
status = "okay";
gmac0: mac@0 {
@@ -141,7 +129,6 @@
phy-mode = "2500base-x";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_bdinfo_de00 0>;
- label = "lan";
fixed-link {
speed = <2500>;
@@ -159,7 +146,6 @@
nvmem-cells = <&macaddr_bdinfo_de00 1>;
label = "wan";
};
-
};
&mdio_bus {
@@ -172,12 +158,14 @@
interrupt-parent = <&pio>;
interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
};
+
phy6: ethernet-phy@6 {
- compatible = "ethernet-phy-ieee802.3-c22"; // [RTL8221B-VB-CG 2.5Gbps PHY (C22)]
+ compatible = "ethernet-phy-ieee802.3-c22";
reg = <6>;
- phy-mode = "2500base-x";
+ reset-assert-us = <100000>;
+ reset-deassert-us = <100000>;
+ reset-gpios = <&pio 3 GPIO_ACTIVE_LOW>;
};
-
};
&spi0 {