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