1SPI-GPIO devicetree bindings
2
3This represents a group of 3-n GPIO lines used for bit-banged SPI on dedicated
4GPIO lines.
5
6Required properties:
7
8 - compatible: should be set to "spi-gpio"
9 - #address-cells: should be set to <0x1>
10 - ranges
11 - sck-gpios: GPIO spec for the SCK line to use
12 - miso-gpios: GPIO spec for the MISO line to use
13 - mosi-gpios: GPIO spec for the MOSI line to use
14 - cs-gpios: GPIOs to use for chipselect lines.
15             Not needed if num-chipselects = <0>.
16 - num-chipselects: Number of chipselect lines. Should be <0> if a single device
17                    with no chip select is connected.
18
19Deprecated bindings:
20
21These legacy GPIO line bindings can alternatively be used to define the
22GPIO lines used, they should not be used in new device trees.
23
24 - gpio-sck: GPIO spec for the SCK line to use
25 - gpio-miso: GPIO spec for the MISO line to use
26 - gpio-mosi: GPIO spec for the MOSI line to use
27
28Example:
29
30	spi {
31		compatible = "spi-gpio";
32		#address-cells = <0x1>;
33		ranges;
34
35		sck-gpios = <&gpio 95 0>;
36		miso-gpios = <&gpio 98 0>;
37		mosi-gpios = <&gpio 97 0>;
38		cs-gpios = <&gpio 125 0>;
39		num-chipselects = <1>;
40
41		/* clients */
42	};
43
44