mdio_bus: Allow for non PHY-devices on MDIO buses
Instead of just creating a simple PHY device for every child of MDIO
bus node, add code to check if any of them have "compatible" property
set, as well as code to create a proper platform device for such
cases.

This change is useful for when MDIO bus and some of Ethernet ports are
connected to a switch or some other MDIO device that doesn't behave
like a generic PHY and can't be probed via its PHY ID.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 01c926d commit 0247554a3629f59debb92e4188d45d3d98d2aded
@Andrey Smirnov Andrey Smirnov authored on 16 Oct 2018
Sascha Hauer committed on 23 Oct 2018
Showing 2 changed files
View
drivers/net/phy/mdio_bus.c
View
include/of.h