Re: [RFC net-next 1/2] dt-bindings: net: dsa: add bindings for GSW Series switches

From: Vladimir Oltean
Date: Thu Oct 27 2022 - 11:42:06 EST


Hi Camel,

On Tue, Oct 25, 2022 at 03:52:40PM +0200, Camel Guo wrote:
> +additionalProperties: true

I don't think the switch schema should have additionalProperties: true.
Only shared schemas should. WHat should be here is "unevaluatedProperties: false".

> + port@5 {
> + reg = <5>;
> + label = "cpu";

Please drop label = "cpu" for the CPU port, it is not needed/not parsed.

> + ethernet = <&eth0>;
> + phy-mode = "rgmii-id";
> +
> + fixed-link {
> + speed = <1000>;
> + full-duplex;
> + pause;
> + };
> + };
> + };