From: Rob Herring <robh@kernel.org>
To: Hector Martin <marcan@marcan.st>
Cc: Sven Peter <sven@svenpeter.dev>, Mark Brown <broonie@kernel.org>,
Alyssa Rosenzweig <alyssa@rosenzweig.io>,
linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] dt-bindings: spi: apple,spi: Add binding for Apple SPI controllers
Date: Wed, 15 Dec 2021 14:05:17 -0600 [thread overview]
Message-ID: <YbpKfWfavRtLmMne@robh.at.kernel.org> (raw)
In-Reply-To: <20211212034726.26306-3-marcan@marcan.st>
On Sun, Dec 12, 2021 at 12:47:25PM +0900, Hector Martin wrote:
> The Apple SPI controller is present in SoCs such as the M1 (t8103) and
> M1 Pro/Max (t600x). This controller uses one IRQ and one clock, and
> doesn't need any special properties, so the binding is trivial.
>
> Signed-off-by: Hector Martin <marcan@marcan.st>
> ---
> .../devicetree/bindings/spi/apple,spi.yaml | 63 +++++++++++++++++++
> 1 file changed, 63 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/spi/apple,spi.yaml
>
> diff --git a/Documentation/devicetree/bindings/spi/apple,spi.yaml b/Documentation/devicetree/bindings/spi/apple,spi.yaml
> new file mode 100644
> index 000000000000..bcbdc8943e92
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/apple,spi.yaml
> @@ -0,0 +1,63 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/spi/apple,spi.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Apple ARM SoC SPI controller
> +
> +allOf:
> + - $ref: "spi-controller.yaml#"
> +
> +maintainers:
> + - Hector Martin <marcan@marcan.st>
> +
> +properties:
> + compatible:
> + items:
> + - enum:
> + - apple,t8103-spi
> + - apple,t6000-spi
> + - const: apple,spi
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + power-domains:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - interrupts
> + - '#address-cells'
> + - '#size-cells'
Already required by spi-controller.yaml. Otherwise,
Reviewed-by: Rob Herring <robh@kernel.org>
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/apple-aic.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + soc {
> + #address-cells = <2>;
> + #size-cells = <2>;
> +
> + spi: spi@39b104000 {
> + compatible = "apple,t6000-spi", "apple,spi";
> + reg = <0x3 0x9b104000 0x0 0x4000>;
> + interrupt-parent = <&aic>;
> + interrupts = <AIC_IRQ 0 1107 IRQ_TYPE_LEVEL_HIGH>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + clocks = <&clk>;
> + };
> + };
> --
> 2.33.0
>
>
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Hector Martin <marcan@marcan.st>
Cc: Sven Peter <sven@svenpeter.dev>, Mark Brown <broonie@kernel.org>,
Alyssa Rosenzweig <alyssa@rosenzweig.io>,
linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] dt-bindings: spi: apple,spi: Add binding for Apple SPI controllers
Date: Wed, 15 Dec 2021 14:05:17 -0600 [thread overview]
Message-ID: <YbpKfWfavRtLmMne@robh.at.kernel.org> (raw)
In-Reply-To: <20211212034726.26306-3-marcan@marcan.st>
On Sun, Dec 12, 2021 at 12:47:25PM +0900, Hector Martin wrote:
> The Apple SPI controller is present in SoCs such as the M1 (t8103) and
> M1 Pro/Max (t600x). This controller uses one IRQ and one clock, and
> doesn't need any special properties, so the binding is trivial.
>
> Signed-off-by: Hector Martin <marcan@marcan.st>
> ---
> .../devicetree/bindings/spi/apple,spi.yaml | 63 +++++++++++++++++++
> 1 file changed, 63 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/spi/apple,spi.yaml
>
> diff --git a/Documentation/devicetree/bindings/spi/apple,spi.yaml b/Documentation/devicetree/bindings/spi/apple,spi.yaml
> new file mode 100644
> index 000000000000..bcbdc8943e92
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/apple,spi.yaml
> @@ -0,0 +1,63 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/spi/apple,spi.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Apple ARM SoC SPI controller
> +
> +allOf:
> + - $ref: "spi-controller.yaml#"
> +
> +maintainers:
> + - Hector Martin <marcan@marcan.st>
> +
> +properties:
> + compatible:
> + items:
> + - enum:
> + - apple,t8103-spi
> + - apple,t6000-spi
> + - const: apple,spi
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + power-domains:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - interrupts
> + - '#address-cells'
> + - '#size-cells'
Already required by spi-controller.yaml. Otherwise,
Reviewed-by: Rob Herring <robh@kernel.org>
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/apple-aic.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + soc {
> + #address-cells = <2>;
> + #size-cells = <2>;
> +
> + spi: spi@39b104000 {
> + compatible = "apple,t6000-spi", "apple,spi";
> + reg = <0x3 0x9b104000 0x0 0x4000>;
> + interrupt-parent = <&aic>;
> + interrupts = <AIC_IRQ 0 1107 IRQ_TYPE_LEVEL_HIGH>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + clocks = <&clk>;
> + };
> + };
> --
> 2.33.0
>
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-12-15 20:05 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-12 3:47 [PATCH 0/3] Apple SPI controller driver Hector Martin
2021-12-12 3:47 ` Hector Martin
2021-12-12 3:47 ` [PATCH 1/3] MAINTAINERS: Add apple-spi driver & binding files Hector Martin
2021-12-12 3:47 ` Hector Martin
2021-12-12 3:47 ` [PATCH 2/3] dt-bindings: spi: apple,spi: Add binding for Apple SPI controllers Hector Martin
2021-12-12 3:47 ` [PATCH 2/3] dt-bindings: spi: apple, spi: " Hector Martin
2021-12-15 20:05 ` Rob Herring [this message]
2021-12-15 20:05 ` [PATCH 2/3] dt-bindings: spi: apple,spi: " Rob Herring
2021-12-12 3:47 ` [PATCH 3/3] spi: apple: Add driver for Apple SPI controller Hector Martin
2021-12-12 3:47 ` Hector Martin
2021-12-12 12:39 ` Sven Peter
2021-12-12 12:39 ` Sven Peter
2021-12-13 3:32 ` Hector Martin
2021-12-13 3:32 ` Hector Martin
2021-12-12 23:41 ` Mark Brown
2021-12-12 23:41 ` Mark Brown
2021-12-13 3:50 ` Hector Martin
2021-12-13 3:50 ` Hector Martin
2021-12-13 15:56 ` Mark Brown
2021-12-13 15:56 ` Mark Brown
2021-12-13 17:10 ` Hector Martin
2021-12-13 17:10 ` Hector Martin
2021-12-13 17:54 ` Mark Brown
2021-12-13 17:54 ` Mark Brown
[not found] ` <CAHp75Vc17tOFTyMT2698BkENC23ocbX9QEc8-rj5=n3Lz5Pn=g@mail.gmail.com>
2021-12-18 4:35 ` Hector Martin
2021-12-18 4:35 ` Hector Martin
2022-01-01 7:25 ` Lukas Wunner
2022-01-04 12:58 ` Mark Brown
2022-01-04 12:58 ` 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=YbpKfWfavRtLmMne@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=alyssa@rosenzweig.io \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=marcan@marcan.st \
--cc=sven@svenpeter.dev \
/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.