Kconfig 13.9 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0-only
2 3 4 5
#
# PHY Layer Configuration
#

6 7
menuconfig MDIO_DEVICE
	tristate "MDIO bus device drivers"
8
	help
9
	  MDIO devices and driver infrastructure code.
10

11 12
if MDIO_DEVICE

13 14
config MDIO_BUS
	tristate
15
	default m if PHYLIB=m
16 17 18 19 20 21 22
	default MDIO_DEVICE
	help
	  This internal symbol is used for link time dependencies and it
	  reflects whether the mdio_bus/mdio_device code is built as a
	  loadable module or built-in.

if MDIO_BUS
23

A
Andrew Jeffery 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36
config MDIO_ASPEED
	tristate "ASPEED MDIO bus controller"
	depends on ARCH_ASPEED || COMPILE_TEST
	depends on OF_MDIO && HAS_IOMEM
	help
	  This module provides a driver for the independent MDIO bus
	  controllers found in the ASPEED AST2600 SoC. This is a driver for the
	  third revision of the ASPEED MDIO register interface - the first two
	  revisions are the "old" and "new" interfaces found in the AST2400 and
	  AST2500, embedded in the MAC. For legacy reasons, FTGMAC100 driver
	  continues to drive the embedded MDIO controller for the AST2400 and
	  AST2500 SoCs, so say N if AST2600 support is not required.

37 38 39 40 41 42 43
config MDIO_BCM_IPROC
	tristate "Broadcom iProc MDIO bus controller"
	depends on ARCH_BCM_IPROC || COMPILE_TEST
	depends on HAS_IOMEM && OF_MDIO
	help
	  This module provides a driver for the MDIO busses found in the
	  Broadcom iProc SoC's.
M
Matus Ujhelyi 已提交
44

45 46
config MDIO_BCM_UNIMAC
	tristate "Broadcom UniMAC MDIO bus controller"
47
	depends on HAS_IOMEM
48 49 50 51 52
	help
	  This module provides a driver for the Broadcom UniMAC MDIO busses.
	  This hardware can be found in the Broadcom GENET Ethernet MAC
	  controllers as well as some Broadcom Ethernet switches such as the
	  Starfighter 2 switches.
H
Heiko Schocher 已提交
53

54
config MDIO_BITBANG
55
	tristate "Bitbanged MDIO buses"
56 57 58 59
	help
	  This module implements the MDIO bus protocol in software,
	  for use by low level drivers that export the ability to
	  drive the relevant pins.
60

61
	  If in doubt, say N.
62

63 64 65 66 67 68 69 70
config MDIO_BUS_MUX
	tristate
	depends on OF_MDIO
	help
	  This module provides a driver framework for MDIO bus
	  multiplexers which connect one of several child MDIO busses
	  to a parent bus.  Switching between child busses is done by
	  device specific drivers.
71

72
config MDIO_BUS_MUX_BCM_IPROC
73
	tristate "Broadcom iProc based MDIO bus multiplexers"
74 75 76 77 78 79 80 81
	depends on OF && OF_MDIO && (ARCH_BCM_IPROC || COMPILE_TEST)
	select MDIO_BUS_MUX
	default ARCH_BCM_IPROC
	help
	  This module provides a driver for MDIO bus multiplexers found in
	  iProc based Broadcom SoCs. This multiplexer connects one of several
	  child MDIO bus to a parent bus. Buses could be internal as well as
	  external and selection logic lies inside the same multiplexer.
J
Jan Engelhardt 已提交
82

83
config MDIO_BUS_MUX_GPIO
84
	tristate "GPIO controlled MDIO bus multiplexers"
85 86 87 88 89 90 91
	depends on OF_GPIO && OF_MDIO
	select MDIO_BUS_MUX
	help
	  This module provides a driver for MDIO bus multiplexers that
	  are controlled via GPIO lines.  The multiplexer connects one of
	  several child MDIO busses to a parent bus.  Child bus
	  selection is under the control of GPIO lines.
92

