1# Ethernet PHY drivers configuration options
2
3# Copyright (c) 2021 IP-Logix Inc.
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig ETH_PHY_DRIVER
7	bool "Ethernet PHY drivers"
8	default y if NET_L2_ETHERNET || ETH_DRIVER
9
10if ETH_PHY_DRIVER
11
12module = PHY
13module-dep = LOG
14module-str = Log level for Ethernet PHY driver
15module-help = Sets log level for Ethernet PHY Device Drivers.
16source "subsys/net/Kconfig.template.log_config.net"
17source "drivers/ethernet/phy/Kconfig.tja1103"
18source "drivers/ethernet/phy/Kconfig.dm8806"
19
20config PHY_INIT_PRIORITY
21	int "Ethernet PHY driver init priority"
22	default 70
23	help
24	  Ethernet PHY device driver initialization priority.
25	  Do not mess with it unless you know what you are doing.
26	  Note that the priority needs to be lower than the net stack
27	  so that it can start before the networking sub-system.
28
29config PHY_GENERIC_MII
30	bool "Generic MII PHY Driver"
31	default y if DT_HAS_ETHERNET_PHY_ENABLED
32	depends on MDIO
33	help
34	  This is a generic MII PHY interface that communicates with the
35	  PHY using the MDIO bus.
36
37config PHY_ADIN2111
38	bool "ADIN2111 PHY driver"
39	default y
40	depends on DT_HAS_ADI_ADIN2111_PHY_ENABLED || DT_HAS_ADI_ADIN1100_PHY_ENABLED
41	help
42	  Enable ADIN2111 PHY driver.
43
44config PHY_MICROCHIP_KSZ8081
45	bool "Microchip KSZ8081 PHY Driver"
46	default y
47	depends on DT_HAS_MICROCHIP_KSZ8081_ENABLED
48	depends on MDIO
49	depends on GPIO
50	help
51	  Enable Microchip KSZ8081 Ethernet PHY Driver
52
53config PHY_TI_DP83825
54	bool "TI DP83825 PHY Driver"
55	default y
56	depends on DT_HAS_TI_DP83825_ENABLED
57	depends on MDIO
58	depends on GPIO
59	help
60	  Enable TI DP83825 Ethernet PHY Driver
61
62config PHY_REALTEK_RTL8211F
63	bool "Realtek RTL8211F PHY Driver"
64	default y
65	depends on DT_HAS_REALTEK_RTL8211F_ENABLED
66	depends on MDIO
67	depends on GPIO || (!$(dt_compat_any_has_prop,$(DT_COMPAT_REALTEK_RTL8211F),reset-gpios) && \
68			    !$(dt_compat_any_has_prop,$(DT_COMPAT_REALTEK_RTL8211F),int-gpios))
69	help
70	  Enable Realtek RTL8211F Ethernet PHY Driver
71
72config PHY_QUALCOMM_AR8031
73	bool "Qualcomm Atheros AR8031 Ethernet PHY Driver"
74	default y
75	depends on DT_HAS_QCA_AR8031_ENABLED
76	depends on MDIO
77	help
78	  Enable Qualcomm Atheros AR8031 Ethernet PHY Driver
79
80config PHY_AUTONEG_TIMEOUT_MS
81	int "Auto-negotiation timeout value in milliseconds"
82	default 4000
83	help
84	  Maximum duration of auto-negotiation sequence in milliseconds
85	  before the process fails
86
87config PHY_MONITOR_PERIOD
88	int "Monitor task execution period"
89	default 500
90	help
91	  Monitor task execution period in milliseconds. The monitor task is
92	  periodically executed to detect and report any changes in the
93	  PHY link status to the operating system.
94
95endif # "Ethernet PHY Drivers"
96