Skip to contentSkip to conversation

ARM: dts: imx6q-dhcom: Use 1G ethernet on the PDK2 board

PATCH New Marek Vasut 2 participants 2 messages Nov 28, 2021 – Feb 5, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: imx6q-dhcom: Use 1G ethernet on the PDK2 board

From: Christoph Niedermaier <[email protected]>

The PDK2 board is capable of running both 100M and 1G ethernet. However, the i.MX6 has only one ethernet MAC, so it is possible to configure either 100M or 1G Ethernet. In case of 100M option, the PHY is on the SoM and the signals are routed to a RJ45 port. For 1G the PHY is on the PDK2 board with another RJ45 port. 100M and 1G ethernet use different signal pins from the i.MX6, but share the MDIO bus.

This SoM board combination is used to demonstrate how to enable 1G ethernet configuration.

Cc Christoph Niedermaier <[email protected]>
Cc Stefano Babic <[email protected]>

---
NOTE: Adapted from Linux 298591bf725a ("ARM: dts: imx6q-dhcom: Use 1G ethernet on the PDK2 board")

---
 arch/arm/dts/imx6qdl-dhcom-pdk2-u-boot.dtsi |  2 +-
 arch/arm/dts/imx6qdl-dhcom-pdk2.dtsi        | 50 +++++++++++++++++++--
 include/configs/dh_imx6.h                   |  4 +-
 3 files changed, 50 insertions(+), 6 deletions(-)
arch/arm/dts/imx6qdl-dhcom-pdk2-u-boot.dtsi +1 -1
index 32128d4d2ab..a1ffb1d6fc5 100644
@@ -15,7 +15,7 @@
 };
 
 &fec {
-	phy-reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
+	phy-reset-gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
 	phy-reset-duration = <1>;
 	phy-reset-post-delay = <10>;
 
arch/arm/dts/imx6qdl-dhcom-pdk2.dtsi +47 -3

62 lines not on this page · raw message

include/configs/dh_imx6.h +2 -2
index 8183e7debd4..3cf0578b5e1 100644
@@ -32,9 +32,9 @@
 
 /* FEC ethernet */
 #define IMX_FEC_BASE			ENET_BASE_ADDR
-#define CONFIG_FEC_XCV_TYPE		RMII
+#define CONFIG_FEC_XCV_TYPE		RGMII
 #define CONFIG_ETHPRIME			"FEC"
-#define CONFIG_FEC_MXC_PHYADDR		0
+#define CONFIG_FEC_MXC_PHYADDR		7
 #define CONFIG_ARP_TIMEOUT		200UL
 
 /* MMC Configs */
Signature · 1 line
2.33.0
#1 lore raw

PATCH 1/1 ARM: dts: imx6q-dhcom: Use 1G ethernet on the PDK2 board

Quoted 9 lines

From: Christoph Niedermaier <[email protected]> The PDK2 board is capable of running both 100M and 1G ethernet. However, the i.MX6 has only one ethernet MAC, so it is possible to configure either 100M or 1G Ethernet. In case of 100M option, the PHY is on the SoM and the signals are routed to a RJ45 port. For 1G the PHY is on the PDK2 board with another RJ45 port. 100M and 1G ethernet use different signal pins from the i.MX6, but share the MDIO bus. This SoM board combination is used to demonstrate how to enable 1G ethernet configuration.

Quoted 4 lines
Cc Christoph Niedermaier <[email protected]>
Cc Stefano Babic <[email protected]>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================