linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] Tegra: DT: add device tree binding doc for QSPI
@ 2015-10-26 20:34 Tom Warren
       [not found] ` <1445891676-3262-1-git-send-email-twarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Warren @ 2015-10-26 20:34 UTC (permalink / raw)
  To: u-boot-0aAXYlwwYIKGBzrmiIFOJg
  Cc: swarren-DDmLM1+adcrQT0dZR+AlfA,
	tomcwarren3959-Re5JQEeQqe8AvxtiuMwx3w,
	jteki-oRp2ZoJdM/RWk0Htik3J/w, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8,
	ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
	galak-sgV2jX0FEOL9JmXXK+q4OQ, treding-DDmLM1+adcrQT0dZR+AlfA,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	acourbot-DDmLM1+adcrQT0dZR+AlfA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Tom Warren

This patch adds the device tree binding doc for the Tegra
QSPI controller on Tegra210.

Signed-off-by: Tom Warren <twarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
Changes in v2:
- based it more on kernel's nvidia,tegra114-spi.txt binding
- changes based on prelim review by swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org
Changes in v3:
- renamed to 'nvidia,tegra210-qspi.txt' to match kernel bindings
- more changes based on review from swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org

 Documentation/devicetree/bindings/spi/nvidia,tegra210-qspi.txt | 42 ++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/nvidia,tegra210-qspi.txt

diff --git a/Documentation/devicetree/bindings/spi/nvidia,tegra210-qspi.txt b/Documentation/devicetree/bindings/spi/nvidia,tegra210-qspi.txt
new file mode 100644
index 0000000..fe1558f
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/nvidia,tegra210-qspi.txt
@@ -0,0 +1,42 @@
+NVIDIA Tegra QSPI controller.
+
+Required properties:
+- compatible : for Tegra210, must contain "nvidia,tegra210-qspi".
+- reg: Should contain QSPI registers location and length.
+- interrupts: Should contain QSPI interrupt.
+- clock-names : Must include the following entries:
+  - qspi
+- resets : Must contain an entry for each entry in reset-names.
+  See ../reset/reset.txt for details.
+- reset-names : Must include the following entries:
+  - qspi
+- clocks : Must contain an entry for each entry in clock-names.
+  See ../clocks/clock-bindings.txt for details.
+
+Optional properties:
+- dmas : Must contain an entry for each entry in clock-names.
+  See ../dma/dma.txt for details.
+- dma-names : Must include the following entries:
+  - rx
+  - tx
+
+Recommended properties:
+- spi-max-frequency: Definition as per spi-bus.txt
+
+Example:
+
+spi@70410000 {
+	compatible = "nvidia,tegra210-qspi";
+	reg = <0x0 0x70410000 0x0 0x1000>;
+	interrupts = <0 10 0x04>;
+	spi-max-frequency = <24000000>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	clocks = <&tegra_car 211>;
+	clock-names = "qspi";
+	resets = <&tegra_car 211>;
+	reset-names = "qspi";
+	dmas = <&apbdma 16>, <&apbdma 16>;
+	dma-names = "rx", "tx";
+	status = "disabled";
+};
-- 
1.8.2.1.610.g562af5b

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] Tegra: DT: add device tree binding doc for QSPI
       [not found] ` <1445891676-3262-1-git-send-email-twarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2015-10-26 21:04   ` Stephen Warren
       [not found]     ` <562E954B.5070604-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2015-10-26 21:04 UTC (permalink / raw)
  To: Tom Warren
  Cc: u-boot-0aAXYlwwYIKGBzrmiIFOJg, swarren-DDmLM1+adcrQT0dZR+AlfA,
	tomcwarren3959-Re5JQEeQqe8AvxtiuMwx3w,
	jteki-oRp2ZoJdM/RWk0Htik3J/w, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8,
	ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
	galak-sgV2jX0FEOL9JmXXK+q4OQ, treding-DDmLM1+adcrQT0dZR+AlfA,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	acourbot-DDmLM1+adcrQT0dZR+AlfA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

