1# SPDX-License-Identifier: GPL-2.0-only 2# 3# MDIO Layer Configuration 4# 5 6if PHYLIB 7 8config FWNODE_MDIO 9 def_tristate (ACPI || OF) || COMPILE_TEST 10 help 11 FWNODE MDIO bus (Ethernet PHY) accessors 12 13config OF_MDIO 14 def_tristate OF 15 select FIXED_PHY 16 help 17 OpenFirmware MDIO bus (Ethernet PHY) accessors 18 19config ACPI_MDIO 20 def_tristate ACPI 21 help 22 ACPI MDIO bus (Ethernet PHY) accessors 23 24config MDIO_AIROHA 25 tristate "Airoha AN7583 MDIO bus controller" 26 depends on ARCH_AIROHA || COMPILE_TEST 27 help 28 This module provides a driver for the MDIO busses found in the 29 Airoha AN7583 SoC's. 30 31config MDIO_SUN4I 32 tristate "Allwinner sun4i MDIO interface support" 33 depends on ARCH_SUNXI || COMPILE_TEST 34 help 35 This driver supports the MDIO interface found in the network 36 interface units of the Allwinner SoC that have an EMAC (A10, 37 A12, A10s, etc.) 38 39config MDIO_XGENE 40 tristate "APM X-Gene SoC MDIO bus controller" 41 depends on ARCH_XGENE || COMPILE_TEST 42 help 43 This module provides a driver for the MDIO busses found in the 44 APM X-Gene SoC's. 45 46config MDIO_ASPEED 47 tristate "ASPEED MDIO bus controller" 48 depends on ARCH_ASPEED || COMPILE_TEST 49 depends on OF_MDIO && HAS_IOMEM 50 help 51 This module provides a driver for the independent MDIO bus 52 controllers found in the ASPEED AST2600 SoC. This is a driver for the 53 third revision of the ASPEED MDIO register interface - the first two 54 revisions are the "old" and "new" interfaces found in the AST2400 and 55 AST2500, embedded in the MAC. For legacy reasons, FTGMAC100 driver 56 continues to drive the embedded MDIO controller for the AST2400 and 57 AST2500 SoCs, so say N if AST2600 support is not required. 58 59config MDIO_BITBANG 60 tristate "Bitbanged MDIO buses" 61 help 62 This module implements the MDIO bus protocol in software, 63 for use by low level drivers that export the ability to 64 drive the relevant pins. 65 66 If in doubt, say N. 67 68config MDIO_BCM_IPROC 69 tristate "Broadcom iProc MDIO bus controller" 70 depends on ARCH_BCM_IPROC || COMPILE_TEST 71 depends on HAS_IOMEM && OF_MDIO 72 default ARCH_BCM_IPROC 73 help 74 This module provides a driver for the MDIO busses found in the 75 Broadcom iProc SoC's. 76 77config MDIO_BCM_UNIMAC 78 tristate "Broadcom UniMAC MDIO bus controller" 79 depends on HAS_IOMEM 80 help 81 This module provides a driver for the Broadcom UniMAC MDIO busses. 82 This hardware can be found in the Broadcom GENET Ethernet MAC 83 controllers as well as some Broadcom Ethernet switches such as the 84 Starfighter 2 switches. 85 86config MDIO_CAVIUM 87 tristate 88 89config MDIO_GPIO 90 tristate "GPIO lib-based bitbanged MDIO buses" 91 depends on MDIO_BITBANG 92 depends on GPIOLIB || COMPILE_TEST 93 help 94 Supports GPIO lib-based MDIO busses. 95 96 To compile this driver as a module, choose M here: the module 97 will be called mdio-gpio. 98 99config MDIO_HISI_FEMAC 100 tristate "Hisilicon FEMAC MDIO bus controller" 101 depends on HAS_IOMEM && OF_MDIO 102 help 103 This module provides a driver for the MDIO busses found in the 104 Hisilicon SoC that have an Fast Ethernet MAC. 105 106config MDIO_I2C 107 tristate 108 depends on I2C 109 help 110 Support I2C based PHYs. This provides a MDIO bus bridged 111 to I2C to allow PHYs connected in I2C mode to be accessed 112 using the existing infrastructure. 113 114 This is library mode. 115 116config MDIO_MVUSB 117 tristate "Marvell USB to MDIO Adapter" 118 depends on USB 119 help 120 A USB to MDIO converter present on development boards for 121 Marvell's Link Street family of Ethernet switches. 122 123config MDIO_MSCC_MIIM 124 tristate "Microsemi MIIM interface support" 125 depends on HAS_IOMEM && REGMAP_MMIO 126 help 127 This driver supports the MIIM (MDIO) interface found in the network 128 switches of the Microsemi SoCs; it is recommended to switch on 129 CONFIG_HIGH_RES_TIMERS 130 131config MDIO_MOXART 132 tristate "MOXA ART MDIO interface support" 133 depends on ARCH_MOXART || COMPILE_TEST 134 help 135 This driver supports the MDIO interface found in the network 136 interface units of the MOXA ART SoC 137 138config MDIO_OCTEON 139 tristate "Octeon and some ThunderX SOCs MDIO buses" 140 depends on (64BIT && OF_MDIO) || COMPILE_TEST 141 depends on HAS_IOMEM 142 select MDIO_CAVIUM 143 help 144 This module provides a driver for the Octeon and ThunderX MDIO 145 buses. It is required by the Octeon and ThunderX ethernet device 146 drivers on some systems. 147 148config MDIO_IPQ4019 149 tristate "Qualcomm IPQ4019 MDIO interface support" 150 depends on HAS_IOMEM && OF_MDIO 151 depends on COMMON_CLK 152 help 153 This driver supports the MDIO interface found in Qualcomm 154 IPQ40xx, IPQ60xx, IPQ807x and IPQ50xx series Soc-s. 155 156config MDIO_IPQ8064 157 tristate "Qualcomm IPQ8064 MDIO interface support" 158 depends on HAS_IOMEM && OF_MDIO 159 depends on MFD_SYSCON 160 help 161 This driver supports the MDIO interface found in the network 162 interface units of the IPQ8064 SoC 163 164config MDIO_REALTEK_RTL9300 165 tristate "Realtek RTL9300 MDIO interface support" 166 depends on MACH_REALTEK_RTL || COMPILE_TEST 167 help 168 This driver supports the MDIO interface found in the Realtek 169 RTL9300 family of Ethernet switches with integrated SoC. 170 171config MDIO_REGMAP 172 tristate 173 help 174 This driver allows using MDIO devices that are not sitting on a 175 regular MDIO bus, but still exposes the standard 802.3 register 176 layout. It's regmap-based so that it can be used on integrated, 177 memory-mapped PHYs, SPI PHYs and so on. A new virtual MDIO bus is 178 created, and its read/write operations are mapped to the underlying 179 regmap. Users willing to use this driver must explicitly select 180 REGMAP. 181 182config MDIO_THUNDER 183 tristate "ThunderX SOCs MDIO buses" 184 depends on 64BIT 185 depends on PCI 186 select MDIO_CAVIUM 187 help 188 This driver supports the MDIO interfaces found on Cavium 189 ThunderX SoCs when the MDIO bus device appears as a PCI 190 device. 191 192comment "MDIO Multiplexers" 193 194config MDIO_BUS_MUX 195 tristate 196 depends on OF_MDIO 197 help 198 This module provides a driver framework for MDIO bus 199 multiplexers which connect one of several child MDIO busses 200 to a parent bus. Switching between child busses is done by 201 device specific drivers. 202 203config MDIO_BUS_MUX_MESON_G12A 204 tristate "Amlogic G12a based MDIO bus multiplexer" 205 depends on ARCH_MESON || COMPILE_TEST 206 depends on OF_MDIO && HAS_IOMEM && COMMON_CLK 207 select MDIO_BUS_MUX 208 default m if ARCH_MESON 209 help 210 This module provides a driver for the MDIO multiplexer/glue of 211 the amlogic g12a SoC. The multiplexers connects either the external 212 or the internal MDIO bus to the parent bus. 213 214config MDIO_BUS_MUX_MESON_GXL 215 tristate "Amlogic GXL based MDIO bus multiplexer" 216 depends on ARCH_MESON || COMPILE_TEST 217 depends on OF_MDIO && HAS_IOMEM && COMMON_CLK 218 select MDIO_BUS_MUX 219 default m if ARCH_MESON 220 help 221 This module provides a driver for the MDIO multiplexer/glue of 222 the amlogic GXL SoC. The multiplexer connects either the external 223 or the internal MDIO bus to the parent bus. 224 225config MDIO_BUS_MUX_BCM6368 226 tristate "Broadcom BCM6368 MDIO bus multiplexers" 227 depends on OF && OF_MDIO && (BMIPS_GENERIC || COMPILE_TEST) 228 select MDIO_BUS_MUX 229 default BMIPS_GENERIC 230 help 231 This module provides a driver for MDIO bus multiplexers found in 232 BCM6368 based Broadcom SoCs. This multiplexer connects one of several 233 child MDIO bus to a parent bus. Buses could be internal as well as 234 external and selection logic lies inside the same multiplexer. 235 236config MDIO_BUS_MUX_BCM_IPROC 237 tristate "Broadcom iProc based MDIO bus multiplexers" 238 depends on OF && OF_MDIO && (ARCH_BCM_IPROC || COMPILE_TEST) 239 select MDIO_BUS_MUX 240 default ARCH_BCM_IPROC 241 help 242 This module provides a driver for MDIO bus multiplexers found in 243 iProc based Broadcom SoCs. This multiplexer connects one of several 244 child MDIO bus to a parent bus. Buses could be internal as well as 245 external and selection logic lies inside the same multiplexer. 246 247config MDIO_BUS_MUX_GPIO 248 tristate "GPIO controlled MDIO bus multiplexers" 249 depends on OF_GPIO && OF_MDIO 250 select MDIO_BUS_MUX 251 help 252 This module provides a driver for MDIO bus multiplexers that 253 are controlled via GPIO lines. The multiplexer connects one of 254 several child MDIO busses to a parent bus. Child bus 255 selection is under the control of GPIO lines. 256 257config MDIO_BUS_MUX_MULTIPLEXER 258 tristate "MDIO bus multiplexer using kernel multiplexer subsystem" 259 depends on OF_MDIO 260 select MULTIPLEXER 261 select MDIO_BUS_MUX 262 help 263 This module provides a driver for MDIO bus multiplexer 264 that is controlled via the kernel multiplexer subsystem. The 265 bus multiplexer connects one of several child MDIO busses to 266 a parent bus. Child bus selection is under the control of 267 the kernel multiplexer subsystem. 268 269config MDIO_BUS_MUX_MMIOREG 270 tristate "MMIO device-controlled MDIO bus multiplexers" 271 depends on OF_MDIO && HAS_IOMEM 272 select MDIO_BUS_MUX 273 help 274 This module provides a driver for MDIO bus multiplexers that 275 are controlled via a simple memory-mapped device, like an FPGA. 276 The multiplexer connects one of several child MDIO busses to a 277 parent bus. Child bus selection is under the control of one of 278 the FPGA's registers. 279 280 Currently, only 8/16/32 bits registers are supported. 281 282 283endif 284