Skip to content

Commit b305faf

Browse files
TonyHan11cfriedt
authored andcommitted
drivers: ethernet: phy: add Microchip's KSZ9131 PHY support
Add support for KSZ9131 (Gigabit Ethernet Transceiver with RGMII Support). As first starter, 100MBit/s mode is tested. https://www.microchip.com/en-us/product/ksz9131 Signed-off-by: Tony Han <tony.han@microchip.com>
1 parent 1962ab5 commit b305faf

File tree

4 files changed

+443
-0
lines changed

4 files changed

+443
-0
lines changed

drivers/ethernet/phy/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ zephyr_library_sources_ifdef(CONFIG_PHY_GENERIC_MII phy_mii.c)
66
zephyr_library_sources_ifdef(CONFIG_PHY_ADIN2111 phy_adin2111.c)
77
zephyr_library_sources_ifdef(CONFIG_PHY_DM8806 phy_dm8806.c)
88
zephyr_library_sources_ifdef(CONFIG_PHY_MICROCHIP_KSZ8081 phy_microchip_ksz8081.c)
9+
zephyr_library_sources_ifdef(CONFIG_PHY_MICROCHIP_KSZ9131 phy_microchip_ksz9131.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)

drivers/ethernet/phy/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ config PHY_MICROCHIP_KSZ8081
5656
help
5757
Enable Microchip KSZ8081 Ethernet PHY Driver
5858

59+
config PHY_MICROCHIP_KSZ9131
60+
bool "Microchip KSZ9131 PHY Driver"
61+
default y
62+
depends on DT_HAS_MICROCHIP_KSZ9131_ENABLED
63+
select MDIO
64+
select GPIO if $(dt_compat_any_has_prop,$(DT_COMPAT_MICROCHIP_KSZ9131),int-gpios)
65+
help
66+
Enable Microchip KSZ9131 Ethernet PHY Driver
67+
5968
config PHY_MICROCHIP_VSC8541
6069
bool "Microchip VSC8541 PHY Driver"
6170
default y

0 commit comments

Comments
 (0)