From c137d66171df16937003c9283f6552a8a2e1fae1 Mon Sep 17 00:00:00 2001 From: Josep Orga Date: Thu, 2 Sep 2021 19:06:17 +0200 Subject: [PATCH] imx8mm-somdevices: Enable ethernet. Signed-off-by: Josep Orga --- arch/arm/dts/imx8mm-somdevices.dts | 11 ++++++----- include/configs/imx8mm_somdevices.h | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/imx8mm-somdevices.dts b/arch/arm/dts/imx8mm-somdevices.dts index 9b00f3ec84..b266a11be8 100644 --- a/arch/arm/dts/imx8mm-somdevices.dts +++ b/arch/arm/dts/imx8mm-somdevices.dts @@ -173,6 +173,9 @@ pinctrl-0 = <&pinctrl_fec1>; phy-mode = "rgmii-id"; phy-handle = <ðphy0>; + phy-reset-gpios = <&gpio5 29 GPIO_ACTIVE_LOW>; + phy-reset-post-delay = <150>; + phy-reset-duration = <10>; fsl,magic-packet; status = "okay"; @@ -180,11 +183,9 @@ #address-cells = <1>; #size-cells = <0>; - ethphy0: ethernet-phy@0 { + ethphy0: ethernet-phy@4 { compatible = "ethernet-phy-ieee802.3-c22"; - reg = <0>; - reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; - reset-assert-us = <10000>; + reg = <4>; }; }; }; @@ -527,7 +528,7 @@ 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_SAI2_RXC_GPIO4_IO22 0x19 + MX8MM_IOMUXC_UART4_TXD_GPIO5_IO29 0x19 >; }; diff --git a/include/configs/imx8mm_somdevices.h b/include/configs/imx8mm_somdevices.h index eabc6ff63e..ebd2adfcdb 100644 --- a/include/configs/imx8mm_somdevices.h +++ b/include/configs/imx8mm_somdevices.h @@ -68,7 +68,7 @@ #define PHY_ANEG_TIMEOUT 20000 #define CONFIG_FEC_XCV_TYPE RGMII -#define CONFIG_FEC_MXC_PHYADDR 0 +#define CONFIG_FEC_MXC_PHYADDR 4 #define IMX_FEC_BASE 0x30BE0000 #endif -- 2.17.1