GNU Linux-libre 4.19.264-gnu1
[releases.git] / arch / arm64 / boot / dts / renesas / r8a7795-es1.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for the r8a7795 ES1.x SoC
4  *
5  * Copyright (C) 2015 Renesas Electronics Corp.
6  */
7
8 #include "r8a7795.dtsi"
9
10 &soc {
11         xhci1: usb@ee040000 {
12                 compatible = "renesas,xhci-r8a7795", "renesas,rcar-gen3-xhci";
13                 reg = <0 0xee040000 0 0xc00>;
14                 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
15                 clocks = <&cpg CPG_MOD 327>;
16                 power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
17                 resets = <&cpg 327>;
18                 status = "disabled";
19         };
20
21         /delete-node/ mmu@febe0000;
22         /delete-node/ mmu@fe980000;
23         /delete-node/ mmu@fd950000;
24         /delete-node/ mmu@fd960000;
25         /delete-node/ mmu@fd970000;
26
27         ipmmu_mp1: mmu@ec680000 {
28                 compatible = "renesas,ipmmu-r8a7795";
29                 reg = <0 0xec680000 0 0x1000>;
30                 renesas,ipmmu-main = <&ipmmu_mm 5>;
31                 power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
32                 #iommu-cells = <1>;
33         };
34
35         ipmmu_sy: mmu@e7730000 {
36                 compatible = "renesas,ipmmu-r8a7795";
37                 reg = <0 0xe7730000 0 0x1000>;
38                 renesas,ipmmu-main = <&ipmmu_mm 8>;
39                 power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
40                 #iommu-cells = <1>;
41         };
42
43         /delete-node/ usb-phy@ee0e0200;
44         /delete-node/ usb@ee0e0100;
45         /delete-node/ usb@ee0e0000;
46         /delete-node/ usb@e659c000;
47
48         /delete-node/ dma-controller@e6460000;
49         /delete-node/ dma-controller@e6470000;
50
51         fcpf2: fcp@fe952000 {
52                 compatible = "renesas,fcpf";
53                 reg = <0 0xfe952000 0 0x200>;
54                 clocks = <&cpg CPG_MOD 613>;
55                 power-domains = <&sysc R8A7795_PD_A3VP>;
56                 resets = <&cpg 613>;
57                 iommus = <&ipmmu_vp0 2>;
58         };
59
60         vspi2: vsp@fe9c0000 {
61                 compatible = "renesas,vsp2";
62                 reg = <0 0xfe9c0000 0 0x8000>;
63                 interrupts = <GIC_SPI 446 IRQ_TYPE_LEVEL_HIGH>;
64                 clocks = <&cpg CPG_MOD 629>;
65                 power-domains = <&sysc R8A7795_PD_A3VP>;
66                 resets = <&cpg 629>;
67
68                 renesas,fcp = <&fcpvi2>;
69         };
70
71         fcpvi2: fcp@fe9cf000 {
72                 compatible = "renesas,fcpv";
73                 reg = <0 0xfe9cf000 0 0x200>;
74                 clocks = <&cpg CPG_MOD 609>;
75                 power-domains = <&sysc R8A7795_PD_A3VP>;
76                 resets = <&cpg 609>;
77                 iommus = <&ipmmu_vp0 10>;
78         };
79
80         vspd3: vsp@fea38000 {
81                 compatible = "renesas,vsp2";
82                 reg = <0 0xfea38000 0 0x5000>;
83                 interrupts = <GIC_SPI 469 IRQ_TYPE_LEVEL_HIGH>;
84                 clocks = <&cpg CPG_MOD 620>;
85                 power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
86                 resets = <&cpg 620>;
87
88                 renesas,fcp = <&fcpvd3>;
89         };
90
91         fcpvd3: fcp@fea3f000 {
92                 compatible = "renesas,fcpv";
93                 reg = <0 0xfea3f000 0 0x200>;
94                 clocks = <&cpg CPG_MOD 600>;
95                 power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
96                 resets = <&cpg 600>;
97                 iommus = <&ipmmu_vi0 11>;
98         };
99
100         fdp1@fe948000 {
101                 compatible = "renesas,fdp1";
102                 reg = <0 0xfe948000 0 0x2400>;
103                 interrupts = <GIC_SPI 264 IRQ_TYPE_LEVEL_HIGH>;
104                 clocks = <&cpg CPG_MOD 117>;
105                 power-domains = <&sysc R8A7795_PD_A3VP>;
106                 resets = <&cpg 117>;
107                 renesas,fcp = <&fcpf2>;
108         };
109
110         csi21: csi2@fea90000 {
111                 compatible = "renesas,r8a7795-csi2";
112                 reg = <0 0xfea90000 0 0x10000>;
113                 interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>;
114                 clocks = <&cpg CPG_MOD 713>;
115                 power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
116                 resets = <&cpg 713>;
117                 status = "disabled";
118
119                 ports {
120                         #address-cells = <1>;
121                         #size-cells = <0>;
122
123                         port@1 {
124                                 #address-cells = <1>;
125                                 #size-cells = <0>;
126
127                                 reg = <1>;
128
129                                 csi21vin0: endpoint@0 {
130                                         reg = <0>;
131                                         remote-endpoint = <&vin0csi21>;
132                                 };
133                                 csi21vin1: endpoint@1 {
134                                         reg = <1>;
135                                         remote-endpoint = <&vin1csi21>;
136                                 };
137                                 csi21vin2: endpoint@2 {
138                                         reg = <2>;
139                                         remote-endpoint = <&vin2csi21>;
140                                 };
141                                 csi21vin3: endpoint@3 {
142                                         reg = <3>;
143                                         remote-endpoint = <&vin3csi21>;
144                                 };
145                                 csi21vin4: endpoint@4 {
146                                         reg = <4>;
147                                         remote-endpoint = <&vin4csi21>;
148                                 };
149                                 csi21vin5: endpoint@5 {
150                                         reg = <5>;
151                                         remote-endpoint = <&vin5csi21>;
152                                 };
153                                 csi21vin6: endpoint@6 {
154                                         reg = <6>;
155                                         remote-endpoint = <&vin6csi21>;
156                                 };
157                                 csi21vin7: endpoint@7 {
158                                         reg = <7>;
159                                         remote-endpoint = <&vin7csi21>;
160                                 };
161                         };
162                 };
163         };
164 };
165
166 &gpio1 {
167         gpio-ranges = <&pfc 0 32 28>;
168 };
169
170 &ipmmu_vi0 {
171         renesas,ipmmu-main = <&ipmmu_mm 11>;
172 };
173
174 &ipmmu_vp0 {
175         renesas,ipmmu-main = <&ipmmu_mm 12>;
176 };
177
178 &ipmmu_vc0 {
179         renesas,ipmmu-main = <&ipmmu_mm 9>;
180 };
181
182 &ipmmu_vc1 {
183         renesas,ipmmu-main = <&ipmmu_mm 10>;
184 };
185
186 &ipmmu_rt {
187         renesas,ipmmu-main = <&ipmmu_mm 7>;
188 };
189
190 &audma0 {
191         iommus = <&ipmmu_mp1 0>, <&ipmmu_mp1 1>,
192                <&ipmmu_mp1 2>, <&ipmmu_mp1 3>,
193                <&ipmmu_mp1 4>, <&ipmmu_mp1 5>,
194                <&ipmmu_mp1 6>, <&ipmmu_mp1 7>,
195                <&ipmmu_mp1 8>, <&ipmmu_mp1 9>,
196                <&ipmmu_mp1 10>, <&ipmmu_mp1 11>,
197                <&ipmmu_mp1 12>, <&ipmmu_mp1 13>,
198                <&ipmmu_mp1 14>, <&ipmmu_mp1 15>;
199 };
200
201 &audma1 {
202         iommus = <&ipmmu_mp1 16>, <&ipmmu_mp1 17>,
203                <&ipmmu_mp1 18>, <&ipmmu_mp1 19>,
204                <&ipmmu_mp1 20>, <&ipmmu_mp1 21>,
205                <&ipmmu_mp1 22>, <&ipmmu_mp1 23>,
206                <&ipmmu_mp1 24>, <&ipmmu_mp1 25>,
207                <&ipmmu_mp1 26>, <&ipmmu_mp1 27>,
208                <&ipmmu_mp1 28>, <&ipmmu_mp1 29>,
209                <&ipmmu_mp1 30>, <&ipmmu_mp1 31>;
210 };
211
212 &fcpvb1 {
213         iommus = <&ipmmu_vp0 7>;
214 };
215
216 &fcpf1 {
217         iommus = <&ipmmu_vp0 1>;
218 };
219
220 &fcpvi1 {
221         iommus = <&ipmmu_vp0 9>;
222 };
223
224 &fcpvd2 {
225         iommus = <&ipmmu_vi0 10>;
226 };
227
228 &du {
229         vsps = <&vspd0 &vspd1 &vspd2 &vspd3>;
230 };
231
232 &vin0 {
233         ports {
234                 port@1 {
235                         vin0csi21: endpoint@1 {
236                                 reg = <1>;
237                                 remote-endpoint= <&csi21vin0>;
238                         };
239                 };
240         };
241 };
242
243 &vin1 {
244         ports {
245                 port@1 {
246                         vin1csi21: endpoint@1 {
247                                 reg = <1>;
248                                 remote-endpoint= <&csi21vin1>;
249                         };
250                 };
251         };
252 };
253
254 &vin2 {
255         ports {
256                 port@1 {
257                         vin2csi21: endpoint@1 {
258                                 reg = <1>;
259                                 remote-endpoint= <&csi21vin2>;
260                         };
261                 };
262         };
263 };
264
265 &vin3 {
266         ports {
267                 port@1 {
268                         vin3csi21: endpoint@1 {
269                                 reg = <1>;
270                                 remote-endpoint= <&csi21vin3>;
271                         };
272                 };
273         };
274 };
275
276 &vin4 {
277         ports {
278                 port@1 {
279                         vin4csi21: endpoint@1 {
280                                 reg = <1>;
281                                 remote-endpoint= <&csi21vin4>;
282                         };
283                 };
284         };
285 };
286
287 &vin5 {
288         ports {
289                 port@1 {
290                         vin5csi21: endpoint@1 {
291                                 reg = <1>;
292                                 remote-endpoint= <&csi21vin5>;
293                         };
294                 };
295         };
296 };
297
298 &vin6 {
299         ports {
300                 port@1 {
301                         vin6csi21: endpoint@1 {
302                                 reg = <1>;
303                                 remote-endpoint= <&csi21vin6>;
304                         };
305                 };
306         };
307 };
308
309 &vin7 {
310         ports {
311                 port@1 {
312                         vin7csi21: endpoint@1 {
313                                 reg = <1>;
314                                 remote-endpoint= <&csi21vin7>;
315                         };
316                 };
317         };
318 };