Re: [PATCH] dt-bindings: spi-mux: Add reference to spi-peripheral-props.yaml schema

From: Chris Packham
Date: Wed Jan 05 2022 - 15:13:55 EST



On 6/01/22 7:32 am, Rob Herring wrote:
> The spi-mux serves as both a SPI peripheral and controller, so add a
> reference to spi-peripheral-props.yaml in addition to
> spi-controller.yaml. This is necessary to avoid unevaluatedProperties
> warnings once those are fully enabled.
>
> Cc: Mark Brown <broonie@xxxxxxxxxx>
> Cc: Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx>
> Cc: linux-spi@xxxxxxxxxxxxxxx
> Signed-off-by: Rob Herring <robh@xxxxxxxxxx>

Reviewed-by: Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx>

> ---
> Documentation/devicetree/bindings/spi/spi-mux.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/spi/spi-mux.yaml b/Documentation/devicetree/bindings/spi/spi-mux.yaml
> index 51c7622dc20b..7ea79f6d33f3 100644
> --- a/Documentation/devicetree/bindings/spi/spi-mux.yaml
> +++ b/Documentation/devicetree/bindings/spi/spi-mux.yaml
> @@ -31,6 +31,7 @@ description: |
>
> allOf:
> - $ref: "/schemas/spi/spi-controller.yaml#"
> + - $ref: "/schemas/spi/spi-peripheral-props.yaml#"
>
> maintainers:
> - Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx>