[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251021205044.GA776699-robh@kernel.org>
Date: Tue, 21 Oct 2025 15:50:44 -0500
From: Rob Herring <robh@...nel.org>
To: Wei Fang <wei.fang@....com>
Cc: krzk+dt@...nel.org, conor+dt@...nel.org, claudiu.manoil@....com,
vladimir.oltean@....com, xiaoning.wang@....com, Frank.Li@....com,
andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, richardcochran@...il.com,
imx@...ts.linux.dev, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: Re: [PATCH net-next 3/8] dt-bindings: net: ethernet-controller:
remove the enum values of speed
On Thu, Oct 16, 2025 at 06:20:14PM +0800, Wei Fang wrote:
> Some fixed-link devices have uncommon link speeds. For example, the CPU
> port of NXP NETC switch is connected to an ENETC (Ethernet Controller),
> they are fully integrated into the NETC IP and connected through the
> 'pseudo link'. The link speed varies depending on the NETC version. For
> example, the speed of NETC v4.3 is 2680 Mbps, other versions may be 8
> Gbps or 12.5 Gbps or other speeds. There is no need and pointless to add
> these values to ethernet-controller.yaml. Therefore, remove these enum
> values so that when performing dtbs_check, no warnings are reported for
> the uncommon values.
Every binding that used this was relying on these constraints. So you've
got to move them into the individual bindings. I'd leave a minimum and
maximum here.
>
> Signed-off-by: Wei Fang <wei.fang@....com>
> ---
> Documentation/devicetree/bindings/net/ethernet-controller.yaml | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml
> index 1bafd687dcb1..7fa02d58c208 100644
> --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml
> +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml
> @@ -177,7 +177,6 @@ properties:
> description:
> Link speed.
> $ref: /schemas/types.yaml#/definitions/uint32
> - enum: [10, 100, 1000, 2500, 5000, 10000]
>
> full-duplex:
> $ref: /schemas/types.yaml#/definitions/flag
> --
> 2.34.1
>
Powered by blists - more mailing lists