2022-10-08 19:06:27

by Colin Foster

[permalink] [raw]
Subject: [RFC v4 net-next 14/17] dt-bindings: mfd: ocelot: add ethernet-switch hardware support

The main purpose of the Ocelot chips are the Ethernet switching
functionalities. Document the support for these features.

Signed-off-by: Colin Foster <[email protected]>
---

v4
* New patch

---
Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml b/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml
index c6da91211a18..9ad42721418c 100644
--- a/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml
+++ b/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml
@@ -56,6 +56,14 @@ patternProperties:
enum:
- mscc,ocelot-miim

+ "^ethernet-switch@[0-9a-f]+$":
+ type: object
+ $ref: /schemas/net/dsa/mscc,ocelot.yaml
+ properties:
+ compatible:
+ enum:
+ - mscc,vsc7512-switch
+
required:
- compatible
- reg
--
2.25.1


2022-10-09 16:24:34

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [RFC v4 net-next 14/17] dt-bindings: mfd: ocelot: add ethernet-switch hardware support

On 08/10/2022 20:51, Colin Foster wrote:
> The main purpose of the Ocelot chips are the Ethernet switching
> functionalities. Document the support for these features.
>
> Signed-off-by: Colin Foster <[email protected]>
> ---
>
> v4
> * New patch
>
> ---
> Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml b/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml
> index c6da91211a18..9ad42721418c 100644
> --- a/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml
> +++ b/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml
> @@ -56,6 +56,14 @@ patternProperties:
> enum:
> - mscc,ocelot-miim
>
> + "^ethernet-switch@[0-9a-f]+$":
> + type: object
> + $ref: /schemas/net/dsa/mscc,ocelot.yaml

unevaluatedProperties: false
(to be explicit even though they are not required)

> + properties:
> + compatible:
> + enum:
> + - mscc,vsc7512-switch
> +
> required:
> - compatible
> - reg

Best regards,
Krzysztof