On 10/26/2015 02:34 PM, Tom Warren wrote:
> This patch adds the device tree binding doc for the Tegra
> QSPI controller on Tegra210.

> diff --git a/Documentation/devicetree/bindings/spi/nvidia,tegra210-qspi.txt b/Documentation/devicetree/bindings/spi/nvidia,tegra210-qspi.txt

> +- clock-names : Must include the following entries:
> +  - qspi
> +- resets : Must contain an entry for each entry in reset-names.
> +  See ../reset/reset.txt for details.
> +- reset-names : Must include the following entries:
> +  - qspi
> +- clocks : Must contain an entry for each entry in clock-names.
> +  See ../clocks/clock-bindings.txt for details.

Let's keep clocks and clock-names next to each-other in the doc. I don't 
know why they aren't in the eixsting Tegra SPI doc.

With this issue fixed, this patch looks good to me.

Note: I don't see the devicetree mailing list in the CC list. You should 
probably replace the U-Boot mailing list with it.

> +Optional properties:
> +- dmas : Must contain an entry for each entry in clock-names.
> +  See ../dma/dma.txt for details.
> +- dma-names : Must include the following entries:
> +  - rx
> +  - tx

Eventually, we should have a property that describes the SPI bus width 
(x1, x2, x4 I assume). However, we can assume that unless otherwise 
specified, the width is x1, and add a property to specify the width 
later as/when we need it if you want.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH v3] Tegra: DT: add device tree binding doc for QSPI
       [not found]     ` <562E954B.5070604-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2015-10-26 21:36       ` Tom Warren
       [not found]         ` <731fc53aa2d24edc93c2af43a7711657-wO81nVYWzR66sJks/06JalaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Warren @ 2015-10-26 21:36 UTC (permalink / raw)
  To: Stephen Warren
  Cc: u-boot-0aAXYlwwYIKGBzrmiIFOJg@public.gmane.org, Stephen Warren,
	tomcwarren3959-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	jteki-oRp2ZoJdM/RWk0Htik3J/w@public.gmane.org,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	pawel.moll-5wv7dgnIgG8@public.gmane.org,
	mark.rutland-5wv7dgnIgG8@public.gmane.org,
	ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org,
	galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, Thierry Reding,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Alex Courbot,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org

Stephen,

> -----Original Message-----
> From: Stephen Warren [mailto:swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org]
> Sent: Monday, October 26, 2015 2:04 PM
> To: Tom Warren <TWarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> Cc: u-boot-0aAXYlwwYIKGBzrmiIFOJg@public.gmane.org; Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>;
> tomcwarren3959-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; jteki-oRp2ZoJdM/RWk0Htik3J/w@public.gmane.org; robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org;
> pawel.moll-5wv7dgnIgG8@public.gmane.org; mark.rutland-5wv7dgnIgG8@public.gmane.org; ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org;
> galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org; Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>; linux-
> tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Alex Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>; linux-arm-
> kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
> Subject: Re: [PATCH v3] Tegra: DT: add device tree binding doc for QSPI
> 
> On 10/26/2015 02:34 PM, Tom Warren wrote:
> > This patch adds the device tree binding doc for the Tegra QSPI
> > controller on Tegra210.
> 
> > diff --git
> > a/Documentation/devicetree/bindings/spi/nvidia,tegra210-qspi.txt
> > b/Documentation/devicetree/bindings/spi/nvidia,tegra210-qspi.txt
> 
> > +- clock-names : Must include the following entries:
> > +  - qspi
> > +- resets : Must contain an entry for each entry in reset-names.
> > +  See ../reset/reset.txt for details.
> > +- reset-names : Must include the following entries:
> > +  - qspi
> > +- clocks : Must contain an entry for each entry in clock-names.
> > +  See ../clocks/clock-bindings.txt for details.
> 
> Let's keep clocks and clock-names next to each-other in the doc. I don't know
> why they aren't in the eixsting Tegra SPI doc.
OK. I assume 'clock-names', then 'clocks' since 'clocks' references clock-names.

> 
> With this issue fixed, this patch looks good to me.
> 
> Note: I don't see the devicetree mailing list in the CC list. You should probably
> replace the U-Boot mailing list with it.
I thought I had it, but may have dropped it. What exactly is the URL of the devicetree mailing list? devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org? or devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org?

> 
> > +Optional properties:
> > +- dmas : Must contain an entry for each entry in clock-names.
> > +  See ../dma/dma.txt for details.
> > +- dma-names : Must include the following entries:
> > +  - rx
> > +  - tx
> 
> Eventually, we should have a property that describes the SPI bus width (x1, x2,
> x4 I assume). However, we can assume that unless otherwise specified, the
> width is x1, and add a property to specify the width later as/when we need it if
> you want.

Tom
--
nvpublic

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] Tegra: DT: add device tree binding doc for QSPI
       [not found]         ` <731fc53aa2d24edc93c2af43a7711657-wO81nVYWzR66sJks/06JalaTQe2KTcn/@public.gmane.org>
