[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210604140151.2885611-1-olteanv@gmail.com>
Date: Fri, 4 Jun 2021 17:01:47 +0300
From: Vladimir Oltean <olteanv@...il.com>
To: Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Rob Herring <robh+dt@...nel.org>
Cc: devicetree@...r.kernel.org, netdev@...r.kernel.org,
Florian Fainelli <f.fainelli@...il.com>,
Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King - ARM Linux admin <linux@...linux.org.uk>,
Vladimir Oltean <vladimir.oltean@....com>
Subject: [PATCH v2 net-next 0/4] Convert NXP SJA1105 DSA driver to YAML
From: Vladimir Oltean <vladimir.oltean@....com>
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/20210531234735.1582031-1-olteanv@gmail.com/
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
--
2.25.1
Powered by blists - more mailing lists