Skip to content

Commit 9fb146c

Browse files
committed
drivers: phy: add drivers for PHYs supported by legacy MDIO driver
The legacy MDIO/PHY driver integrated into the Xilinx GEM device driver supported two PHY families: the Marvell Alaska 88E1xxx series PHYs and the TI DP83822 which is a pin- and register compatible drop-in replacement of the TI TLK105, which is therefore also supported by the same driver. These two PHY families are now provided as separate drivers implemented against the standard PHY driver APIs, therefore also enabling their use with MACs other than the GEM. Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
1 parent 1c5aff3 commit 9fb146c

File tree

6 files changed

+1146
-0
lines changed

6 files changed

+1146
-0
lines changed

drivers/ethernet/phy/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ zephyr_library_sources_ifdef(CONFIG_PHY_GENERIC_MII phy_mii.c)
55
# zephyr-keep-sorted-start
66
zephyr_library_sources_ifdef(CONFIG_PHY_ADIN2111 phy_adin2111.c)
77
zephyr_library_sources_ifdef(CONFIG_PHY_DM8806 phy_dm8806.c)
8+
zephyr_library_sources_ifdef(CONFIG_PHY_MARVELL_ALASKA_88E1XXX phy_marvell_88e1xxx.c)
89
zephyr_library_sources_ifdef(CONFIG_PHY_MICROCHIP_KSZ8081 phy_microchip_ksz8081.c)
910
zephyr_library_sources_ifdef(CONFIG_PHY_MICROCHIP_T1S phy_microchip_t1s.c)
1011
zephyr_library_sources_ifdef(CONFIG_PHY_MICROCHIP_VSC8541 phy_microchip_vsc8541.c)
1112
zephyr_library_sources_ifdef(CONFIG_PHY_OA_TC14_PLCA_LIB phy_oa_tc14_plca.c)
1213
zephyr_library_sources_ifdef(CONFIG_PHY_QUALCOMM_AR8031 phy_qualcomm_ar8031.c)
1314
zephyr_library_sources_ifdef(CONFIG_PHY_REALTEK_RTL8211F phy_realtek_rtl8211f.c)
15+
zephyr_library_sources_ifdef(CONFIG_PHY_TI_DP83822 phy_ti_dp83822.c)
1416
zephyr_library_sources_ifdef(CONFIG_PHY_TI_DP83825 phy_ti_dp83825.c)
1517
zephyr_library_sources_ifdef(CONFIG_PHY_TI_DP83867 phy_ti_dp83867.c)
1618
zephyr_library_sources_ifdef(CONFIG_PHY_TJA1103 phy_tja1103.c)

drivers/ethernet/phy/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ config PHY_QUALCOMM_AR8031
9696
help
9797
Enable Qualcomm Atheros AR8031 Ethernet PHY Driver
9898

99+
config PHY_MARVELL_ALASKA_88E1XXX
100+
bool "Marvell Alaska 88E1xxx PHY Driver"
101+
default y
102+
depends on DT_HAS_MARVELL_88E1XXX_ENABLED
103+
depends on MDIO
104+
help
105+
Enable Marvell Alaska 88E1xxx PHY Driver
106+
107+
config PHY_TI_DP83822
108+
bool "TI DP83822 PHY Driver"
109+
default y
110+
depends on DT_HAS_TI_DP83822_ENABLED
111+
depends on MDIO
112+
help
113+
Enable TI DP83822 PHY Driver
114+
99115
config PHY_AUTONEG_TIMEOUT_MS
100116
int "Auto-negotiation timeout value in milliseconds"
101117
default 4000

0 commit comments

Comments
 (0)