net: dsa: sja1105: register the MDIO buses for 100base-T1 and 100base-TX
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 8 Jun 2021 09:25:38 +0000 (12:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 21:37:16 +0000 (14:37 -0700)
commit5a8f09748ee79f2ef28e560bd095587a0e204b3d
treeb8a5b6e97679f0f214a0726b6ad11db5723788fb
parentceec8bc0988dca7bdbf7421f01f8d46949bdbdeb
net: dsa: sja1105: register the MDIO buses for 100base-T1 and 100base-TX

The SJA1110 contains two types of integrated PHYs: one 100base-TX PHY
and multiple 100base-T1 PHYs.

The access procedure for the 100base-T1 PHYs is also different than it
is for the 100base-TX one. So we register 2 MDIO buses, one for the
base-TX and the other for the base-T1. Each bus has an OF node which is
a child of the "mdio" subnode of the switch, and they are recognized by
compatible string.

Cc: Russell King <linux@armlinux.org.uk>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
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>
drivers/net/dsa/sja1105/Makefile
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_main.c
drivers/net/dsa/sja1105/sja1105_mdio.c [new file with mode: 0644]
drivers/net/dsa/sja1105/sja1105_spi.c