@ 2015-10-26 21:49           ` Stephen Warren
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2015-10-26 21:49 UTC (permalink / raw)
  To: Tom Warren
  Cc: u-boot-0aAXYlwwYIKGBzrmiIFOJg@public.gmane.org, Stephen Warren,
	tomcwarren3959-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	jteki-oRp2ZoJdM/RWk0Htik3J/w@public.gmane.org,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	pawel.moll-5wv7dgnIgG8@public.gmane.org,
	mark.rutland-5wv7dgnIgG8@public.gmane.org,
	ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org,
	galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, Thierry Reding,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Alex Courbot,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org

On 10/26/2015 03:36 PM, Tom Warren wrote:
> Stephen Warren wrote at Monday, October 26, 2015 2:04 PM:
>> On 10/26/2015 02:34 PM, Tom Warren wrote:
>>> This patch adds the device tree binding doc for the Tegra QSPI
>>> controller on Tegra210.
>>
>>> diff --git
>>> a/Documentation/devicetree/bindings/spi/nvidia,tegra210-qspi.txt
>>> b/Documentation/devicetree/bindings/spi/nvidia,tegra210-qspi.txt
>>
>>> +- clock-names : Must include the following entries:
>>> +  - qspi
>>> +- resets : Must contain an entry for each entry in reset-names.
>>> +  See ../reset/reset.txt for details.
>>> +- reset-names : Must include the following entries:
>>> +  - qspi
>>> +- clocks : Must contain an entry for each entry in clock-names.
>>> +  See ../clocks/clock-bindings.txt for details.
>>
>> Let's keep clocks and clock-names next to each-other in the doc. I don't know
>> why they aren't in the eixsting Tegra SPI doc.
 >
> OK. I assume 'clock-names', then 'clocks' since 'clocks' references clock-names.

That sounds correct.

>> With this issue fixed, this patch looks good to me.
>>
>> Note: I don't see the devicetree mailing list in the CC list. You should probably
>> replace the U-Boot mailing list with it.
 >
> I thought I had it, but may have dropped it. What exactly is the URL of the devicetree mailing list? devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org? or devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org?

devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

(See the "OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" in 
"MAINTAINERS", or the output of ./scripts/get_maintainers.pl)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-26 21:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26 20:34 [PATCH v3] Tegra: DT: add device tree binding doc for QSPI Tom Warren
     [not found] ` <1445891676-3262-1-git-send-email-twarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-10-26 21:04   ` Stephen Warren
     [not found]     ` <562E954B.5070604-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-10-26 21:36       ` Tom Warren
     [not found]         ` <731fc53aa2d24edc93c2af43a7711657-wO81nVYWzR66sJks/06JalaTQe2KTcn/@public.gmane.org>
2015-10-26 21:49           ` Stephen Warren

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).