93 94 95 96 97 98 99 100 101 102 103
config MDIO_BUS_MUX_MESON_G12A
	tristate "Amlogic G12a based MDIO bus multiplexer"
	depends on ARCH_MESON || COMPILE_TEST
	depends on OF_MDIO && HAS_IOMEM && COMMON_CLK
	select MDIO_BUS_MUX
	default m if ARCH_MESON
	help
	  This module provides a driver for the MDIO multiplexer/glue of
	  the amlogic g12a SoC. The multiplexers connects either the external
	  or the internal MDIO bus to the parent bus.

104
config MDIO_BUS_MUX_MMIOREG
105
	tristate "MMIO device-controlled MDIO bus multiplexers"
106 107 108 109 110 111 112 113
	depends on OF_MDIO && HAS_IOMEM
	select MDIO_BUS_MUX
	help
	  This module provides a driver for MDIO bus multiplexers that
	  are controlled via a simple memory-mapped device, like an FPGA.
	  The multiplexer connects one of several child MDIO busses to a
	  parent bus.  Child bus selection is under the control of one of
	  the FPGA's registers.
114

115
	  Currently, only 8/16/32 bits registers are supported.
116

117 118
config MDIO_BUS_MUX_MULTIPLEXER
	tristate "MDIO bus multiplexer using kernel multiplexer subsystem"
119
	depends on OF_MDIO
120 121 122 123 124 125 126 127 128
	select MULTIPLEXER
	select MDIO_BUS_MUX
	help
	  This module provides a driver for MDIO bus multiplexer
	  that is controlled via the kernel multiplexer subsystem. The
	  bus multiplexer connects one of several child MDIO busses to
	  a parent bus.  Child bus selection is under the control of
	  the kernel multiplexer subsystem.

129
config MDIO_CAVIUM
130 131
	tristate

132
config MDIO_GPIO
133
	tristate "GPIO lib-based bitbanged MDIO buses"
134 135
	depends on MDIO_BITBANG
	depends on GPIOLIB || COMPILE_TEST
136
	---help---
137
	  Supports GPIO lib-based MDIO busses.
138

139 140 141 142 143 144 145 146 147 148
	  To compile this driver as a module, choose M here: the module
	  will be called mdio-gpio.

config MDIO_HISI_FEMAC
	tristate "Hisilicon FEMAC MDIO bus controller"
	depends on HAS_IOMEM && OF_MDIO
	help
	  This module provides a driver for the MDIO busses found in the
	  Hisilicon SoC that have an Fast Ethernet MAC.

R
Russell King 已提交
149 150 151 152 153 154 155 156 157 158
config MDIO_I2C
	tristate
	depends on I2C
	help
	  Support I2C based PHYs.  This provides a MDIO bus bridged
	  to I2C to allow PHYs connected in I2C mode to be accessed
	  using the existing infrastructure.

	  This is library mode.

159
config MDIO_MOXART
160
	tristate "MOXA ART MDIO interface support"
161
	depends on ARCH_MOXART || COMPILE_TEST
162 163 164
	help
	  This driver supports the MDIO interface found in the network
	  interface units of the MOXA ART SoC
165

166 167 168 169 170 171 172
config MDIO_MSCC_MIIM
	tristate "Microsemi MIIM interface support"
	depends on HAS_IOMEM
	help
	  This driver supports the MIIM (MDIO) interface found in the network
	  switches of the Microsemi SoCs

173
config MDIO_OCTEON
174
	tristate "Octeon and some ThunderX SOCs MDIO buses"
175 176
	depends on (64BIT && OF_MDIO) || COMPILE_TEST
	depends on HAS_IOMEM
177 178 179 180 181 182 183 184
	select MDIO_CAVIUM
	help
	  This module provides a driver for the Octeon and ThunderX MDIO
	  buses. It is required by the Octeon and ThunderX ethernet device
	  drivers on some systems.

config MDIO_SUN4I
	tristate "Allwinner sun4i MDIO interface support"
185
	depends on ARCH_SUNXI || COMPILE_TEST
186 187 188 189 190 191
	help
	  This driver supports the MDIO interface found in the network
	  interface units of the Allwinner SoC that have an EMAC (A10,
	  A12, A10s, etc.)

