Commit f5bbdaf8 authored by Fin Maaß's avatar Fin Maaß Committed by Benjamin Cabé
Browse files

drivers: ethernet: phy: select MDIO



devices on a bus are recomended to
select its protocol, apply this to the eth phys
on the mdio bus, so that they just work by
enableing the device in the dts.

Signed-off-by: default avatarFin Maaß <f.maass@vogl-electronic.com>
parent c4ddc85e
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -30,8 +30,9 @@ config PHY_INIT_PRIORITY

config PHY_GENERIC_MII
	bool "Generic MII PHY Driver"
	default y if DT_HAS_ETHERNET_PHY_ENABLED
	depends on MDIO
	default y
	depends on DT_HAS_ETHERNET_PHY_ENABLED
	select MDIO
	help
	  This is a generic MII PHY interface that communicates with the
	  PHY using the MDIO bus.
@@ -40,6 +41,7 @@ config PHY_ADIN2111
	bool "ADIN2111 PHY driver"
	default y
	depends on DT_HAS_ADI_ADIN2111_PHY_ENABLED || DT_HAS_ADI_ADIN1100_PHY_ENABLED
	select MDIO
	help
	  Enable ADIN2111 PHY driver.

@@ -47,7 +49,7 @@ config PHY_MICROCHIP_KSZ8081
	bool "Microchip KSZ8081 PHY Driver"
	default y
	depends on DT_HAS_MICROCHIP_KSZ8081_ENABLED
	depends on MDIO
	select MDIO
	depends on GPIO
	help
	  Enable Microchip KSZ8081 Ethernet PHY Driver
@@ -56,7 +58,7 @@ config PHY_MICROCHIP_VSC8541
	bool "Microchip VSC8541 PHY Driver"
	default y
	depends on DT_HAS_MICROCHIP_VSC8541_ENABLED
	depends on MDIO
	select MDIO
	depends on GPIO
	help
	  Enable Microchip VSC8541 Ethernet PHY Driver
@@ -65,7 +67,7 @@ config PHY_TI_DP83825
	bool "TI DP83825 PHY Driver"
	default y
	depends on DT_HAS_TI_DP83825_ENABLED
	depends on MDIO
	select MDIO
	depends on GPIO
	help
	  Enable TI DP83825 Ethernet PHY Driver
@@ -74,7 +76,7 @@ config PHY_TI_DP83867
	bool "TI DP83867 PHY Driver"
	default y
	depends on DT_HAS_TI_DP83867_ENABLED
	depends on MDIO
	select MDIO
	depends on GPIO
	help
	  Enable TI DP83867 Ethernet PHY Driver
@@ -83,7 +85,7 @@ config PHY_REALTEK_RTL8211F
	bool "Realtek RTL8211F PHY Driver"
	default y
	depends on DT_HAS_REALTEK_RTL8211F_ENABLED
	depends on MDIO
	select MDIO
	depends on GPIO || (!$(dt_compat_any_has_prop,$(DT_COMPAT_REALTEK_RTL8211F),reset-gpios) && \
			    !$(dt_compat_any_has_prop,$(DT_COMPAT_REALTEK_RTL8211F),int-gpios))
	help
@@ -93,7 +95,7 @@ config PHY_QUALCOMM_AR8031
	bool "Qualcomm Atheros AR8031 Ethernet PHY Driver"
	default y
	depends on DT_HAS_QCA_AR8031_ENABLED
	depends on MDIO
	select MDIO
	help
	  Enable Qualcomm Atheros AR8031 Ethernet PHY Driver

+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ menuconfig PHY_DM8806
	bool "Davicom PHY DM8806 driver"
	default y
	depends on DT_HAS_DAVICOM_DM8806_PHY_ENABLED
	depends on MDIO
	select MDIO
	help
	  Enable driver for Davicom DM8806 PHY.

+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ config PHY_MICROCHIP_T1S
	bool "Microchip 10BASE-T1S Ethernet PHYs Driver"
	default y
	depends on DT_HAS_MICROCHIP_T1S_PHY_ENABLED
	depends on MDIO
	select MDIO
	select PHY_OA_TC14_PLCA_LIB
	help
	  Enable Microchip's LAN8650/1 Rev.B0/B1 Internal PHYs and
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ menuconfig PHY_TJA1103
	bool "TJA1103 PHY driver"
	default y
	depends on DT_HAS_NXP_TJA1103_ENABLED
	depends on MDIO
	select MDIO
	help
	  Enable TJA1103 PHY driver.

+1 −1
Original line number Diff line number Diff line
@@ -7,6 +7,6 @@ config PHY_TJA11XX
	bool "TJA11XX PHY driver"
	default y
	depends on DT_HAS_NXP_TJA11XX_ENABLED
	depends on MDIO
	select MDIO
	help
	  Enable TJA11xx PHY driver.