Skip to content

Commit 30e09d4

Browse files
committed
drivers: ethernet: add initial support of the LAN8742 PHY
Add basic support of the LAN8742 RMII phy. The driver is inspired from the phy_mii generic driver, with the support of a GPIO reset. Signed-off-by: Arnaud Pouliquen <[email protected]>
1 parent f30bbd8 commit 30e09d4

File tree

4 files changed

+473
-0
lines changed

4 files changed

+473
-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_LAN8742 phy_microchip_lan8742.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
@@ -55,6 +55,15 @@ config PHY_MICROCHIP_KSZ8081
5555
help
5656
Enable Microchip KSZ8081 Ethernet PHY Driver
5757

58+
config PHY_MICROCHIP_LAN8742
59+
bool "Microchip LAN8742 PHY Driver"
60+
default y
61+
depends on DT_HAS_MICROCHIP_LAN8742_ENABLED
62+
select MDIO
63+
select GPIO if ($(dt_compat_any_has_prop,$(DT_COMPAT_MICROCHIP_LAN8742),reset-gpios))
64+
help
65+
Enable Microchip LAN8742 Ethernet PHY Driver
66+
5867
config PHY_MICROCHIP_VSC8541
5968
bool "Microchip VSC8541 PHY Driver"
6069
default y

0 commit comments

Comments
 (0)