1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2c66ec88fSEmmanuel Vadot/**
3c66ec88fSEmmanuel Vadot * dts file for Hisilicon D03 Development Board
4c66ec88fSEmmanuel Vadot *
55956d97fSEmmanuel Vadot * Copyright (C) 2016 HiSilicon Ltd.
6c66ec88fSEmmanuel Vadot */
7c66ec88fSEmmanuel Vadot
8c66ec88fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
9c66ec88fSEmmanuel Vadot
10c66ec88fSEmmanuel Vadot/ {
11c66ec88fSEmmanuel Vadot	compatible = "hisilicon,hip06-d03";
12c66ec88fSEmmanuel Vadot	interrupt-parent = <&gic>;
13c66ec88fSEmmanuel Vadot	#address-cells = <2>;
14c66ec88fSEmmanuel Vadot	#size-cells = <2>;
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadot	psci {
17c66ec88fSEmmanuel Vadot		compatible = "arm,psci-0.2";
18c66ec88fSEmmanuel Vadot		method = "smc";
19c66ec88fSEmmanuel Vadot	};
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot	cpus {
22c66ec88fSEmmanuel Vadot		#address-cells = <1>;
23c66ec88fSEmmanuel Vadot		#size-cells = <0>;
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot		cpu-map {
26c66ec88fSEmmanuel Vadot			cluster0 {
27c66ec88fSEmmanuel Vadot				core0 {
28c66ec88fSEmmanuel Vadot					cpu = <&cpu0>;
29c66ec88fSEmmanuel Vadot				};
30c66ec88fSEmmanuel Vadot				core1 {
31c66ec88fSEmmanuel Vadot					cpu = <&cpu1>;
32c66ec88fSEmmanuel Vadot				};
33c66ec88fSEmmanuel Vadot				core2 {
34c66ec88fSEmmanuel Vadot					cpu = <&cpu2>;
35c66ec88fSEmmanuel Vadot				};
36c66ec88fSEmmanuel Vadot				core3 {
37c66ec88fSEmmanuel Vadot					cpu = <&cpu3>;
38c66ec88fSEmmanuel Vadot				};
39c66ec88fSEmmanuel Vadot			};
40c66ec88fSEmmanuel Vadot			cluster1 {
41c66ec88fSEmmanuel Vadot				core0 {
42c66ec88fSEmmanuel Vadot					cpu = <&cpu4>;
43c66ec88fSEmmanuel Vadot				};
44c66ec88fSEmmanuel Vadot				core1 {
45c66ec88fSEmmanuel Vadot					cpu = <&cpu5>;
46c66ec88fSEmmanuel Vadot				};
47c66ec88fSEmmanuel Vadot				core2 {
48c66ec88fSEmmanuel Vadot					cpu = <&cpu6>;
49c66ec88fSEmmanuel Vadot				};
50c66ec88fSEmmanuel Vadot				core3 {
51c66ec88fSEmmanuel Vadot					cpu = <&cpu7>;
52c66ec88fSEmmanuel Vadot				};
53c66ec88fSEmmanuel Vadot			};
54c66ec88fSEmmanuel Vadot			cluster2 {
55c66ec88fSEmmanuel Vadot				core0 {
56c66ec88fSEmmanuel Vadot					cpu = <&cpu8>;
57c66ec88fSEmmanuel Vadot				};
58c66ec88fSEmmanuel Vadot				core1 {
59c66ec88fSEmmanuel Vadot					cpu = <&cpu9>;
60c66ec88fSEmmanuel Vadot				};
61c66ec88fSEmmanuel Vadot				core2 {
62c66ec88fSEmmanuel Vadot					cpu = <&cpu10>;
63c66ec88fSEmmanuel Vadot				};
64c66ec88fSEmmanuel Vadot				core3 {
65c66ec88fSEmmanuel Vadot					cpu = <&cpu11>;
66c66ec88fSEmmanuel Vadot				};
67c66ec88fSEmmanuel Vadot			};
68c66ec88fSEmmanuel Vadot			cluster3 {
69c66ec88fSEmmanuel Vadot				core0 {
70c66ec88fSEmmanuel Vadot					cpu = <&cpu12>;
71c66ec88fSEmmanuel Vadot				};
72c66ec88fSEmmanuel Vadot				core1 {
73c66ec88fSEmmanuel Vadot					cpu = <&cpu13>;
74c66ec88fSEmmanuel Vadot				};
75c66ec88fSEmmanuel Vadot				core2 {
76c66ec88fSEmmanuel Vadot					cpu = <&cpu14>;
77c66ec88fSEmmanuel Vadot				};
78c66ec88fSEmmanuel Vadot				core3 {
79c66ec88fSEmmanuel Vadot					cpu = <&cpu15>;
80c66ec88fSEmmanuel Vadot				};
81c66ec88fSEmmanuel Vadot			};
82c66ec88fSEmmanuel Vadot		};
83c66ec88fSEmmanuel Vadot
84c66ec88fSEmmanuel Vadot		cpu0: cpu@10000 {
85c66ec88fSEmmanuel Vadot			device_type = "cpu";
86c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
87c66ec88fSEmmanuel Vadot			reg = <0x10000>;
88c66ec88fSEmmanuel Vadot			enable-method = "psci";
89c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster0_l2>;
90c66ec88fSEmmanuel Vadot		};
91c66ec88fSEmmanuel Vadot
92c66ec88fSEmmanuel Vadot		cpu1: cpu@10001 {
93c66ec88fSEmmanuel Vadot			device_type = "cpu";
94c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
95c66ec88fSEmmanuel Vadot			reg = <0x10001>;
96c66ec88fSEmmanuel Vadot			enable-method = "psci";
97c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster0_l2>;
98c66ec88fSEmmanuel Vadot		};
99c66ec88fSEmmanuel Vadot
100c66ec88fSEmmanuel Vadot		cpu2: cpu@10002 {
101c66ec88fSEmmanuel Vadot			device_type = "cpu";
102c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
103c66ec88fSEmmanuel Vadot			reg = <0x10002>;
104c66ec88fSEmmanuel Vadot			enable-method = "psci";
105c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster0_l2>;
106c66ec88fSEmmanuel Vadot		};
107c66ec88fSEmmanuel Vadot
108c66ec88fSEmmanuel Vadot		cpu3: cpu@10003 {
109c66ec88fSEmmanuel Vadot			device_type = "cpu";
110c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
111c66ec88fSEmmanuel Vadot			reg = <0x10003>;
112c66ec88fSEmmanuel Vadot			enable-method = "psci";
113c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster0_l2>;
114c66ec88fSEmmanuel Vadot		};
115c66ec88fSEmmanuel Vadot
116c66ec88fSEmmanuel Vadot		cpu4: cpu@10100 {
117c66ec88fSEmmanuel Vadot			device_type = "cpu";
118c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
119c66ec88fSEmmanuel Vadot			reg = <0x10100>;
120c66ec88fSEmmanuel Vadot			enable-method = "psci";
121c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster1_l2>;
122c66ec88fSEmmanuel Vadot		};
123c66ec88fSEmmanuel Vadot
124c66ec88fSEmmanuel Vadot		cpu5: cpu@10101 {
125c66ec88fSEmmanuel Vadot			device_type = "cpu";
126c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
127c66ec88fSEmmanuel Vadot			reg = <0x10101>;
128c66ec88fSEmmanuel Vadot			enable-method = "psci";
129c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster1_l2>;
130c66ec88fSEmmanuel Vadot		};
131c66ec88fSEmmanuel Vadot
132c66ec88fSEmmanuel Vadot		cpu6: cpu@10102 {
133c66ec88fSEmmanuel Vadot			device_type = "cpu";
134c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
135c66ec88fSEmmanuel Vadot			reg = <0x10102>;
136c66ec88fSEmmanuel Vadot			enable-method = "psci";
137c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster1_l2>;
138c66ec88fSEmmanuel Vadot		};
139c66ec88fSEmmanuel Vadot
140c66ec88fSEmmanuel Vadot		cpu7: cpu@10103 {
141c66ec88fSEmmanuel Vadot			device_type = "cpu";
142c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
143c66ec88fSEmmanuel Vadot			reg = <0x10103>;
144c66ec88fSEmmanuel Vadot			enable-method = "psci";
145c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster1_l2>;
146c66ec88fSEmmanuel Vadot		};
147c66ec88fSEmmanuel Vadot
148c66ec88fSEmmanuel Vadot		cpu8: cpu@10200 {
149c66ec88fSEmmanuel Vadot			device_type = "cpu";
150c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
151c66ec88fSEmmanuel Vadot			reg = <0x10200>;
152c66ec88fSEmmanuel Vadot			enable-method = "psci";
153c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster2_l2>;
154c66ec88fSEmmanuel Vadot		};
155c66ec88fSEmmanuel Vadot
156c66ec88fSEmmanuel Vadot		cpu9: cpu@10201 {
157c66ec88fSEmmanuel Vadot			device_type = "cpu";
158c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
159c66ec88fSEmmanuel Vadot			reg = <0x10201>;
160c66ec88fSEmmanuel Vadot			enable-method = "psci";
161c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster2_l2>;
162c66ec88fSEmmanuel Vadot		};
163c66ec88fSEmmanuel Vadot
164c66ec88fSEmmanuel Vadot		cpu10: cpu@10202 {
165c66ec88fSEmmanuel Vadot			device_type = "cpu";
166c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
167c66ec88fSEmmanuel Vadot			reg = <0x10202>;
168c66ec88fSEmmanuel Vadot			enable-method = "psci";
169c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster2_l2>;
170c66ec88fSEmmanuel Vadot		};
171c66ec88fSEmmanuel Vadot
172c66ec88fSEmmanuel Vadot		cpu11: cpu@10203 {
173c66ec88fSEmmanuel Vadot			device_type = "cpu";
174c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
175c66ec88fSEmmanuel Vadot			reg = <0x10203>;
176c66ec88fSEmmanuel Vadot			enable-method = "psci";
177c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster2_l2>;
178c66ec88fSEmmanuel Vadot		};
179c66ec88fSEmmanuel Vadot
180c66ec88fSEmmanuel Vadot		cpu12: cpu@10300 {
181c66ec88fSEmmanuel Vadot			device_type = "cpu";
182c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
183c66ec88fSEmmanuel Vadot			reg = <0x10300>;
184c66ec88fSEmmanuel Vadot			enable-method = "psci";
185c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster3_l2>;
186c66ec88fSEmmanuel Vadot		};
187c66ec88fSEmmanuel Vadot
188c66ec88fSEmmanuel Vadot		cpu13: cpu@10301 {
189c66ec88fSEmmanuel Vadot			device_type = "cpu";
190c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
191c66ec88fSEmmanuel Vadot			reg = <0x10301>;
192c66ec88fSEmmanuel Vadot			enable-method = "psci";
193c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster3_l2>;
194c66ec88fSEmmanuel Vadot		};
195c66ec88fSEmmanuel Vadot
196c66ec88fSEmmanuel Vadot		cpu14: cpu@10302 {
197c66ec88fSEmmanuel Vadot			device_type = "cpu";
198c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
199c66ec88fSEmmanuel Vadot			reg = <0x10302>;
200c66ec88fSEmmanuel Vadot			enable-method = "psci";
201c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster3_l2>;
202c66ec88fSEmmanuel Vadot		};
203c66ec88fSEmmanuel Vadot
204c66ec88fSEmmanuel Vadot		cpu15: cpu@10303 {
205c66ec88fSEmmanuel Vadot			device_type = "cpu";
206c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a57";
207c66ec88fSEmmanuel Vadot			reg = <0x10303>;
208c66ec88fSEmmanuel Vadot			enable-method = "psci";
209c66ec88fSEmmanuel Vadot			next-level-cache = <&cluster3_l2>;
210c66ec88fSEmmanuel Vadot		};
211c66ec88fSEmmanuel Vadot
212c66ec88fSEmmanuel Vadot		cluster0_l2: l2-cache0 {
213c66ec88fSEmmanuel Vadot			compatible = "cache";
2148bab661aSEmmanuel Vadot			cache-level = <2>;
215*f126890aSEmmanuel Vadot			cache-unified;
216c66ec88fSEmmanuel Vadot		};
217c66ec88fSEmmanuel Vadot
218c66ec88fSEmmanuel Vadot		cluster1_l2: l2-cache1 {
219c66ec88fSEmmanuel Vadot			compatible = "cache";
2208bab661aSEmmanuel Vadot			cache-level = <2>;
221*f126890aSEmmanuel Vadot			cache-unified;
222c66ec88fSEmmanuel Vadot		};
223c66ec88fSEmmanuel Vadot
224c66ec88fSEmmanuel Vadot		cluster2_l2: l2-cache2 {
225c66ec88fSEmmanuel Vadot			compatible = "cache";
2268bab661aSEmmanuel Vadot			cache-level = <2>;
227*f126890aSEmmanuel Vadot			cache-unified;
228c66ec88fSEmmanuel Vadot		};
229c66ec88fSEmmanuel Vadot
230c66ec88fSEmmanuel Vadot		cluster3_l2: l2-cache3 {
231c66ec88fSEmmanuel Vadot			compatible = "cache";
2328bab661aSEmmanuel Vadot			cache-level = <2>;
233*f126890aSEmmanuel Vadot			cache-unified;
234c66ec88fSEmmanuel Vadot		};
235c66ec88fSEmmanuel Vadot	};
236c66ec88fSEmmanuel Vadot
237c66ec88fSEmmanuel Vadot	gic: interrupt-controller@4d000000 {
238c66ec88fSEmmanuel Vadot		compatible = "arm,gic-v3";
239c66ec88fSEmmanuel Vadot		#interrupt-cells = <3>;
240c66ec88fSEmmanuel Vadot		#address-cells = <2>;
241c66ec88fSEmmanuel Vadot		#size-cells = <2>;
242c66ec88fSEmmanuel Vadot		ranges;
243c66ec88fSEmmanuel Vadot		interrupt-controller;
244c66ec88fSEmmanuel Vadot		#redistributor-regions = <1>;
245c66ec88fSEmmanuel Vadot		redistributor-stride = <0x0 0x30000>;
246c66ec88fSEmmanuel Vadot		reg = <0x0 0x4d000000 0 0x10000>,	/* GICD */
247c66ec88fSEmmanuel Vadot		      <0x0 0x4d100000 0 0x300000>,	/* GICR */
248c66ec88fSEmmanuel Vadot		      <0x0 0xfe000000 0 0x10000>,	/* GICC */
249c66ec88fSEmmanuel Vadot		      <0x0 0xfe010000 0 0x10000>,       /* GICH */
250c66ec88fSEmmanuel Vadot		      <0x0 0xfe020000 0 0x10000>;       /* GICV */
251c66ec88fSEmmanuel Vadot		interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
252c66ec88fSEmmanuel Vadot
2535def4c47SEmmanuel Vadot		its_dsa: msi-controller@c6000000 {
254c66ec88fSEmmanuel Vadot			compatible = "arm,gic-v3-its";
255c66ec88fSEmmanuel Vadot			msi-controller;
256c66ec88fSEmmanuel Vadot			#msi-cells = <1>;
257c66ec88fSEmmanuel Vadot			reg = <0x0 0xc6000000 0x0 0x40000>;
258c66ec88fSEmmanuel Vadot		};
259c66ec88fSEmmanuel Vadot	};
260c66ec88fSEmmanuel Vadot
261c66ec88fSEmmanuel Vadot	timer {
262c66ec88fSEmmanuel Vadot		compatible = "arm,armv8-timer";
263c66ec88fSEmmanuel Vadot		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
264c66ec88fSEmmanuel Vadot			     <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
265c66ec88fSEmmanuel Vadot			     <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
266c66ec88fSEmmanuel Vadot			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
267c66ec88fSEmmanuel Vadot	};
268c66ec88fSEmmanuel Vadot
269c66ec88fSEmmanuel Vadot	pmu {
270c66ec88fSEmmanuel Vadot		compatible = "arm,cortex-a57-pmu";
271c66ec88fSEmmanuel Vadot		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
272c66ec88fSEmmanuel Vadot	};
273c66ec88fSEmmanuel Vadot
274c66ec88fSEmmanuel Vadot	mbigen_pcie@a0080000 {
275c66ec88fSEmmanuel Vadot		compatible = "hisilicon,mbigen-v2";
276c66ec88fSEmmanuel Vadot		reg = <0x0 0xa0080000 0x0 0x10000>;
277c66ec88fSEmmanuel Vadot
278c66ec88fSEmmanuel Vadot		mbigen_usb: intc_usb {
279c66ec88fSEmmanuel Vadot			msi-parent = <&its_dsa 0x40080>;
280c66ec88fSEmmanuel Vadot			interrupt-controller;
281c66ec88fSEmmanuel Vadot			#interrupt-cells = <2>;
282c66ec88fSEmmanuel Vadot			num-pins = <2>;
283c66ec88fSEmmanuel Vadot		};
284c66ec88fSEmmanuel Vadot
285c66ec88fSEmmanuel Vadot		mbigen_sas1: intc_sas1 {
286c66ec88fSEmmanuel Vadot			msi-parent = <&its_dsa 0x40000>;
287c66ec88fSEmmanuel Vadot			interrupt-controller;
288c66ec88fSEmmanuel Vadot			#interrupt-cells = <2>;
289c66ec88fSEmmanuel Vadot			num-pins = <128>;
290c66ec88fSEmmanuel Vadot		};
291c66ec88fSEmmanuel Vadot
292c66ec88fSEmmanuel Vadot		mbigen_sas2: intc_sas2 {
293c66ec88fSEmmanuel Vadot			msi-parent = <&its_dsa 0x40040>;
294c66ec88fSEmmanuel Vadot			interrupt-controller;
295c66ec88fSEmmanuel Vadot			#interrupt-cells = <2>;
296c66ec88fSEmmanuel Vadot			num-pins = <128>;
297c66ec88fSEmmanuel Vadot		};
298c66ec88fSEmmanuel Vadot
299c66ec88fSEmmanuel Vadot		mbigen_pcie0: intc_pcie0 {
300c66ec88fSEmmanuel Vadot			msi-parent = <&its_dsa 0x40085>;
301c66ec88fSEmmanuel Vadot			interrupt-controller;
302c66ec88fSEmmanuel Vadot			#interrupt-cells = <2>;
303c66ec88fSEmmanuel Vadot			num-pins = <10>;
304c66ec88fSEmmanuel Vadot		};
305c66ec88fSEmmanuel Vadot	};
306c66ec88fSEmmanuel Vadot
307c66ec88fSEmmanuel Vadot	mbigen_dsa@c0080000 {
308c66ec88fSEmmanuel Vadot		compatible = "hisilicon,mbigen-v2";
309c66ec88fSEmmanuel Vadot		reg = <0x0 0xc0080000 0x0 0x10000>;
310c66ec88fSEmmanuel Vadot
311c66ec88fSEmmanuel Vadot		mbigen_dsaf0: intc_dsaf0 {
312c66ec88fSEmmanuel Vadot			msi-parent = <&its_dsa 0x40800>;
313c66ec88fSEmmanuel Vadot			interrupt-controller;
314c66ec88fSEmmanuel Vadot			#interrupt-cells = <2>;
315c66ec88fSEmmanuel Vadot			num-pins = <409>;
316c66ec88fSEmmanuel Vadot		};
317c66ec88fSEmmanuel Vadot
318c66ec88fSEmmanuel Vadot		mbigen_sas0: intc-sas0 {
319c66ec88fSEmmanuel Vadot			msi-parent = <&its_dsa 0x40900>;
320c66ec88fSEmmanuel Vadot			interrupt-controller;
321c66ec88fSEmmanuel Vadot			#interrupt-cells = <2>;
322c66ec88fSEmmanuel Vadot			num-pins = <128>;
323c66ec88fSEmmanuel Vadot		};
324c66ec88fSEmmanuel Vadot	};
325c66ec88fSEmmanuel Vadot
326c66ec88fSEmmanuel Vadot	/**
327c66ec88fSEmmanuel Vadot	 *  HiSilicon erratum 161010801: This describes the limitation
328c66ec88fSEmmanuel Vadot	 *  of HiSilicon platforms hip06/hip07 to support the SMMUv3
329c66ec88fSEmmanuel Vadot	 *  mappings for PCIe MSI transactions.
330c66ec88fSEmmanuel Vadot	 *  PCIe controller on these platforms has to differentiate the
331c66ec88fSEmmanuel Vadot	 *  MSI payload against other DMA payload and has to modify the
332c66ec88fSEmmanuel Vadot	 *  MSI payload. This makes it difficult for these platforms to
333c66ec88fSEmmanuel Vadot	 *  have a SMMU translation for MSI. In order to workaround this,
334c66ec88fSEmmanuel Vadot	 *  ARM SMMUv3 driver requires a quirk to treat the MSI regions
335c66ec88fSEmmanuel Vadot	 *  separately. Such a quirk is currently missing for DT based
336c66ec88fSEmmanuel Vadot	 *  systems. Hence please make sure that the smmu pcie node on
337c66ec88fSEmmanuel Vadot	 *  hip06 is disabled as this will break the PCIe functionality
338c66ec88fSEmmanuel Vadot	 *  when iommu-map entry is used along with the PCIe node.
339c66ec88fSEmmanuel Vadot	 *  Refer:https://www.spinics.net/lists/arm-kernel/msg602812.html
340c66ec88fSEmmanuel Vadot	 */
3415def4c47SEmmanuel Vadot	smmu0: iommu@a0040000 {
342c66ec88fSEmmanuel Vadot		compatible = "arm,smmu-v3";
343c66ec88fSEmmanuel Vadot		reg = <0x0 0xa0040000 0x0 0x20000>;
344c66ec88fSEmmanuel Vadot		#iommu-cells = <1>;
345c66ec88fSEmmanuel Vadot		dma-coherent;
346c66ec88fSEmmanuel Vadot		hisilicon,broken-prefetch-cmd;
347c66ec88fSEmmanuel Vadot		status = "disabled";
348c66ec88fSEmmanuel Vadot	};
349c66ec88fSEmmanuel Vadot
350c66ec88fSEmmanuel Vadot	soc {
351c66ec88fSEmmanuel Vadot		compatible = "simple-bus";
352c66ec88fSEmmanuel Vadot		#address-cells = <2>;
353c66ec88fSEmmanuel Vadot		#size-cells = <2>;
354c66ec88fSEmmanuel Vadot		ranges;
355c66ec88fSEmmanuel Vadot
356c66ec88fSEmmanuel Vadot		isa@a01b0000 {
357c66ec88fSEmmanuel Vadot			compatible = "hisilicon,hip06-lpc";
358c66ec88fSEmmanuel Vadot			#size-cells = <1>;
359c66ec88fSEmmanuel Vadot			#address-cells = <2>;
360c66ec88fSEmmanuel Vadot			reg = <0x0 0xa01b0000 0x0 0x1000>;
361c66ec88fSEmmanuel Vadot
362c66ec88fSEmmanuel Vadot			ipmi0: bt@e4 {
363c66ec88fSEmmanuel Vadot				compatible = "ipmi-bt";
364c66ec88fSEmmanuel Vadot				device_type = "ipmi";
365c66ec88fSEmmanuel Vadot				reg = <0x01 0xe4 0x04>;
366c66ec88fSEmmanuel Vadot				status = "disabled";
367c66ec88fSEmmanuel Vadot			};
368c66ec88fSEmmanuel Vadot
3695def4c47SEmmanuel Vadot			uart0: serial@2f8 {
370c66ec88fSEmmanuel Vadot				compatible = "ns16550a";
371c66ec88fSEmmanuel Vadot				clock-frequency = <1843200>;
372c66ec88fSEmmanuel Vadot				reg = <0x01 0x2f8 0x08>;
373c66ec88fSEmmanuel Vadot				status = "disabled";
374c66ec88fSEmmanuel Vadot			};
375c66ec88fSEmmanuel Vadot		};
376c66ec88fSEmmanuel Vadot
377c66ec88fSEmmanuel Vadot		refclk: refclk {
378c66ec88fSEmmanuel Vadot			compatible = "fixed-clock";
379c66ec88fSEmmanuel Vadot			clock-frequency = <50000000>;
380c66ec88fSEmmanuel Vadot			#clock-cells = <0>;
381c66ec88fSEmmanuel Vadot		};
382c66ec88fSEmmanuel Vadot
3835def4c47SEmmanuel Vadot		usb_ohci: usb@a7030000 {
384c66ec88fSEmmanuel Vadot			compatible = "generic-ohci";
385c66ec88fSEmmanuel Vadot			reg = <0x0 0xa7030000 0x0 0x10000>;
386c66ec88fSEmmanuel Vadot			interrupt-parent = <&mbigen_usb>;
387c66ec88fSEmmanuel Vadot			interrupts = <640 4>;
388c66ec88fSEmmanuel Vadot			dma-coherent;
389c66ec88fSEmmanuel Vadot			status = "disabled";
390c66ec88fSEmmanuel Vadot		};
391c66ec88fSEmmanuel Vadot
3925def4c47SEmmanuel Vadot		usb_ehci: usb@a7020000 {
393c66ec88fSEmmanuel Vadot			compatible = "generic-ehci";
394c66ec88fSEmmanuel Vadot			reg = <0x0 0xa7020000 0x0 0x10000>;
395c66ec88fSEmmanuel Vadot			interrupt-parent = <&mbigen_usb>;
396c66ec88fSEmmanuel Vadot			interrupts = <641 4>;
397c66ec88fSEmmanuel Vadot			dma-coherent;
398c66ec88fSEmmanuel Vadot			status = "disabled";
399c66ec88fSEmmanuel Vadot		};
400c66ec88fSEmmanuel Vadot
401c66ec88fSEmmanuel Vadot		peri_c_subctrl: sub_ctrl_c@60000000 {
402c66ec88fSEmmanuel Vadot			compatible = "hisilicon,peri-subctrl","syscon";
403c66ec88fSEmmanuel Vadot			reg = <0 0x60000000 0x0 0x10000>;
404c66ec88fSEmmanuel Vadot		};
405c66ec88fSEmmanuel Vadot
406c66ec88fSEmmanuel Vadot		dsa_subctrl: dsa_subctrl@c0000000 {
407c66ec88fSEmmanuel Vadot			compatible = "hisilicon,dsa-subctrl", "syscon";
408c66ec88fSEmmanuel Vadot			reg = <0x0 0xc0000000 0x0 0x10000>;
409c66ec88fSEmmanuel Vadot		};
410c66ec88fSEmmanuel Vadot
411c66ec88fSEmmanuel Vadot		pcie_subctl: pcie_subctl@a0000000 {
412c66ec88fSEmmanuel Vadot			compatible = "hisilicon,pcie-sas-subctrl", "syscon";
413c66ec88fSEmmanuel Vadot			reg = <0x0 0xa0000000 0x0 0x10000>;
414c66ec88fSEmmanuel Vadot		};
415c66ec88fSEmmanuel Vadot
416c66ec88fSEmmanuel Vadot		serdes_ctrl: sds_ctrl@c2200000 {
417c66ec88fSEmmanuel Vadot			compatible = "syscon";
418c66ec88fSEmmanuel Vadot			reg = <0 0xc2200000 0x0 0x80000>;
419c66ec88fSEmmanuel Vadot		};
420c66ec88fSEmmanuel Vadot
421c66ec88fSEmmanuel Vadot		mdio@603c0000 {
422c66ec88fSEmmanuel Vadot			compatible = "hisilicon,hns-mdio";
423c66ec88fSEmmanuel Vadot			reg = <0x0 0x603c0000 0x0 0x1000>;
424c66ec88fSEmmanuel Vadot			subctrl-vbase = <&peri_c_subctrl 0x338 0xa38 0x531c 0x5a1c>;
425c66ec88fSEmmanuel Vadot			#address-cells = <1>;
426c66ec88fSEmmanuel Vadot			#size-cells = <0>;
427c66ec88fSEmmanuel Vadot
428c66ec88fSEmmanuel Vadot			phy0: ethernet-phy@0 {
429c66ec88fSEmmanuel Vadot				compatible = "ethernet-phy-ieee802.3-c22";
430c66ec88fSEmmanuel Vadot				reg = <0>;
431c66ec88fSEmmanuel Vadot			};
432c66ec88fSEmmanuel Vadot
433c66ec88fSEmmanuel Vadot			phy1: ethernet-phy@1 {
434c66ec88fSEmmanuel Vadot				compatible = "ethernet-phy-ieee802.3-c22";
435c66ec88fSEmmanuel Vadot				reg = <1>;
436c66ec88fSEmmanuel Vadot			};
437c66ec88fSEmmanuel Vadot		};
438c66ec88fSEmmanuel Vadot
439c66ec88fSEmmanuel Vadot		dsaf0: dsa@c7000000 {
440c66ec88fSEmmanuel Vadot			#address-cells = <1>;
441c66ec88fSEmmanuel Vadot			#size-cells = <0>;
442c66ec88fSEmmanuel Vadot			compatible = "hisilicon,hns-dsaf-v2";
443c66ec88fSEmmanuel Vadot			mode = "6port-16rss";
4445def4c47SEmmanuel Vadot			reg = <0x0 0xc5000000 0x0 0x890000>,
4455def4c47SEmmanuel Vadot			      <0x0 0xc7000000 0x0 0x600000>;
446c66ec88fSEmmanuel Vadot			reg-names = "ppe-base", "dsaf-base";
447c66ec88fSEmmanuel Vadot			interrupt-parent = <&mbigen_dsaf0>;
448c66ec88fSEmmanuel Vadot			subctrl-syscon = <&dsa_subctrl>;
449c66ec88fSEmmanuel Vadot			reset-field-offset = <0>;
450c66ec88fSEmmanuel Vadot			interrupts =
451c66ec88fSEmmanuel Vadot			<576 1>, <577 1>, <578 1>, <579 1>, <580 1>,
452c66ec88fSEmmanuel Vadot			<581 1>, <582 1>, <583 1>, <584 1>, <585 1>,
453c66ec88fSEmmanuel Vadot			<586 1>, <587 1>, <588 1>, <589 1>, <590 1>,
454c66ec88fSEmmanuel Vadot			<591 1>, <592 1>, <593 1>, <594 1>, <595 1>,
455c66ec88fSEmmanuel Vadot			<596 1>, <597 1>, <598 1>, <599 1>, <600 1>,
456c66ec88fSEmmanuel Vadot			<960 1>, <961 1>, <962 1>, <963 1>, <964 1>,
457c66ec88fSEmmanuel Vadot			<965 1>, <966 1>, <967 1>, <968 1>, <969 1>,
458c66ec88fSEmmanuel Vadot			<970 1>, <971 1>, <972 1>, <973 1>, <974 1>,
459c66ec88fSEmmanuel Vadot			<975 1>, <976 1>, <977 1>, <978 1>, <979 1>,
460c66ec88fSEmmanuel Vadot			<980 1>, <981 1>, <982 1>, <983 1>, <984 1>,
461c66ec88fSEmmanuel Vadot			<985 1>, <986 1>, <987 1>, <988 1>, <989 1>,
462c66ec88fSEmmanuel Vadot			<990 1>, <991 1>, <992 1>, <993 1>, <994 1>,
463c66ec88fSEmmanuel Vadot			<995 1>, <996 1>, <997 1>, <998 1>, <999 1>,
464c66ec88fSEmmanuel Vadot			<1000 1>, <1001 1>, <1002 1>, <1003 1>, <1004 1>,
465c66ec88fSEmmanuel Vadot			<1005 1>, <1006 1>, <1007 1>, <1008 1>, <1009 1>,
466c66ec88fSEmmanuel Vadot			<1010 1>, <1011 1>, <1012 1>, <1013 1>, <1014 1>,
467c66ec88fSEmmanuel Vadot			<1015 1>, <1016 1>, <1017 1>, <1018 1>, <1019 1>,
468c66ec88fSEmmanuel Vadot			<1020 1>, <1021 1>, <1022 1>, <1023 1>, <1024 1>,
469c66ec88fSEmmanuel Vadot			<1025 1>, <1026 1>, <1027 1>, <1028 1>, <1029 1>,
470c66ec88fSEmmanuel Vadot			<1030 1>, <1031 1>, <1032 1>, <1033 1>, <1034 1>,
471c66ec88fSEmmanuel Vadot			<1035 1>, <1036 1>, <1037 1>, <1038 1>, <1039 1>,
472c66ec88fSEmmanuel Vadot			<1040 1>, <1041 1>, <1042 1>, <1043 1>, <1044 1>,
473c66ec88fSEmmanuel Vadot			<1045 1>, <1046 1>, <1047 1>, <1048 1>, <1049 1>,
474c66ec88fSEmmanuel Vadot			<1050 1>, <1051 1>, <1052 1>, <1053 1>, <1054 1>,
475c66ec88fSEmmanuel Vadot			<1055 1>, <1056 1>, <1057 1>, <1058 1>, <1059 1>,
476c66ec88fSEmmanuel Vadot			<1060 1>, <1061 1>, <1062 1>, <1063 1>, <1064 1>,
477c66ec88fSEmmanuel Vadot			<1065 1>, <1066 1>, <1067 1>, <1068 1>, <1069 1>,
478c66ec88fSEmmanuel Vadot			<1070 1>, <1071 1>, <1072 1>, <1073 1>, <1074 1>,
479c66ec88fSEmmanuel Vadot			<1075 1>, <1076 1>, <1077 1>, <1078 1>, <1079 1>,
480c66ec88fSEmmanuel Vadot			<1080 1>, <1081 1>, <1082 1>, <1083 1>, <1084 1>,
481c66ec88fSEmmanuel Vadot			<1085 1>, <1086 1>, <1087 1>, <1088 1>, <1089 1>,
482c66ec88fSEmmanuel Vadot			<1090 1>, <1091 1>, <1092 1>, <1093 1>, <1094 1>,
483c66ec88fSEmmanuel Vadot			<1095 1>, <1096 1>, <1097 1>, <1098 1>, <1099 1>,
484c66ec88fSEmmanuel Vadot			<1100 1>, <1101 1>, <1102 1>, <1103 1>, <1104 1>,
485c66ec88fSEmmanuel Vadot			<1105 1>, <1106 1>, <1107 1>, <1108 1>, <1109 1>,
486c66ec88fSEmmanuel Vadot			<1110 1>, <1111 1>, <1112 1>, <1113 1>, <1114 1>,
487c66ec88fSEmmanuel Vadot			<1115 1>, <1116 1>, <1117 1>, <1118 1>, <1119 1>,
488c66ec88fSEmmanuel Vadot			<1120 1>, <1121 1>, <1122 1>, <1123 1>, <1124 1>,
489c66ec88fSEmmanuel Vadot			<1125 1>, <1126 1>, <1127 1>, <1128 1>, <1129 1>,
490c66ec88fSEmmanuel Vadot			<1130 1>, <1131 1>, <1132 1>, <1133 1>, <1134 1>,
491c66ec88fSEmmanuel Vadot			<1135 1>, <1136 1>, <1137 1>, <1138 1>, <1139 1>,
492c66ec88fSEmmanuel Vadot			<1140 1>, <1141 1>, <1142 1>, <1143 1>, <1144 1>,
493c66ec88fSEmmanuel Vadot			<1145 1>, <1146 1>, <1147 1>, <1148 1>, <1149 1>,
494c66ec88fSEmmanuel Vadot			<1150 1>, <1151 1>, <1152 1>, <1153 1>, <1154 1>,
495c66ec88fSEmmanuel Vadot			<1155 1>, <1156 1>, <1157 1>, <1158 1>, <1159 1>,
496c66ec88fSEmmanuel Vadot			<1160 1>, <1161 1>, <1162 1>, <1163 1>, <1164 1>,
497c66ec88fSEmmanuel Vadot			<1165 1>, <1166 1>, <1167 1>, <1168 1>, <1169 1>,
498c66ec88fSEmmanuel Vadot			<1170 1>, <1171 1>, <1172 1>, <1173 1>, <1174 1>,
499c66ec88fSEmmanuel Vadot			<1175 1>, <1176 1>, <1177 1>, <1178 1>, <1179 1>,
500c66ec88fSEmmanuel Vadot			<1180 1>, <1181 1>, <1182 1>, <1183 1>, <1184 1>,
501c66ec88fSEmmanuel Vadot			<1185 1>, <1186 1>, <1187 1>, <1188 1>, <1189 1>,
502c66ec88fSEmmanuel Vadot			<1190 1>, <1191 1>, <1192 1>, <1193 1>, <1194 1>,
503c66ec88fSEmmanuel Vadot			<1195 1>, <1196 1>, <1197 1>, <1198 1>, <1199 1>,
504c66ec88fSEmmanuel Vadot			<1200 1>, <1201 1>, <1202 1>, <1203 1>, <1204 1>,
505c66ec88fSEmmanuel Vadot			<1205 1>, <1206 1>, <1207 1>, <1208 1>, <1209 1>,
506c66ec88fSEmmanuel Vadot			<1210 1>, <1211 1>, <1212 1>, <1213 1>, <1214 1>,
507c66ec88fSEmmanuel Vadot			<1215 1>, <1216 1>, <1217 1>, <1218 1>, <1219 1>,
508c66ec88fSEmmanuel Vadot			<1220 1>, <1221 1>, <1222 1>, <1223 1>, <1224 1>,
509c66ec88fSEmmanuel Vadot			<1225 1>, <1226 1>, <1227 1>, <1228 1>, <1229 1>,
510c66ec88fSEmmanuel Vadot			<1230 1>, <1231 1>, <1232 1>, <1233 1>, <1234 1>,
511c66ec88fSEmmanuel Vadot			<1235 1>, <1236 1>, <1237 1>, <1238 1>, <1239 1>,
512c66ec88fSEmmanuel Vadot			<1240 1>, <1241 1>, <1242 1>, <1243 1>, <1244 1>,
513c66ec88fSEmmanuel Vadot			<1245 1>, <1246 1>, <1247 1>, <1248 1>, <1249 1>,
514c66ec88fSEmmanuel Vadot			<1250 1>, <1251 1>, <1252 1>, <1253 1>, <1254 1>,
515c66ec88fSEmmanuel Vadot			<1255 1>, <1256 1>, <1257 1>, <1258 1>, <1259 1>,
516c66ec88fSEmmanuel Vadot			<1260 1>, <1261 1>, <1262 1>, <1263 1>, <1264 1>,
517c66ec88fSEmmanuel Vadot			<1265 1>, <1266 1>, <1267 1>, <1268 1>, <1269 1>,
518c66ec88fSEmmanuel Vadot			<1270 1>, <1271 1>, <1272 1>, <1273 1>, <1274 1>,
519c66ec88fSEmmanuel Vadot			<1275 1>, <1276 1>, <1277 1>, <1278 1>, <1279 1>,
520c66ec88fSEmmanuel Vadot			<1280 1>, <1281 1>, <1282 1>, <1283 1>, <1284 1>,
521c66ec88fSEmmanuel Vadot			<1285 1>, <1286 1>, <1287 1>, <1288 1>, <1289 1>,
522c66ec88fSEmmanuel Vadot			<1290 1>, <1291 1>, <1292 1>, <1293 1>, <1294 1>,
523c66ec88fSEmmanuel Vadot			<1295 1>, <1296 1>, <1297 1>, <1298 1>, <1299 1>,
524c66ec88fSEmmanuel Vadot			<1300 1>, <1301 1>, <1302 1>, <1303 1>, <1304 1>,
525c66ec88fSEmmanuel Vadot			<1305 1>, <1306 1>, <1307 1>, <1308 1>, <1309 1>,
526c66ec88fSEmmanuel Vadot			<1310 1>, <1311 1>, <1312 1>, <1313 1>, <1314 1>,
527c66ec88fSEmmanuel Vadot			<1315 1>, <1316 1>, <1317 1>, <1318 1>, <1319 1>,
528c66ec88fSEmmanuel Vadot			<1320 1>, <1321 1>, <1322 1>, <1323 1>, <1324 1>,
529c66ec88fSEmmanuel Vadot			<1325 1>, <1326 1>, <1327 1>, <1328 1>, <1329 1>,
530c66ec88fSEmmanuel Vadot			<1330 1>, <1331 1>, <1332 1>, <1333 1>, <1334 1>,
531c66ec88fSEmmanuel Vadot			<1335 1>, <1336 1>, <1337 1>, <1338 1>, <1339 1>,
532c66ec88fSEmmanuel Vadot			<1340 1>, <1341 1>, <1342 1>, <1343 1>;
533c66ec88fSEmmanuel Vadot
534c66ec88fSEmmanuel Vadot			desc-num = <0x400>;
535c66ec88fSEmmanuel Vadot			buf-size = <0x1000>;
536c66ec88fSEmmanuel Vadot			dma-coherent;
537c66ec88fSEmmanuel Vadot
538c66ec88fSEmmanuel Vadot			port@0 {
539c66ec88fSEmmanuel Vadot				reg = <0>;
540c66ec88fSEmmanuel Vadot				serdes-syscon = <&serdes_ctrl>;
541c66ec88fSEmmanuel Vadot				port-rst-offset = <0>;
542c66ec88fSEmmanuel Vadot				port-mode-offset = <0>;
543c66ec88fSEmmanuel Vadot				media-type = "fiber";
544c66ec88fSEmmanuel Vadot			};
545c66ec88fSEmmanuel Vadot
546c66ec88fSEmmanuel Vadot			port@1 {
547c66ec88fSEmmanuel Vadot				reg = <1>;
548c66ec88fSEmmanuel Vadot				serdes-syscon = <&serdes_ctrl>;
549c66ec88fSEmmanuel Vadot				port-rst-offset = <1>;
550c66ec88fSEmmanuel Vadot				port-mode-offset = <1>;
551c66ec88fSEmmanuel Vadot				media-type = "fiber";
552c66ec88fSEmmanuel Vadot			};
553c66ec88fSEmmanuel Vadot
554c66ec88fSEmmanuel Vadot			port@4 {
555c66ec88fSEmmanuel Vadot				reg = <4>;
556c66ec88fSEmmanuel Vadot				phy-handle = <&phy0>;
557c66ec88fSEmmanuel Vadot				serdes-syscon = <&serdes_ctrl>;
558c66ec88fSEmmanuel Vadot				port-rst-offset = <4>;
559c66ec88fSEmmanuel Vadot				port-mode-offset = <2>;
560c66ec88fSEmmanuel Vadot				media-type = "copper";
561c66ec88fSEmmanuel Vadot			};
562c66ec88fSEmmanuel Vadot
563c66ec88fSEmmanuel Vadot			port@5 {
564c66ec88fSEmmanuel Vadot				reg = <5>;
565c66ec88fSEmmanuel Vadot				phy-handle = <&phy1>;
566c66ec88fSEmmanuel Vadot				serdes-syscon = <&serdes_ctrl>;
567c66ec88fSEmmanuel Vadot				port-rst-offset = <5>;
568c66ec88fSEmmanuel Vadot				port-mode-offset = <3>;
569c66ec88fSEmmanuel Vadot				media-type = "copper";
570c66ec88fSEmmanuel Vadot			};
571c66ec88fSEmmanuel Vadot		};
572c66ec88fSEmmanuel Vadot
573c66ec88fSEmmanuel Vadot		eth0: ethernet-4 {
574c66ec88fSEmmanuel Vadot			compatible = "hisilicon,hns-nic-v2";
575c66ec88fSEmmanuel Vadot			ae-handle = <&dsaf0>;
576c66ec88fSEmmanuel Vadot			port-idx-in-ae = <4>;
577c66ec88fSEmmanuel Vadot			local-mac-address = [00 00 00 00 00 00];
578c66ec88fSEmmanuel Vadot			status = "disabled";
579c66ec88fSEmmanuel Vadot			dma-coherent;
580c66ec88fSEmmanuel Vadot		};
581c66ec88fSEmmanuel Vadot
582c66ec88fSEmmanuel Vadot		eth1: ethernet-5 {
583c66ec88fSEmmanuel Vadot			compatible = "hisilicon,hns-nic-v2";
584c66ec88fSEmmanuel Vadot			ae-handle = <&dsaf0>;
585c66ec88fSEmmanuel Vadot			port-idx-in-ae = <5>;
586c66ec88fSEmmanuel Vadot			local-mac-address = [00 00 00 00 00 00];
587c66ec88fSEmmanuel Vadot			status = "disabled";
588c66ec88fSEmmanuel Vadot			dma-coherent;
589c66ec88fSEmmanuel Vadot		};
590c66ec88fSEmmanuel Vadot
591c66ec88fSEmmanuel Vadot		eth2: ethernet-0 {
592c66ec88fSEmmanuel Vadot			compatible = "hisilicon,hns-nic-v2";
593c66ec88fSEmmanuel Vadot			ae-handle = <&dsaf0>;
594c66ec88fSEmmanuel Vadot			port-idx-in-ae = <0>;
595c66ec88fSEmmanuel Vadot			local-mac-address = [00 00 00 00 00 00];
596c66ec88fSEmmanuel Vadot			status = "disabled";
597c66ec88fSEmmanuel Vadot			dma-coherent;
598c66ec88fSEmmanuel Vadot		};
599c66ec88fSEmmanuel Vadot
600c66ec88fSEmmanuel Vadot		eth3: ethernet-1 {
601c66ec88fSEmmanuel Vadot			compatible = "hisilicon,hns-nic-v2";
602c66ec88fSEmmanuel Vadot			ae-handle = <&dsaf0>;
603c66ec88fSEmmanuel Vadot			port-idx-in-ae = <1>;
604c66ec88fSEmmanuel Vadot			local-mac-address = [00 00 00 00 00 00];
605c66ec88fSEmmanuel Vadot			status = "disabled";
606c66ec88fSEmmanuel Vadot			dma-coherent;
607c66ec88fSEmmanuel Vadot		};
608c66ec88fSEmmanuel Vadot
609c66ec88fSEmmanuel Vadot		sas0: sas@c3000000 {
610c66ec88fSEmmanuel Vadot			compatible = "hisilicon,hip06-sas-v2";
611c66ec88fSEmmanuel Vadot			reg = <0 0xc3000000 0 0x10000>;
612c66ec88fSEmmanuel Vadot			sas-addr = [50 01 88 20 16 00 00 00];
613c66ec88fSEmmanuel Vadot			hisilicon,sas-syscon = <&dsa_subctrl>;
614c66ec88fSEmmanuel Vadot			ctrl-reset-reg = <0xa60>;
615c66ec88fSEmmanuel Vadot			ctrl-reset-sts-reg = <0x5a30>;
616c66ec88fSEmmanuel Vadot			ctrl-clock-ena-reg = <0x338>;
617c66ec88fSEmmanuel Vadot			clocks = <&refclk 0>;
618c66ec88fSEmmanuel Vadot			queue-count = <16>;
619c66ec88fSEmmanuel Vadot			phy-count = <8>;
620c66ec88fSEmmanuel Vadot			dma-coherent;
621c66ec88fSEmmanuel Vadot			interrupt-parent = <&mbigen_sas0>;
622c66ec88fSEmmanuel Vadot			interrupts = <64 4>,<65 4>,<66 4>,<67 4>,<68 4>,
623c66ec88fSEmmanuel Vadot				     <69 4>,<70 4>,<71 4>,<72 4>,<73 4>,
624c66ec88fSEmmanuel Vadot				     <75 4>,<76 4>,<77 4>,<78 4>,<79 4>,
625c66ec88fSEmmanuel Vadot				     <80 4>,<81 4>,<82 4>,<83 4>,<84 4>,
626c66ec88fSEmmanuel Vadot				     <85 4>,<86 4>,<87 4>,<88 4>,<89 4>,
627c66ec88fSEmmanuel Vadot				     <90 4>,<91 4>,<92 4>,<93 4>,<94 4>,
628c66ec88fSEmmanuel Vadot				     <95 4>,<96 4>,<97 4>,<98 4>,<99 4>,
629c66ec88fSEmmanuel Vadot				     <100 4>,<101 4>,<102 4>,<103 4>,<104 4>,
630c66ec88fSEmmanuel Vadot				     <105 4>,<106 4>,<107 4>,<108 4>,<109 4>,
631c66ec88fSEmmanuel Vadot				     <110 4>,<111 4>,<112 4>,<113 4>,<114 4>,
632c66ec88fSEmmanuel Vadot				     <115 4>,<116 4>,<117 4>,<118 4>,<119 4>,
633c66ec88fSEmmanuel Vadot				     <120 4>,<121 4>,<122 4>,<123 4>,<124 4>,
634c66ec88fSEmmanuel Vadot				     <125 4>,<126 4>,<127 4>,<128 4>,<129 4>,
635c66ec88fSEmmanuel Vadot				     <130 4>,<131 4>,<132 4>,<133 4>,<134 4>,
636c66ec88fSEmmanuel Vadot				     <135 4>,<136 4>,<137 4>,<138 4>,<139 4>,
637c66ec88fSEmmanuel Vadot				     <140 4>,<141 4>,<142 4>,<143 4>,<144 4>,
638c66ec88fSEmmanuel Vadot				     <145 4>,<146 4>,<147 4>,<148 4>,<149 4>,
639c66ec88fSEmmanuel Vadot				     <150 4>,<151 4>,<152 4>,<153 4>,<154 4>,
640c66ec88fSEmmanuel Vadot				     <155 4>,<156 4>,<157 4>,<158 4>,<159 4>,
641c66ec88fSEmmanuel Vadot				     <160 4>,<601 1>,<602 1>,<603 1>,<604 1>,
642c66ec88fSEmmanuel Vadot				     <605 1>,<606 1>,<607 1>,<608 1>,<609 1>,
643c66ec88fSEmmanuel Vadot				     <610 1>,<611 1>,<612 1>,<613 1>,<614 1>,
644c66ec88fSEmmanuel Vadot				     <615 1>,<616 1>,<617 1>,<618 1>,<619 1>,
645c66ec88fSEmmanuel Vadot				     <620 1>,<621 1>,<622 1>,<623 1>,<624 1>,
646c66ec88fSEmmanuel Vadot				     <625 1>,<626 1>,<627 1>,<628 1>,<629 1>,
647c66ec88fSEmmanuel Vadot				     <630 1>,<631 1>,<632 1>;
648c66ec88fSEmmanuel Vadot			status = "disabled";
649c66ec88fSEmmanuel Vadot		};
650c66ec88fSEmmanuel Vadot
651c66ec88fSEmmanuel Vadot		sas1: sas@a2000000 {
652c66ec88fSEmmanuel Vadot			compatible = "hisilicon,hip06-sas-v2";
653c66ec88fSEmmanuel Vadot			reg = <0 0xa2000000 0 0x10000>;
654c66ec88fSEmmanuel Vadot			sas-addr = [50 01 88 20 16 00 00 00];
655c66ec88fSEmmanuel Vadot			hisilicon,sas-syscon = <&pcie_subctl>;
656c66ec88fSEmmanuel Vadot			hip06-sas-v2-quirk-amt;
657c66ec88fSEmmanuel Vadot			ctrl-reset-reg = <0xa18>;
658c66ec88fSEmmanuel Vadot			ctrl-reset-sts-reg = <0x5a0c>;
659c66ec88fSEmmanuel Vadot			ctrl-clock-ena-reg = <0x318>;
660c66ec88fSEmmanuel Vadot			clocks = <&refclk 0>;
661c66ec88fSEmmanuel Vadot			queue-count = <16>;
662c66ec88fSEmmanuel Vadot			phy-count = <8>;
663c66ec88fSEmmanuel Vadot			dma-coherent;
664c66ec88fSEmmanuel Vadot			interrupt-parent = <&mbigen_sas1>;
665c66ec88fSEmmanuel Vadot			interrupts = <64 4>,<65 4>,<66 4>,<67 4>,<68 4>,
666c66ec88fSEmmanuel Vadot				     <69 4>,<70 4>,<71 4>,<72 4>,<73 4>,
667c66ec88fSEmmanuel Vadot				     <74 4>,<75 4>,<76 4>,<77 4>,<78 4>,
668c66ec88fSEmmanuel Vadot				     <79 4>,<80 4>,<81 4>,<82 4>,<83 4>,
669c66ec88fSEmmanuel Vadot				     <84 4>,<85 4>,<86 4>,<87 4>,<88 4>,
670c66ec88fSEmmanuel Vadot				     <89 4>,<90 4>,<91 4>,<92 4>,<93 4>,
671c66ec88fSEmmanuel Vadot				     <94 4>,<95 4>,<96 4>,<97 4>,<98 4>,
672c66ec88fSEmmanuel Vadot				     <99 4>,<100 4>,<101 4>,<102 4>,<103 4>,
673c66ec88fSEmmanuel Vadot				     <104 4>,<105 4>,<106 4>,<107 4>,<108 4>,
674c66ec88fSEmmanuel Vadot				     <109 4>,<110 4>,<111 4>,<112 4>,<113 4>,
675c66ec88fSEmmanuel Vadot				     <114 4>,<115 4>,<116 4>,<117 4>,<118 4>,
676c66ec88fSEmmanuel Vadot				     <119 4>,<120 4>,<121 4>,<122 4>,<123 4>,
677c66ec88fSEmmanuel Vadot				     <124 4>,<125 4>,<126 4>,<127 4>,<128 4>,
678c66ec88fSEmmanuel Vadot				     <129 4>,<130 4>,<131 4>,<132 4>,<133 4>,
679c66ec88fSEmmanuel Vadot				     <134 4>,<135 4>,<136 4>,<137 4>,<138 4>,
680c66ec88fSEmmanuel Vadot				     <139 4>,<140 4>,<141 4>,<142 4>,<143 4>,
681c66ec88fSEmmanuel Vadot				     <144 4>,<145 4>,<146 4>,<147 4>,<148 4>,
682c66ec88fSEmmanuel Vadot				     <149 4>,<150 4>,<151 4>,<152 4>,<153 4>,
683c66ec88fSEmmanuel Vadot				     <154 4>,<155 4>,<156 4>,<157 4>,<158 4>,
684c66ec88fSEmmanuel Vadot				     <159 4>,<576 1>,<577 1>,<578 1>,<579 1>,
685c66ec88fSEmmanuel Vadot				     <580 1>,<581 1>,<582 1>,<583 1>,<584 1>,
686c66ec88fSEmmanuel Vadot				     <585 1>,<586 1>,<587 1>,<588 1>,<589 1>,
687c66ec88fSEmmanuel Vadot				     <590 1>,<591 1>,<592 1>,<593 1>,<594 1>,
688c66ec88fSEmmanuel Vadot				     <595 1>,<596 1>,<597 1>,<598 1>,<599 1>,
689c66ec88fSEmmanuel Vadot				     <600 1>,<601 1>,<602 1>,<603 1>,<604 1>,
690c66ec88fSEmmanuel Vadot				     <605 1>,<606 1>,<607 1>;
691c66ec88fSEmmanuel Vadot			status = "disabled";
692c66ec88fSEmmanuel Vadot		};
693c66ec88fSEmmanuel Vadot
694c66ec88fSEmmanuel Vadot		sas2: sas@a3000000 {
695c66ec88fSEmmanuel Vadot			compatible = "hisilicon,hip06-sas-v2";
696c66ec88fSEmmanuel Vadot			reg = <0 0xa3000000 0 0x10000>;
697c66ec88fSEmmanuel Vadot			sas-addr = [50 01 88 20 16 00 00 00];
698c66ec88fSEmmanuel Vadot			hisilicon,sas-syscon = <&pcie_subctl>;
699c66ec88fSEmmanuel Vadot			ctrl-reset-reg = <0xae0>;
700c66ec88fSEmmanuel Vadot			ctrl-reset-sts-reg = <0x5a70>;
701c66ec88fSEmmanuel Vadot			ctrl-clock-ena-reg = <0x3a8>;
702c66ec88fSEmmanuel Vadot			clocks = <&refclk 0>;
703c66ec88fSEmmanuel Vadot			queue-count = <16>;
704c66ec88fSEmmanuel Vadot			phy-count = <9>;
705c66ec88fSEmmanuel Vadot			dma-coherent;
706c66ec88fSEmmanuel Vadot			interrupt-parent = <&mbigen_sas2>;
707c66ec88fSEmmanuel Vadot			interrupts = <192 4>,<193 4>,<194 4>,<195 4>,<196 4>,
708c66ec88fSEmmanuel Vadot				     <197 4>,<198 4>,<199 4>,<200 4>,<201 4>,
709c66ec88fSEmmanuel Vadot				     <202 4>,<203 4>,<204 4>,<205 4>,<206 4>,
710c66ec88fSEmmanuel Vadot				     <207 4>,<208 4>,<209 4>,<210 4>,<211 4>,
711c66ec88fSEmmanuel Vadot				     <212 4>,<213 4>,<214 4>,<215 4>,<216 4>,
712c66ec88fSEmmanuel Vadot				     <217 4>,<218 4>,<219 4>,<220 4>,<221 4>,
713c66ec88fSEmmanuel Vadot				     <222 4>,<223 4>,<224 4>,<225 4>,<226 4>,
714c66ec88fSEmmanuel Vadot				     <227 4>,<228 4>,<229 4>,<230 4>,<231 4>,
715c66ec88fSEmmanuel Vadot				     <232 4>,<233 4>,<234 4>,<235 4>,<236 4>,
716c66ec88fSEmmanuel Vadot				     <237 4>,<238 4>,<239 4>,<240 4>,<241 4>,
717c66ec88fSEmmanuel Vadot				     <242 4>,<243 4>,<244 4>,<245 4>,<246 4>,
718c66ec88fSEmmanuel Vadot				     <247 4>,<248 4>,<249 4>,<250 4>,<251 4>,
719c66ec88fSEmmanuel Vadot				     <252 4>,<253 4>,<254 4>,<255 4>,<256 4>,
720c66ec88fSEmmanuel Vadot				     <257 4>,<258 4>,<259 4>,<260 4>,<261 4>,
721c66ec88fSEmmanuel Vadot				     <262 4>,<263 4>,<264 4>,<265 4>,<266 4>,
722c66ec88fSEmmanuel Vadot				     <267 4>,<268 4>,<269 4>,<270 4>,<271 4>,
723c66ec88fSEmmanuel Vadot				     <272 4>,<273 4>,<274 4>,<275 4>,<276 4>,
724c66ec88fSEmmanuel Vadot				     <277 4>,<278 4>,<279 4>,<280 4>,<281 4>,
725c66ec88fSEmmanuel Vadot				     <282 4>,<283 4>,<284 4>,<285 4>,<286 4>,
726c66ec88fSEmmanuel Vadot				     <287 4>,<608 1>,<609 1>,<610 1>,<611 1>,
727c66ec88fSEmmanuel Vadot				     <612 1>,<613 1>,<614 1>,<615 1>,<616 1>,
728c66ec88fSEmmanuel Vadot				     <617 1>,<618 1>,<619 1>,<620 1>,<621 1>,
729c66ec88fSEmmanuel Vadot				     <622 1>,<623 1>,<624 1>,<625 1>,<626 1>,
730c66ec88fSEmmanuel Vadot				     <627 1>,<628 1>,<629 1>,<630 1>,<631 1>,
731c66ec88fSEmmanuel Vadot				     <632 1>,<633 1>,<634 1>,<635 1>,<636 1>,
732c66ec88fSEmmanuel Vadot				     <637 1>,<638 1>,<639 1>;
733c66ec88fSEmmanuel Vadot			status = "disabled";
734c66ec88fSEmmanuel Vadot		};
735c66ec88fSEmmanuel Vadot
736c66ec88fSEmmanuel Vadot		pcie0: pcie@a0090000 {
737c66ec88fSEmmanuel Vadot			compatible = "hisilicon,hip06-pcie-ecam";
738c66ec88fSEmmanuel Vadot			reg = <0 0xb0000000 0 0x2000000>,
739c66ec88fSEmmanuel Vadot			      <0 0xa0090000 0 0x10000>;
740c66ec88fSEmmanuel Vadot			bus-range = <0  31>;
741c66ec88fSEmmanuel Vadot			msi-map = <0x0000 &its_dsa 0x0000 0x2000>;
742c66ec88fSEmmanuel Vadot			msi-map-mask = <0xffff>;
743c66ec88fSEmmanuel Vadot			#address-cells = <3>;
744c66ec88fSEmmanuel Vadot			#size-cells = <2>;
745c66ec88fSEmmanuel Vadot			device_type = "pci";
746c66ec88fSEmmanuel Vadot			dma-coherent;
7475def4c47SEmmanuel Vadot			ranges = <0x02000000 0 0xb2000000 0x0 0xb2000000 0 0x5ff0000>,
7485def4c47SEmmanuel Vadot				 <0x01000000 0 0 0 0xb7ff0000 0 0x10000>;
749c66ec88fSEmmanuel Vadot			#interrupt-cells = <1>;
750c66ec88fSEmmanuel Vadot			interrupt-map-mask = <0xf800 0 0 7>;
751c66ec88fSEmmanuel Vadot			interrupt-map = <0x0 0 0 1 &mbigen_pcie0 650 4
752c66ec88fSEmmanuel Vadot					0x0 0 0 2 &mbigen_pcie0 650 4
753c66ec88fSEmmanuel Vadot					0x0 0 0 3 &mbigen_pcie0 650 4
754c66ec88fSEmmanuel Vadot					0x0 0 0 4 &mbigen_pcie0 650 4>;
755c66ec88fSEmmanuel Vadot			status = "disabled";
756c66ec88fSEmmanuel Vadot		};
757c66ec88fSEmmanuel Vadot
758c66ec88fSEmmanuel Vadot	};
759c66ec88fSEmmanuel Vadot
760c66ec88fSEmmanuel Vadot};
761