linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Bert Vermeulen <bert@biot.com>
Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
	John Crispin <john@phrozen.org>,
	Benjamin Larsson <benjamin.larsson@iopsys.eu>
Subject: Re: [PATCH 1/3] dt-bindings: arm: airoha: Add documentation for Airoha SPI controller
Date: Mon, 26 Sep 2022 15:28:00 -0500	[thread overview]
Message-ID: <20220926202800.GA2747274-robh@kernel.org> (raw)
In-Reply-To: <20220922100410.1101874-2-bert@biot.com>

On Thu, Sep 22, 2022 at 12:04:08PM +0200, Bert Vermeulen wrote:
> Create documentation for accessing the Airoha EN7523 SPI controller.
> 
> Signed-off-by: Bert Vermeulen <bert@biot.com>
> ---
>  .../bindings/spi/airoha,en7523-spi.yaml       | 54 +++++++++++++++++++
>  1 file changed, 54 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/spi/airoha,en7523-spi.yaml
> 
> diff --git a/Documentation/devicetree/bindings/spi/airoha,en7523-spi.yaml b/Documentation/devicetree/bindings/spi/airoha,en7523-spi.yaml
> new file mode 100644
> index 000000000000..e5bc7814424e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/airoha,en7523-spi.yaml
> @@ -0,0 +1,54 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/spi/airoha,en7523-spi.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Airoha EN7523 SPI controller
> +
> +maintainers:
> +  - Bert Vermeulen <bert@biot.com>
> +
> +description: |
> +  This binding describes the SPI controller on Airoha EN7523 SoCs.
> +
> +allOf:
> +  - $ref: "spi-controller.yaml#"

Drop quotes.

> +
> +properties:
> +  compatible:
> +    items:
> +      - const: airoha,en7523-spi
> +
> +  reg:
> +    maxItems: 1
> +
> +  clocks:
> +    items:
> +      - description: SPI clock

'maxItems: 1' is sufficient.

> +
> +  clock-names:
> +    items:
> +      - const: spi

You don't really need clock-names when there is only 1.

> +
> +required:
> +  - compatible
> +  - reg
> +  - clocks
> +  - clock-names
> +  - '#address-cells'
> +  - '#size-cells'
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/clock/en7523-clk.h>
> +    spi0: spi@1fa10000 {
> +      compatible = "airoha,en7523-spi";
> +      reg = <0x1fa10000 0x10000>;
> +      #address-cells = <1>;
> +      #size-cells = <0>;
> +      clocks = <&scu EN7523_CLK_SPI>;
> +      clock-names = "spi";
> +    };
> -- 
> 2.25.1
> 
> 

  parent reply	other threads:[~2022-09-26 20:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-22 10:04 [PATCH 0/3] Add support for the Airoha EN7523 SPI controller Bert Vermeulen
2022-09-22 10:04 ` [PATCH 1/3] dt-bindings: arm: airoha: Add documentation for Airoha " Bert Vermeulen
2022-09-23 11:31   ` Krzysztof Kozlowski
2022-09-23 11:55     ` Bert Vermeulen
2022-09-23 12:07       ` Krzysztof Kozlowski
2022-09-26 20:28   ` Rob Herring [this message]
2022-09-22 10:04 ` [PATCH 2/3] spi: Add support for the Airoha EN7523 SoC " Bert Vermeulen
2022-09-22 23:44   ` kernel test robot
2022-09-22 10:04 ` [PATCH 3/3] ARM: dts: en7523: Add SPI node Bert Vermeulen

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=20220926202800.GA2747274-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=benjamin.larsson@iopsys.eu \
    --cc=bert@biot.com \
    --cc=devicetree@vger.kernel.org \
    --cc=john@phrozen.org \
    --cc=linux-spi@vger.kernel.org \
    /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).