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