Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux...
[linux/fpc-iii.git] / Documentation / devicetree / bindings / spi / spi-gpio.txt
bloba95603bcf6ffd9bbf99eff8ac2e5e367660e84a7
1 SPI-GPIO devicetree bindings
3 Required properties:
5  - compatible: should be set to "spi-gpio"
6  - #address-cells: should be set to <0x1>
7  - ranges
8  - gpio-sck: GPIO spec for the SCK line to use
9  - gpio-miso: GPIO spec for the MISO line to use
10  - gpio-mosi: GPIO spec for the MOSI line to use
11  - cs-gpios: GPIOs to use for chipselect lines.
12              Not needed if num-chipselects = <0>.
13  - num-chipselects: Number of chipselect lines. Should be <0> if a single device
14                     with no chip select is connected.
16 Example:
18         spi {
19                 compatible = "spi-gpio";
20                 #address-cells = <0x1>;
21                 ranges;
23                 gpio-sck = <&gpio 95 0>;
24                 gpio-miso = <&gpio 98 0>;
25                 gpio-mosi = <&gpio 97 0>;
26                 cs-gpios = <&gpio 125 0>;
27                 num-chipselects = <1>;
29                 /* clients */
30         };