From: Vladimir Oltean <vladimir.oltean@nxp.com> To: "David S . Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, netdev@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "Rob Herring" <robh+dt@kernel.org>, "Shawn Guo" <shawnguo@kernel.org>, "Andrew Lunn" <andrew@lunn.ch>, "Heiner Kallweit" <hkallweit1@gmail.com>, "Russell King" <linux@armlinux.org.uk>, "Vivien Didelot" <vivien.didelot@gmail.com>, "Vladimir Oltean" <olteanv@gmail.com>, "Florian Fainelli" <f.fainelli@gmail.com>, "Prasanna Vengateshan" <prasanna.vengateshan@microchip.com>, "Ansuel Smith" <ansuelsmth@gmail.com>, "Alvin Šipraga" <alsi@bang-olufsen.dk> Subject: [PATCH net-next 4/6] dt-bindings: net: dsa: inherit the ethernet-controller DT schema Date: Thu, 14 Oct 2021 01:23:11 +0300 [thread overview] Message-ID: <20211013222313.3767605-5-vladimir.oltean@nxp.com> (raw) In-Reply-To: <20211013222313.3767605-1-vladimir.oltean@nxp.com> Since a switch is basically a bunch of Ethernet controllers, just inherit the common schema for one to get stronger type validation of the properties of a port. For example, before this change it was valid to have a phy-mode = "xfi" even if "xfi" is not part of ethernet-controller.yaml, now it is not. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> --- Documentation/devicetree/bindings/net/dsa/dsa.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 224cfa45de9a..9cfd08cd31da 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -46,6 +46,9 @@ patternProperties: type: object description: Ethernet switch ports + allOf: + - $ref: "http://devicetree.org/schemas/net/ethernet-controller.yaml#" + properties: reg: description: Port number -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: Vladimir Oltean <vladimir.oltean@nxp.com> To: "David S . Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, netdev@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "Rob Herring" <robh+dt@kernel.org>, "Shawn Guo" <shawnguo@kernel.org>, "Andrew Lunn" <andrew@lunn.ch>, "Heiner Kallweit" <hkallweit1@gmail.com>, "Russell King" <linux@armlinux.org.uk>, "Vivien Didelot" <vivien.didelot@gmail.com>, "Vladimir Oltean" <olteanv@gmail.com>, "Florian Fainelli" <f.fainelli@gmail.com>, "Prasanna Vengateshan" <prasanna.vengateshan@microchip.com>, "Ansuel Smith" <ansuelsmth@gmail.com>, "Alvin Šipraga" <alsi@bang-olufsen.dk> Subject: [PATCH net-next 4/6] dt-bindings: net: dsa: inherit the ethernet-controller DT schema Date: Thu, 14 Oct 2021 01:23:11 +0300 [thread overview] Message-ID: <20211013222313.3767605-5-vladimir.oltean@nxp.com> (raw) In-Reply-To: <20211013222313.3767605-1-vladimir.oltean@nxp.com> Since a switch is basically a bunch of Ethernet controllers, just inherit the common schema for one to get stronger type validation of the properties of a port. For example, before this change it was valid to have a phy-mode = "xfi" even if "xfi" is not part of ethernet-controller.yaml, now it is not. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> --- Documentation/devicetree/bindings/net/dsa/dsa.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 224cfa45de9a..9cfd08cd31da 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -46,6 +46,9 @@ patternProperties: type: object description: Ethernet switch ports + allOf: + - $ref: "http://devicetree.org/schemas/net/ethernet-controller.yaml#" + properties: reg: description: Port number -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-10-13 22:24 UTC|newest] Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-13 22:23 [PATCH net-next 0/6] New RGMII delay DT bindings for the SJA1105 DSA driver Vladimir Oltean 2021-10-13 22:23 ` Vladimir Oltean 2021-10-13 22:23 ` [PATCH net-next 1/6] ARM: dts: imx6qp-prtwd3: update RGMII delays for sja1105 switch Vladimir Oltean 2021-10-13 22:23 ` Vladimir Oltean 2021-10-15 17:16 ` Florian Fainelli 2021-10-15 17:16 ` Florian Fainelli 2021-10-13 22:23 ` [PATCH net-next 2/6] ARM: dts: ls1021a-tsn: " Vladimir Oltean 2021-10-13 22:23 ` Vladimir Oltean 2021-10-15 17:16 ` Florian Fainelli 2021-10-15 17:16 ` Florian Fainelli 2021-10-13 22:23 ` [PATCH net-next 3/6] dt-bindings: net: dsa: sja1105: fix example so all ports have a phy-handle of fixed-link Vladimir Oltean 2021-10-13 22:23 ` Vladimir Oltean 2021-10-15 16:51 ` Florian Fainelli 2021-10-15 16:51 ` Florian Fainelli 2021-10-13 22:23 ` Vladimir Oltean [this message] 2021-10-13 22:23 ` [PATCH net-next 4/6] dt-bindings: net: dsa: inherit the ethernet-controller DT schema Vladimir Oltean 2021-10-15 16:51 ` Florian Fainelli 2021-10-15 16:51 ` Florian Fainelli 2021-10-13 22:23 ` [PATCH net-next 5/6] dt-bindings: net: dsa: sja1105: add {rx,tx}-internal-delay-ps Vladimir Oltean 2021-10-13 22:23 ` [PATCH net-next 5/6] dt-bindings: net: dsa: sja1105: add {rx, tx}-internal-delay-ps Vladimir Oltean 2021-10-14 14:31 ` [PATCH net-next 5/6] dt-bindings: net: dsa: sja1105: add {rx,tx}-internal-delay-ps Rob Herring 2021-10-14 14:31 ` [PATCH net-next 5/6] dt-bindings: net: dsa: sja1105: add {rx, tx}-internal-delay-ps Rob Herring 2021-10-15 19:55 ` [PATCH net-next 5/6] dt-bindings: net: dsa: sja1105: add {rx,tx}-internal-delay-ps Jakub Kicinski 2021-10-15 19:55 ` Jakub Kicinski 2021-10-15 22:48 ` Vladimir Oltean 2021-10-15 22:48 ` Vladimir Oltean 2021-10-18 13:40 ` [PATCH net-next 5/6] dt-bindings: net: dsa: sja1105: add {rx, tx}-internal-delay-ps Rob Herring 2021-10-18 13:40 ` [PATCH net-next 5/6] dt-bindings: net: dsa: sja1105: add {rx,tx}-internal-delay-ps Rob Herring 2021-10-15 16:53 ` Florian Fainelli 2021-10-15 16:53 ` Florian Fainelli 2021-10-13 22:23 ` [PATCH net-next 6/6] net: dsa: sja1105: parse {rx,tx}-internal-delay-ps properties for RGMII delays Vladimir Oltean 2021-10-13 22:23 ` [PATCH net-next 6/6] net: dsa: sja1105: parse {rx, tx}-internal-delay-ps " Vladimir Oltean 2021-10-14 0:24 ` [PATCH net-next 6/6] net: dsa: sja1105: parse {rx,tx}-internal-delay-ps " Jakub Kicinski 2021-10-14 0:24 ` Jakub Kicinski 2021-10-14 12:00 ` Vladimir Oltean 2021-10-14 12:00 ` Vladimir Oltean 2021-10-15 17:15 ` Florian Fainelli 2021-10-15 17:15 ` Florian Fainelli
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211013222313.3767605-5-vladimir.oltean@nxp.com \ --to=vladimir.oltean@nxp.com \ --cc=alsi@bang-olufsen.dk \ --cc=andrew@lunn.ch \ --cc=ansuelsmth@gmail.com \ --cc=davem@davemloft.net \ --cc=devicetree@vger.kernel.org \ --cc=f.fainelli@gmail.com \ --cc=hkallweit1@gmail.com \ --cc=kuba@kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux@armlinux.org.uk \ --cc=netdev@vger.kernel.org \ --cc=olteanv@gmail.com \ --cc=prasanna.vengateshan@microchip.com \ --cc=robh+dt@kernel.org \ --cc=shawnguo@kernel.org \ --cc=vivien.didelot@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.