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