Re: [PATCH v4] dt-bindings: net: Convert socfpga-dwmac bindings to yaml
From: Rob Herring (Arm)
Date: Mon Jun 09 2025 - 13:42:33 EST
On Mon, 09 Jun 2025 09:37:25 -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@xxxxxxxxxx>
> Signed-off-by: Matthew Gerlach <matthew.gerlach@xxxxxxxxxx>
> ---
> 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
> create mode 100644 Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml
> delete mode 100644 Documentation/devicetree/bindings/net/socfpga-dwmac.txt
>
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
Documentation/devicetree/bindings/net/altr,gmii-to-sgmii.example.dtb: /example-0/phy@ff000240: failed to match any schema with compatible: ['altr,gmii-to-sgmii-2.0']
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250609163725.6075-1-matthew.gerlach@xxxxxxxxxx
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.