spi: sh-msiof: Add support for R-Car H2 and M2
[platform/adaptation/renesas_rcar/renesas_kernel.git] / Documentation / devicetree / bindings / spi / sh-msiof.txt
1 Renesas MSIOF spi controller
2
3 Required properties:
4 - compatible           : "renesas,msiof-<soctype>" for SoCs,
5                          "renesas,sh-msiof" for SuperH, or
6                          "renesas,sh-mobile-msiof" for SH Mobile series.
7                          Examples with soctypes are:
8                          "renesas,msiof-sh7724" (SH)
9                          "renesas,msiof-r8a7790" (R-Car H2)
10                          "renesas,msiof-r8a7791" (R-Car M2)
11 - reg                  : Offset and length of the register set for the device
12 - interrupt-parent     : The phandle for the interrupt controller that
13                          services interrupts for this device
14 - interrupts           : Interrupt specifier
15 - #address-cells       : Must be <1>
16 - #size-cells          : Must be <0>
17
18 Optional properties:
19 - clocks               : Must contain a reference to the functional clock.
20 - num-cs               : Total number of chip-selects (default is 1)
21
22 Optional properties, deprecated for soctype-specific bindings:
23 - renesas,tx-fifo-size : Overrides the default tx fifo size given in words
24                          (default is 64)
25 - renesas,rx-fifo-size : Overrides the default rx fifo size given in words
26                          (default is 64, or 256 on R-Car H2 and M2)
27
28 Pinctrl properties might be needed, too.  See
29 Documentation/devicetree/bindings/pinctrl/renesas,*.
30
31 Example:
32
33         msiof0: spi@e6e20000 {
34                 compatible = "renesas,msiof-r8a7791";
35                 reg = <0 0xe6e20000 0 0x0064>;
36                 interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>;
37                 clocks = <&mstp0_clks R8A7791_CLK_MSIOF0>;
38                 #address-cells = <1>;
39                 #size-cells = <0>;
40                 status = "disabled";
41         };