xref: /openbmc/u-boot/drivers/net/phy/Kconfig (revision 704744f8)
1
2config BITBANGMII
3	bool "Bit-banged ethernet MII management channel support"
4
5config MV88E6352_SWITCH
6	bool "Marvell 88E6352 switch support"
7
8menuconfig PHYLIB
9	bool "Ethernet PHY (physical media interface) support"
10	depends on NET
11	help
12	  Enable Ethernet PHY (physical media interface) support.
13
14if PHYLIB
15
16config PHY_ADDR
17	int "PHY address"
18	default 1 if ARCH_SUNXI
19	default 0
20	help
21	  The address of PHY on MII bus. Usually in range of 0 to 31.
22
23config B53_SWITCH
24	bool "Broadcom BCM53xx (RoboSwitch) Ethernet switch PHY support."
25	help
26	  Enable support for Broadcom BCM53xx (RoboSwitch) Ethernet switches.
27	  This currently supports BCM53125 and similar models.
28
29if B53_SWITCH
30
31config B53_CPU_PORT
32	int "CPU port"
33	default 8
34
35config B53_PHY_PORTS
36	hex "Bitmask of PHY ports"
37
38endif # B53_SWITCH
39
40config MV88E61XX_SWITCH
41	bool "Marvel MV88E61xx Ethernet switch PHY support."
42
43if MV88E61XX_SWITCH
44
45config MV88E61XX_CPU_PORT
46	int "CPU Port"
47
48config MV88E61XX_PHY_PORTS
49	hex "Bitmask of PHY Ports"
50
51config MV88E61XX_FIXED_PORTS
52	hex "Bitmask of PHYless serdes Ports"
53
54endif # MV88E61XX_SWITCH
55
56config PHYLIB_10G
57	bool "Generic 10G PHY support"
58
59config PHY_AQUANTIA
60	bool "Aquantia Ethernet PHYs support"
61
62config PHY_ATHEROS
63	bool "Atheros Ethernet PHYs support"
64
65config PHY_BROADCOM
66	bool "Broadcom Ethernet PHYs support"
67
68config PHY_CORTINA
69	bool "Cortina Ethernet PHYs support"
70
71config PHY_DAVICOM
72	bool "Davicom Ethernet PHYs support"
73
74config PHY_ET1011C
75	bool "LSI TruePHY ET1011C support"
76
77config PHY_LXT
78	bool "LXT971 Ethernet PHY support"
79
80config PHY_MARVELL
81	bool "Marvell Ethernet PHYs support"
82
83config PHY_MESON_GXL
84	bool "Amlogic Meson GXL Internal PHY support"
85
86config PHY_MICREL
87	bool "Micrel Ethernet PHYs support"
88	help
89	  Enable support for the GbE PHYs manufactured by Micrel (now
90	  a part of Microchip). This includes drivers for the KSZ804,
91	  KSZ8031, KSZ8051, KSZ8081, KSZ8895, KSZ886x, KSZ8721
92	  either/or KSZ9021 (see the "Micrel KSZ9021 family support"
93	  config option for details), and KSZ9031 (if configured).
94
95if PHY_MICREL
96
97config PHY_MICREL_KSZ9021
98	bool
99	select PHY_GIGE
100	select PHY_MICREL_KSZ90X1
101
102config PHY_MICREL_KSZ9031
103	bool
104	select PHY_GIGE
105	select PHY_MICREL_KSZ90X1
106
107config PHY_MICREL_KSZ90X1
108	bool "Micrel KSZ90x1 family support"
109	select PHY_GIGE
110	help
111	  Enable support for the Micrel KSZ9021 and KSZ9031 GbE PHYs. If
112	  enabled, the extended register read/write for KSZ90x1 PHYs
113	  is supported through the 'mdio' command and any RGMII signal
114	  delays configured in the device tree will be applied to the
115	  PHY during initialization.
116
117	  This should not be enabled at the same time with PHY_MICREL_KSZ8XXX
118	  as the KSZ9021 and KS8721 share the same ID.
119
120config PHY_MICREL_KSZ8XXX
121	bool "Micrel KSZ8xxx family support"
122	default y if !PHY_MICREL_KSZ90X1
123	help
124	  Enable support for the 8000 series GbE PHYs manufactured by Micrel
125	  (now a part of Microchip). This includes drivers for the KSZ804,
126	  KSZ8031, KSZ8051, KSZ8081, KSZ8895, KSZ886x, and KSZ8721.
127
128	  This should not be enabled at the same time with PHY_MICREL_KSZ90X1
129	  as the KSZ9021 and KS8721 share the same ID.
130
131endif # PHY_MICREL
132
133config PHY_MSCC
134	bool "Microsemi Corp Ethernet PHYs support"
135
136config PHY_NATSEMI
137	bool "National Semiconductor Ethernet PHYs support"
138
139config PHY_REALTEK
140	bool "Realtek Ethernet PHYs support"
141
142config RTL8211E_PINE64_GIGABIT_FIX
143	bool "Fix gigabit throughput on some Pine64+ models"
144	depends on PHY_REALTEK
145	help
146	  Configure the Realtek RTL8211E found on some Pine64+ models differently to
147	  fix throughput on Gigabit links, turning off all internal delays in the
148	  process. The settings that this touches are not documented in the CONFREG
149	  section of the RTL8211E datasheet, but come from Realtek by way of the
150	  Pine64 engineering team.
151
152config RTL8211X_PHY_FORCE_MASTER
153	bool "Ethernet PHY RTL8211x: force 1000BASE-T master mode"
154	depends on PHY_REALTEK
155	help
156	  Force master mode for 1000BASE-T on RTl8211x PHYs (except for RTL8211F).
157	  This can work around link stability and data corruption issues on gigabit
158	  links which can occur in slave mode on certain PHYs, e.g. on the
159	  RTL8211C(L).
160
161	  Please note that two directly connected devices (i.e. via crossover cable)
162	  will not be able to establish a link between each other if they both force
163	  master mode. Multiple devices forcing master mode when connected by a
164	  network switch do not pose a problem as the switch configures its affected
165	  ports into slave mode.
166
167	  This option only affects gigabit links. If you must establish a direct
168	  connection between two devices which both force master mode, try forcing
169	  the link speed to 100MBit/s.
170
171	  If unsure, say N.
172
173config PHY_SMSC
174	bool  "Microchip(SMSC) Ethernet PHYs support"
175
176config PHY_TERANETICS
177	bool "Teranetics Ethernet PHYs support"
178
179config PHY_TI
180	bool "Texas Instruments Ethernet PHYs support"
181
182config PHY_VITESSE
183	bool "Vitesse Ethernet PHYs support"
184
185config PHY_XILINX
186	bool "Xilinx Ethernet PHYs support"
187
188config PHY_FIXED
189	bool "Fixed-Link PHY"
190	depends on DM_ETH
191	help
192	  Fixed PHY is used for having a 'fixed-link' to another MAC with a direct
193	  connection (MII, RGMII, ...).
194	  There is nothing like autoneogation and so
195	  on, the link is always up with fixed speed and fixed duplex-setting.
196	  More information: doc/device-tree-bindings/net/fixed-link.txt
197
198endif #PHYLIB
199