Skip to content

Commit

Permalink
mediatek: use standard PHY reset bindings for Cudy WR3000H
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
aiamadeus committed Jan 23, 2025
1 parent 64d1b10 commit 4c380d0
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions target/linux/mediatek/dts/mt7981b-cudy-wr3000h-v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -132,7 +121,6 @@
&eth {
pinctrl-names = "default";
pinctrl-0 = <&mdio_pins>;

status = "okay";

gmac0: mac@0 {
Expand All @@ -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>;
Expand All @@ -159,7 +146,6 @@
nvmem-cells = <&macaddr_bdinfo_de00 1>;
label = "wan";
};

};

&mdio_bus {
Expand All @@ -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 {
Expand Down

0 comments on commit 4c380d0

Please sign in to comment.