]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ARM: dts: imx6qdl-kontron-samx6i: fix PHY reset
authorMichael Walle <mwalle@kernel.org>
Mon, 17 Jun 2024 09:13:30 +0000 (11:13 +0200)
committerShawn Guo <shawnguo@kernel.org>
Thu, 27 Jun 2024 07:24:41 +0000 (15:24 +0800)
The PHY reset line is connected to both the SoC (GPIO1_25) and
the CPLD. We must not use the GPIO1_25 as it will drive against
the output buffer of the CPLD. Instead there is another GPIO
(GPIO2_01), an input to the CPLD, which will tell the CPLD to
assert the PHY reset line.

Fixes: 2a51f9dae13d ("ARM: dts: imx6qdl-kontron-samx6i: Add iMX6-based Kontron SMARC-sAMX6i module")
Fixes: 5694eed98cca ("ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node")
Signed-off-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi

index d8c1dfb8c9abb3a5c096ee77eafcf8368ca6d69e..d6c049b9a9c69fa03977cc3d8c12aa5e4dcc1426 100644 (file)
                ethphy: ethernet-phy@1 {
                        compatible = "ethernet-phy-ieee802.3-c22";
                        reg = <1>;
-                       reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
+                       reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                        reset-assert-us = <1000>;
                };
        };
                        MX6QDL_PAD_ENET_MDIO__ENET_MDIO       0x1b0b0
                        MX6QDL_PAD_ENET_MDC__ENET_MDC         0x1b0b0
                        MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK  0x1b0b0
-                       MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25    0x1b0b0 /* RST_GBE0_PHY# */
+                       MX6QDL_PAD_NANDF_D1__GPIO2_IO01       0x1b0b0 /* RST_GBE0_PHY# */
                >;
        };