summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/spi/spi-gpio.txt
blob: 52db562f17a422df5d7db5cc5a3ece060009a657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SPI-GPIO devicetree bindings

This represents a group of 3-n GPIO lines used for bit-banged SPI on dedicated
GPIO lines.

Required properties:

 - compatible: should be set to "spi-gpio"
 - #address-cells: should be set to <0x1>
 - ranges
 - sck-gpios: GPIO spec for the SCK line to use
 - miso-gpios: GPIO spec for the MISO line to use
 - mosi-gpios: 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.

Deprecated bindings:

These legacy GPIO line bindings can alternatively be used to define the
GPIO lines used, they should not be used in new device trees.

 - 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

Example:

	spi {
		compatible = "spi-gpio";
		#address-cells = <0x1>;
		ranges;

		sck-gpios = <&gpio 95 0>;
		miso-gpios = <&gpio 98 0>;
		mosi-gpios = <&gpio 97 0>;
		cs-gpios = <&gpio 125 0>;
		num-chipselects = <1>;

		/* clients */
	};