riscv: fix build break after macro-to-function conversion in generic cacheflush.h
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / spi / spi-gpio.txt
1 SPI-GPIO devicetree bindings
2
3 This represents a group of 3-n GPIO lines used for bit-banged SPI on dedicated
4 GPIO lines.
5
6 Required 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
19 Deprecated bindings:
20
21 These legacy GPIO line bindings can alternatively be used to define the
22 GPIO 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
28 Example:
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