config MDIO_THUNDER
192
	tristate "ThunderX SOCs MDIO buses"
193 194 195 196 197 198 199 200 201 202
	depends on 64BIT
	depends on PCI
	select MDIO_CAVIUM
	help
	  This driver supports the MDIO interfaces found on Cavium
	  ThunderX SoCs when the MDIO bus device appears as a PCI
	  device.

config MDIO_XGENE
	tristate "APM X-Gene SoC MDIO bus controller"
203
	depends on ARCH_XGENE || COMPILE_TEST
204 205 206 207
	help
	  This module provides a driver for the MDIO busses found in the
	  APM X-Gene SoC's.

208
endif
209
endif
210

211 212 213 214 215 216 217 218 219 220
config PHYLINK
	tristate
	depends on NETDEVICES
	select PHYLIB
	select SWPHY
	help
	  PHYlink models the link between the PHY and MAC, allowing fixed
	  configuration links, PHYs, and Serdes links with MAC level
	  autonegotiation modes.

221
menuconfig PHYLIB
222
	tristate "PHY Device support and infrastructure"
223 224 225 226 227 228 229
	depends on NETDEVICES
	select MDIO_DEVICE
	help
	  Ethernet controllers are usually attached to PHY
	  devices.  This option provides infrastructure for
	  managing PHY devices.

230 231 232 233 234 235 236 237 238 239 240 241
if PHYLIB

config SWPHY
	bool

config LED_TRIGGER_PHY
	bool "Support LED triggers for tracking link state"
	depends on LEDS_TRIGGERS
	---help---
	  Adds support for a set of LED trigger events per-PHY.  Link
	  state change will trigger the events, for consumption by an
	  LED class driver.  There are triggers for each link speed currently
242 243 244
	  supported by the PHY and also a one common "link" trigger as a
	  logical-or of all the link speed ones.
	  All these triggers are named according to the following pattern:
245
	      <mii bus id>:<phy>:<speed>
246 247

	  Where speed is in the form:
248 249
		<Speed in megabits>Mbps OR <Speed in gigabits>Gbps OR link
		for any speed known to the PHY.
250 251


252 253
comment "MII PHY device drivers"

R
Russell King 已提交
254 255 256
config SFP
	tristate "SFP cage support"
	depends on I2C && PHYLINK
257
	depends on HWMON || HWMON=n
R
Russell King 已提交
258 259
	select MDIO_I2C

260 261 262 263 264 265 266 267 268
config ADIN_PHY
	tristate "Analog Devices Industrial Ethernet PHYs"
	help
	  Adds support for the Analog Devices Industrial Ethernet PHYs.
	  Currently supports the:
	  - ADIN1200 - Robust,Industrial, Low Power 10/100 Ethernet PHY
	  - ADIN1300 - Robust,Industrial, Low Latency 10/100/1000 Gigabit
	    Ethernet PHY

269
config AMD_PHY
270
	tristate "AMD PHYs"
271
	---help---
272
	  Currently supports the am79c874
273

274
config AQUANTIA_PHY
275 276 277
	tristate "Aquantia PHYs"
	---help---
	  Currently supports the Aquantia AQ1202, AQ2104, AQR105, AQR405
278

279
config AX88796B_PHY
280 281 282 283 284
	tristate "Asix PHYs"
	help
	  Currently supports the Asix Electronics PHY found in the X-Surf 100
	  AX88796B package.

285
config BCM63XX_PHY
286
	tristate "Broadcom 63xx SOCs internal PHY"
287
	depends on BCM63XX || COMPILE_TEST
288
	select BCM_NET_PHYLIB
289 290 291
	---help---
	  Currently supports the 6348 and 6358 PHYs.

292
config BCM7XXX_PHY
293
	tristate "Broadcom 7xxx SOCs internal PHYs"
294
	select BCM_NET_PHYLIB
295 296 297 298
	---help---
	  Currently supports the BCM7366, BCM7439, BCM7445, and
	  40nm and 65nm generation of BCM7xxx Set Top Box SoCs.

299
config BCM87XX_PHY
300
	tristate "Broadcom BCM8706 and BCM8727 PHYs"
