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