Skip to content

Convert NXP SJA1105 DSA driver to YAML

Vladimir Oltean linux-devicetree netdev 1 version 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

  1. v2 Latest4 patches 3 repliesApplied 4/4

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net: phy: introduce PHY_INTERFACE_MODE_REVRMIIDocumentation/devicetree/bindings/net/ethernet-controller.yaml include/linux/phy.h+5 -01 replyApplied
2/4net: dsa: sja1105: apply RGMII delays based on the fixed-link propertydrivers/net/dsa/sja1105/sja1105.h drivers/net/dsa/sja1105/sja1105_main.c+15 -141 replyApplied
3/4net: dsa: sja1105: determine PHY/MAC role from PHY interface typeDocumentation/devicetree/bindings/net/dsa/sja1105.txt drivers/net/dsa/sja1105/sja1105_main.c+19 -821 replyApplied
4/4dt-bindings: net: dsa: sja1105: convert to YAML schemaDocumentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml Documentation/devicetree/bindings/net/dsa/sja1105.txt+89 -1210 repliesApplied

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

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

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

Read the v2 thread

Cover letter [PATCH v2 net-next 0/4] Convert NXP SJA1105 DSA driver to YAML

From: Vladimir Oltean <[email protected]>

This is an attempt to convert the SJA1105 driver to the YAML schema.

The SJA1105 driver has some custom device tree properties which caused validation problems in the previous attempt:
https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/

So now we are removing them, hoping that this will make the conversion easier to accept.

In order to do that, we introduce a new PHY interface type, "reverse RMII", which is like "reverse MII" (aka MII as a PHY) but for the reduced data width version of the protocol. This is a direct replacement for an rmii fixed-link. Now, rmii fixed-link interfaces behave as a MAC, and rev-rmii fixed-link interfaces behave as a PHY.

Vladimir Oltean (4):
net: phy: introduce PHY_INTERFACE_MODE_REVRMII
net: dsa: sja1105: apply RGMII delays based on the fixed-link property
net: dsa: sja1105: determine PHY/MAC role from PHY interface type
dt-bindings: net: dsa: sja1105: convert to YAML schema

 .../bindings/net/dsa/nxp,sja1105.yaml         |  89 ++++++++++
 .../devicetree/bindings/net/dsa/sja1105.txt   | 156 ------------------
 .../bindings/net/ethernet-controller.yaml     |   1 +
 drivers/net/dsa/sja1105/sja1105.h             |   1 +
 drivers/net/dsa/sja1105/sja1105_main.c        |  92 ++++-------
 include/linux/phy.h                           |   4 +
 6 files changed, 127 insertions(+), 216 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/dsa/sja1105.txt
Signature · 1 line
2.25.1