GNU Linux-libre 4.14.266-gnu1
[releases.git] / Documentation / devicetree / bindings / spi / spi-gpio.txt
1 SPI-GPIO devicetree bindings
2
3 Required properties:
4
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.
15
16 Example:
17
18         spi {
19                 compatible = "spi-gpio";
20                 #address-cells = <0x1>;
21                 ranges;
22
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>;
28
29                 /* clients */
30         };
31