301 302 303
	help
	  Currently supports the BCM8706 and BCM8727 10G Ethernet PHYs.

304
config BCM_CYGNUS_PHY
305
	tristate "Broadcom Cygnus/Omega SoC internal PHY"
306
	depends on ARCH_BCM_IPROC || COMPILE_TEST
307 308
	depends on MDIO_BCM_IPROC
	select BCM_NET_PHYLIB
309
	---help---
310
	  This PHY driver is for the 1G internal PHYs of the Broadcom
311
	  Cygnus and Omega Family SoC.
312

313 314 315
	  Currently supports internal PHY's used in the BCM11300,
	  BCM11320, BCM11350, BCM11360, BCM58300, BCM58302,
	  BCM58303 & BCM58305 Broadcom Cygnus SoCs.
316

317 318
config BCM_NET_PHYLIB
	tristate
G
Giuseppe Cavallaro 已提交
319

320
config BROADCOM_PHY
321
	tristate "Broadcom PHYs"
322
	select BCM_NET_PHYLIB
G
Giuseppe Cavallaro 已提交
323
	---help---
324
	  Currently supports the BCM5411, BCM5421, BCM5461, BCM54616S, BCM5464,
325
	  BCM5481, BCM54810 and BCM5482 PHYs.
G
Giuseppe Cavallaro 已提交
326

327 328 329 330 331 332
config BCM84881_PHY
	bool "Broadcom BCM84881 PHY"
	depends on PHYLIB=y
	---help---
	  Support the Broadcom BCM84881 PHY.

333
config CICADA_PHY
334
	tristate "Cicada PHYs"
C
Chaithrika U S 已提交
335
	---help---
336
	  Currently supports the cis8204
C
Chaithrika U S 已提交
337

338 339 340 341 342
config CORTINA_PHY
	tristate "Cortina EDC CDR 10G Ethernet PHY"
	---help---
	  Currently supports the CS4340 phy.

343
config DAVICOM_PHY
344
	tristate "Davicom PHYs"
345
	---help---
346
	  Currently supports dm9161e and dm9131
347

348 349 350 351 352
config DP83822_PHY
	tristate "Texas Instruments DP83822 PHY"
	---help---
	  Supports the DP83822 PHY.

353 354 355 356 357
config DP83TC811_PHY
	tristate "Texas Instruments DP83TC822 PHY"
	---help---
	  Supports the DP83TC822 PHY.

358
config DP83848_PHY
359
	tristate "Texas Instruments DP83848 PHY"
360 361 362
	---help---
	  Supports the DP83848 PHY.

363
config DP83867_PHY
364
	tristate "Texas Instruments DP83867 Gigabit PHY"
365 366 367
	---help---
	  Currently supports the DP83867 PHY.

D
Dan Murphy 已提交
368 369 370 371 372 373
config DP83869_PHY
	tristate "Texas Instruments DP83869 Gigabit PHY"
	---help---
	  Currently supports the DP83869 PHY.  This PHY supports copper and
	  fiber connections.

374
config FIXED_PHY
375
	tristate "MDIO Bus/PHY emulation with fixed speed/link PHYs"
376
	depends on PHYLIB
377
	select SWPHY
378
	---help---
379 380 381 382
	  Adds the platform "fixed" MDIO Bus to cover the boards that use
	  PHYs that are not connected to the real MDIO bus.

	  Currently tested with mpc866ads and mpc8349e-mitx.
383

384
config ICPLUS_PHY
385
	tristate "ICPlus PHYs"
386
	---help---
387
	  Currently supports the IP175C and IP1001 PHYs.
388

389
config INTEL_XWAY_PHY
390
	tristate "Intel XWAY PHYs"
391 392 393 394 395 396
	---help---
	  Supports the Intel XWAY (former Lantiq) 11G and 22E PHYs.
	  These PHYs are marked as standalone chips under the names
	  PEF 7061, PEF 7071 and PEF 7072 or integrated into the Intel
	  SoCs xRX200, xRX300, xRX330, xRX350 and xRX550.

397
config LSI_ET1011C_PHY
398
	tristate "LSI ET1011C PHY"
