Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
[deliverable/linux.git] / Documentation / devicetree / bindings / spi / spi-gpio.txt
CommitLineData
38ab18ca
DM
1SPI-GPIO devicetree bindings
2
3Required 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
d1d81802
TF
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.
38ab18ca
DM
15
16Example:
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
This page took 0.361336 seconds and 5 git commands to generate.