Skip to content

Add NXP SJA1110 support to the sja1105 DSA driver

Vladimir Oltean linux-devicetree netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/24 patches 0 repliesApplied 4/4
  2. v3 posting 1/28 patches 0 repliesApplied 8/8
  3. v2 RFC14 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v113 patches26 repliesSuperseded

Changes in v3 from the cover letter

- Make sure the VLAN retagging port is enabled and functional
- Dropped SGMII PCS from this series

Patches in v3 posting 2/2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4dt-bindings: net: dsa: sja1105: add SJA1110 bindingsDocumentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml+43 -00 repliesApplied
2/4net: dsa: sja1105: add support for the SJA1110 switch familydrivers/net/dsa/sja1105/sja1105.h drivers/net/dsa/sja1105/sja1105_clocking.c drivers/net/dsa/sja1105/sja1105_dynamic_config.c +5 more+1312 -120 repliesApplied
3/4net: dsa: sja1105: make sure the retagging port is enabled for SJA1110drivers/net/dsa/sja1105/sja1105_main.c drivers/net/dsa/sja1105/sja1105_static_config.c drivers/net/dsa/sja1105/sja1105_static_config.h+58 -00 repliesApplied
4/4net: dsa: sja1105: register the MDIO buses for 100base-T1 and 100base-TXdrivers/net/dsa/sja1105/Makefile drivers/net/dsa/sja1105/sja1105.h drivers/net/dsa/sja1105/sja1105_main.c +2 more+358 -10 repliesApplied

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchFlorian Fainelli
1/4
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 net-next 0/4] Add NXP SJA1110 support to the sja1105 DSA driver

From: Vladimir Oltean <[email protected]>

The NXP SJA1110 is an automotive Ethernet switch with an embedded Arm Cortex-M7 microcontroller. The switch has 11 ports (10 external + one for the DSA-style connection to the microcontroller).
The microcontroller can be disabled and the switch can be controlled over SPI, a la SJA1105 - this is how this driver handles things.

There are some integrated NXP PHYs (100base-T1 and 100base-TX). Their initialization is handled by their own PHY drivers, the switch is only concerned with enabling register accesses to them, by registering two MDIO buses.

Changes in v3:
- Make sure the VLAN retagging port is enabled and functional
- Dropped SGMII PCS from this series

Changes in v2:
- converted nxp,sja1105 DT bindings to YAML
- registered the PCS MDIO bus and forced auto-probing off for all PHY addresses for this bus
- changed the container node name for the 2 MDIO buses from "mdio" to "mdios" to avoid matching on the mdio.yaml schema (it's just a container node, not an MDIO bus)
- fixed an uninitialized "offset" variable usage in sja1110_pcs_mdio_{read,write}
- using the mdiobus_c45_addr macro instead of open-coding that operation

Cc Russell King <[email protected]>
Cc Heiner Kallweit <[email protected]>
Cc Rob Herring <[email protected]>

Vladimir Oltean (4):
dt-bindings: net: dsa: sja1105: add SJA1110 bindings
net: dsa: sja1105: add support for the SJA1110 switch family
net: dsa: sja1105: make sure the retagging port is enabled for SJA1110
net: dsa: sja1105: register the MDIO buses for 100base-T1 and

    100base-TX
 .../bindings/net/dsa/nxp,sja1105.yaml         |  43 ++
 drivers/net/dsa/sja1105/Makefile              |   1 +
 drivers/net/dsa/sja1105/sja1105.h             |  43 +-
 drivers/net/dsa/sja1105/sja1105_clocking.c    |  91 ++++
 .../net/dsa/sja1105/sja1105_dynamic_config.c  | 321 +++++++++++-
 .../net/dsa/sja1105/sja1105_dynamic_config.h  |   1 +
 drivers/net/dsa/sja1105/sja1105_main.c        | 132 ++++-
 drivers/net/dsa/sja1105/sja1105_mdio.c        | 288 +++++++++++
 drivers/net/dsa/sja1105/sja1105_spi.c         | 282 ++++++++++
 .../net/dsa/sja1105/sja1105_static_config.c   | 483 ++++++++++++++++++
 .../net/dsa/sja1105/sja1105_static_config.h   |  99 +++-
 11 files changed, 1771 insertions(+), 13 deletions(-)
 create mode 100644 drivers/net/dsa/sja1105/sja1105_mdio.c
Signature · 1 line
2.25.1