Skip to content

Commit d124eec

Browse files
stanislav-poborilnashif
authored andcommitted
drivers: ethernet: phy: Add Realtek RTL8211F PHY driver
Add driver for Realtek RTL8211F 10/100/1000M ethernet PHY. This driver implements vendor specific behaviour like detecting link state change by GPIO interrupt, which is not present in the generic MII driver. Fixes: #66348 Signed-off-by: Stanislav Poboril <[email protected]>
1 parent ca6adbb commit d124eec

File tree

4 files changed

+663
-2
lines changed

4 files changed

+663
-2
lines changed

drivers/ethernet/phy/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ zephyr_library_sources_ifdef(CONFIG_PHY_GENERIC_MII phy_mii.c)
44
zephyr_library_sources_ifdef(CONFIG_PHY_ADIN2111 phy_adin2111.c)
55
zephyr_library_sources_ifdef(CONFIG_PHY_TJA1103 phy_tja1103.c)
66
zephyr_library_sources_ifdef(CONFIG_PHY_MICROCHIP_KSZ8081 phy_microchip_ksz8081.c)
7+
zephyr_library_sources_ifdef(CONFIG_PHY_REALTEK_RTL8211F phy_realtek_rtl8211f.c)

drivers/ethernet/phy/Kconfig

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,23 @@ config PHY_ADIN2111
4141
Enable ADIN2111 PHY driver.
4242

4343
config PHY_MICROCHIP_KSZ8081
44-
bool "Microchip KSZ8081 Phy Driver"
44+
bool "Microchip KSZ8081 PHY Driver"
4545
default y
4646
depends on DT_HAS_MICROCHIP_KSZ8081_ENABLED
4747
depends on MDIO
4848
depends on GPIO
4949
help
50-
Enable Microchip KSZ8081 Ethernet Phy Driver
50+
Enable Microchip KSZ8081 Ethernet PHY Driver
51+
52+
config PHY_REALTEK_RTL8211F
53+
bool "Realtek RTL8211F PHY Driver"
54+
default y
55+
depends on DT_HAS_REALTEK_RTL8211F_ENABLED
56+
depends on MDIO
57+
depends on GPIO || (!$(dt_compat_any_has_prop,$(DT_COMPAT_REALTEK_RTL8211F),reset-gpios) && \
58+
!$(dt_compat_any_has_prop,$(DT_COMPAT_REALTEK_RTL8211F),int-gpios))
59+
help
60+
Enable Realtek RTL8211F Ethernet PHY Driver
5161

5262
config PHY_AUTONEG_TIMEOUT_MS
5363
int "Auto-negotiation timeout value in milliseconds"

0 commit comments

Comments
 (0)