OSDN Git Service

net: dsa: mv88e6xxx: Add RGMII delay to 88E6320
authorSteffen Bätz <steffen@innosonix.de>
Fri, 28 Oct 2022 16:31:58 +0000 (13:31 -0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Nov 2022 03:00:20 +0000 (20:00 -0700)
commit91e87045a5ef6f7003e9a2cb7dfa435b9b002dbe
tree2e55a5f9ad34247309fb891d46dfa5f8f1704640
parenteff1744e62148a7e8ef3d985e2c0c40aa5caf564
net: dsa: mv88e6xxx: Add RGMII delay to 88E6320

Currently, the .port_set_rgmii_delay hook is missing for the 88E6320
family, which causes failure to retrieve an IP address via DHCP.

Add mv88e6320_port_set_rgmii_delay() that allows applying the RGMII
delay for ports 2, 5, and 6, which are the only ports that can be used
in RGMII mode.

Tested on a custom i.MX8MN board connected to an 88E6320 switch.

This change also applies safely to the 88E6321 variant.

The only difference between 88E6320 versus 88E6321 is the temperature
grade and pinout.

They share exactly the same MDIO register map for ports 2, 5, and 6,
which are the only ports that can be used in RGMII mode.

Signed-off-by: Steffen Bätz <steffen@innosonix.de>
[fabio: Improved commit log and extended it to mv88e6321_ops]
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20221028163158.198108-1-festevam@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/port.c
drivers/net/dsa/mv88e6xxx/port.h