WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / spi / renesas,rspi.yaml
blob10e83cb17e8dd771c48410f1a5ec4ea09c514495
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/spi/renesas,rspi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Renesas (Quad) Serial Peripheral Interface (RSPI/QSPI)
9 maintainers:
10   - Geert Uytterhoeven <geert+renesas@glider.be>
12 properties:
13   compatible:
14     oneOf:
15       - items:
16           - enum:
17               - renesas,rspi-sh7757    # SH7757
18           - const: renesas,rspi        # Legacy SH
20       - items:
21           - enum:
22               - renesas,rspi-r7s72100  # RZ/A1H
23               - renesas,rspi-r7s9210   # RZ/A2
24           - const: renesas,rspi-rz     # RZ/A
26       - items:
27           - enum:
28               - renesas,qspi-r8a7742   # RZ/G1H
29               - renesas,qspi-r8a7743   # RZ/G1M
30               - renesas,qspi-r8a7744   # RZ/G1N
31               - renesas,qspi-r8a7745   # RZ/G1E
32               - renesas,qspi-r8a77470  # RZ/G1C
33               - renesas,qspi-r8a7790   # R-Car H2
34               - renesas,qspi-r8a7791   # R-Car M2-W
35               - renesas,qspi-r8a7792   # R-Car V2H
36               - renesas,qspi-r8a7793   # R-Car M2-N
37               - renesas,qspi-r8a7794   # R-Car E2
38           - const: renesas,qspi        # R-Car Gen2 and RZ/G1
40   reg:
41     maxItems: 1
43   interrupts:
44     oneOf:
45       - items:
46           - description: A combined interrupt
47       - items:
48           - description: Error interrupt (SPEI)
49           - description: Receive Interrupt (SPRI)
50           - description: Transmit Interrupt (SPTI)
52   interrupt-names:
53     oneOf:
54       - items:
55           - const: mux
56       - items:
57           - const: error
58           - const: rx
59           - const: tx
61   clocks:
62     maxItems: 1
64   power-domains:
65     maxItems: 1
67   resets:
68     maxItems: 1
70   dmas:
71     description:
72       Must contain a list of pairs of references to DMA specifiers, one for
73       transmission, and one for reception.
75   dma-names:
76     minItems: 2
77     maxItems: 4
78     items:
79       enum:
80         - tx
81         - rx
83   num-cs:
84     description: |
85       Total number of native chip selects.
86       Hardware limitations related to chip selects:
87         - When using GPIO chip selects, at least one native chip select must
88           be left unused, as it will be driven anyway.
89     minimum: 1
90     maximum: 2
91     default: 1
93 required:
94   - compatible
95   - reg
96   - interrupts
97   - clocks
98   - power-domains
99   - '#address-cells'
100   - '#size-cells'
102 allOf:
103   - $ref: spi-controller.yaml#
104   - if:
105       properties:
106         compatible:
107           contains:
108             enum:
109               - renesas,rspi-rz
110     then:
111       properties:
112         interrupts:
113           minItems: 3
114       required:
115         - interrupt-names
117   - if:
118       properties:
119         compatible:
120           contains:
121             enum:
122               - renesas,qspi
123     then:
124       required:
125         - resets
127 unevaluatedProperties: false
129 examples:
130   - |
131     #include <dt-bindings/clock/r8a7791-cpg-mssr.h>
132     #include <dt-bindings/interrupt-controller/arm-gic.h>
133     #include <dt-bindings/power/r8a7791-sysc.h>
135     qspi: spi@e6b10000 {
136             compatible = "renesas,qspi-r8a7791", "renesas,qspi";
137             reg = <0xe6b10000 0x2c>;
138             interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
139             clocks = <&cpg CPG_MOD 917>;
140             dmas = <&dmac0 0x17>, <&dmac0 0x18>, <&dmac1 0x17>, <&dmac1 0x18>;
141             dma-names = "tx", "rx", "tx", "rx";
142             power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
143             resets = <&cpg 917>;
144             num-cs = <1>;
145             #address-cells = <1>;
146             #size-cells = <0>;
147     };