diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2024-11-06 08:59:40 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-11-11 16:04:32 -0800 |
commit | f47e6e1e79a107cd389519da224f10e58bddcee2 (patch) | |
tree | 86f72588dce2bdbc490189385db6178ba0e17bbd /drivers/net/net_failover.c | |
parent | 8bbba4161b6557ba8effc443072e70c16da24e6f (diff) |
net: dsa: microchip: add support for side MDIO interface in LAN937x
Implement side MDIO channel support for LAN937x switches, providing an
alternative to SPI for PHY management alongside existing SPI-based
switch configuration. This is needed to reduce SPI load, as SPI can be
relatively expensive for small packets compared to MDIO support.
Also, implemented static mappings for PHY addresses for various LAN937x
models to support different internal PHY configurations. Since the PHY
address mappings are not equal to the port indexes, this patch also
provides PHY address calculation based on hardware strapping
configuration.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241106075942.1636998-6-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/net_failover.c')
0 files changed, 0 insertions, 0 deletions