xref: /linux/drivers/net/mdio/Kconfig (revision 5ea5880764cbb164afb17a62e76ca75dc371409d)
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_PIC64HPSC
149	tristate "PIC64-HPSC/HX MDIO interface support"
150	depends on HAS_IOMEM && OF_MDIO
151	help
152	  This driver supports the MDIO interface found on the PIC64-HPSC/HX
153	  SoCs.
154
155config MDIO_IPQ4019
156	tristate "Qualcomm IPQ4019 MDIO interface support"
157	depends on HAS_IOMEM && OF_MDIO
158	depends on COMMON_CLK
159	help
160	  This driver supports the MDIO interface found in Qualcomm
161	  IPQ40xx, IPQ60xx, IPQ807x and IPQ50xx series Soc-s.
162
163config MDIO_IPQ8064
164	tristate "Qualcomm IPQ8064 MDIO interface support"
165	depends on HAS_IOMEM && OF_MDIO
166	depends on MFD_SYSCON
167	help
168	  This driver supports the MDIO interface found in the network
169	  interface units of the IPQ8064 SoC
170
171config MDIO_REALTEK_RTL9300
172	tristate "Realtek RTL9300 MDIO interface support"
173	depends on MACH_REALTEK_RTL || COMPILE_TEST
174	help
175	  This driver supports the MDIO interface found in the Realtek
176	  RTL9300 family of Ethernet switches with integrated SoC.
177
178config MDIO_REGMAP
179	tristate
180	help
181	  This driver allows using MDIO devices that are not sitting on a
182	  regular MDIO bus, but still exposes the standard 802.3 register
183	  layout. It's regmap-based so that it can be used on integrated,
184	  memory-mapped PHYs, SPI PHYs and so on. A new virtual MDIO bus is
185	  created, and its read/write operations are mapped to the underlying
186	  regmap. Users willing to use this driver must explicitly select
187	  REGMAP.
188
189config MDIO_THUNDER
190	tristate "ThunderX SOCs MDIO buses"
191	depends on 64BIT
192	depends on PCI
193	select MDIO_CAVIUM
194	help
195	  This driver supports the MDIO interfaces found on Cavium
196	  ThunderX SoCs when the MDIO bus device appears as a PCI
197	  device.
198
199comment "MDIO Multiplexers"
200
201config MDIO_BUS_MUX
202	tristate
203	depends on OF_MDIO
204	help
205	  This module provides a driver framework for MDIO bus
206	  multiplexers which connect one of several child MDIO busses
207	  to a parent bus.  Switching between child busses is done by
208	  device specific drivers.
209
210config MDIO_BUS_MUX_MESON_G12A
211	tristate "Amlogic G12a based MDIO bus multiplexer"
212	depends on ARCH_MESON || COMPILE_TEST
213	depends on OF_MDIO && HAS_IOMEM && COMMON_CLK
214	select MDIO_BUS_MUX
215	default m if ARCH_MESON
216	help
217	  This module provides a driver for the MDIO multiplexer/glue of
218	  the amlogic g12a SoC. The multiplexers connects either the external
219	  or the internal MDIO bus to the parent bus.
220
221config MDIO_BUS_MUX_MESON_GXL
222	tristate "Amlogic GXL based MDIO bus multiplexer"
223	depends on ARCH_MESON || COMPILE_TEST
224	depends on OF_MDIO && HAS_IOMEM && COMMON_CLK
225	select MDIO_BUS_MUX
226	default m if ARCH_MESON
227	help
228	  This module provides a driver for the MDIO multiplexer/glue of
229	  the amlogic GXL SoC. The multiplexer connects either the external
230	  or the internal MDIO bus to the parent bus.
231
232config MDIO_BUS_MUX_BCM6368
233	tristate "Broadcom BCM6368 MDIO bus multiplexers"
234	depends on OF && OF_MDIO && (BMIPS_GENERIC || COMPILE_TEST)
235	select MDIO_BUS_MUX
236	default BMIPS_GENERIC
237	help
238	  This module provides a driver for MDIO bus multiplexers found in
239	  BCM6368 based Broadcom SoCs. This multiplexer connects one of several
240	  child MDIO bus to a parent bus. Buses could be internal as well as
241	  external and selection logic lies inside the same multiplexer.
242
243config MDIO_BUS_MUX_BCM_IPROC
244	tristate "Broadcom iProc based MDIO bus multiplexers"
245	depends on OF && OF_MDIO && (ARCH_BCM_IPROC || COMPILE_TEST)
246	select MDIO_BUS_MUX
247	default ARCH_BCM_IPROC
248	help
249	  This module provides a driver for MDIO bus multiplexers found in
250	  iProc based Broadcom SoCs. This multiplexer connects one of several
251	  child MDIO bus to a parent bus. Buses could be internal as well as
252	  external and selection logic lies inside the same multiplexer.
253
254config MDIO_BUS_MUX_GPIO
255	tristate "GPIO controlled MDIO bus multiplexers"
256	depends on OF_GPIO && OF_MDIO
257	select MDIO_BUS_MUX
258	help
259	  This module provides a driver for MDIO bus multiplexers that
260	  are controlled via GPIO lines.  The multiplexer connects one of
261	  several child MDIO busses to a parent bus.  Child bus
262	  selection is under the control of GPIO lines.
263
264config MDIO_BUS_MUX_MULTIPLEXER
265	tristate "MDIO bus multiplexer using kernel multiplexer subsystem"
266	depends on OF_MDIO
267	select MULTIPLEXER
268	select MDIO_BUS_MUX
269	help
270	  This module provides a driver for MDIO bus multiplexer
271	  that is controlled via the kernel multiplexer subsystem. The
272	  bus multiplexer connects one of several child MDIO busses to
273	  a parent bus.  Child bus selection is under the control of
274	  the kernel multiplexer subsystem.
275
276config MDIO_BUS_MUX_MMIOREG
277	tristate "MMIO device-controlled MDIO bus multiplexers"
278	depends on OF_MDIO && HAS_IOMEM
279	select MDIO_BUS_MUX
280	help
281	  This module provides a driver for MDIO bus multiplexers that
282	  are controlled via a simple memory-mapped device, like an FPGA.
283	  The multiplexer connects one of several child MDIO busses to a
284	  parent bus.  Child bus selection is under the control of one of
285	  the FPGA's registers.
286
287	  Currently, only 8/16/32 bits registers are supported.
288
289
290endif
291