[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <67bae815-b210-461d-902e-e844e876bad4@altera.com>
Date: Mon, 9 Jun 2025 16:26:19 -0700
From: Matthew Gerlach <matthew.gerlach@...era.com>
To: Rob Herring <robh@...nel.org>
Cc: andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, krzk+dt@...nel.org, conor+dt@...nel.org,
maxime.chevallier@...tlin.com, mcoquelin.stm32@...il.com,
alexandre.torgue@...s.st.com, richardcochran@...il.com,
netdev@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, Mun Yew Tham <mun.yew.tham@...era.com>
Subject: Re: [PATCH v4] dt-bindings: net: Convert socfpga-dwmac bindings to
yaml
On 6/9/25 3:15 PM, Rob Herring wrote:
> On Mon, Jun 09, 2025 at 09:37:25AM -0700, Matthew Gerlach wrote:
> > Convert the bindings for socfpga-dwmac to yaml. Since the original
> > text contained descriptions for two separate nodes, two separate
> > yaml files were created.
> >
> > Signed-off-by: Mun Yew Tham <mun.yew.tham@...era.com>
> > Signed-off-by: Matthew Gerlach <matthew.gerlach@...era.com>
> > ---
> > v4:
> > - Change filename from socfpga,dwmac.yaml to altr,socfpga-stmmac.yaml.
> > - Updated compatible in select properties and main properties.
> > - Fixed clocks so stmmaceth clock is required.
> > - Added binding for altr,gmii-to-sgmii.
> > - Update MAINTAINERS.
> >
> > v3:
> > - Add missing supported phy-modes.
> >
> > v2:
> > - Add compatible to required.
> > - Add descriptions for clocks.
> > - Add clock-names.
> > - Clean up items: in altr,sysmgr-syscon.
> > - Change "additionalProperties: true" to "unevaluatedProperties: false".
> > - Add properties needed for "unevaluatedProperties: false".
> > - Fix indentation in examples.
> > - Drop gmac0: label in examples.
> > - Exclude support for Arria10 that is not validating.
> > ---
> > .../bindings/net/altr,gmii-to-sgmii.yaml | 49 ++++++
> > .../bindings/net/altr,socfpga-stmmac.yaml | 162 ++++++++++++++++++
> > .../devicetree/bindings/net/socfpga-dwmac.txt | 57 ------
> > MAINTAINERS | 7 +-
> > 4 files changed, 217 insertions(+), 58 deletions(-)
> > create mode 100644 Documentation/devicetree/bindings/net/altr,gmii-to-sgmii.yaml
>
> altr,gmii-to-sgmii-2.0.yaml
The '2.0' in the compatible string refers to a revision of the converter
IP. Wouldn't a single yaml be used to describe multiple revisions of the
IP, like net/snps,dwmac.yaml? Having the revision number in the filename
appears to be unusual.
>
> > create mode 100644 Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml
> > delete mode 100644 Documentation/devicetree/bindings/net/socfpga-dwmac.txt
> >
> > diff --git a/Documentation/devicetree/bindings/net/altr,gmii-to-sgmii.yaml b/Documentation/devicetree/bindings/net/altr,gmii-to-sgmii.yaml
> > new file mode 100644
> > index 000000000000..c0f61af3bde4
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/net/altr,gmii-to-sgmii.yaml
> > @@ -0,0 +1,49 @@
> > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> > +# Copyright (C) 2025 Altera Corporation
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/net/altr,gmii-to-sgmii.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Altera GMII to SGMII Converter
> > +
> > +maintainers:
> > + - Matthew Gerlach <matthew.gerlach@...era.com>
> > +
> > +description:
> > + This binding describes the Altera GMII to SGMII converter.
> > +
> > +properties:
> > + comptatible:
>
> typo
I am very surprised by this typo; so, I rechecked. I used the command,
make dt_binding_check DT_SCHEMA_FILES=altr,gmii-to-sgmii.yaml, which did
not report an error, but I did confirm the bot's error with the command,
make dt_binding_check. I will be sure to run the full 'make
dt_binding_check' before submitting.
Thanks for the feedback,
Matthew Gerlach
>
> > + const: altr,gmii-to-sgmii-2.0
> > +
Powered by blists - more mailing lists