]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: felix: Use PHY_INTERFACE_MODE_INTERNAL instead of GMII
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 24 Feb 2020 12:15:33 +0000 (14:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 23:12:10 +0000 (15:12 -0800)
commit3b984888c99bd3d63a077552dec12f29baa3883d
tree7bb5d38f492665f0b65ecd477b60add6554ae153
parentf1aff064e76d8c789391661235a48ed85b606fd3
net: dsa: felix: Use PHY_INTERFACE_MODE_INTERNAL instead of GMII

phy-mode = "gmii" is confusing because it may mean that the port
supports the 8-bit-wide parallel data interface pinout, which it
doesn't.

It may also be confusing because one of the "gmii" internal ports is
actually overclocked to run at 2.5Gbps (even though, yes, as far as the
switch MAC is concerned, it still thinks it's gigabit).

So use the phy-mode = "internal" property to describe the internal ports
inside the NXP LS1028A chip (the ones facing the ENETC). The change
should be fine, because the device tree bindings document is yet to be
introduced, and there are no stable DT blobs in use.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Michael Walle <michael@walle.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c
drivers/net/dsa/ocelot/felix_vsc9959.c