From: Harini Katakam <harinik@xilinx.com>
To: broonie@kernel.org, grant.likely@linaro.org, robh+dt@kernel.org,
pawel.moll@arm.com, mark.rutland@arm.com,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, linux-doc@vger.kernel.org
Cc: Harini Katakam <harinik@xilinx.com>
Subject: [PATCH v2 2/2] devicetree: Add devicetree bindings documentation for Cadence SPI
Date: Thu, 3 Apr 2014 16:40:31 +0530 [thread overview]
Message-ID: <1396523431-14519-2-git-send-email-harinik@xilinx.com> (raw)
In-Reply-To: <1396523431-14519-1-git-send-email-harinik@xilinx.com>
Add spi-cadence bindings documentation.
Signed-off-by: Harini Katakam <harinik@xilinx.com>
---
v2 changes:
- Separate patch for bindings.
- Add xilinx compatible string; Make compatible string first in the node.
- Use property name num-cs. Make this property optional.
---
.../devicetree/bindings/spi/spi-cadence.txt | 27 ++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 Documentation/devicetree/bindings/spi/spi-cadence.txt
diff --git a/Documentation/devicetree/bindings/spi/spi-cadence.txt b/Documentation/devicetree/bindings/spi/spi-cadence.txt
new file mode 100644
index 0000000..ccb7599
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/spi-cadence.txt
@@ -0,0 +1,27 @@
+Cadence SPI controller Device Tree Bindings
+-------------------------------------------
+
+Required properties:
+- compatible : Should be "cdns,spi-r1p6" or "xlnx,zynq-spi-r1p6".
+- reg : Physical base address and size of SPI registers map.
+- interrupts : Property with a value describing the interrupt
+ number.
+- interrupt-parent : Must be core interrupt controller
+- clock-names : List of input clock names - "ref_clk", "pclk"
+ (See clock bindings for details).
+- clocks : Clock phandles (see clock bindings for details).
+
+Optional properties:
+- num-cs : Number of chip selects used.
+
+Example:
+
+ spi@e0007000 {
+ compatible = "xlnx,zynq-spi-r1p6";
+ clock-names = "ref_clk", "pclk";
+ clocks = <&clkc 26>, <&clkc 35>;
+ interrupt-parent = <&intc>;
+ interrupts = <0 49 4>;
+ num-cs = /bits/ 16 <4>;
+ reg = <0xe0007000 0x1000>;
+ } ;
--
1.7.9.5
next prev parent reply other threads:[~2014-04-03 11:11 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-03 11:10 [PATCH v2 1/2] SPI: Add driver for Cadence SPI controller Harini Katakam
2014-04-03 11:10 ` Harini Katakam [this message]
2014-04-03 21:34 ` [PATCH v2 2/2] devicetree: Add devicetree bindings documentation for Cadence SPI Mark Brown
2014-04-04 3:00 ` Harini Katakam
2014-04-04 8:09 ` Geert Uytterhoeven
2014-04-04 11:16 ` Michal Simek
2014-04-04 10:09 ` Mark Brown
2014-04-04 12:14 ` Harini Katakam
2014-04-04 12:24 ` Peter Crosthwaite
2014-04-04 12:39 ` Harini Katakam
2014-04-04 12:46 ` Mark Brown
2014-04-04 14:08 ` Harini Katakam
2014-04-04 14:30 ` Harini Katakam
2014-04-04 23:14 ` Peter Crosthwaite
2014-04-05 6:05 ` Harini Katakam
2014-04-05 23:43 ` Peter Crosthwaite
2014-04-07 7:46 ` Harini Katakam
2014-04-04 14:42 ` Mark Brown
2014-04-04 14:49 ` Harini Katakam
2014-04-03 21:43 ` [PATCH v2 1/2] SPI: Add driver for Cadence SPI controller Mark Brown
2014-04-04 3:49 ` Harini Katakam
2014-04-04 9:04 ` sourav
2014-04-04 9:24 ` sourav
2014-04-04 10:02 ` Michal Simek
2014-04-04 22:58 ` Peter Crosthwaite
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=1396523431-14519-2-git-send-email-harinik@xilinx.com \
--to=harinik@xilinx.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=grant.likely@linaro.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@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
all inboxes | Powered by JetHome®