xref: /openbmc/linux/drivers/net/phy/Kconfig (revision 9fb29c73)
1#
2# PHY Layer Configuration
3#
4
5menuconfig MDIO_DEVICE
6	tristate "MDIO bus device drivers"
7	help
8	  MDIO devices and driver infrastructure code.
9
10config MDIO_BUS
11	tristate
12	default m if PHYLIB=m
13	default MDIO_DEVICE
14	help
15	  This internal symbol is used for link time dependencies and it
16	  reflects whether the mdio_bus/mdio_device code is built as a
17	  loadable module or built-in.
18
19if MDIO_BUS
20
21config MDIO_BCM_IPROC
22	tristate "Broadcom iProc MDIO bus controller"
23	depends on ARCH_BCM_IPROC || COMPILE_TEST
24	depends on HAS_IOMEM && OF_MDIO
25	help
26	  This module provides a driver for the MDIO busses found in the
27	  Broadcom iProc SoC's.
28
29config MDIO_BCM_UNIMAC
30	tristate "Broadcom UniMAC MDIO bus controller"
31	depends on HAS_IOMEM
32	help
33	  This module provides a driver for the Broadcom UniMAC MDIO busses.
34	  This hardware can be found in the Broadcom GENET Ethernet MAC
35	  controllers as well as some Broadcom Ethernet switches such as the
36	  Starfighter 2 switches.
37
38config MDIO_BITBANG
39	tristate "Bitbanged MDIO buses"
40	help
41	  This module implements the MDIO bus protocol in software,
42	  for use by low level drivers that export the ability to
43	  drive the relevant pins.
44
45	  If in doubt, say N.
46
47config MDIO_BUS_MUX
48	tristate
49	depends on OF_MDIO
50	help
51	  This module provides a driver framework for MDIO bus
52	  multiplexers which connect one of several child MDIO busses
53	  to a parent bus.  Switching between child busses is done by
54	  device specific drivers.
55
56config MDIO_BUS_MUX_BCM_IPROC
57	tristate "Broadcom iProc based MDIO bus multiplexers"
58	depends on OF && OF_MDIO && (ARCH_BCM_IPROC || COMPILE_TEST)
59	select MDIO_BUS_MUX
60	default ARCH_BCM_IPROC
61	help
62	  This module provides a driver for MDIO bus multiplexers found in
63	  iProc based Broadcom SoCs. This multiplexer connects one of several
64	  child MDIO bus to a parent bus. Buses could be internal as well as
65	  external and selection logic lies inside the same multiplexer.
66
67config MDIO_BUS_MUX_GPIO
68	tristate "GPIO controlled MDIO bus multiplexers"
69	depends on OF_GPIO && OF_MDIO
70	select MDIO_BUS_MUX
71	help
72	  This module provides a driver for MDIO bus multiplexers that
73	  are controlled via GPIO lines.  The multiplexer connects one of
74	  several child MDIO busses to a parent bus.  Child bus
75	  selection is under the control of GPIO lines.
76
77config MDIO_BUS_MUX_MMIOREG
78	tristate "MMIO device-controlled MDIO bus multiplexers"
79	depends on OF_MDIO && HAS_IOMEM
80	select MDIO_BUS_MUX
81	help
82	  This module provides a driver for MDIO bus multiplexers that
83	  are controlled via a simple memory-mapped device, like an FPGA.
84	  The multiplexer connects one of several child MDIO busses to a
85	  parent bus.  Child bus selection is under the control of one of
86	  the FPGA's registers.
87
88	  Currently, only 8/16/32 bits registers are supported.
89
90config MDIO_CAVIUM
91	tristate
92
93config MDIO_GPIO
94	tristate "GPIO lib-based bitbanged MDIO buses"
95	depends on MDIO_BITBANG
96	depends on GPIOLIB || COMPILE_TEST
97	---help---
98	  Supports GPIO lib-based MDIO busses.
99
100	  To compile this driver as a module, choose M here: the module
101	  will be called mdio-gpio.
102
103config MDIO_HISI_FEMAC
104	tristate "Hisilicon FEMAC MDIO bus controller"
105	depends on HAS_IOMEM && OF_MDIO
106	help
107	  This module provides a driver for the MDIO busses found in the
108	  Hisilicon SoC that have an Fast Ethernet MAC.
109
110config MDIO_I2C
111	tristate
112	depends on I2C
113	help
114	  Support I2C based PHYs.  This provides a MDIO bus bridged
115	  to I2C to allow PHYs connected in I2C mode to be accessed
116	  using the existing infrastructure.
117
118	  This is library mode.
119
120config MDIO_MOXART
121	tristate "MOXA ART MDIO interface support"
122	depends on ARCH_MOXART || COMPILE_TEST
123	help
124	  This driver supports the MDIO interface found in the network
125	  interface units of the MOXA ART SoC
126
127config MDIO_MSCC_MIIM
128	tristate "Microsemi MIIM interface support"
129	depends on HAS_IOMEM
130	help
131	  This driver supports the MIIM (MDIO) interface found in the network
132	  switches of the Microsemi SoCs
133
134config MDIO_OCTEON
135	tristate "Octeon and some ThunderX SOCs MDIO buses"
136	depends on 64BIT
137	depends on HAS_IOMEM && OF_MDIO
138	select MDIO_CAVIUM
139	help
140	  This module provides a driver for the Octeon and ThunderX MDIO
141	  buses. It is required by the Octeon and ThunderX ethernet device
142	  drivers on some systems.
143
144config MDIO_SUN4I
145	tristate "Allwinner sun4i MDIO interface support"
146	depends on ARCH_SUNXI || COMPILE_TEST
147	help
148	  This driver supports the MDIO interface found in the network
149	  interface units of the Allwinner SoC that have an EMAC (A10,
150	  A12, A10s, etc.)
151
152config MDIO_THUNDER
153	tristate "ThunderX SOCs MDIO buses"
154	depends on 64BIT
155	depends on PCI
156	select MDIO_CAVIUM
157	help
158	  This driver supports the MDIO interfaces found on Cavium
159	  ThunderX SoCs when the MDIO bus device appears as a PCI
160	  device.
161
162config MDIO_XGENE
163	tristate "APM X-Gene SoC MDIO bus controller"
164	depends on ARCH_XGENE || COMPILE_TEST
165	help
166	  This module provides a driver for the MDIO busses found in the
167	  APM X-Gene SoC's.
168
169endif
170
171config PHYLINK
172	tristate
173	depends on NETDEVICES
174	select PHYLIB
175	select SWPHY
176	help
177	  PHYlink models the link between the PHY and MAC, allowing fixed
178	  configuration links, PHYs, and Serdes links with MAC level
179	  autonegotiation modes.
180
181menuconfig PHYLIB
182	tristate "PHY Device support and infrastructure"
183	depends on NETDEVICES
184	select MDIO_DEVICE
185	help
186	  Ethernet controllers are usually attached to PHY
187	  devices.  This option provides infrastructure for
188	  managing PHY devices.
189
190if PHYLIB
191
192config SWPHY
193	bool
194
195config LED_TRIGGER_PHY
196	bool "Support LED triggers for tracking link state"
197	depends on LEDS_TRIGGERS
198	---help---
199	  Adds support for a set of LED trigger events per-PHY.  Link
200	  state change will trigger the events, for consumption by an
201	  LED class driver.  There are triggers for each link speed currently
202	  supported by the PHY and also a one common "link" trigger as a
203	  logical-or of all the link speed ones.
204	  All these triggers are named according to the following pattern:
205	      <mii bus id>:<phy>:<speed>
206
207	  Where speed is in the form:
208		<Speed in megabits>Mbps OR <Speed in gigabits>Gbps OR link
209		for any speed known to the PHY.
210
211
212comment "MII PHY device drivers"
213
214config SFP
215	tristate "SFP cage support"
216	depends on I2C && PHYLINK
217	depends on HWMON || HWMON=n
218	select MDIO_I2C
219
220config AMD_PHY
221	tristate "AMD PHYs"
222	---help---
223	  Currently supports the am79c874
224
225config AQUANTIA_PHY
226	tristate "Aquantia PHYs"
227	---help---
228	  Currently supports the Aquantia AQ1202, AQ2104, AQR105, AQR405
229
230config ASIX_PHY
231	tristate "Asix PHYs"
232	help
233	  Currently supports the Asix Electronics PHY found in the X-Surf 100
234	  AX88796B package.
235
236config AT803X_PHY
237	tristate "AT803X PHYs"
238	---help---
239	  Currently supports the AT8030 and AT8035 model
240
241config BCM63XX_PHY
242	tristate "Broadcom 63xx SOCs internal PHY"
243	depends on BCM63XX || COMPILE_TEST
244	select BCM_NET_PHYLIB
245	---help---
246	  Currently supports the 6348 and 6358 PHYs.
247
248config BCM7XXX_PHY
249	tristate "Broadcom 7xxx SOCs internal PHYs"
250	select BCM_NET_PHYLIB
251	---help---
252	  Currently supports the BCM7366, BCM7439, BCM7445, and
253	  40nm and 65nm generation of BCM7xxx Set Top Box SoCs.
254
255config BCM87XX_PHY
256	tristate "Broadcom BCM8706 and BCM8727 PHYs"
257	help
258	  Currently supports the BCM8706 and BCM8727 10G Ethernet PHYs.
259
260config BCM_CYGNUS_PHY
261	tristate "Broadcom Cygnus SoC internal PHY"
262	depends on ARCH_BCM_CYGNUS || COMPILE_TEST
263	depends on MDIO_BCM_IPROC
264	select BCM_NET_PHYLIB
265	---help---
266	  This PHY driver is for the 1G internal PHYs of the Broadcom
267	  Cygnus Family SoC.
268
269	  Currently supports internal PHY's used in the BCM11300,
270	  BCM11320, BCM11350, BCM11360, BCM58300, BCM58302,
271	  BCM58303 & BCM58305 Broadcom Cygnus SoCs.
272
273config BCM_NET_PHYLIB
274	tristate
275
276config BROADCOM_PHY
277	tristate "Broadcom PHYs"
278	select BCM_NET_PHYLIB
279	---help---
280	  Currently supports the BCM5411, BCM5421, BCM5461, BCM54616S, BCM5464,
281	  BCM5481, BCM54810 and BCM5482 PHYs.
282
283config CICADA_PHY
284	tristate "Cicada PHYs"
285	---help---
286	  Currently supports the cis8204
287
288config CORTINA_PHY
289	tristate "Cortina EDC CDR 10G Ethernet PHY"
290	---help---
291	  Currently supports the CS4340 phy.
292
293config DAVICOM_PHY
294	tristate "Davicom PHYs"
295	---help---
296	  Currently supports dm9161e and dm9131
297
298config DP83822_PHY
299	tristate "Texas Instruments DP83822 PHY"
300	---help---
301	  Supports the DP83822 PHY.
302
303config DP83TC811_PHY
304	tristate "Texas Instruments DP83TC822 PHY"
305	---help---
306	  Supports the DP83TC822 PHY.
307
308config DP83848_PHY
309	tristate "Texas Instruments DP83848 PHY"
310	---help---
311	  Supports the DP83848 PHY.
312
313config DP83867_PHY
314	tristate "Texas Instruments DP83867 Gigabit PHY"
315	---help---
316	  Currently supports the DP83867 PHY.
317
318config FIXED_PHY
319	tristate "MDIO Bus/PHY emulation with fixed speed/link PHYs"
320	depends on PHYLIB
321	select SWPHY
322	---help---
323	  Adds the platform "fixed" MDIO Bus to cover the boards that use
324	  PHYs that are not connected to the real MDIO bus.
325
326	  Currently tested with mpc866ads and mpc8349e-mitx.
327
328config ICPLUS_PHY
329	tristate "ICPlus PHYs"
330	---help---
331	  Currently supports the IP175C and IP1001 PHYs.
332
333config INTEL_XWAY_PHY
334	tristate "Intel XWAY PHYs"
335	---help---
336	  Supports the Intel XWAY (former Lantiq) 11G and 22E PHYs.
337	  These PHYs are marked as standalone chips under the names
338	  PEF 7061, PEF 7071 and PEF 7072 or integrated into the Intel
339	  SoCs xRX200, xRX300, xRX330, xRX350 and xRX550.
340
341config LSI_ET1011C_PHY
342	tristate "LSI ET1011C PHY"
343	---help---
344	  Supports the LSI ET1011C PHY.
345
346config LXT_PHY
347	tristate "Intel LXT PHYs"
348	---help---
349	  Currently supports the lxt970, lxt971
350
351config MARVELL_PHY
352	tristate "Marvell PHYs"
353	---help---
354	  Currently has a driver for the 88E1011S
355
356config MARVELL_10G_PHY
357	tristate "Marvell Alaska 10Gbit PHYs"
358	---help---
359	  Support for the Marvell Alaska MV88X3310 and compatible PHYs.
360
361config MESON_GXL_PHY
362	tristate "Amlogic Meson GXL Internal PHY"
363	depends on ARCH_MESON || COMPILE_TEST
364	---help---
365	  Currently has a driver for the Amlogic Meson GXL Internal PHY
366
367config MICREL_PHY
368	tristate "Micrel PHYs"
369	---help---
370	  Supports the KSZ9021, VSC8201, KS8001 PHYs.
371
372config MICROCHIP_PHY
373	tristate "Microchip PHYs"
374	help
375	  Supports the LAN88XX PHYs.
376
377config MICROCHIP_T1_PHY
378	tristate "Microchip T1 PHYs"
379	---help---
380	  Supports the LAN87XX PHYs.
381
382config MICROSEMI_PHY
383	tristate "Microsemi PHYs"
384	---help---
385	  Currently supports VSC8530, VSC8531, VSC8540 and VSC8541 PHYs
386
387config NATIONAL_PHY
388	tristate "National Semiconductor PHYs"
389	---help---
390	  Currently supports the DP83865 PHY.
391
392config QSEMI_PHY
393	tristate "Quality Semiconductor PHYs"
394	---help---
395	  Currently supports the qs6612
396
397config REALTEK_PHY
398	tristate "Realtek PHYs"
399	---help---
400	  Supports the Realtek 821x PHY.
401
402config RENESAS_PHY
403	tristate "Driver for Renesas PHYs"
404	---help---
405	  Supports the Renesas PHYs uPD60620 and uPD60620A.
406
407config ROCKCHIP_PHY
408        tristate "Driver for Rockchip Ethernet PHYs"
409        ---help---
410          Currently supports the integrated Ethernet PHY.
411
412config SMSC_PHY
413	tristate "SMSC PHYs"
414	---help---
415	  Currently supports the LAN83C185, LAN8187 and LAN8700 PHYs
416
417config STE10XP
418	tristate "STMicroelectronics STe10Xp PHYs"
419	---help---
420	  This is the driver for the STe100p and STe101p PHYs.
421
422config TERANETICS_PHY
423	tristate "Teranetics PHYs"
424	---help---
425	  Currently supports the Teranetics TN2020
426
427config VITESSE_PHY
428	tristate "Vitesse PHYs"
429	---help---
430	  Currently supports the vsc8244
431
432config XILINX_GMII2RGMII
433	tristate "Xilinx GMII2RGMII converter driver"
434	---help---
435	  This driver support xilinx GMII to RGMII IP core it provides
436	  the Reduced Gigabit Media Independent Interface(RGMII) between
437	  Ethernet physical media devices and the Gigabit Ethernet controller.
438
439endif # PHYLIB
440
441config MICREL_KS8995MA
442	tristate "Micrel KS8995MA 5-ports 10/100 managed Ethernet switch"
443	depends on SPI
444