Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / Documentation / devicetree / bindings / spi / spi-gpio.txt
diff --git a/kernel/Documentation/devicetree/bindings/spi/spi-gpio.txt b/kernel/Documentation/devicetree/bindings/spi/spi-gpio.txt
new file mode 100644 (file)
index 0000000..a95603b
--- /dev/null
@@ -0,0 +1,31 @@
+SPI-GPIO devicetree bindings
+
+Required properties:
+
+ - compatible: should be set to "spi-gpio"
+ - #address-cells: should be set to <0x1>
+ - ranges
+ - gpio-sck: GPIO spec for the SCK line to use
+ - gpio-miso: GPIO spec for the MISO line to use
+ - gpio-mosi: GPIO spec for the MOSI line to use
+ - cs-gpios: GPIOs to use for chipselect lines.
+             Not needed if num-chipselects = <0>.
+ - num-chipselects: Number of chipselect lines. Should be <0> if a single device
+                    with no chip select is connected.
+
+Example:
+
+       spi {
+               compatible = "spi-gpio";
+               #address-cells = <0x1>;
+               ranges;
+
+               gpio-sck = <&gpio 95 0>;
+               gpio-miso = <&gpio 98 0>;
+               gpio-mosi = <&gpio 97 0>;
+               cs-gpios = <&gpio 125 0>;
+               num-chipselects = <1>;
+
+               /* clients */
+       };
+