net: dsa: sja1105: determine PHY/MAC role from PHY interface type
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 4 Jun 2021 14:01:50 +0000 (17:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 19:20:18 +0000 (12:20 -0700)
commit5d645df99ac60fab5368e01f1ddf4a57fa4f719f
tree81831d6d4745bf2aa7ac678cfb4b4075016bf8ec
parent29afb83ac98e1c1cd9c9bb6e82e7d15354b3ae0b
net: dsa: sja1105: determine PHY/MAC role from PHY interface type

Now that both RevMII as well as RevRMII exist, we can deprecate the
sja1105,role-mac and sja1105,role-phy properties and simply let the user
select that a port operates in MII PHY role by using
phy-mode = "rev-mii";
or in RMII PHY role by using
phy-mode = "rev-rmii";

There are no fixed-link MII or RMII properties in mainline device trees,
and the setup itself is fairly uncommon, so there shouldn't be risks of
breaking compatibility.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/dsa/sja1105.txt
drivers/net/dsa/sja1105/sja1105_main.c