Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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_MOXART
161 tristate "MOXA ART MDIO interface support"
162 depends on ARCH_MOXART || COMPILE_TEST
163 help
164 This driver supports the MDIO interface found in the network
165 interface units of the MOXA ART SoC
166
167config MDIO_MSCC_MIIM
168 tristate "Microsemi MIIM interface support"
169 depends on HAS_IOMEM
170 help
171 This driver supports the MIIM (MDIO) interface found in the network
172 switches of the Microsemi SoCs
173
174config MDIO_OCTEON
175 tristate "Octeon and some ThunderX SOCs MDIO buses"
176 depends on (64BIT && OF_MDIO) || COMPILE_TEST
177 depends on HAS_IOMEM
178 select MDIO_CAVIUM
179 help
180 This module provides a driver for the Octeon and ThunderX MDIO
181 buses. It is required by the Octeon and ThunderX ethernet device
182 drivers on some systems.
183
184config MDIO_SUN4I
185 tristate "Allwinner sun4i MDIO interface support"
186 depends on ARCH_SUNXI || COMPILE_TEST
187 help
188 This driver supports the MDIO interface found in the network
189 interface units of the Allwinner SoC that have an EMAC (A10,
190 A12, A10s, etc.)
191
192config MDIO_THUNDER
193 tristate "ThunderX SOCs MDIO buses"
194 depends on 64BIT
195 depends on PCI
196 select MDIO_CAVIUM
197 help
198 This driver supports the MDIO interfaces found on Cavium
199 ThunderX SoCs when the MDIO bus device appears as a PCI
200 device.
201
202config MDIO_XGENE
203 tristate "APM X-Gene SoC MDIO bus controller"
204 depends on ARCH_XGENE || COMPILE_TEST
205 help
206 This module provides a driver for the MDIO busses found in the
207 APM X-Gene SoC's.
208
209endif
210endif
211
212config PHYLINK
213 tristate
214 depends on NETDEVICES
215 select PHYLIB
216 select SWPHY
217 help
218 PHYlink models the link between the PHY and MAC, allowing fixed
219 configuration links, PHYs, and Serdes links with MAC level
220 autonegotiation modes.
221
222menuconfig PHYLIB
223 tristate "PHY Device support and infrastructure"
224 depends on NETDEVICES
225 select MDIO_DEVICE
226 help
227 Ethernet controllers are usually attached to PHY
228 devices. This option provides infrastructure for
229 managing PHY devices.
230
231if PHYLIB
232
233config SWPHY
234 bool
235
236config LED_TRIGGER_PHY
237 bool "Support LED triggers for tracking link state"
238 depends on LEDS_TRIGGERS
239 ---help---
240 Adds support for a set of LED trigger events per-PHY. Link
241 state change will trigger the events, for consumption by an
242 LED class driver. There are triggers for each link speed currently
243 supported by the PHY and also a one common "link" trigger as a
244 logical-or of all the link speed ones.
245 All these triggers are named according to the following pattern:
246 <mii bus id>:<phy>:<speed>
247
248 Where speed is in the form:
249 <Speed in megabits>Mbps OR <Speed in gigabits>Gbps OR link
250 for any speed known to the PHY.
251
252
253comment "MII PHY device drivers"
254
255config SFP
256 tristate "SFP cage support"
257 depends on I2C && PHYLINK
258 depends on HWMON || HWMON=n
259 select MDIO_I2C
260
261config ADIN_PHY
262 tristate "Analog Devices Industrial Ethernet PHYs"
263 help
264 Adds support for the Analog Devices Industrial Ethernet PHYs.
265 Currently supports the:
266 - ADIN1200 - Robust,Industrial, Low Power 10/100 Ethernet PHY
267 - ADIN1300 - Robust,Industrial, Low Latency 10/100/1000 Gigabit
268 Ethernet PHY
269
270config AMD_PHY
271 tristate "AMD PHYs"
272 ---help---
273 Currently supports the am79c874
274
275config AQUANTIA_PHY
276 tristate "Aquantia PHYs"
277 ---help---
278 Currently supports the Aquantia AQ1202, AQ2104, AQR105, AQR405
279
280config AX88796B_PHY
281 tristate "Asix PHYs"
282 help
283 Currently supports the Asix Electronics PHY found in the X-Surf 100
284 AX88796B package.
285
286config BCM63XX_PHY
287 tristate "Broadcom 63xx SOCs internal PHY"
288 depends on BCM63XX || COMPILE_TEST
289 select BCM_NET_PHYLIB
290 ---help---
291 Currently supports the 6348 and 6358 PHYs.
292
293config BCM7XXX_PHY
294 tristate "Broadcom 7xxx SOCs internal PHYs"
295 select BCM_NET_PHYLIB
296 ---help---
297 Currently supports the BCM7366, BCM7439, BCM7445, and
298 40nm and 65nm generation of BCM7xxx Set Top Box SoCs.
299
300config BCM87XX_PHY
301 tristate "Broadcom BCM8706 and BCM8727 PHYs"
302 help
303 Currently supports the BCM8706 and BCM8727 10G Ethernet PHYs.
304
305config BCM_CYGNUS_PHY
306 tristate "Broadcom Cygnus/Omega SoC internal PHY"
307 depends on ARCH_BCM_IPROC || COMPILE_TEST
308 depends on MDIO_BCM_IPROC
309 select BCM_NET_PHYLIB
310 ---help---
311 This PHY driver is for the 1G internal PHYs of the Broadcom
312 Cygnus and Omega Family SoC.
313
314 Currently supports internal PHY's used in the BCM11300,
315 BCM11320, BCM11350, BCM11360, BCM58300, BCM58302,
316 BCM58303 & BCM58305 Broadcom Cygnus SoCs.
317
318config BCM_NET_PHYLIB
319 tristate
320
321config BROADCOM_PHY
322 tristate "Broadcom PHYs"
323 select BCM_NET_PHYLIB
324 ---help---
325 Currently supports the BCM5411, BCM5421, BCM5461, BCM54616S, BCM5464,
326 BCM5481, BCM54810 and BCM5482 PHYs.
327
328config BCM84881_PHY
329 bool "Broadcom BCM84881 PHY"
330 depends on PHYLIB=y
331 ---help---
332 Support the Broadcom BCM84881 PHY.
333
334config CICADA_PHY
335 tristate "Cicada PHYs"
336 ---help---
337 Currently supports the cis8204
338
339config CORTINA_PHY
340 tristate "Cortina EDC CDR 10G Ethernet PHY"
341 ---help---
342 Currently supports the CS4340 phy.
343
344config DAVICOM_PHY
345 tristate "Davicom PHYs"
346 ---help---
347 Currently supports dm9161e and dm9131
348
349config DP83822_PHY
350 tristate "Texas Instruments DP83822/825/826 PHYs"
351 ---help---
352 Supports the DP83822, DP83825I, DP83825CM, DP83825CS, DP83825S,
353 DP83826C and DP83826NC PHYs.
354
355config DP83TC811_PHY
356 tristate "Texas Instruments DP83TC811 PHY"
357 ---help---
358 Supports the DP83TC811 PHY.
359
360config DP83848_PHY
361 tristate "Texas Instruments DP83848 PHY"
362 ---help---
363 Supports the DP83848 PHY.
364
365config DP83867_PHY
366 tristate "Texas Instruments DP83867 Gigabit PHY"
367 ---help---
368 Currently supports the DP83867 PHY.
369
370config DP83869_PHY
371 tristate "Texas Instruments DP83869 Gigabit PHY"
372 ---help---
373 Currently supports the DP83869 PHY. This PHY supports copper and
374 fiber connections.
375
376config FIXED_PHY
377 tristate "MDIO Bus/PHY emulation with fixed speed/link PHYs"
378 depends on PHYLIB
379 select SWPHY
380 ---help---
381 Adds the platform "fixed" MDIO Bus to cover the boards that use
382 PHYs that are not connected to the real MDIO bus.
383
384 Currently tested with mpc866ads and mpc8349e-mitx.
385
386config ICPLUS_PHY
387 tristate "ICPlus PHYs"
388 ---help---
389 Currently supports the IP175C and IP1001 PHYs.
390
391config INTEL_XWAY_PHY
392 tristate "Intel XWAY PHYs"
393 ---help---
394 Supports the Intel XWAY (former Lantiq) 11G and 22E PHYs.
395 These PHYs are marked as standalone chips under the names
396 PEF 7061, PEF 7071 and PEF 7072 or integrated into the Intel
397 SoCs xRX200, xRX300, xRX330, xRX350 and xRX550.
398
399config LSI_ET1011C_PHY
400 tristate "LSI ET1011C PHY"
401 ---help---
402 Supports the LSI ET1011C PHY.
403
404config LXT_PHY
405 tristate "Intel LXT PHYs"
406 ---help---
407 Currently supports the lxt970, lxt971
408
409config MARVELL_PHY
410 tristate "Marvell PHYs"
411 ---help---
412 Currently has a driver for the 88E1011S
413
414config MARVELL_10G_PHY
415 tristate "Marvell Alaska 10Gbit PHYs"
416 ---help---
417 Support for the Marvell Alaska MV88X3310 and compatible PHYs.
418
419config MESON_GXL_PHY
420 tristate "Amlogic Meson GXL Internal PHY"
421 depends on ARCH_MESON || COMPILE_TEST
422 ---help---
423 Currently has a driver for the Amlogic Meson GXL Internal PHY
424
425config MICREL_PHY
426 tristate "Micrel PHYs"
427 ---help---
428 Supports the KSZ9021, VSC8201, KS8001 PHYs.
429
430config MICROCHIP_PHY
431 tristate "Microchip PHYs"
432 help
433 Supports the LAN88XX PHYs.
434
435config MICROCHIP_T1_PHY
436 tristate "Microchip T1 PHYs"
437 ---help---
438 Supports the LAN87XX PHYs.
439
440config MICROSEMI_PHY
441 tristate "Microsemi PHYs"
442 depends on MACSEC || MACSEC=n
443 select CRYPTO_AES
444 select CRYPTO_ECB
445 ---help---
446 Currently supports VSC8514, VSC8530, VSC8531, VSC8540 and VSC8541 PHYs
447
448config NATIONAL_PHY
449 tristate "National Semiconductor PHYs"
450 ---help---
451 Currently supports the DP83865 PHY.
452
453config NXP_TJA11XX_PHY
454 tristate "NXP TJA11xx PHYs support"
455 depends on HWMON
456 ---help---
457 Currently supports the NXP TJA1100 and TJA1101 PHY.
458
459config AT803X_PHY
460 tristate "Qualcomm Atheros AR803X PHYs"
461 depends on REGULATOR
462 help
463 Currently supports the AR8030, AR8031, AR8033 and AR8035 model
464
465config QSEMI_PHY
466 tristate "Quality Semiconductor PHYs"
467 ---help---
468 Currently supports the qs6612
469
470config REALTEK_PHY
471 tristate "Realtek PHYs"
472 ---help---
473 Supports the Realtek 821x PHY.
474
475config RENESAS_PHY
476 tristate "Driver for Renesas PHYs"
477 ---help---
478 Supports the Renesas PHYs uPD60620 and uPD60620A.
479
480config ROCKCHIP_PHY
481 tristate "Driver for Rockchip Ethernet PHYs"
482 ---help---
483 Currently supports the integrated Ethernet PHY.
484
485config SMSC_PHY
486 tristate "SMSC PHYs"
487 ---help---
488 Currently supports the LAN83C185, LAN8187 and LAN8700 PHYs
489
490config STE10XP
491 tristate "STMicroelectronics STe10Xp PHYs"
492 ---help---
493 This is the driver for the STe100p and STe101p PHYs.
494
495config TERANETICS_PHY
496 tristate "Teranetics PHYs"
497 ---help---
498 Currently supports the Teranetics TN2020
499
500config VITESSE_PHY
501 tristate "Vitesse PHYs"
502 ---help---
503 Currently supports the vsc8244
504
505config XILINX_GMII2RGMII
506 tristate "Xilinx GMII2RGMII converter driver"
507 ---help---
508 This driver support xilinx GMII to RGMII IP core it provides
509 the Reduced Gigabit Media Independent Interface(RGMII) between
510 Ethernet physical media devices and the Gigabit Ethernet controller.
511
512endif # PHYLIB
513
514config MICREL_KS8995MA
515 tristate "Micrel KS8995MA 5-ports 10/100 managed Ethernet switch"
516 depends on SPI