Skip to contentSkip to conversation

phy: add driver for Intel XWAY PHY

PATCH In review Tim Harvey 2 participants 2 messages Nov 17, 2022 – Nov 28, 2022

Subsystems (2)
lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH 1/1 phy: add driver for Intel XWAY PHY

Add a driver for the Intel XWAY GbE PHY:
- configure RGMII using dt phy-mode and standard delay properties
- use genphy_config

---
 drivers/net/phy/Kconfig      |  5 ++++
 drivers/net/phy/Makefile     |  1 +
 drivers/net/phy/intel_xway.c | 48 ++++++++++++++++++++++++++++++++++++
 drivers/net/phy/phy.c        |  3 +++
 include/phy.h                |  1 +
 5 files changed, 58 insertions(+)
 create mode 100644 drivers/net/phy/intel_xway.c
drivers/net/phy/Kconfig +5 -0
index 52ce08b3b384..86e698190f81 100644
@@ -321,6 +321,11 @@ config PHY_XILINX_GMII2RGMII
 	  as bridge between MAC connected over GMII and external phy that
 	  is connected over RGMII interface.
 
+config PHY_XWAY
+	bool "Intel XWAY PHY support"
+	help
+	  This adds support for the Intel XWAY (formerly Lantiq) Gbe PHYs.
+
 config PHY_ETHERNET_ID
 	bool "Read ethernet PHY id"
 	depends on DM_GPIO
drivers/net/phy/Makefile +1 -0
index 9d87eb212c7c..d38e99e71716 100644
@@ -34,6 +34,7 @@ obj-$(CONFIG_PHY_TI_DP83867) += dp83867.o
 obj-$(CONFIG_PHY_TI_DP83869) += dp83869.o
 obj-$(CONFIG_PHY_XILINX) += xilinx_phy.o
 obj-$(CONFIG_PHY_XILINX_GMII2RGMII) += xilinx_gmii2rgmii.o
+obj-$(CONFIG_PHY_XWAY) += intel_xway.o
 obj-$(CONFIG_PHY_ETHERNET_ID) += ethernet_id.o
 obj-$(CONFIG_PHY_VITESSE) += vitesse.o
 obj-$(CONFIG_PHY_MSCC) += mscc.o
drivers/net/phy/intel_xway.c new file +48 -0

48 lines not on this page · raw message

drivers/net/phy/phy.c +3 -0
index 90876630533e..92143cf23691 100644
@@ -556,6 +556,9 @@ int phy_init(void)
 #ifdef CONFIG_PHY_XILINX
 	phy_xilinx_init();
 #endif
+#ifdef CONFIG_PHY_XWAY
+	phy_xway_init();
+#endif
 #ifdef CONFIG_PHY_MSCC
 	phy_mscc_init();
 #endif
include/phy.h +1 -0
index 0737c4e8f9ae..ff69536fca75 100644
@@ -380,6 +380,7 @@ int phy_teranetics_init(void);
 int phy_ti_init(void);
 int phy_vitesse_init(void);
 int phy_xilinx_init(void);
+int phy_xway_init(void);
 int phy_mscc_init(void);
 int phy_fixed_init(void);
 int phy_ncsi_init(void);
Signature · 1 line
2.25.1
#1 lore raw
Quoted 5 lines · Tim Harvey

Add a driver for the Intel XWAY GbE PHY:
- configure RGMII using dt phy-mode and standard delay properties
- use genphy_config

Applied to u-boot/master, thanks!

Signature · 1 line
Tom