Skip to contentSkip to conversation

net: add HPE GXP UMAC ethernet driver

PATCH In review Tan Siewert 2 participants 2 messages Oct 15 – Oct 21

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

PATCH 1/1 net: add HPE GXP UMAC ethernet driver

From: Marcello Sylvester Bauer <[email protected]>

Add ethernet driver for the UMAC controller found on HPE GXP SoCs. This controller is connected to an external Marvell 88E1415 PHY via an SGMII interface.

---
 MAINTAINERS                      |   2 +
 arch/arm/dts/hpe-gxp-u-boot.dtsi |  24 ++
 arch/arm/dts/hpe-gxp.dtsi        |  42 +++
 configs/gxp_defconfig            |   7 +
 drivers/net/Kconfig              |   9 +
 drivers/net/Makefile             |   1 +
 drivers/net/gxp_umac.c           | 572 +++++++++++++++++++++++++++++++++++++++
 drivers/net/gxp_umac.h           | 136 ++++++++++
 8 files changed, 793 insertions(+)
MAINTAINERS +2 -0
index 420a3bbf730..64354cf0c62 100644
@@ -366,6 +366,8 @@ F:	arch/arm/mach-hpe/
 F:	board/hpe/
 F:	configs/gxp_defconfig
 F:	doc/device-tree-bindings/spi/hpe,gxp-spi.yaml
+F:	drivers/net/gxp_umac.c
+F:	drivers/net/gxp_umac.h
 F:	drivers/misc/gxp_eeprom.c
 F:	drivers/sysinfo/gxp.c
 F:	drivers/timer/gxp-timer.c
arch/arm/dts/hpe-gxp-u-boot.dtsi +24 -0
index 63a1a11fed2..31f898f09f4 100644
@@ -23,3 +23,27 @@
 		};
 	};
 };
+
+&umac0 {
+	bootph-all;
+};
+
+&mdio0 {
+	bootph-all;
+};
+
+&phy0 {
+	bootph-all;
+};
+
+&umac1 {
+	bootph-all;
+};
+
+&mdio1 {
+	bootph-all;
+};
+
+&phy1 {
+	bootph-all;
+};
arch/arm/dts/hpe-gxp.dtsi +42 -0

48 lines not on this page · raw message

configs/gxp_defconfig +7 -0
index d63c675d746..200ccc8d7a5 100644
@@ -39,6 +39,13 @@ CONFIG_CMD_FAT=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_REDUNDANT=y
 CONFIG_NETCONSOLE=y
+CONFIG_NETDEVICES=y
+CONFIG_PHYLIB=y
+CONFIG_PHY_MARVELL=y
+CONFIG_MII=y
+CONFIG_GXP_UMAC=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_CMD_MII=y
 CONFIG_MISC=y
 CONFIG_GXP_EEPROM=y
 # CONFIG_MMC is not set
drivers/net/Kconfig +9 -0
index c057504cf66..5bc504d00f1 100644
@@ -861,6 +861,15 @@ config GMAC_ROCKCHIP
 	  This driver provides Rockchip SoCs network support based on the
 	  Synopsys Designware driver.
 
+config GXP_UMAC
+	bool "HPE GXP UMAC ethernet controller"
+	depends on ARCH_GXP
+	select PHYLIB
+	select MII
+	help
+	  This driver supports the UMAC ethernet controller found on
+	  HPE GXP BMC SoCs.
+
 config RENESAS_ETHER_SWITCH
 	bool "Renesas Ethernet Switch support"
 	depends on DM_ETH && (R8A779F0 || R8A78000)
drivers/net/Makefile +1 -0
index 96ec6fb187a..5330bfa00cd 100644
@@ -55,6 +55,7 @@ obj-$(CONFIG_FSL_PFE) += pfe_eth/
 obj-$(CONFIG_FTGMAC100) += ftgmac100.o
 obj-$(CONFIG_FTMAC100) += ftmac100.o
 obj-$(CONFIG_GMAC_ROCKCHIP) += gmac_rockchip.o
+obj-$(CONFIG_GXP_UMAC) += gxp_umac.o
 obj-$(CONFIG_HIFEMAC_ETH) += hifemac.o
 obj-$(CONFIG_HIFEMAC_MDIO) += hifemac_mdio.o
 obj-$(CONFIG_HIGMACV300_ETH) += higmacv300.o
drivers/net/gxp_umac.c new file +572 -0

572 lines not on this page · raw message

drivers/net/gxp_umac.h new file +136 -0

136 lines not on this page · raw message

---
base-commit: 8d7bc8add17bbc69a58dfe0002eea039dd2dc1bc
change-id: 20260818-gxp-net-9caa4fdff62d

Best regards,

Signature · 1 line
Tan Siewert <[email protected]>
#1 lore raw
Quoted 10 lines

From: Marcello Sylvester Bauer <[email protected]>

Add ethernet driver for the UMAC controller found on HPE GXP SoCs. This controller is connected to an external Marvell 88E1415 PHY via an SGMII interface.

Quoted 10 lines
---
 MAINTAINERS                      |   2 +
 arch/arm/dts/hpe-gxp-u-boot.dtsi |  24 ++
 arch/arm/dts/hpe-gxp.dtsi        |  42 +++
 configs/gxp_defconfig            |   7 +
 drivers/net/Kconfig              |   9 +
 drivers/net/Makefile             |   1 +
 drivers/net/gxp_umac.c           | 572 +++++++++++++++++++++++++++++++++++++++
 drivers/net/gxp_umac.h           | 136 ++++++++++
 8 files changed, 793 insertions(+)

Applied to u-boot-net branch for-main [1], thanks!

[1] https://git.u-boot-project.org/u-boot/custodians/u-boot-net/-/commits/for-main

[1/1] net: add HPE GXP UMAC ethernet driver

      commit: 0d44fb722858541486f71d3c89cf3b70d6a72ce9

Best regards,

Signature · 1 line
Jerome Forissier <[email protected]>