Merge branch 'async-scsi-resume' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / Documentation / devicetree / bindings / spi / spi-rspi.txt
1 Device tree configuration for Renesas RSPI/QSPI driver
2
3 Required properties:
4 - compatible       : For Renesas Serial Peripheral Interface on legacy SH:
5                      "renesas,rspi-<soctype>", "renesas,rspi" as fallback.
6                      For Renesas Serial Peripheral Interface on RZ/A1H:
7                      "renesas,rspi-<soctype>", "renesas,rspi-rz" as fallback.
8                      For Quad Serial Peripheral Interface on R-Car Gen2:
9                      "renesas,qspi-<soctype>", "renesas,qspi" as fallback.
10                      Examples with soctypes are:
11                         - "renesas,rspi-sh7757" (SH)
12                         - "renesas,rspi-r7s72100" (RZ/A1H)
13                         - "renesas,qspi-r8a7790" (R-Car H2)
14                         - "renesas,qspi-r8a7791" (R-Car M2)
15 - reg              : Address start and address range size of the device
16 - interrupts       : A list of interrupt-specifiers, one for each entry in
17                      interrupt-names.
18                      If interrupt-names is not present, an interrupt specifier
19                      for a single muxed interrupt.
20 - interrupt-names  : A list of interrupt names. Should contain (if present):
21                        - "error" for SPEI,
22                        - "rx" for SPRI,
23                        - "tx" to SPTI,
24                        - "mux" for a single muxed interrupt.
25 - interrupt-parent : The phandle for the interrupt controller that
26                      services interrupts for this device.
27 - num-cs           : Number of chip selects. Some RSPI cores have more than 1.
28 - #address-cells   : Must be <1>
29 - #size-cells      : Must be <0>
30
31 Optional properties:
32 - clocks           : Must contain a reference to the functional clock.
33
34 Pinctrl properties might be needed, too.  See
35 Documentation/devicetree/bindings/pinctrl/renesas,*.
36
37 Examples:
38
39         spi0: spi@e800c800 {
40                 compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
41                 reg = <0xe800c800 0x24>;
42                 interrupts = <0 238 IRQ_TYPE_LEVEL_HIGH>,
43                              <0 239 IRQ_TYPE_LEVEL_HIGH>,
44                              <0 240 IRQ_TYPE_LEVEL_HIGH>;
45                 interrupt-names = "error", "rx", "tx";
46                 interrupt-parent = <&gic>;
47                 num-cs = <1>;
48                 #address-cells = <1>;
49                 #size-cells = <0>;
50         };
51
52         spi: spi@e6b10000 {
53                 compatible = "renesas,qspi-r8a7791", "renesas,qspi";
54                 reg = <0 0xe6b10000 0 0x2c>;
55                 interrupt-parent = <&gic>;
56                 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
57                 clocks = <&mstp9_clks R8A7791_CLK_QSPI_MOD>;
58                 num-cs = <1>;
59                 #address-cells = <1>;
60                 #size-cells = <0>;
61         };