399 400
	---help---
	  Supports the LSI ET1011C PHY.
401

402
config LXT_PHY
403
	tristate "Intel LXT PHYs"
404 405 406 407
	---help---
	  Currently supports the lxt970, lxt971

config MARVELL_PHY
408
	tristate "Marvell PHYs"
409 410 411
	---help---
	  Currently has a driver for the 88E1011S

412 413 414 415 416
config MARVELL_10G_PHY
	tristate "Marvell Alaska 10Gbit PHYs"
	---help---
	  Support for the Marvell Alaska MV88X3310 and compatible PHYs.

417 418
config MESON_GXL_PHY
	tristate "Amlogic Meson GXL Internal PHY"
419
	depends on ARCH_MESON || COMPILE_TEST
420 421 422
	---help---
	  Currently has a driver for the Amlogic Meson GXL Internal PHY

423
config MICREL_PHY
424
	tristate "Micrel PHYs"
425 426 427 428
	---help---
	  Supports the KSZ9021, VSC8201, KS8001 PHYs.

config MICROCHIP_PHY
429
	tristate "Microchip PHYs"
430
	help
431
	  Supports the LAN88XX PHYs.
432

433 434 435 436 437
config MICROCHIP_T1_PHY
	tristate "Microchip T1 PHYs"
	---help---
	  Supports the LAN87XX PHYs.

438
config MICROSEMI_PHY
439 440
	tristate "Microsemi PHYs"
	---help---
441
	  Currently supports VSC8514, VSC8530, VSC8531, VSC8540 and VSC8541 PHYs
442

443
config NATIONAL_PHY
444
	tristate "National Semiconductor PHYs"
445 446 447
	---help---
	  Currently supports the DP83865 PHY.

448 449 450 451 452 453
config NXP_TJA11XX_PHY
	tristate "NXP TJA11xx PHYs support"
	depends on HWMON
	---help---
	  Currently supports the NXP TJA1100 and TJA1101 PHY.

454 455
config AT803X_PHY
	tristate "Qualcomm Atheros AR803X PHYs"
456
	depends on REGULATOR
457
	help
458
	  Currently supports the AR8030, AR8031, AR8033 and AR8035 model
459

460
config QSEMI_PHY
461
	tristate "Quality Semiconductor PHYs"
462 463 464 465
	---help---
	  Currently supports the qs6612

config REALTEK_PHY
466
	tristate "Realtek PHYs"
467 468 469
	---help---
	  Supports the Realtek 821x PHY.

470 471 472 473 474
config RENESAS_PHY
	tristate "Driver for Renesas PHYs"
	---help---
	  Supports the Renesas PHYs uPD60620 and uPD60620A.

475
config ROCKCHIP_PHY
476 477 478
	tristate "Driver for Rockchip Ethernet PHYs"
	---help---
	  Currently supports the integrated Ethernet PHY.
479

480
config SMSC_PHY
481
	tristate "SMSC PHYs"
482 483 484 485
	---help---
	  Currently supports the LAN83C185, LAN8187 and LAN8700 PHYs

config STE10XP
486
	tristate "STMicroelectronics STe10Xp PHYs"
487 488 489 490
	---help---
	  This is the driver for the STe100p and STe101p PHYs.

config TERANETICS_PHY
491 492 493
	tristate "Teranetics PHYs"
	---help---
	  Currently supports the Teranetics TN2020
494 495

config VITESSE_PHY
496 497 498
	tristate "Vitesse PHYs"
	---help---
	  Currently supports the vsc8244
499

500
config XILINX_GMII2RGMII
501 502 503 504 505
	tristate "Xilinx GMII2RGMII converter driver"
	---help---
	  This driver support xilinx GMII to RGMII IP core it provides
	  the Reduced Gigabit Media Independent Interface(RGMII) between
	  Ethernet physical media devices and the Gigabit Ethernet controller.
506

J
Jan Engelhardt 已提交
507
endif # PHYLIB
508 509 510 511

config MICREL_KS8995MA
	tristate "Micrel KS8995MA 5-ports 10/100 managed Ethernet switch"
	depends on SPI