From: Rob Herring <robh@kernel.org>
To: Qing Zhang <zhangqing@loongson.cn>
Cc: Mark Brown <broonie@kernel.org>,
ThomasBogendoerfer <tsbogend@alpha.franken.de>,
linux-spi@vger.kernel.org, Huacai Chen <chenhc@lemote.com>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
yangtiezhu@loongson.cn, devicetree@vger.kernel.org,
linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 2/4] spi: ls7a: Add YAML schemas
Date: Thu, 7 Jan 2021 20:40:42 -0700 [thread overview]
Message-ID: <20210108034042.GA1839426@robh.at.kernel.org> (raw)
In-Reply-To: <1609124381-9107-2-git-send-email-zhangqing@loongson.cn>
On Mon, Dec 28, 2020 at 10:59:39AM +0800, Qing Zhang wrote:
> Switch the DT binding to a YAML schema to enable the DT validation.
>
> Reviewed-by: Huacai Chen <chenhuacai@kernel.org>
> Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
> ---
>
> v4:
> - fix warnings/errors about running 'make dt_binding_check'
>
> v5:
> - remove num-chipelects
>
> v6:
> - No changes
>
> ---
> .../devicetree/bindings/spi/loongson,spi-ls7a.yaml | 44 ++++++++++++++++++++++
> 1 file changed, 44 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/spi/loongson,spi-ls7a.yaml
>
> diff --git a/Documentation/devicetree/bindings/spi/loongson,spi-ls7a.yaml b/Documentation/devicetree/bindings/spi/loongson,spi-ls7a.yaml
> new file mode 100644
> index 0000000..b90b28b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/loongson,spi-ls7a.yaml
> @@ -0,0 +1,44 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/spi/loongson,spi-ls7a.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Loongson LS7A PCH SPI Controller
> +
> +maintainers:
> + - Qing Zhang <zhangqing@loongson.cn>
> +
> +description: |
> + This controller can be found in Loongson-3 systems with LS7A PCH.
allOf:
- $ref: spi-controller.yaml#
> +
> +properties:
> + compatible:
> + const: loongson,ls7a-spi
> +
> + reg:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + pci {
> + #address-cells = <3>;
> + #size-cells = <2>;
> +
> + spi@16,0 {
> + compatible = "pci0014,7a0b.0",
> + "pci0014,7a0b",
> + "pciclass088000",
> + "pciclass0800";
Doesn't match the schema. If this is on PCI bus, then the example is
correct. Though you could drop some of the strings. And I think leading
0s should be omitted. So 'pci14,7a0b'. But please double check that.
Rob
next prev parent reply other threads:[~2021-01-08 3:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-28 2:59 [PATCH v6 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support Qing Zhang
2020-12-28 2:59 ` [PATCH v6 2/4] spi: ls7a: Add YAML schemas Qing Zhang
2021-01-08 3:40 ` Rob Herring [this message]
2020-12-28 2:59 ` [PATCH v6 3/4] MIPS: Loongson64: DTS: Add SPI support to LS7A Qing Zhang
2020-12-28 2:59 ` [PATCH v6 4/4] MIPS: Loongson: Enable Loongson LS7A SPI in loongson3_defconfig Qing Zhang
2020-12-28 8:40 ` [PATCH v6 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support Oleksij Rempel
2021-01-05 14:15 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210108034042.GA1839426@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=broonie@kernel.org \
--cc=chenhc@lemote.com \
--cc=devicetree@vger.kernel.org \
--cc=jiaxun.yang@flygoat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
--cc=yangtiezhu@loongson.cn \
--cc=zhangqing@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).