From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] spi: Tegra: add device tree binding doc for SPI and QSPI
Date: Fri, 23 Oct 2015 11:25:32 -0600 [thread overview]
Message-ID: <562A6D8C.1000004@wwwdotorg.org> (raw)
In-Reply-To: <1445620289-5403-1-git-send-email-twarren@nvidia.com>
On 10/23/2015 11:11 AM, Tom Warren wrote:
> This patch adds the device tree binding doc for the Tegra114
> SPI controller and the Tegra210 QSPI controller.
Initially, this should be sent as a Linux kernel patch, since the kernel
currently holds the definitive repository for DT bindings.
The binding should be based on the Tegra SPI binding present there, not
on the non-standard binding for Tegra114 SPI that's evidently in the
U-Boot tree.
That would imply sending the patch to the people/lists listed in the
following Linux kernel MAINTAINERS entry for DT bindings, plus at least
the Tegra mailing list and maintainers too:
OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS
M: Rob Herring <robh+dt@kernel.org>
M: Pawel Moll <pawel.moll@arm.com>
M: Mark Rutland <mark.rutland@arm.com>
M: Ian Campbell <ijc+devicetree@hellion.org.uk>
M: Kumar Gala <galak@codeaurora.org>
L: devicetree at vger.kernel.org
> diff --git a/doc/device-tree-bindings/spi/spi-tegra.txt b/doc/device-tree-bindings/spi/spi-tegra.txt
> new file mode 100644
> index 0000000..e215efe
> --- /dev/null
> +++ b/doc/device-tree-bindings/spi/spi-tegra.txt
> @@ -0,0 +1,47 @@
> +NVIDIA Tegra114 SPI controller.
Isn't this intended to be a binding for the QSPI controller?
> +Required properties:
> +- compatible : should be "nvidia,tegra114-spi".
This should be "qspi" not "spi", assuming the HW really is different.
This is a separate HW module, right?
> +- reg: Should contain SPI registers location and length.
> +- interrupts: Should contain SPI interrupts.
> +- clocks : Should contain an entry for SPI clock.
Reset- and DMA-related properties are missing here.
You could mark the DMA properties optional, and leave it up to drivers
to support PIO mode if the DMA properties are missing.
> +Recommended properties:
> +- spi-max-frequency: Definition as per
> + doc/device-tree-bindings/spi/spi-bus.txt
That should use a relative path ("spi-bus.txt"), so that the same text
applies irrespective of whether the file is contained within the Linux
kernel or U-Boot source trees.
> +NVIDIA Tegra210 QSPI controller.
The binding for Tegra114 and Tegra210 should be (and appears to be)
identical. There's no need to duplicate the text. Instead, simply say
something like the following for the compatible value in the one copy of
the text:
- compatible : should be one of the following:
"nvidia,tegra114-qspi" (for Tegra114)
"nvidia,tegra210-qspi" (for Tegra210)
However, if a driver that supports Tegra114 could operate correctly on
Tegra210 without knowledge that it was running on different HW, the
following compatible values area appropriate:
- compatible : should be one of the following:
"nvidia,tegra114-qspi" (for Tegra114)
"nvidia,tegra210-qspi", "nvidia,tegra114-qspi" (for Tegra210)
next prev parent reply other threads:[~2015-10-23 17:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-23 17:11 [U-Boot] [PATCH] spi: Tegra: add device tree binding doc for SPI and QSPI Tom Warren
2015-10-23 17:25 ` Stephen Warren [this message]
2015-10-23 17:52 ` Tom Warren
2015-10-23 18:39 ` Stephen Warren
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=562A6D8C.1000004@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=u-boot@lists.denx.de \
/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