rv1126-uboot/include/dm
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
..
platform_data serial: stm32x7: migrate serial struct to driver 2017-07-26 11:26:54 -04:00
device-internal.h dm: core: Add a comment about the device_remove() flags 2017-08-17 16:44:16 +09:00
device.h UPSTREAM: dm: define dev_*() log functions in DM header 2018-01-17 15:27:28 +08:00
fdtaddr.h dm: core: Add livetree address functions 2017-06-01 07:03:07 -06:00
lists.h dm: core: Update device_bind_driver_to_node() to use ofnode 2017-06-01 07:03:08 -06:00
of.h dm: Add more livetree helpers and definitions 2017-06-01 07:03:12 -06:00
of_access.h driver: core: add dev_del_prop() api 2020-03-17 08:53:09 +08:00
of_addr.h dm: core: Add livetree address functions 2017-06-01 07:03:07 -06:00
of_extra.h dm: core: Add a place to put extra device-tree reading functions 2017-06-01 07:03:07 -06:00
ofnode.h driver: core: add dev_del_prop() api 2020-03-17 08:53:09 +08:00
pinctrl.h pinctrl: export pinctrl_get_pins_count as generic API 2020-05-28 19:20:09 +08:00
platdata.h UPSTREAM: dm: core: remove orphaned parameter description in platdata.h 2018-01-17 15:27:28 +08:00
read.h driver: core: add dev_del_prop() api 2020-03-17 08:53:09 +08:00
root.h UPSTREAM: dm: core: add clocks node scan 2018-01-16 18:13:59 +08:00
test.h dm: core: Run tests with both livetree and flat tree 2017-06-01 07:03:10 -06:00
uclass-id.h UPSTREAM: net: Add eth phy generic driver for shared MDIO 2020-06-02 16:10:47 +08:00
uclass-internal.h dm: core: Add a way to find a device by ofnode 2017-06-01 07:03:08 -06:00
uclass.h UPSTREAM: dm: core: Add a function to look up a uclass by name 2018-02-11 19:58:01 +08:00
util.h UPSTREAM: dm: replace dm_dbg() with pr_debug() 2018-01-17 15:27:28 +08:00