[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210329135259.GA2423613@robh.at.kernel.org>
Date: Mon, 29 Mar 2021 08:52:59 -0500
From: Rob Herring <robh@...nel.org>
To: Mark Brown <broonie@...nel.org>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Thierry Reding <thierry.reding@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>,
linux-spi@...r.kernel.org, linux-tegra@...r.kernel.org
Subject: Re: [PATCH] spi: dt-bindings: nvidia,tegra210-quad: Use documented
compatible "jedec,spi-nor" in example
On Sat, Mar 27, 2021 at 03:33:57PM -0500, Rob Herring wrote:
> The 'spi-nor' compatible used in the example is not documented. Use the
> documented 'jedec,spi-nor' compatible instead.
>
> Cc: Mark Brown <broonie@...nel.org>
> Cc: Thierry Reding <thierry.reding@...il.com>
> Cc: Jonathan Hunter <jonathanh@...dia.com>
> Cc: linux-spi@...r.kernel.org
> Cc: linux-tegra@...r.kernel.org
> Signed-off-by: Rob Herring <robh@...nel.org>
> ---
> Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Ugg, I guess I should have tested this first:
Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.example.dt.yaml: flash@0: 'nvidia,rx-clk-tap-delay', 'nvidia,tx-clk-tap-delay' do not match any of the regexes: '^partition@', 'pinctrl-[0-9]+'
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml
This issue has come up a couple of times recently. There's not really an
easy fix for this other than dropping the properties from the example
and that doesn't help for actual dts file checks.
The issue is nvidia,tegra210-quad.yaml is applied to the SPI controller
node and jedec,spi-nor.yaml is applied to the child node. Since those
are independent, there's never a single schema with all possible child
properties.
We could have a schema listing all these slave properties and every SPI
slave binding has to reference that schema.
Rob
Powered by blists - more mailing lists