mediatek: cudy: fixes 2.5G PHY interrupt support
authorChukun Pan <amadeus@jmu.edu.cn>
Mon, 9 Dec 2024 15:17:06 +0000 (23:17 +0800)
committerChukun Pan <amadeus@jmu.edu.cn>
Thu, 23 Jan 2025 02:29:35 +0000 (10:29 +0800)
Fixed interrupt support for 2.5G PHY.
Removed useless phy-mode on phy node.

Tested on Cudy TR3000.
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts
target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts

index b1797157ac671c7586fe044f92bcda9e53db28da..abe40403afafd0ba7569ed68e6da01a2afe75267 100644 (file)
@@ -77,7 +77,6 @@
 &eth {
        pinctrl-names = "default";
        pinctrl-0 = <&mdio_pins>;
-
        status = "okay";
 
        gmac0: mac@0 {
        rtl8221b_phy: ethernet-phy@1 {
                compatible = "ethernet-phy-ieee802.3-c45";
                reg = <1>;
-
-               reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
-
-               interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
                reset-assert-us = <100000>;
                reset-deassert-us = <100000>;
+               reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
+               interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-parent = <&pio>;
        };
 };
 
index 31a2cf51940d30c9e79117993634dcd75f16680c..2591de85208d92e54e646de052cb08ae0457e98a 100644 (file)
@@ -81,7 +81,6 @@
 &eth {
        pinctrl-names = "default";
        pinctrl-0 = <&mdio_pins>;
-
        status = "okay";
 
        gmac0: mac@0 {
 
 &mdio_bus {
        phy1: phy@1 {
-               reg = <1>;
                compatible = "ethernet-phy-ieee802.3-c45";
-               phy-mode = "2500base-x";
-               reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
-               interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
+               reg = <1>;
                reset-assert-us = <100000>;
                reset-deassert-us = <100000>;
+               reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
+               interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-parent = <&pio>;
                realtek,aldps-enable;
        };
 };