rv1126-uboot/drivers/net
Ye Li 70664e19a3 UPSTREAM: net: Add eth phy generic driver for shared MDIO
For dual ethernet controllers, the HW design may connect ETH phys to
one MDIO ports. So two different ethernet drivers have to share MDIO bus.
Since two ethernet drivers are independent, we can't ensure their probe
order.

To resolve this problem, introduce an eth phy generic driver and uclass.

After eth-uclass binds, we search the mdio node and binds the phy node
with the eth-phy-generic driver.

When one eth driver get its phy device, the parent of phy device will
probe prior than phy device. So this ensure the eth driver ownes the
MDIO bus will be probed before using its MDIO.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ice83493e9e1caf3842f9ce0c129e29ad46cc0532
2020-06-02 16:10:47 +08:00
..
fm UPSTREAM: blk: Remove various places that do flush cache after read 2018-01-16 18:16:48 +08:00
fsl-mc UPSTREAM: armv8: ls1043a/ls2080a: check SoC by device ID 2020-01-07 17:24:46 +08:00
ldpaa_eth driver: net: ldpaa: Update priv->phydev after free() 2017-08-14 12:47:33 -05:00
phy UPSTREAM: net: phy: Add generic helpers to access MMD PHY registers 2020-06-02 16:07:42 +08:00
8390.h
Kconfig UPSTREAM: net: Add eth phy generic driver for shared MDIO 2020-06-02 16:10:47 +08:00
Makefile UPSTREAM: net: Add eth phy generic driver for shared MDIO 2020-06-02 16:10:47 +08:00
ag7xxx.c UPSTREAM: wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2019-07-05 19:21:04 +08:00
altera_tse.c
altera_tse.h
armada100_fec.c
armada100_fec.h
at91_emac.c
ax88180.c
ax88180.h
ax88796.c
ax88796.h
bcm-sf2-eth-gmac.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
bcm-sf2-eth-gmac.h
bcm-sf2-eth.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
bcm-sf2-eth.h net: move Broadcom SF2 driver to Kconfig 2017-08-07 15:18:30 -05:00
calxedaxgmac.c
cpsw-common.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
cpsw.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
cs8900.c
cs8900.h
davinci_emac.c ti816x: Enable ethernet support 2017-06-28 11:43:39 -04:00
davinci_emac.h ti816x: Enable ethernet support 2017-06-28 11:43:39 -04:00
dc2114x.c env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
designware.c UPSTREAM: net: designware: Convert to livetree 2018-01-16 18:16:48 +08:00
designware.h
dm9000x.c
dm9000x.h
dnet.c
dnet.h
dwc_eth_qos.c UPSTREAM: net: dwc_eth_qos: Prevent DMA from writing updated RX DMA descriptor 2020-06-02 16:10:47 +08:00
e1000.c
e1000.h
e1000_spi.c UPSTREAM: Convert CONFIG_SPI to Kconfig 2019-07-23 17:15:32 +08:00
eepro100.c
enc28j60.c
enc28j60.h
ep93xx_eth.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
ep93xx_eth.h
eth-phy-uclass.c UPSTREAM: net: Add eth phy generic driver for shared MDIO 2020-06-02 16:10:47 +08:00
ethoc.c UPSTREAM: wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2019-07-05 19:21:04 +08:00
fec_mxc.c Merge git://www.denx.de/git/u-boot-imx 2017-08-16 18:12:00 -04:00
fec_mxc.h
fsl_mcdmafec.c net: fix typos 2017-09-07 13:23:52 -05:00
fsl_mdio.c
ftgmac100.c env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
ftgmac100.h
ftmac100.c env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
ftmac100.h
ftmac110.c
ftmac110.h
gmac_rockchip.c net: Add rk1808 gmac support 2019-04-10 14:14:15 +08:00
keystone_net.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
ks8851_mll.c
ks8851_mll.h
lan91c96.c env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
lan91c96.h
lpc32xx_eth.c
macb.c
macb.h
mcffec.c net: fix typos 2017-09-07 13:23:52 -05:00
mcfmii.c
mpc8xx_fec.c UPSTREAM: powercp: mpc8xx: move commproc.h 2019-07-23 17:15:32 +08:00
mvgbe.c
mvgbe.h
mvneta.c net: fix typos 2017-09-07 13:23:52 -05:00
mvpp2.c net: mvpp2x: Set BM poll size once during priv probe 2017-08-10 08:33:02 +02:00
natsemi.c
ne2000.c
ne2000.h
ne2000_base.c env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
ne2000_base.h
netconsole.c env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
ns8382x.c
pch_gbe.c
pch_gbe.h
pcnet.c
pic32_eth.c UPSTREAM: wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2019-07-05 19:21:04 +08:00
pic32_eth.h
pic32_mdio.c UPSTREAM: wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2019-07-05 19:21:04 +08:00
ravb.c UPSTREAM: wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2019-07-05 19:21:04 +08:00
rtl8139.c
rtl8169.c
sandbox-raw.c env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
sandbox.c
sh_eth.c env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
sh_eth.h
smc911x.c
smc911x.h
smc91111.c
smc91111.h
sun8i_emac.c
sunxi_emac.c
tsec.c
tsi108_eth.c
uli526x.c
vsc7385.c
vsc9953.c
xilinx_axi_emac.c UPSTREAM: wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2019-07-05 19:21:04 +08:00
xilinx_emaclite.c
xilinx_ll_temac.c powerpc: remove 4xx support 2017-07-03 17:35:28 -04:00
xilinx_ll_temac.h
xilinx_ll_temac_fifo.c
xilinx_ll_temac_fifo.h
xilinx_ll_temac_mdio.c
xilinx_ll_temac_mdio.h
xilinx_ll_temac_sdma.c powerpc: remove 4xx support 2017-07-03 17:35:28 -04:00
xilinx_ll_temac_sdma.h powerpc: remove 4xx support 2017-07-03 17:35:28 -04:00
zynq_gem.c UPSTREAM: wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2019-07-05 19:21:04 +08:00