Re: [PATCH 1/1] dt-bindings: mmc: fsl,esdhc: Add explicit reference to mmc-controller-common
From: Rob Herring
Date: Fri Jul 25 2025 - 19:36:04 EST
On Fri, Jul 25, 2025 at 08:01:51AM +0200, Alexander Stein wrote:
> Even though it is referenced by mmc/mmc-controller.yaml it still raises
> the warning:
> esdhc@1560000 (fsl,ls1021a-esdhc): Unevaluated properties are not allowed ('bus-width' was unexpected)
>
> Adding an explicit reference fixes this.
>
> Signed-off-by: Alexander Stein <alexander.stein@xxxxxxxxxxxxxxx>
> ---
> I don't know if this is a tooling problem or whatever. I would have
> expected that mmc-controller-common.yaml is added via
> mmc-controller.yaml. But apparently this is missing resulting in the
> given warning. Hence adding the reference
The issue is the nodename. Since validation of it fails, the whole
referenced schema is not 'evaluated' and bus-width is unevaluated. Best
I can tell, that's correct behavior for json-schema.
I guess this is an adequate work-around.
Acked-by: Rob Herring (Arm) <robh@xxxxxxxxxx>
>
> Documentation/devicetree/bindings/mmc/fsl,esdhc.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/mmc/fsl,esdhc.yaml b/Documentation/devicetree/bindings/mmc/fsl,esdhc.yaml
> index 62087cf920df8..f45e592901e24 100644
> --- a/Documentation/devicetree/bindings/mmc/fsl,esdhc.yaml
> +++ b/Documentation/devicetree/bindings/mmc/fsl,esdhc.yaml
> @@ -90,6 +90,7 @@ required:
>
> allOf:
> - $ref: sdhci-common.yaml#
> + - $ref: mmc-controller-common.yaml#
>
> unevaluatedProperties: false
>
> --
> 2.43.0
>