Alex | af2cbfd | 2017-02-06 19:17:34 -0800 | [diff] [blame] | 1 | |
| 2 | config BITBANGMII |
| 3 | bool "Bit-banged ethernet MII management channel support" |
| 4 | |
| 5 | config MV88E6352_SWITCH |
| 6 | bool "Marvell 88E6352 switch support" |
| 7 | |
| 8 | menuconfig PHYLIB |
| 9 | bool "Ethernet PHY (physical media interface) support" |
Michal Simek | c946b0e | 2018-02-06 13:23:52 +0100 | [diff] [blame] | 10 | depends on NET |
Alex | af2cbfd | 2017-02-06 19:17:34 -0800 | [diff] [blame] | 11 | help |
| 12 | Enable Ethernet PHY (physical media interface) support. |
| 13 | |
| 14 | if PHYLIB |
| 15 | |
Joe Hershberger | 16879cd | 2018-03-30 11:52:16 -0500 | [diff] [blame] | 16 | config 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 | |
| 22 | if PHY_ADDR_ENABLE |
Stefan Mavrodiev | b30c419 | 2018-02-02 15:53:38 +0200 | [diff] [blame] | 23 | config 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 Hershberger | 16879cd | 2018-03-30 11:52:16 -0500 | [diff] [blame] | 29 | endif |
Stefan Mavrodiev | b30c419 | 2018-02-02 15:53:38 +0200 | [diff] [blame] | 30 | |
Florian Fainelli | 137963d | 2017-12-09 14:59:54 -0800 | [diff] [blame] | 31 | config 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 | |
| 37 | if B53_SWITCH |
| 38 | |
| 39 | config B53_CPU_PORT |
| 40 | int "CPU port" |
| 41 | default 8 |
| 42 | |
| 43 | config B53_PHY_PORTS |
| 44 | hex "Bitmask of PHY ports" |
| 45 | |
| 46 | endif # B53_SWITCH |
| 47 | |
Alex | af2cbfd | 2017-02-06 19:17:34 -0800 | [diff] [blame] | 48 | config MV88E61XX_SWITCH |
| 49 | bool "Marvel MV88E61xx Ethernet switch PHY support." |
| 50 | |
Tim Harvey | b4f4b0f | 2017-03-17 07:29:51 -0700 | [diff] [blame] | 51 | if MV88E61XX_SWITCH |
| 52 | |
| 53 | config MV88E61XX_CPU_PORT |
| 54 | int "CPU Port" |
| 55 | |
| 56 | config MV88E61XX_PHY_PORTS |
| 57 | hex "Bitmask of PHY Ports" |
| 58 | |
| 59 | config MV88E61XX_FIXED_PORTS |
| 60 | hex "Bitmask of PHYless serdes Ports" |
| 61 | |
| 62 | endif # MV88E61XX_SWITCH |
| 63 | |
Alex | af2cbfd | 2017-02-06 19:17:34 -0800 | [diff] [blame] | 64 | config PHYLIB_10G |
| 65 | bool "Generic 10G PHY support" |
| 66 | |
| 67 | config PHY_AQUANTIA |
| 68 | bool "Aquantia Ethernet PHYs support" |
| 69 | |
| 70 | config PHY_ATHEROS |
| 71 | bool "Atheros Ethernet PHYs support" |
| 72 | |
| 73 | config PHY_BROADCOM |
| 74 | bool "Broadcom Ethernet PHYs support" |
| 75 | |
| 76 | config PHY_CORTINA |
| 77 | bool "Cortina Ethernet PHYs support" |
| 78 | |
| 79 | config PHY_DAVICOM |
| 80 | bool "Davicom Ethernet PHYs support" |
| 81 | |
| 82 | config PHY_ET1011C |
| 83 | bool "LSI TruePHY ET1011C support" |
| 84 | |
| 85 | config PHY_LXT |
| 86 | bool "LXT971 Ethernet PHY support" |
| 87 | |
| 88 | config PHY_MARVELL |
| 89 | bool "Marvell Ethernet PHYs support" |
| 90 | |
Neil Armstrong | 8995a96 | 2017-10-18 10:02:10 +0200 | [diff] [blame] | 91 | config PHY_MESON_GXL |
| 92 | bool "Amlogic Meson GXL Internal PHY support" |
| 93 | |
Alex | af2cbfd | 2017-02-06 19:17:34 -0800 | [diff] [blame] | 94 | config PHY_MICREL |
| 95 | bool "Micrel Ethernet PHYs support" |
Philipp Tomsich | 449ea2c | 2017-03-26 18:50:23 +0200 | [diff] [blame] | 96 | help |
| 97 | Enable support for the GbE PHYs manufactured by Micrel (now |
| 98 | a part of Microchip). This includes drivers for the KSZ804, |
| 99 | KSZ8031, KSZ8051, KSZ8081, KSZ8895, KSZ886x, KSZ8721 |
| 100 | either/or KSZ9021 (see the "Micrel KSZ9021 family support" |
| 101 | config option for details), and KSZ9031 (if configured). |
| 102 | |
| 103 | if PHY_MICREL |
| 104 | |
| 105 | config PHY_MICREL_KSZ9021 |
Alexandru Gagniuc | 9a31c73 | 2017-07-07 11:37:00 -0700 | [diff] [blame] | 106 | bool |
Philipp Tomsich | 449ea2c | 2017-03-26 18:50:23 +0200 | [diff] [blame] | 107 | select PHY_GIGE |
Alexandru Gagniuc | d397f7c | 2017-07-07 11:36:57 -0700 | [diff] [blame] | 108 | select PHY_MICREL_KSZ90X1 |
Alexandru Gagniuc | d397f7c | 2017-07-07 11:36:57 -0700 | [diff] [blame] | 109 | |
Philipp Tomsich | 449ea2c | 2017-03-26 18:50:23 +0200 | [diff] [blame] | 110 | config PHY_MICREL_KSZ9031 |
Alexandru Gagniuc | 9a31c73 | 2017-07-07 11:37:00 -0700 | [diff] [blame] | 111 | bool |
Philipp Tomsich | 449ea2c | 2017-03-26 18:50:23 +0200 | [diff] [blame] | 112 | select PHY_GIGE |
Alexandru Gagniuc | d397f7c | 2017-07-07 11:36:57 -0700 | [diff] [blame] | 113 | select PHY_MICREL_KSZ90X1 |
Alexandru Gagniuc | d397f7c | 2017-07-07 11:36:57 -0700 | [diff] [blame] | 114 | |
| 115 | config PHY_MICREL_KSZ90X1 |
| 116 | bool "Micrel KSZ90x1 family support" |
| 117 | select PHY_GIGE |
| 118 | help |
| 119 | Enable support for the Micrel KSZ9021 and KSZ9031 GbE PHYs. If |
| 120 | enabled, the extended register read/write for KSZ90x1 PHYs |
| 121 | is supported through the 'mdio' command and any RGMII signal |
| 122 | delays configured in the device tree will be applied to the |
| 123 | PHY during initialization. |
| 124 | |
| 125 | This should not be enabled at the same time with PHY_MICREL_KSZ8XXX |
| 126 | as the KSZ9021 and KS8721 share the same ID. |
| 127 | |
| 128 | config PHY_MICREL_KSZ8XXX |
| 129 | bool "Micrel KSZ8xxx family support" |
| 130 | default y if !PHY_MICREL_KSZ90X1 |
| 131 | help |
| 132 | Enable support for the 8000 series GbE PHYs manufactured by Micrel |
| 133 | (now a part of Microchip). This includes drivers for the KSZ804, |
| 134 | KSZ8031, KSZ8051, KSZ8081, KSZ8895, KSZ886x, and KSZ8721. |
| 135 | |
| 136 | This should not be enabled at the same time with PHY_MICREL_KSZ90X1 |
| 137 | as the KSZ9021 and KS8721 share the same ID. |
| 138 | |
Philipp Tomsich | 449ea2c | 2017-03-26 18:50:23 +0200 | [diff] [blame] | 139 | endif # PHY_MICREL |
Alex | af2cbfd | 2017-02-06 19:17:34 -0800 | [diff] [blame] | 140 | |
John Haechten | a5fd13a | 2016-12-09 22:15:17 +0000 | [diff] [blame] | 141 | config PHY_MSCC |
| 142 | bool "Microsemi Corp Ethernet PHYs support" |
| 143 | |
Alex | af2cbfd | 2017-02-06 19:17:34 -0800 | [diff] [blame] | 144 | config PHY_NATSEMI |
| 145 | bool "National Semiconductor Ethernet PHYs support" |
| 146 | |
| 147 | config PHY_REALTEK |
| 148 | bool "Realtek Ethernet PHYs support" |
| 149 | |
kevans@FreeBSD.org | 66526e7 | 2018-02-14 17:02:15 -0600 | [diff] [blame] | 150 | config RTL8211E_PINE64_GIGABIT_FIX |
| 151 | bool "Fix gigabit throughput on some Pine64+ models" |
| 152 | depends on PHY_REALTEK |
| 153 | help |
| 154 | Configure the Realtek RTL8211E found on some Pine64+ models differently to |
| 155 | fix throughput on Gigabit links, turning off all internal delays in the |
| 156 | process. The settings that this touches are not documented in the CONFREG |
| 157 | section of the RTL8211E datasheet, but come from Realtek by way of the |
| 158 | Pine64 engineering team. |
| 159 | |
Alex | af2cbfd | 2017-02-06 19:17:34 -0800 | [diff] [blame] | 160 | config RTL8211X_PHY_FORCE_MASTER |
| 161 | bool "Ethernet PHY RTL8211x: force 1000BASE-T master mode" |
| 162 | depends on PHY_REALTEK |
| 163 | help |
| 164 | Force master mode for 1000BASE-T on RTl8211x PHYs (except for RTL8211F). |
| 165 | This can work around link stability and data corruption issues on gigabit |
| 166 | links which can occur in slave mode on certain PHYs, e.g. on the |
| 167 | RTL8211C(L). |
| 168 | |
| 169 | Please note that two directly connected devices (i.e. via crossover cable) |
| 170 | will not be able to establish a link between each other if they both force |
| 171 | master mode. Multiple devices forcing master mode when connected by a |
| 172 | network switch do not pose a problem as the switch configures its affected |
| 173 | ports into slave mode. |
| 174 | |
| 175 | This option only affects gigabit links. If you must establish a direct |
| 176 | connection between two devices which both force master mode, try forcing |
| 177 | the link speed to 100MBit/s. |
| 178 | |
| 179 | If unsure, say N. |
| 180 | |
| 181 | config PHY_SMSC |
| 182 | bool "Microchip(SMSC) Ethernet PHYs support" |
| 183 | |
| 184 | config PHY_TERANETICS |
| 185 | bool "Teranetics Ethernet PHYs support" |
| 186 | |
| 187 | config PHY_TI |
| 188 | bool "Texas Instruments Ethernet PHYs support" |
| 189 | |
| 190 | config PHY_VITESSE |
| 191 | bool "Vitesse Ethernet PHYs support" |
| 192 | |
| 193 | config PHY_XILINX |
| 194 | bool "Xilinx Ethernet PHYs support" |
| 195 | |
Hannes Schmelzer | db40c1a | 2017-03-23 15:11:43 +0100 | [diff] [blame] | 196 | config PHY_FIXED |
| 197 | bool "Fixed-Link PHY" |
| 198 | depends on DM_ETH |
| 199 | help |
| 200 | Fixed PHY is used for having a 'fixed-link' to another MAC with a direct |
| 201 | connection (MII, RGMII, ...). |
| 202 | There is nothing like autoneogation and so |
| 203 | on, the link is always up with fixed speed and fixed duplex-setting. |
| 204 | More information: doc/device-tree-bindings/net/fixed-link.txt |
| 205 | |
Alex | af2cbfd | 2017-02-06 19:17:34 -0800 | [diff] [blame] | 206 | endif #PHYLIB |