From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: John Crispin <blogic@openwrt.org>
Cc: Mark Brown <broonie@kernel.org>,
devicetree@vger.kernel.org, linux-spi@vger.kernel.org,
linux-mips@linux-mips.org
Subject: Re: [PATCH 1/2] DT: Add documentation for spi-rt2880
Date: Sat, 10 Aug 2013 00:44:26 +0400 [thread overview]
Message-ID: <520554AA.4030503@cogentembedded.com> (raw)
In-Reply-To: <1376074288-29302-1-git-send-email-blogic@openwrt.org>
Hello.
On 08/09/2013 10:51 PM, John Crispin wrote:
> Describe the SPI master found on the MIPS based Ralink SoC.
> Signed-off-by: John Crispin <blogic@openwrt.org>
> Cc: devicetree@vger.kernel.org
> Cc: linux-spi@vger.kernel.org
> Cc: linux-mips@linux-mips.org
> ---
> .../devicetree/bindings/spi/spi-rt2880.txt | 26 ++++++++++++++++++++
> 1 file changed, 26 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/spi/spi-rt2880.txt
> diff --git a/Documentation/devicetree/bindings/spi/spi-rt2880.txt b/Documentation/devicetree/bindings/spi/spi-rt2880.txt
> new file mode 100644
> index 0000000..d946626
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/spi-rt2880.txt
> @@ -0,0 +1,26 @@
> +Ralink SoC RT2880 and famile SPI master controller.
> +
> +Required properties:
> +- compatible : "ralink,rt2880-spi"
> +- reg : The register base for the controller.
> +- #address-cells : <1>, as required by generic SPI binding.
> +- #size-cells : <0>, also as required by generic SPI binding.
> +
> +Child nodes as per the generic SPI binding.
> +
> +Example:
> +
> + spi@b00 {
> + compatible = "ralink,rt2880-spi";
> + reg = <0xb00 0x100>;
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + m25p80@0 {
Don't call nodes with chip names. ePAPR [1] says: "the name of a node
should be somewhat generic, reflecting the function of the device and not its
precise programming model". I suspect this is a flash device, ePAPR suggests
using "flash" as a name in this case.
> + compatible = "m25p80";
> + reg = <0>;
> + spi-max-frequency = <10000000>;
> + };
> + };
> +
WBR, Sergei
next prev parent reply other threads:[~2013-08-09 20:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-09 18:51 [PATCH 1/2] DT: Add documentation for spi-rt2880 John Crispin
2013-08-09 18:51 ` [PATCH 2/2] SPI: ralink: add Ralink SoC spi driver John Crispin
2013-08-11 13:26 ` Mark Brown
2013-08-13 18:43 ` John Crispin
2013-08-13 18:58 ` Mark Brown
2013-08-12 16:10 ` James Hogan
2013-08-12 16:10 ` James Hogan
2013-08-12 16:11 ` James Hogan
2013-08-12 16:11 ` James Hogan
2013-08-09 20:44 ` Sergei Shtylyov [this message]
2013-08-09 23:35 ` [PATCH 1/2] DT: Add documentation for spi-rt2880 Kumar Gala
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=520554AA.4030503@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=blogic@openwrt.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-mips@linux-mips.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 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.