All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiaxun Yang <jiaxun.yang@flygoat.com>
To: Qing Zhang <zhangqing@loongson.cn>,
	Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	ThomasBogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-spi@vger.kernel.org, Huacai Chen <chenhc@lemote.com>,
	devicetree@vger.kernel.org, linux-mips@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/4] spi: ls7a: Add YAML schemas
Date: Sat, 26 Dec 2020 11:31:07 +0800	[thread overview]
Message-ID: <7d26a91a-f463-9ae4-8420-28a1b591053b@flygoat.com> (raw)
In-Reply-To: <1608892552-15457-2-git-send-email-zhangqing@loongson.cn>

在 2020/12/25 下午6:35, Qing Zhang 写道:
> Switch the DT binding to a YAML schema to enable the DT validation.
>
> Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
> ---
>
> v4: fix warnings/errors about running 'make dt_binding_check'
>
> ---
>   .../devicetree/bindings/spi/loongson,spi-ls7a.yaml | 46 ++++++++++++++++++++++
>   1 file changed, 46 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..8cc9bc5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/loongson,spi-ls7a.yaml
> @@ -0,0 +1,46 @@
> +# 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.
> +
> +properties:
> +  compatible:
> +    const: loongson,ls7a-spi
> +
> +  reg:
> +    maxItems: 1
> +
> +required:
> +  - compatible
> +  - reg
> +  - num-chipselects

num-chipselects never parsed in code?

Thanks.

- Jiaxun



> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    pci {
> +        #address-cells = <3>;
> +        #size-cells = <2>;
> +
> +        spi@16,0 {
> +        compatible = "pci0014,7a0b.0",
> +                        "pci0014,7a0b",
> +                        "pciclass088000",
> +                        "pciclass0800";
> +
> +        reg = <0xb000 0x0 0x0 0x0 0x0>;
> +        num-chipselects = <0>;
> +        };
> +    };
> +
> +...


  parent reply	other threads:[~2020-12-26  3:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-25 10:35 [PATCH v4 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support Qing Zhang
2020-12-25 10:35 ` [PATCH v4 2/4] spi: ls7a: Add YAML schemas Qing Zhang
2020-12-25 12:19   ` Sergei Shtylyov
2020-12-26  6:40     ` zhangqing
2020-12-26  3:31   ` Jiaxun Yang [this message]
2020-12-26  6:31     ` zhangqing
2020-12-25 10:35 ` [PATCH v4 3/4] MIPS: Loongson64: DTS: Add SPI support to LS7A Qing Zhang
2020-12-25 10:35 ` [PATCH v4 4/4] MIPS: Loongson: Enable Loongson LS7A SPI in loongson3_defconfig Qing Zhang
2020-12-26  4:30   ` Huacai Chen
2020-12-26  4:28 ` [PATCH v4 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support Huacai Chen
2020-12-26  6:36   ` zhangqing

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=7d26a91a-f463-9ae4-8420-28a1b591053b@flygoat.com \
    --to=jiaxun.yang@flygoat.com \
    --cc=broonie@kernel.org \
    --cc=chenhc@lemote.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=tsbogend@alpha.franken.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.