xref: /openbmc/linux/drivers/net/phy/Kconfig (revision 51bc620b)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# PHY Layer Configuration
4#
5
6menuconfig MDIO_DEVICE
7	tristate "MDIO bus device drivers"
8	help
9	  MDIO devices and driver infrastructure code.
10
11if MDIO_DEVICE
12
13config MDIO_BUS
14	tristate
15	default m if PHYLIB=m
16	default MDIO_DEVICE
17	help
18	  This internal symbol is used for link time dependencies and it
19	  reflects whether the mdio_bus/mdio_device code is built as a
20	  loadable module or built-in.
21
22if MDIO_BUS
23
24config MDIO_BCM_IPROC
25	tristate "Broadcom iProc MDIO bus controller"
26	depends on ARCH_BCM_IPROC || COMPILE_TEST
27	depends on HAS_IOMEM && OF_MDIO
28	help
29	  This module provides a driver for the MDIO busses found in the
30	  Broadcom iProc SoC's.
31
32config MDIO_BCM_UNIMAC
33	tristate "Broadcom UniMAC MDIO bus controller"
34	depends on HAS_IOMEM
35	help
36	  This module provides a driver for the Broadcom UniMAC MDIO busses.
37	  This hardware can be found in the Broadcom GENET Ethernet MAC
38	  controllers as well as some Broadcom Ethernet switches such as the
39	  Starfighter 2 switches.
40
41config MDIO_BITBANG
42	tristate "Bitbanged MDIO buses"
43	help
44	  This module implements the MDIO bus protocol in software,
45	  for use by low level drivers that export the ability to
46	  drive the relevant pins.
47
48	  If in doubt, say N.
49
50config MDIO_BUS_MUX
51	tristate
52	depends on OF_MDIO
53	help
54	  This module provides a driver framework for MDIO bus
55	  multiplexers which connect one of several child MDIO busses
56	  to a parent bus.  Switching between child busses is done by
57	  device specific drivers.
58
59config MDIO_BUS_MUX_BCM_IPROC
60	tristate "Broadcom iProc based MDIO bus multiplexers"
61	depends on OF && OF_MDIO && (ARCH_BCM_IPROC || COMPILE_TEST)
62	select MDIO_BUS_MUX
63	default ARCH_BCM_IPROC
64	help
65	  This module provides a driver for MDIO bus multiplexers found in
66	  iProc based Broadcom SoCs. This multiplexer connects one of several
67	  child MDIO bus to a parent bus. Buses could be internal as well as
68	  external and selection logic lies inside the same multiplexer.
69
70config MDIO_BUS_MUX_GPIO
71	tristate "GPIO controlled MDIO bus multiplexers"
72	depends on OF_GPIO && OF_MDIO
73	select MDIO_BUS_MUX
74	help
75	  This module provides a driver for MDIO bus multiplexers that
76	  are controlled via GPIO lines.  The multiplexer connects one of
77	  several child MDIO busses to a parent bus.  Child bus
78	  selection is under the control of GPIO lines.
79
80config MDIO_BUS_MUX_MESON_G12A
81	tristate "Amlogic G12a based MDIO bus multiplexer"
82	depends on ARCH_MESON || COMPILE_TEST
83	depends on OF_MDIO && HAS_IOMEM && COMMON_CLK
84	select MDIO_BUS_MUX
85	default m if ARCH_MESON
86	help
87	  This module provides a driver for the MDIO multiplexer/glue of
88	  the amlogic g12a SoC. The multiplexers connects either the external
89	  or the internal MDIO bus to the parent bus.
90
91config MDIO_BUS_MUX_MMIOREG
92	tristate "MMIO device-controlled MDIO bus multiplexers"
93	depends on OF_MDIO && HAS_IOMEM
94	select MDIO_BUS_MUX
95	help
96	  This module provides a driver for MDIO bus multiplexers that
97	  are controlled via a simple memory-mapped device, like an FPGA.
98	  The multiplexer connects one of several child MDIO busses to a
99	  parent bus.  Child bus selection is under the control of one of
100	  the FPGA's registers.
101
102	  Currently, only 8/16/32 bits registers are supported.
103
104config MDIO_BUS_MUX_MULTIPLEXER
105	tristate "MDIO bus multiplexer using kernel multiplexer subsystem"
106	depends on OF_MDIO
107	select MULTIPLEXER
108	select MDIO_BUS_MUX
109	help
110	  This module provides a driver for MDIO bus multiplexer
111	  that is controlled via the kernel multiplexer subsystem. The
112	  bus multiplexer connects one of several child MDIO busses to
113	  a parent bus.  Child bus selection is under the control of
114	  the kernel multiplexer subsystem.
115
116config MDIO_CAVIUM
117	tristate
118
119config MDIO_GPIO
120	tristate "GPIO lib-based bitbanged MDIO buses"
121	depends on MDIO_BITBANG
122	depends on GPIOLIB || COMPILE_TEST
123	---help---
124	  Supports GPIO lib-based MDIO busses.
125
126	  To compile this driver as a module, choose M here: the module
127	  will be called mdio-gpio.
128
129config MDIO_HISI_FEMAC
130	tristate "Hisilicon FEMAC MDIO bus controller"
131	depends on HAS_IOMEM && OF_MDIO
132	help
133	  This module provides a driver for the MDIO busses found in the
134	  Hisilicon SoC that have an Fast Ethernet MAC.
135
136config MDIO_I2C
137	tristate
138	depends on I2C
139	help
140	  Support I2C based PHYs.  This provides a MDIO bus bridged
141	  to I2C to allow PHYs connected in I2C mode to be accessed
142	  using the existing infrastructure.
143
144	  This is library mode.
145
146config MDIO_MOXART
147	tristate "MOXA ART MDIO interface support"
148	depends on ARCH_MOXART || COMPILE_TEST
149	help
150	  This driver supports the MDIO interface found in the network
151	  interface units of the MOXA ART SoC
152
153config MDIO_MSCC_MIIM
154	tristate "Microsemi MIIM interface support"
155	depends on HAS_IOMEM
156	help
157	  This driver supports the MIIM (MDIO) interface found in the network
158	  switches of the Microsemi SoCs
159
160config MDIO_OCTEON
161	tristate "Octeon and some ThunderX SOCs MDIO buses"
162	depends on 64BIT
163	depends on HAS_IOMEM && OF_MDIO
164	select MDIO_CAVIUM
165	help
166	  This module provides a driver for the Octeon and ThunderX MDIO
167	  buses. It is required by the Octeon and ThunderX ethernet device
168	  drivers on some systems.
169
170config MDIO_SUN4I
171	tristate "Allwinner sun4i MDIO interface support"
172	depends on ARCH_SUNXI || COMPILE_TEST
173	help
174	  This driver supports the MDIO interface found in the network
175	  interface units of the Allwinner SoC that have an EMAC (A10,
176	  A12, A10s, etc.)
177
178config MDIO_THUNDER
179	tristate "ThunderX SOCs MDIO buses"
180	depends on 64BIT
181	depends on PCI
182	select MDIO_CAVIUM
183	help
184	  This driver supports the MDIO interfaces found on Cavium
185	  ThunderX SoCs when the MDIO bus device appears as a PCI
186	  device.
187
188config MDIO_XGENE
189	tristate "APM X-Gene SoC MDIO bus controller"
190	depends on ARCH_XGENE || COMPILE_TEST
191	help
192	  This module provides a driver for the MDIO busses found in the
193	  APM X-Gene SoC's.
194
195endif
196endif
197
198config PHYLINK
199	tristate
200	depends on NETDEVICES
201	select PHYLIB
202	select SWPHY
203	help
204	  PHYlink models the link between the PHY and MAC, allowing fixed
205	  configuration links, PHYs, and Serdes links with MAC level
206	  autonegotiation modes.
207
208menuconfig PHYLIB
209	tristate "PHY Device support and infrastructure"
210	depends on NETDEVICES
211	select MDIO_DEVICE
212	help
213	  Ethernet controllers are usually attached to PHY
214	  devices.  This option provides infrastructure for
215	  managing PHY devices.
216
217if PHYLIB
218
219config SWPHY
220	bool
221
222config LED_TRIGGER_PHY
223	bool "Support LED triggers for tracking link state"
224	depends on LEDS_TRIGGERS
225	---help---
226	  Adds support for a set of LED trigger events per-PHY.  Link
227	  state change will trigger the events, for consumption by an
228	  LED class driver.  There are triggers for each link speed currently
229	  supported by the PHY and also a one common "link" trigger as a
230	  logical-or of all the link speed ones.
231	  All these triggers are named according to the following pattern:
232	      <mii bus id>:<phy>:<speed>
233
234	  Where speed is in the form:
235		<Speed in megabits>Mbps OR <Speed in gigabits>Gbps OR link
236		for any speed known to the PHY.
237
238
239comment "MII PHY device drivers"
240
241config SFP
242	tristate "SFP cage support"
243	depends on I2C && PHYLINK
244	depends on HWMON || HWMON=n
245	select MDIO_I2C
246
247config AMD_PHY
248	tristate "AMD PHYs"
249	---help---
250	  Currently supports the am79c874
251
252config AQUANTIA_PHY
253	tristate "Aquantia PHYs"
254	---help---
255	  Currently supports the Aquantia AQ1202, AQ2104, AQR105, AQR405
256
257config AX88796B_PHY
258	tristate "Asix PHYs"
259	help
260	  Currently supports the Asix Electronics PHY found in the X-Surf 100
261	  AX88796B package.
262
263config AT803X_PHY
264	tristate "AT803X PHYs"
265	---help---
266	  Currently supports the AT8030 and AT8035 model
267
268config BCM63XX_PHY
269	tristate "Broadcom 63xx SOCs internal PHY"
270	depends on BCM63XX || COMPILE_TEST
271	select BCM_NET_PHYLIB
272	---help---
273	  Currently supports the 6348 and 6358 PHYs.
274
275config BCM7XXX_PHY
276	tristate "Broadcom 7xxx SOCs internal PHYs"
277	select BCM_NET_PHYLIB
278	---help---
279	  Currently supports the BCM7366, BCM7439, BCM7445, and
280	  40nm and 65nm generation of BCM7xxx Set Top Box SoCs.
281
282config BCM87XX_PHY
283	tristate "Broadcom BCM8706 and BCM8727 PHYs"
284	help
285	  Currently supports the BCM8706 and BCM8727 10G Ethernet PHYs.
286
287config BCM_CYGNUS_PHY
288	tristate "Broadcom Cygnus/Omega SoC internal PHY"
289	depends on ARCH_BCM_IPROC || COMPILE_TEST
290	depends on MDIO_BCM_IPROC
291	select BCM_NET_PHYLIB
292	---help---
293	  This PHY driver is for the 1G internal PHYs of the Broadcom
294	  Cygnus and Omega Family SoC.
295
296	  Currently supports internal PHY's used in the BCM11300,
297	  BCM11320, BCM11350, BCM11360, BCM58300, BCM58302,
298	  BCM58303 & BCM58305 Broadcom Cygnus SoCs.
299
300config BCM_NET_PHYLIB
301	tristate
302
303config BROADCOM_PHY
304	tristate "Broadcom PHYs"
305	select BCM_NET_PHYLIB
306	---help---
307	  Currently supports the BCM5411, BCM5421, BCM5461, BCM54616S, BCM5464,
308	  BCM5481, BCM54810 and BCM5482 PHYs.
309
310config CICADA_PHY
311	tristate "Cicada PHYs"
312	---help---
313	  Currently supports the cis8204
314
315config CORTINA_PHY
316	tristate "Cortina EDC CDR 10G Ethernet PHY"
317	---help---
318	  Currently supports the CS4340 phy.
319
320config DAVICOM_PHY
321	tristate "Davicom PHYs"
322	---help---
323	  Currently supports dm9161e and dm9131
324
325config DP83822_PHY
326	tristate "Texas Instruments DP83822 PHY"
327	---help---
328	  Supports the DP83822 PHY.
329
330config DP83TC811_PHY
331	tristate "Texas Instruments DP83TC822 PHY"
332	---help---
333	  Supports the DP83TC822 PHY.
334
335config DP83848_PHY
336	tristate "Texas Instruments DP83848 PHY"
337	---help---
338	  Supports the DP83848 PHY.
339
340config DP83867_PHY
341	tristate "Texas Instruments DP83867 Gigabit PHY"
342	---help---
343	  Currently supports the DP83867 PHY.
344
345config FIXED_PHY
346	tristate "MDIO Bus/PHY emulation with fixed speed/link PHYs"
347	depends on PHYLIB
348	select SWPHY
349	---help---
350	  Adds the platform "fixed" MDIO Bus to cover the boards that use
351	  PHYs that are not connected to the real MDIO bus.
352
353	  Currently tested with mpc866ads and mpc8349e-mitx.
354
355config ICPLUS_PHY
356	tristate "ICPlus PHYs"
357	---help---
358	  Currently supports the IP175C and IP1001 PHYs.
359
360config INTEL_XWAY_PHY
361	tristate "Intel XWAY PHYs"
362	---help---
363	  Supports the Intel XWAY (former Lantiq) 11G and 22E PHYs.
364	  These PHYs are marked as standalone chips under the names
365	  PEF 7061, PEF 7071 and PEF 7072 or integrated into the Intel
366	  SoCs xRX200, xRX300, xRX330, xRX350 and xRX550.
367
368config LSI_ET1011C_PHY
369	tristate "LSI ET1011C PHY"
370	---help---
371	  Supports the LSI ET1011C PHY.
372
373config LXT_PHY
374	tristate "Intel LXT PHYs"
375	---help---
376	  Currently supports the lxt970, lxt971
377
378config MARVELL_PHY
379	tristate "Marvell PHYs"
380	---help---
381	  Currently has a driver for the 88E1011S
382
383config MARVELL_10G_PHY
384	tristate "Marvell Alaska 10Gbit PHYs"
385	---help---
386	  Support for the Marvell Alaska MV88X3310 and compatible PHYs.
387
388config MESON_GXL_PHY
389	tristate "Amlogic Meson GXL Internal PHY"
390	depends on ARCH_MESON || COMPILE_TEST
391	---help---
392	  Currently has a driver for the Amlogic Meson GXL Internal PHY
393
394config MICREL_PHY
395	tristate "Micrel PHYs"
396	---help---
397	  Supports the KSZ9021, VSC8201, KS8001 PHYs.
398
399config MICROCHIP_PHY
400	tristate "Microchip PHYs"
401	help
402	  Supports the LAN88XX PHYs.
403
404config MICROCHIP_T1_PHY
405	tristate "Microchip T1 PHYs"
406	---help---
407	  Supports the LAN87XX PHYs.
408
409config MICROSEMI_PHY
410	tristate "Microsemi PHYs"
411	---help---
412	  Currently supports VSC8514, VSC8530, VSC8531, VSC8540 and VSC8541 PHYs
413
414config NATIONAL_PHY
415	tristate "National Semiconductor PHYs"
416	---help---
417	  Currently supports the DP83865 PHY.
418
419config NXP_TJA11XX_PHY
420	tristate "NXP TJA11xx PHYs support"
421	depends on HWMON
422	---help---
423	  Currently supports the NXP TJA1100 and TJA1101 PHY.
424
425config QSEMI_PHY
426	tristate "Quality Semiconductor PHYs"
427	---help---
428	  Currently supports the qs6612
429
430config REALTEK_PHY
431	tristate "Realtek PHYs"
432	---help---
433	  Supports the Realtek 821x PHY.
434
435config RENESAS_PHY
436	tristate "Driver for Renesas PHYs"
437	---help---
438	  Supports the Renesas PHYs uPD60620 and uPD60620A.
439
440config ROCKCHIP_PHY
441        tristate "Driver for Rockchip Ethernet PHYs"
442        ---help---
443          Currently supports the integrated Ethernet PHY.
444
445config SMSC_PHY
446	tristate "SMSC PHYs"
447	---help---
448	  Currently supports the LAN83C185, LAN8187 and LAN8700 PHYs
449
450config STE10XP
451	tristate "STMicroelectronics STe10Xp PHYs"
452	---help---
453	  This is the driver for the STe100p and STe101p PHYs.
454
455config TERANETICS_PHY
456	tristate "Teranetics PHYs"
457	---help---
458	  Currently supports the Teranetics TN2020
459
460config VITESSE_PHY
461	tristate "Vitesse PHYs"
462	---help---
463	  Currently supports the vsc8244
464
465config XILINX_GMII2RGMII
466	tristate "Xilinx GMII2RGMII converter driver"
467	---help---
468	  This driver support xilinx GMII to RGMII IP core it provides
469	  the Reduced Gigabit Media Independent Interface(RGMII) between
470	  Ethernet physical media devices and the Gigabit Ethernet controller.
471
472endif # PHYLIB
473
474config MICREL_KS8995MA
475	tristate "Micrel KS8995MA 5-ports 10/100 managed Ethernet switch"
476	depends on SPI
477