aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/spi/spi-dw.txt
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2014-01-31 12:07:45 +0200
committerMark Brown <broonie@linaro.org>2014-04-24 18:01:05 +0100
commit20e5ea191524b482e1b4aa12b5ff4684717f44b8 (patch)
treeafb9630c7afd0f5854f462ddbf9cca5225fae25a /Documentation/devicetree/bindings/spi/spi-dw.txt
parentspi: dw: migrate to generic queue infrastructure (diff)
downloadlinux-dev-20e5ea191524b482e1b4aa12b5ff4684717f44b8.tar.xz
linux-dev-20e5ea191524b482e1b4aa12b5ff4684717f44b8.zip
spi: dw: document device tree binding
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/spi/spi-dw.txt')
-rw-r--r--Documentation/devicetree/bindings/spi/spi-dw.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/spi/spi-dw.txt b/Documentation/devicetree/bindings/spi/spi-dw.txt
new file mode 100644
index 000000000000..7b63ed601990
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/spi-dw.txt
@@ -0,0 +1,24 @@
+Synopsys DesignWare SPI master
+
+Required properties:
+- compatible: should be "snps,designware-spi"
+- #address-cells: see spi-bus.txt
+- #size-cells: see spi-bus.txt
+- reg: address and length of the spi master registers
+- interrupts: should contain one interrupt
+- clocks: spi clock phandle
+- num-cs: see spi-bus.txt
+
+Optional properties:
+- cs-gpios: see spi-bus.txt
+
+Example:
+
+spi: spi@4020a000 {
+ compatible = "snps,designware-spi";
+ interrupts = <11 1>;
+ reg = <0x4020a000 0x1000>;
+ clocks = <&pclk>;
+ num-cs = <2>;
+ cs-gpios = <&banka 0 0>;
+};