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