blob: 28f3ee35f13d9f6045e663ad9e73cc441443a63d [file] [log] [blame]
Alexaf2cbfd2017-02-06 19:17:34 -08001
2config BITBANGMII
3 bool "Bit-banged ethernet MII management channel support"
4
5config MV88E6352_SWITCH
6 bool "Marvell 88E6352 switch support"
7
8menuconfig PHYLIB
9 bool "Ethernet PHY (physical media interface) support"
Michal Simekc946b0e2018-02-06 13:23:52 +010010 depends on NET
Alexaf2cbfd2017-02-06 19:17:34 -080011 help
12 Enable Ethernet PHY (physical media interface) support.
13
14if PHYLIB
15
Joe Hershberger16879cd2018-03-30 11:52:16 -050016config PHY_ADDR_ENABLE
17 bool "Limit phy address"
18 default y if ARCH_SUNXI
19 help
20 Select this if you want to control which phy address is used
21
22if PHY_ADDR_ENABLE
Stefan Mavrodievb30c4192018-02-02 15:53:38 +020023config PHY_ADDR
24 int "PHY address"
25 default 1 if ARCH_SUNXI
26 default 0
27 help
28 The address of PHY on MII bus. Usually in range of 0 to 31.
Joe Hershberger16879cd2018-03-30 11:52:16 -050029endif
Stefan Mavrodievb30c4192018-02-02 15:53:38 +020030
Florian Fainelli137963d2017-12-09 14:59:54 -080031config B53_SWITCH
32 bool "Broadcom BCM53xx (RoboSwitch) Ethernet switch PHY support."
33 help
34 Enable support for Broadcom BCM53xx (RoboSwitch) Ethernet switches.
35 This currently supports BCM53125 and similar models.
36
37if B53_SWITCH
38
39config B53_CPU_PORT
40 int "CPU port"
41 default 8
42
43config B53_PHY_PORTS
44 hex "Bitmask of PHY ports"
45
46endif # B53_SWITCH
47
Alexaf2cbfd2017-02-06 19:17:34 -080048config MV88E61XX_SWITCH
49 bool "Marvel MV88E61xx Ethernet switch PHY support."
50
Tim Harveyb4f4b0f2017-03-17 07:29:51 -070051if MV88E61XX_SWITCH
52
53config MV88E61XX_CPU_PORT
54 int "CPU Port"
55
56config MV88E61XX_PHY_PORTS
57 hex "Bitmask of PHY Ports"
58
59config MV88E61XX_FIXED_PORTS
60 hex "Bitmask of PHYless serdes Ports"
61
62endif # MV88E61XX_SWITCH
63
Alexaf2cbfd2017-02-06 19:17:34 -080064config PHYLIB_10G
65 bool "Generic 10G PHY support"
66
67config PHY_AQUANTIA
68 bool "Aquantia Ethernet PHYs support"
Jeremy Gebben1c650102018-09-18 15:49:35 -060069 select PHY_GIGE
70 select PHYLIB_10G
Alexaf2cbfd2017-02-06 19:17:34 -080071
72config PHY_ATHEROS
73 bool "Atheros Ethernet PHYs support"
74
75config PHY_BROADCOM
76 bool "Broadcom Ethernet PHYs support"
77
78config PHY_CORTINA
79 bool "Cortina Ethernet PHYs support"
80
81config PHY_DAVICOM
82 bool "Davicom Ethernet PHYs support"
83
84config PHY_ET1011C
85 bool "LSI TruePHY ET1011C support"
86
87config PHY_LXT
88 bool "LXT971 Ethernet PHY support"
89
90config PHY_MARVELL
91 bool "Marvell Ethernet PHYs support"
92
Neil Armstrong8995a962017-10-18 10:02:10 +020093config PHY_MESON_GXL
94 bool "Amlogic Meson GXL Internal PHY support"
95
Alexaf2cbfd2017-02-06 19:17:34 -080096config PHY_MICREL
97 bool "Micrel Ethernet PHYs support"
Philipp Tomsich449ea2c2017-03-26 18:50:23 +020098 help
99 Enable support for the GbE PHYs manufactured by Micrel (now
100 a part of Microchip). This includes drivers for the KSZ804,
101 KSZ8031, KSZ8051, KSZ8081, KSZ8895, KSZ886x, KSZ8721
102 either/or KSZ9021 (see the "Micrel KSZ9021 family support"
103 config option for details), and KSZ9031 (if configured).
104
105if PHY_MICREL
106
107config PHY_MICREL_KSZ9021
Alexandru Gagniuc9a31c732017-07-07 11:37:00 -0700108 bool
Philipp Tomsich449ea2c2017-03-26 18:50:23 +0200109 select PHY_GIGE
Alexandru Gagniucd397f7c2017-07-07 11:36:57 -0700110 select PHY_MICREL_KSZ90X1
Alexandru Gagniucd397f7c2017-07-07 11:36:57 -0700111
Philipp Tomsich449ea2c2017-03-26 18:50:23 +0200112config PHY_MICREL_KSZ9031
Alexandru Gagniuc9a31c732017-07-07 11:37:00 -0700113 bool
Philipp Tomsich449ea2c2017-03-26 18:50:23 +0200114 select PHY_GIGE
Alexandru Gagniucd397f7c2017-07-07 11:36:57 -0700115 select PHY_MICREL_KSZ90X1
Alexandru Gagniucd397f7c2017-07-07 11:36:57 -0700116
117config PHY_MICREL_KSZ90X1
118 bool "Micrel KSZ90x1 family support"
119 select PHY_GIGE
120 help
121 Enable support for the Micrel KSZ9021 and KSZ9031 GbE PHYs. If
122 enabled, the extended register read/write for KSZ90x1 PHYs
123 is supported through the 'mdio' command and any RGMII signal
124 delays configured in the device tree will be applied to the
125 PHY during initialization.
126
127 This should not be enabled at the same time with PHY_MICREL_KSZ8XXX
128 as the KSZ9021 and KS8721 share the same ID.
129
130config PHY_MICREL_KSZ8XXX
131 bool "Micrel KSZ8xxx family support"
132 default y if !PHY_MICREL_KSZ90X1
133 help
134 Enable support for the 8000 series GbE PHYs manufactured by Micrel
135 (now a part of Microchip). This includes drivers for the KSZ804,
136 KSZ8031, KSZ8051, KSZ8081, KSZ8895, KSZ886x, and KSZ8721.
137
138 This should not be enabled at the same time with PHY_MICREL_KSZ90X1
139 as the KSZ9021 and KS8721 share the same ID.
140
Philipp Tomsich449ea2c2017-03-26 18:50:23 +0200141endif # PHY_MICREL
Alexaf2cbfd2017-02-06 19:17:34 -0800142
John Haechtena5fd13a2016-12-09 22:15:17 +0000143config PHY_MSCC
144 bool "Microsemi Corp Ethernet PHYs support"
145
Alexaf2cbfd2017-02-06 19:17:34 -0800146config PHY_NATSEMI
147 bool "National Semiconductor Ethernet PHYs support"
148
149config PHY_REALTEK
150 bool "Realtek Ethernet PHYs support"
151
kevans@FreeBSD.org66526e72018-02-14 17:02:15 -0600152config RTL8211E_PINE64_GIGABIT_FIX
153 bool "Fix gigabit throughput on some Pine64+ models"
154 depends on PHY_REALTEK
155 help
156 Configure the Realtek RTL8211E found on some Pine64+ models differently to
157 fix throughput on Gigabit links, turning off all internal delays in the
158 process. The settings that this touches are not documented in the CONFREG
159 section of the RTL8211E datasheet, but come from Realtek by way of the
160 Pine64 engineering team.
161
Alexaf2cbfd2017-02-06 19:17:34 -0800162config RTL8211X_PHY_FORCE_MASTER
163 bool "Ethernet PHY RTL8211x: force 1000BASE-T master mode"
164 depends on PHY_REALTEK
165 help
166 Force master mode for 1000BASE-T on RTl8211x PHYs (except for RTL8211F).
167 This can work around link stability and data corruption issues on gigabit
168 links which can occur in slave mode on certain PHYs, e.g. on the
169 RTL8211C(L).
170
171 Please note that two directly connected devices (i.e. via crossover cable)
172 will not be able to establish a link between each other if they both force
173 master mode. Multiple devices forcing master mode when connected by a
174 network switch do not pose a problem as the switch configures its affected
175 ports into slave mode.
176
177 This option only affects gigabit links. If you must establish a direct
178 connection between two devices which both force master mode, try forcing
179 the link speed to 100MBit/s.
180
181 If unsure, say N.
182
183config PHY_SMSC
184 bool "Microchip(SMSC) Ethernet PHYs support"
185
186config PHY_TERANETICS
187 bool "Teranetics Ethernet PHYs support"
188
189config PHY_TI
190 bool "Texas Instruments Ethernet PHYs support"
191
192config PHY_VITESSE
193 bool "Vitesse Ethernet PHYs support"
194
195config PHY_XILINX
196 bool "Xilinx Ethernet PHYs support"
197
Hannes Schmelzerdb40c1a2017-03-23 15:11:43 +0100198config PHY_FIXED
199 bool "Fixed-Link PHY"
200 depends on DM_ETH
201 help
202 Fixed PHY is used for having a 'fixed-link' to another MAC with a direct
203 connection (MII, RGMII, ...).
204 There is nothing like autoneogation and so
205 on, the link is always up with fixed speed and fixed duplex-setting.
206 More information: doc/device-tree-bindings/net/fixed-link.txt
207
Alexaf2cbfd2017-02-06 19:17:34 -0800208endif #PHYLIB