]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: imx8mm-beacon: Configure Ethernet PHY reset and GPIO IRQ
authorAdam Ford <aford173@gmail.com>
Wed, 16 Apr 2025 01:01:32 +0000 (20:01 -0500)
committerShawn Guo <shawnguo@kernel.org>
Fri, 25 Apr 2025 02:05:04 +0000 (10:05 +0800)
The Ethernet PHY setup currently assumes that the bootloader will take the
PHY out of reset, but this behavior is not guaranteed across all
bootloaders. Add the reset GPIO to ensure the kernel can properly control
the PHY reset line.

Also configure the PHY IRQ GPIO to enable interrupt-driven link status
reporting, instead of relying on polling.

This ensures more reliable Ethernet initialization and improves PHY event
handling.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi

index 9ba0cb89fa24e0bdd91b0c7bcc6e25eac9b1be62..ed7a1be4a1a6b36eaafc9bcca48cac394c7a35b8 100644 (file)
@@ -78,6 +78,9 @@
                ethphy0: ethernet-phy@0 {
                        compatible = "ethernet-phy-ieee802.3-c22";
                        reg = <0>;
+                       reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
+                       interrupt-parent = <&gpio1>;
+                       interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
                };
        };
 };
                        MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC   0x91
                        MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL     0x91
                        MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL     0x1f
+                       MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10             0x146
                        MX8MM_IOMUXC_SAI2_RXC_GPIO4_IO22        0x19
                >;
        };