spi: dw: document device tree binding
authorBaruch Siach <baruch@tkos.co.il>
Fri, 31 Jan 2014 10:07:45 +0000 (12:07 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 24 Apr 2014 17:01:05 +0000 (18:01 +0100)
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/spi/spi-dw.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/spi/spi-dw.txt b/Documentation/devicetree/bindings/spi/spi-dw.txt
new file mode 100644 (file)
index 0000000..7b63ed6
--- /dev/null
@@ -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>;
+};
This page took 0.025092 seconds and 5 git commands to generate.