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