xref: /linux/scripts/dtc/include-prefixes/arm64/hisilicon/hi3660.dtsi (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0
235ca8168SChen Feng/*
335ca8168SChen Feng * dts file for Hisilicon Hi3660 SoC
435ca8168SChen Feng *
5e3211e41SHao Fang * Copyright (C) 2016, HiSilicon Ltd.
635ca8168SChen Feng */
735ca8168SChen Feng
835ca8168SChen Feng#include <dt-bindings/interrupt-controller/arm-gic.h>
9a4e36ae0SZhangfei Gao#include <dt-bindings/clock/hi3660-clock.h>
108d93e94bSTao Wang#include <dt-bindings/thermal/thermal.h>
1135ca8168SChen Feng
1235ca8168SChen Feng/ {
1335ca8168SChen Feng	compatible = "hisilicon,hi3660";
1435ca8168SChen Feng	interrupt-parent = <&gic>;
1535ca8168SChen Feng	#address-cells = <2>;
1635ca8168SChen Feng	#size-cells = <2>;
1735ca8168SChen Feng
1835ca8168SChen Feng	psci {
1935ca8168SChen Feng		compatible = "arm,psci-0.2";
2035ca8168SChen Feng		method = "smc";
2135ca8168SChen Feng	};
2235ca8168SChen Feng
2335ca8168SChen Feng	cpus {
2435ca8168SChen Feng		#address-cells = <2>;
2535ca8168SChen Feng		#size-cells = <0>;
2635ca8168SChen Feng
2735ca8168SChen Feng		cpu-map {
2835ca8168SChen Feng			cluster0 {
2935ca8168SChen Feng				core0 {
3035ca8168SChen Feng					cpu = <&cpu0>;
3135ca8168SChen Feng				};
3235ca8168SChen Feng				core1 {
3335ca8168SChen Feng					cpu = <&cpu1>;
3435ca8168SChen Feng				};
3535ca8168SChen Feng				core2 {
3635ca8168SChen Feng					cpu = <&cpu2>;
3735ca8168SChen Feng				};
3835ca8168SChen Feng				core3 {
3935ca8168SChen Feng					cpu = <&cpu3>;
4035ca8168SChen Feng				};
4135ca8168SChen Feng			};
4235ca8168SChen Feng			cluster1 {
4335ca8168SChen Feng				core0 {
4435ca8168SChen Feng					cpu = <&cpu4>;
4535ca8168SChen Feng				};
4635ca8168SChen Feng				core1 {
4735ca8168SChen Feng					cpu = <&cpu5>;
4835ca8168SChen Feng				};
4935ca8168SChen Feng				core2 {
5035ca8168SChen Feng					cpu = <&cpu6>;
5135ca8168SChen Feng				};
5235ca8168SChen Feng				core3 {
5335ca8168SChen Feng					cpu = <&cpu7>;
5435ca8168SChen Feng				};
5535ca8168SChen Feng			};
5635ca8168SChen Feng		};
5735ca8168SChen Feng
5835ca8168SChen Feng		cpu0: cpu@0 {
5931af04cdSRob Herring			compatible = "arm,cortex-a53";
6035ca8168SChen Feng			device_type = "cpu";
6135ca8168SChen Feng			reg = <0x0 0x0>;
6235ca8168SChen Feng			enable-method = "psci";
63a6d08344SLeo Yan			next-level-cache = <&A53_L2>;
64a5956defSVincent Guittot			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
659a9760deSValentin Schneider			capacity-dmips-mhz = <592>;
66dfeae9e5SLeo Yan			clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER0>;
67dfeae9e5SLeo Yan			operating-points-v2 = <&cluster0_opp>;
688d93e94bSTao Wang			#cooling-cells = <2>;
698d93e94bSTao Wang			dynamic-power-coefficient = <110>;
7035ca8168SChen Feng		};
7135ca8168SChen Feng
7235ca8168SChen Feng		cpu1: cpu@1 {
7331af04cdSRob Herring			compatible = "arm,cortex-a53";
7435ca8168SChen Feng			device_type = "cpu";
7535ca8168SChen Feng			reg = <0x0 0x1>;
7635ca8168SChen Feng			enable-method = "psci";
77a6d08344SLeo Yan			next-level-cache = <&A53_L2>;
78a5956defSVincent Guittot			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
799a9760deSValentin Schneider			capacity-dmips-mhz = <592>;
80dfeae9e5SLeo Yan			clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER0>;
81dfeae9e5SLeo Yan			operating-points-v2 = <&cluster0_opp>;
82a7a6e2cbSViresh Kumar			#cooling-cells = <2>;
8335ca8168SChen Feng		};
8435ca8168SChen Feng
8535ca8168SChen Feng		cpu2: cpu@2 {
8631af04cdSRob Herring			compatible = "arm,cortex-a53";
8735ca8168SChen Feng			device_type = "cpu";
8835ca8168SChen Feng			reg = <0x0 0x2>;
8935ca8168SChen Feng			enable-method = "psci";
90a6d08344SLeo Yan			next-level-cache = <&A53_L2>;
91a5956defSVincent Guittot			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
929a9760deSValentin Schneider			capacity-dmips-mhz = <592>;
93dfeae9e5SLeo Yan			clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER0>;
94dfeae9e5SLeo Yan			operating-points-v2 = <&cluster0_opp>;
95a7a6e2cbSViresh Kumar			#cooling-cells = <2>;
9635ca8168SChen Feng		};
9735ca8168SChen Feng
9835ca8168SChen Feng		cpu3: cpu@3 {
9931af04cdSRob Herring			compatible = "arm,cortex-a53";
10035ca8168SChen Feng			device_type = "cpu";
10135ca8168SChen Feng			reg = <0x0 0x3>;
10235ca8168SChen Feng			enable-method = "psci";
103a6d08344SLeo Yan			next-level-cache = <&A53_L2>;
104a5956defSVincent Guittot			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
1059a9760deSValentin Schneider			capacity-dmips-mhz = <592>;
106dfeae9e5SLeo Yan			clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER0>;
107dfeae9e5SLeo Yan			operating-points-v2 = <&cluster0_opp>;
108a7a6e2cbSViresh Kumar			#cooling-cells = <2>;
10935ca8168SChen Feng		};
11035ca8168SChen Feng
11135ca8168SChen Feng		cpu4: cpu@100 {
11231af04cdSRob Herring			compatible = "arm,cortex-a73";
11335ca8168SChen Feng			device_type = "cpu";
11435ca8168SChen Feng			reg = <0x0 0x100>;
11535ca8168SChen Feng			enable-method = "psci";
116a6d08344SLeo Yan			next-level-cache = <&A73_L2>;
117a5956defSVincent Guittot			cpu-idle-states = <&CPU_SLEEP_1 &CLUSTER_SLEEP_1>;
1189a9760deSValentin Schneider			capacity-dmips-mhz = <1024>;
119dfeae9e5SLeo Yan			clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER1>;
120dfeae9e5SLeo Yan			operating-points-v2 = <&cluster1_opp>;
1218d93e94bSTao Wang			#cooling-cells = <2>;
1228d93e94bSTao Wang			dynamic-power-coefficient = <550>;
12335ca8168SChen Feng		};
12435ca8168SChen Feng
12535ca8168SChen Feng		cpu5: cpu@101 {
12631af04cdSRob Herring			compatible = "arm,cortex-a73";
12735ca8168SChen Feng			device_type = "cpu";
12835ca8168SChen Feng			reg = <0x0 0x101>;
12935ca8168SChen Feng			enable-method = "psci";
130a6d08344SLeo Yan			next-level-cache = <&A73_L2>;
131a5956defSVincent Guittot			cpu-idle-states = <&CPU_SLEEP_1 &CLUSTER_SLEEP_1>;
1329a9760deSValentin Schneider			capacity-dmips-mhz = <1024>;
133dfeae9e5SLeo Yan			clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER1>;
134dfeae9e5SLeo Yan			operating-points-v2 = <&cluster1_opp>;
135a7a6e2cbSViresh Kumar			#cooling-cells = <2>;
13635ca8168SChen Feng		};
13735ca8168SChen Feng
13835ca8168SChen Feng		cpu6: cpu@102 {
13931af04cdSRob Herring			compatible = "arm,cortex-a73";
14035ca8168SChen Feng			device_type = "cpu";
14135ca8168SChen Feng			reg = <0x0 0x102>;
14235ca8168SChen Feng			enable-method = "psci";
143a6d08344SLeo Yan			next-level-cache = <&A73_L2>;
144a5956defSVincent Guittot			cpu-idle-states = <&CPU_SLEEP_1 &CLUSTER_SLEEP_1>;
1459a9760deSValentin Schneider			capacity-dmips-mhz = <1024>;
146dfeae9e5SLeo Yan			clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER1>;
147dfeae9e5SLeo Yan			operating-points-v2 = <&cluster1_opp>;
148a7a6e2cbSViresh Kumar			#cooling-cells = <2>;
14935ca8168SChen Feng		};
15035ca8168SChen Feng
15135ca8168SChen Feng		cpu7: cpu@103 {
15231af04cdSRob Herring			compatible = "arm,cortex-a73";
15335ca8168SChen Feng			device_type = "cpu";
15435ca8168SChen Feng			reg = <0x0 0x103>;
15535ca8168SChen Feng			enable-method = "psci";
156a6d08344SLeo Yan			next-level-cache = <&A73_L2>;
157a5956defSVincent Guittot			cpu-idle-states = <&CPU_SLEEP_1 &CLUSTER_SLEEP_1>;
1589a9760deSValentin Schneider			capacity-dmips-mhz = <1024>;
159dfeae9e5SLeo Yan			clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER1>;
160dfeae9e5SLeo Yan			operating-points-v2 = <&cluster1_opp>;
161a7a6e2cbSViresh Kumar			#cooling-cells = <2>;
16230fec826SLeo Yan		};
16330fec826SLeo Yan
16430fec826SLeo Yan		idle-states {
16530fec826SLeo Yan			entry-method = "psci";
16630fec826SLeo Yan
167a5956defSVincent Guittot			CPU_SLEEP_0: cpu-sleep-0 {
16830fec826SLeo Yan				compatible = "arm,idle-state";
16930fec826SLeo Yan				local-timer-stop;
17030fec826SLeo Yan				arm,psci-suspend-param = <0x0010000>;
171a5956defSVincent Guittot				entry-latency-us = <400>;
172a5956defSVincent Guittot				exit-latency-us = <650>;
173a5956defSVincent Guittot				min-residency-us = <1500>;
17430fec826SLeo Yan			};
17530fec826SLeo Yan			CLUSTER_SLEEP_0: cluster-sleep-0 {
17630fec826SLeo Yan				compatible = "arm,idle-state";
17730fec826SLeo Yan				local-timer-stop;
17830fec826SLeo Yan				arm,psci-suspend-param = <0x1010000>;
17930fec826SLeo Yan				entry-latency-us = <500>;
180a5956defSVincent Guittot				exit-latency-us = <1600>;
181a5956defSVincent Guittot				min-residency-us = <3500>;
182a5956defSVincent Guittot			};
183a5956defSVincent Guittot
184a5956defSVincent Guittot
185a5956defSVincent Guittot			CPU_SLEEP_1: cpu-sleep-1 {
186a5956defSVincent Guittot				compatible = "arm,idle-state";
187a5956defSVincent Guittot				local-timer-stop;
188a5956defSVincent Guittot				arm,psci-suspend-param = <0x0010000>;
189a5956defSVincent Guittot				entry-latency-us = <400>;
190a5956defSVincent Guittot				exit-latency-us = <550>;
191a5956defSVincent Guittot				min-residency-us = <1500>;
19230fec826SLeo Yan			};
19330fec826SLeo Yan
19430fec826SLeo Yan			CLUSTER_SLEEP_1: cluster-sleep-1 {
19530fec826SLeo Yan				compatible = "arm,idle-state";
19630fec826SLeo Yan				local-timer-stop;
19730fec826SLeo Yan				arm,psci-suspend-param = <0x1010000>;
198a5956defSVincent Guittot				entry-latency-us = <800>;
199a5956defSVincent Guittot				exit-latency-us = <2900>;
200a5956defSVincent Guittot				min-residency-us = <3500>;
20130fec826SLeo Yan			};
20235ca8168SChen Feng		};
203a6d08344SLeo Yan
204a6d08344SLeo Yan		A53_L2: l2-cache0 {
205a6d08344SLeo Yan			compatible = "cache";
2060de459a3SPierre Gondois			cache-level = <2>;
207a0936e9eSKrzysztof Kozlowski			cache-unified;
208a6d08344SLeo Yan		};
209a6d08344SLeo Yan
210a6d08344SLeo Yan		A73_L2: l2-cache1 {
211a6d08344SLeo Yan			compatible = "cache";
2120de459a3SPierre Gondois			cache-level = <2>;
213a0936e9eSKrzysztof Kozlowski			cache-unified;
214a6d08344SLeo Yan		};
21535ca8168SChen Feng	};
21635ca8168SChen Feng
217dcc3f565SKrzysztof Kozlowski	cluster0_opp: opp-table-0 {
218dfeae9e5SLeo Yan		compatible = "operating-points-v2";
219dfeae9e5SLeo Yan		opp-shared;
220dfeae9e5SLeo Yan
221dfeae9e5SLeo Yan		opp00 {
222dfeae9e5SLeo Yan			opp-hz = /bits/ 64 <533000000>;
223dfeae9e5SLeo Yan			opp-microvolt = <700000>;
224dfeae9e5SLeo Yan			clock-latency-ns = <300000>;
225dfeae9e5SLeo Yan		};
226dfeae9e5SLeo Yan
227dfeae9e5SLeo Yan		opp01 {
228dfeae9e5SLeo Yan			opp-hz = /bits/ 64 <999000000>;
229dfeae9e5SLeo Yan			opp-microvolt = <800000>;
230dfeae9e5SLeo Yan			clock-latency-ns = <300000>;
231dfeae9e5SLeo Yan		};
232dfeae9e5SLeo Yan
233dfeae9e5SLeo Yan		opp02 {
234dfeae9e5SLeo Yan			opp-hz = /bits/ 64 <1402000000>;
235dfeae9e5SLeo Yan			opp-microvolt = <900000>;
236dfeae9e5SLeo Yan			clock-latency-ns = <300000>;
237dfeae9e5SLeo Yan		};
238dfeae9e5SLeo Yan
239dfeae9e5SLeo Yan		opp03 {
240dfeae9e5SLeo Yan			opp-hz = /bits/ 64 <1709000000>;
241dfeae9e5SLeo Yan			opp-microvolt = <1000000>;
242dfeae9e5SLeo Yan			clock-latency-ns = <300000>;
243dfeae9e5SLeo Yan		};
244dfeae9e5SLeo Yan
245dfeae9e5SLeo Yan		opp04 {
246dfeae9e5SLeo Yan			opp-hz = /bits/ 64 <1844000000>;
247dfeae9e5SLeo Yan			opp-microvolt = <1100000>;
248dfeae9e5SLeo Yan			clock-latency-ns = <300000>;
249dfeae9e5SLeo Yan		};
250dfeae9e5SLeo Yan	};
251dfeae9e5SLeo Yan
252dcc3f565SKrzysztof Kozlowski	cluster1_opp: opp-table-1 {
253dfeae9e5SLeo Yan		compatible = "operating-points-v2";
254dfeae9e5SLeo Yan		opp-shared;
255dfeae9e5SLeo Yan
256dfeae9e5SLeo Yan		opp10 {
257dfeae9e5SLeo Yan			opp-hz = /bits/ 64 <903000000>;
258dfeae9e5SLeo Yan			opp-microvolt = <700000>;
259dfeae9e5SLeo Yan			clock-latency-ns = <300000>;
260dfeae9e5SLeo Yan		};
261dfeae9e5SLeo Yan
262dfeae9e5SLeo Yan		opp11 {
263dfeae9e5SLeo Yan			opp-hz = /bits/ 64 <1421000000>;
264dfeae9e5SLeo Yan			opp-microvolt = <800000>;
265dfeae9e5SLeo Yan			clock-latency-ns = <300000>;
266dfeae9e5SLeo Yan		};
267dfeae9e5SLeo Yan
268dfeae9e5SLeo Yan		opp12 {
269dfeae9e5SLeo Yan			opp-hz = /bits/ 64 <1805000000>;
270dfeae9e5SLeo Yan			opp-microvolt = <900000>;
271dfeae9e5SLeo Yan			clock-latency-ns = <300000>;
272dfeae9e5SLeo Yan		};
273dfeae9e5SLeo Yan
274dfeae9e5SLeo Yan		opp13 {
275dfeae9e5SLeo Yan			opp-hz = /bits/ 64 <2112000000>;
276dfeae9e5SLeo Yan			opp-microvolt = <1000000>;
277dfeae9e5SLeo Yan			clock-latency-ns = <300000>;
278dfeae9e5SLeo Yan		};
279dfeae9e5SLeo Yan
280dfeae9e5SLeo Yan		opp14 {
281dfeae9e5SLeo Yan			opp-hz = /bits/ 64 <2362000000>;
282dfeae9e5SLeo Yan			opp-microvolt = <1100000>;
283dfeae9e5SLeo Yan			clock-latency-ns = <300000>;
284dfeae9e5SLeo Yan		};
285dfeae9e5SLeo Yan	};
286dfeae9e5SLeo Yan
28735ca8168SChen Feng	gic: interrupt-controller@e82b0000 {
28835ca8168SChen Feng		compatible = "arm,gic-400";
28935ca8168SChen Feng		reg = <0x0 0xe82b1000 0 0x1000>, /* GICD */
29035ca8168SChen Feng		      <0x0 0xe82b2000 0 0x2000>, /* GICC */
29135ca8168SChen Feng		      <0x0 0xe82b4000 0 0x2000>, /* GICH */
29235ca8168SChen Feng		      <0x0 0xe82b6000 0 0x2000>; /* GICV */
29335ca8168SChen Feng		#address-cells = <0>;
29435ca8168SChen Feng		#interrupt-cells = <3>;
29535ca8168SChen Feng		interrupt-controller;
29635ca8168SChen Feng		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) |
29735ca8168SChen Feng					 IRQ_TYPE_LEVEL_HIGH)>;
29835ca8168SChen Feng	};
29935ca8168SChen Feng
300e07642faSXu YiPing	a53-pmu {
301e07642faSXu YiPing		compatible = "arm,cortex-a53-pmu";
302f8054fb8SYiPing Xu		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
303f8054fb8SYiPing Xu			     <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
304f8054fb8SYiPing Xu			     <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
305e07642faSXu YiPing			     <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
306f8054fb8SYiPing Xu		interrupt-affinity = <&cpu0>,
307f8054fb8SYiPing Xu				     <&cpu1>,
308f8054fb8SYiPing Xu				     <&cpu2>,
309e07642faSXu YiPing				     <&cpu3>;
310e07642faSXu YiPing	};
311e07642faSXu YiPing
312e07642faSXu YiPing	a73-pmu {
313e07642faSXu YiPing		compatible = "arm,cortex-a73-pmu";
314e07642faSXu YiPing		interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
315e07642faSXu YiPing			     <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
316e07642faSXu YiPing			     <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
317e07642faSXu YiPing			     <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
318e07642faSXu YiPing		interrupt-affinity = <&cpu4>,
319f8054fb8SYiPing Xu				     <&cpu5>,
320f8054fb8SYiPing Xu				     <&cpu6>,
321f8054fb8SYiPing Xu				     <&cpu7>;
322f8054fb8SYiPing Xu	};
323f8054fb8SYiPing Xu
32435ca8168SChen Feng	timer {
32535ca8168SChen Feng		compatible = "arm,armv8-timer";
32635ca8168SChen Feng		interrupt-parent = <&gic>;
32735ca8168SChen Feng		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) |
32835ca8168SChen Feng					  IRQ_TYPE_LEVEL_LOW)>,
32935ca8168SChen Feng			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) |
33035ca8168SChen Feng					  IRQ_TYPE_LEVEL_LOW)>,
33135ca8168SChen Feng			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) |
33235ca8168SChen Feng					  IRQ_TYPE_LEVEL_LOW)>,
33335ca8168SChen Feng			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) |
33435ca8168SChen Feng					  IRQ_TYPE_LEVEL_LOW)>;
33535ca8168SChen Feng	};
33635ca8168SChen Feng
33735ca8168SChen Feng	soc {
33835ca8168SChen Feng		compatible = "simple-bus";
33935ca8168SChen Feng		#address-cells = <2>;
34035ca8168SChen Feng		#size-cells = <2>;
34135ca8168SChen Feng		ranges;
34235ca8168SChen Feng
343a4e36ae0SZhangfei Gao		crg_ctrl: crg_ctrl@fff35000 {
344a4e36ae0SZhangfei Gao			compatible = "hisilicon,hi3660-crgctrl", "syscon";
345a4e36ae0SZhangfei Gao			reg = <0x0 0xfff35000 0x0 0x1000>;
346a4e36ae0SZhangfei Gao			#clock-cells = <1>;
34735ca8168SChen Feng		};
34835ca8168SChen Feng
349a4e36ae0SZhangfei Gao		crg_rst: crg_rst_controller {
350a4e36ae0SZhangfei Gao			compatible = "hisilicon,hi3660-reset";
351a4e36ae0SZhangfei Gao			#reset-cells = <2>;
352a4e36ae0SZhangfei Gao			hisi,rst-syscon = <&crg_ctrl>;
353a4e36ae0SZhangfei Gao		};
354a4e36ae0SZhangfei Gao
355a4e36ae0SZhangfei Gao
356a4e36ae0SZhangfei Gao		pctrl: pctrl@e8a09000 {
357a4e36ae0SZhangfei Gao			compatible = "hisilicon,hi3660-pctrl", "syscon";
358a4e36ae0SZhangfei Gao			reg = <0x0 0xe8a09000 0x0 0x2000>;
359a4e36ae0SZhangfei Gao			#clock-cells = <1>;
360a4e36ae0SZhangfei Gao		};
361a4e36ae0SZhangfei Gao
362a4e36ae0SZhangfei Gao		pmuctrl: crg_ctrl@fff34000 {
363a4e36ae0SZhangfei Gao			compatible = "hisilicon,hi3660-pmuctrl", "syscon";
364a4e36ae0SZhangfei Gao			reg = <0x0 0xfff34000 0x0 0x1000>;
365a4e36ae0SZhangfei Gao			#clock-cells = <1>;
366a4e36ae0SZhangfei Gao		};
367a4e36ae0SZhangfei Gao
368a4e36ae0SZhangfei Gao		sctrl: sctrl@fff0a000 {
369a4e36ae0SZhangfei Gao			compatible = "hisilicon,hi3660-sctrl", "syscon";
370a4e36ae0SZhangfei Gao			reg = <0x0 0xfff0a000 0x0 0x1000>;
371a4e36ae0SZhangfei Gao			#clock-cells = <1>;
372a4e36ae0SZhangfei Gao		};
373a4e36ae0SZhangfei Gao
374a4e36ae0SZhangfei Gao		iomcu: iomcu@ffd7e000 {
375a4e36ae0SZhangfei Gao			compatible = "hisilicon,hi3660-iomcu", "syscon";
376a4e36ae0SZhangfei Gao			reg = <0x0 0xffd7e000 0x0 0x1000>;
377a4e36ae0SZhangfei Gao			#clock-cells = <1>;
378a4e36ae0SZhangfei Gao
379a4e36ae0SZhangfei Gao		};
380a4e36ae0SZhangfei Gao
381a4e36ae0SZhangfei Gao		iomcu_rst: reset {
382a4e36ae0SZhangfei Gao			compatible = "hisilicon,hi3660-reset";
383a4e36ae0SZhangfei Gao			hisi,rst-syscon = <&iomcu>;
384a4e36ae0SZhangfei Gao			#reset-cells = <2>;
385a4e36ae0SZhangfei Gao		};
386a4e36ae0SZhangfei Gao
387ca905780SKaihua Zhong		mailbox: mailbox@e896b000 {
388ca905780SKaihua Zhong			compatible = "hisilicon,hi3660-mbox";
389ca905780SKaihua Zhong			reg = <0x0 0xe896b000 0x0 0x1000>;
390ca905780SKaihua Zhong			interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>,
391ca905780SKaihua Zhong				     <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
392ca905780SKaihua Zhong			#mbox-cells = <3>;
393ca905780SKaihua Zhong		};
394ca905780SKaihua Zhong
3956e2c52b3SKaihua Zhong		stub_clock: stub_clock@e896b500 {
3966e2c52b3SKaihua Zhong			compatible = "hisilicon,hi3660-stub-clk";
3976e2c52b3SKaihua Zhong			reg = <0x0 0xe896b500 0x0 0x0100>;
3986e2c52b3SKaihua Zhong			#clock-cells = <1>;
3996e2c52b3SKaihua Zhong			mboxes = <&mailbox 13 3 0>;
4006e2c52b3SKaihua Zhong		};
4016e2c52b3SKaihua Zhong
40275196330SLeo Yan		dual_timer0: timer@fff14000 {
40375196330SLeo Yan			compatible = "arm,sp804", "arm,primecell";
40475196330SLeo Yan			reg = <0x0 0xfff14000 0x0 0x1000>;
40575196330SLeo Yan			interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
40675196330SLeo Yan				     <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
40775196330SLeo Yan			clocks = <&crg_ctrl HI3660_OSC32K>,
40875196330SLeo Yan				 <&crg_ctrl HI3660_OSC32K>,
40975196330SLeo Yan				 <&crg_ctrl HI3660_OSC32K>;
41075196330SLeo Yan			clock-names = "timer1", "timer2", "apb_pclk";
41175196330SLeo Yan		};
41275196330SLeo Yan
4135f8a3b77SZhangfei Gao		i2c0: i2c@ffd71000 {
4145f8a3b77SZhangfei Gao			compatible = "snps,designware-i2c";
4155f8a3b77SZhangfei Gao			reg = <0x0 0xffd71000 0x0 0x1000>;
4165f8a3b77SZhangfei Gao			interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
4175f8a3b77SZhangfei Gao			#address-cells = <1>;
4185f8a3b77SZhangfei Gao			#size-cells = <0>;
4195f8a3b77SZhangfei Gao			clock-frequency = <400000>;
4205f8a3b77SZhangfei Gao			clocks = <&crg_ctrl HI3660_CLK_GATE_I2C0>;
4215f8a3b77SZhangfei Gao			resets = <&iomcu_rst 0x20 3>;
4225f8a3b77SZhangfei Gao			pinctrl-names = "default";
4235f8a3b77SZhangfei Gao			pinctrl-0 = <&i2c0_pmx_func &i2c0_cfg_func>;
4245f8a3b77SZhangfei Gao			status = "disabled";
4255f8a3b77SZhangfei Gao		};
4265f8a3b77SZhangfei Gao
4275f8a3b77SZhangfei Gao		i2c1: i2c@ffd72000 {
4285f8a3b77SZhangfei Gao			compatible = "snps,designware-i2c";
4295f8a3b77SZhangfei Gao			reg = <0x0 0xffd72000 0x0 0x1000>;
4305f8a3b77SZhangfei Gao			interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
4315f8a3b77SZhangfei Gao			#address-cells = <1>;
4325f8a3b77SZhangfei Gao			#size-cells = <0>;
4335f8a3b77SZhangfei Gao			clock-frequency = <400000>;
4345f8a3b77SZhangfei Gao			clocks = <&crg_ctrl HI3660_CLK_GATE_I2C1>;
4355f8a3b77SZhangfei Gao			resets = <&iomcu_rst 0x20 4>;
4365f8a3b77SZhangfei Gao			pinctrl-names = "default";
4375f8a3b77SZhangfei Gao			pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>;
4385f8a3b77SZhangfei Gao			status = "disabled";
4395f8a3b77SZhangfei Gao		};
4405f8a3b77SZhangfei Gao
4415f8a3b77SZhangfei Gao		i2c3: i2c@fdf0c000 {
4425f8a3b77SZhangfei Gao			compatible = "snps,designware-i2c";
4435f8a3b77SZhangfei Gao			reg = <0x0 0xfdf0c000 0x0 0x1000>;
4445f8a3b77SZhangfei Gao			interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
4455f8a3b77SZhangfei Gao			#address-cells = <1>;
4465f8a3b77SZhangfei Gao			#size-cells = <0>;
4475f8a3b77SZhangfei Gao			clock-frequency = <400000>;
4485f8a3b77SZhangfei Gao			clocks = <&crg_ctrl HI3660_CLK_GATE_I2C3>;
4495f8a3b77SZhangfei Gao			resets = <&crg_rst 0x78 7>;
4505f8a3b77SZhangfei Gao			pinctrl-names = "default";
4515f8a3b77SZhangfei Gao			pinctrl-0 = <&i2c3_pmx_func &i2c3_cfg_func>;
4525f8a3b77SZhangfei Gao			status = "disabled";
4535f8a3b77SZhangfei Gao		};
4545f8a3b77SZhangfei Gao
4555f8a3b77SZhangfei Gao		i2c7: i2c@fdf0b000 {
4565f8a3b77SZhangfei Gao			compatible = "snps,designware-i2c";
4575f8a3b77SZhangfei Gao			reg = <0x0 0xfdf0b000 0x0 0x1000>;
4585f8a3b77SZhangfei Gao			interrupts = <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>;
4595f8a3b77SZhangfei Gao			#address-cells = <1>;
4605f8a3b77SZhangfei Gao			#size-cells = <0>;
4615f8a3b77SZhangfei Gao			clock-frequency = <400000>;
4625f8a3b77SZhangfei Gao			clocks = <&crg_ctrl HI3660_CLK_GATE_I2C7>;
4635f8a3b77SZhangfei Gao			resets = <&crg_rst 0x60 14>;
4645f8a3b77SZhangfei Gao			pinctrl-names = "default";
4655f8a3b77SZhangfei Gao			pinctrl-0 = <&i2c7_pmx_func &i2c7_cfg_func>;
4665f8a3b77SZhangfei Gao			status = "disabled";
4675f8a3b77SZhangfei Gao		};
4685f8a3b77SZhangfei Gao
469254b07b2SChen Feng		uart0: serial@fdf02000 {
470254b07b2SChen Feng			compatible = "arm,pl011", "arm,primecell";
471254b07b2SChen Feng			reg = <0x0 0xfdf02000 0x0 0x1000>;
472254b07b2SChen Feng			interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
473254b07b2SChen Feng			clocks = <&crg_ctrl HI3660_CLK_MUX_UART0>,
474254b07b2SChen Feng				 <&crg_ctrl HI3660_PCLK>;
475254b07b2SChen Feng			clock-names = "uartclk", "apb_pclk";
476254b07b2SChen Feng			pinctrl-names = "default";
477254b07b2SChen Feng			pinctrl-0 = <&uart0_pmx_func &uart0_cfg_func>;
478254b07b2SChen Feng			status = "disabled";
479254b07b2SChen Feng		};
480254b07b2SChen Feng
481254b07b2SChen Feng		uart1: serial@fdf00000 {
482254b07b2SChen Feng			compatible = "arm,pl011", "arm,primecell";
483254b07b2SChen Feng			reg = <0x0 0xfdf00000 0x0 0x1000>;
484254b07b2SChen Feng			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
485792cea3fSJohn Stultz			dma-names = "rx", "tx";
486792cea3fSJohn Stultz			dmas = <&dma0 2 &dma0 3>;
487254b07b2SChen Feng			clocks = <&crg_ctrl HI3660_CLK_GATE_UART1>,
488254b07b2SChen Feng				 <&crg_ctrl HI3660_CLK_GATE_UART1>;
489254b07b2SChen Feng			clock-names = "uartclk", "apb_pclk";
490254b07b2SChen Feng			pinctrl-names = "default";
491254b07b2SChen Feng			pinctrl-0 = <&uart1_pmx_func &uart1_cfg_func>;
492254b07b2SChen Feng			status = "disabled";
493254b07b2SChen Feng		};
494254b07b2SChen Feng
495254b07b2SChen Feng		uart2: serial@fdf03000 {
496254b07b2SChen Feng			compatible = "arm,pl011", "arm,primecell";
497254b07b2SChen Feng			reg = <0x0 0xfdf03000 0x0 0x1000>;
498254b07b2SChen Feng			interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
499792cea3fSJohn Stultz			dma-names = "rx", "tx";
500792cea3fSJohn Stultz			dmas = <&dma0 4 &dma0 5>;
501254b07b2SChen Feng			clocks = <&crg_ctrl HI3660_CLK_GATE_UART2>,
502254b07b2SChen Feng				 <&crg_ctrl HI3660_PCLK>;
503254b07b2SChen Feng			clock-names = "uartclk", "apb_pclk";
504254b07b2SChen Feng			pinctrl-names = "default";
505254b07b2SChen Feng			pinctrl-0 = <&uart2_pmx_func &uart2_cfg_func>;
506254b07b2SChen Feng			status = "disabled";
507254b07b2SChen Feng		};
508254b07b2SChen Feng
509254b07b2SChen Feng		uart3: serial@ffd74000 {
510254b07b2SChen Feng			compatible = "arm,pl011", "arm,primecell";
511254b07b2SChen Feng			reg = <0x0 0xffd74000 0x0 0x1000>;
512254b07b2SChen Feng			interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
513254b07b2SChen Feng			clocks = <&crg_ctrl HI3660_FACTOR_UART3>,
514254b07b2SChen Feng				 <&crg_ctrl HI3660_PCLK>;
515254b07b2SChen Feng			clock-names = "uartclk", "apb_pclk";
516254b07b2SChen Feng			pinctrl-names = "default";
517254b07b2SChen Feng			pinctrl-0 = <&uart3_pmx_func &uart3_cfg_func>;
518254b07b2SChen Feng			status = "disabled";
519254b07b2SChen Feng		};
520254b07b2SChen Feng
521254b07b2SChen Feng		uart4: serial@fdf01000 {
522254b07b2SChen Feng			compatible = "arm,pl011", "arm,primecell";
523254b07b2SChen Feng			reg = <0x0 0xfdf01000 0x0 0x1000>;
524254b07b2SChen Feng			interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
525792cea3fSJohn Stultz			dma-names = "rx", "tx";
526792cea3fSJohn Stultz			dmas = <&dma0 6 &dma0 7>;
527254b07b2SChen Feng			clocks = <&crg_ctrl HI3660_CLK_GATE_UART4>,
528254b07b2SChen Feng				 <&crg_ctrl HI3660_CLK_GATE_UART4>;
529254b07b2SChen Feng			clock-names = "uartclk", "apb_pclk";
530254b07b2SChen Feng			pinctrl-names = "default";
531254b07b2SChen Feng			pinctrl-0 = <&uart4_pmx_func &uart4_cfg_func>;
532254b07b2SChen Feng			status = "disabled";
533254b07b2SChen Feng		};
534254b07b2SChen Feng
535a4e36ae0SZhangfei Gao		uart5: serial@fdf05000 {
53635ca8168SChen Feng			compatible = "arm,pl011", "arm,primecell";
53735ca8168SChen Feng			reg = <0x0 0xfdf05000 0x0 0x1000>;
53835ca8168SChen Feng			interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
539792cea3fSJohn Stultz			dma-names = "rx", "tx";
540792cea3fSJohn Stultz			dmas = <&dma0 8 &dma0 9>;
541a4e36ae0SZhangfei Gao			clocks = <&crg_ctrl HI3660_CLK_GATE_UART5>,
542a4e36ae0SZhangfei Gao				 <&crg_ctrl HI3660_CLK_GATE_UART5>;
54335ca8168SChen Feng			clock-names = "uartclk", "apb_pclk";
544254b07b2SChen Feng			pinctrl-names = "default";
545254b07b2SChen Feng			pinctrl-0 = <&uart5_pmx_func &uart5_cfg_func>;
546254b07b2SChen Feng			status = "disabled";
547254b07b2SChen Feng		};
548254b07b2SChen Feng
549254b07b2SChen Feng		uart6: serial@fff32000 {
550254b07b2SChen Feng			compatible = "arm,pl011", "arm,primecell";
551254b07b2SChen Feng			reg = <0x0 0xfff32000 0x0 0x1000>;
552254b07b2SChen Feng			interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
553254b07b2SChen Feng			clocks = <&crg_ctrl HI3660_CLK_UART6>,
554254b07b2SChen Feng				 <&crg_ctrl HI3660_PCLK>;
555254b07b2SChen Feng			clock-names = "uartclk", "apb_pclk";
556254b07b2SChen Feng			pinctrl-names = "default";
557254b07b2SChen Feng			pinctrl-0 = <&uart6_pmx_func &uart6_cfg_func>;
55835ca8168SChen Feng			status = "disabled";
55935ca8168SChen Feng		};
560d94eab86SWang Xiaoyin
5610b507e91SWang Ruyi		dma0: dma@fdf30000 {
5620b507e91SWang Ruyi			compatible = "hisilicon,k3-dma-1.0";
5630b507e91SWang Ruyi			reg = <0x0 0xfdf30000 0x0 0x1000>;
5640b507e91SWang Ruyi			#dma-cells = <1>;
5650b507e91SWang Ruyi			dma-channels = <16>;
5660b507e91SWang Ruyi			dma-requests = <32>;
5676d09e003SJohn Stultz			dma-channel-mask = <0xfffe>;
5680b507e91SWang Ruyi			interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
5690b507e91SWang Ruyi			clocks = <&crg_ctrl HI3660_CLK_GATE_DMAC>;
5700b507e91SWang Ruyi			dma-no-cci;
5710b507e91SWang Ruyi			dma-type = "hi3660_dma";
5720b507e91SWang Ruyi		};
5730b507e91SWang Ruyi
574c9726326SYoulin Wang		asp_dmac: dma-controller@e804b000 {
575c9726326SYoulin Wang			compatible = "hisilicon,hisi-pcm-asp-dma-1.0";
576c9726326SYoulin Wang			reg = <0x0 0xe804b000 0x0 0x1000>;
577c9726326SYoulin Wang			#dma-cells = <1>;
578c9726326SYoulin Wang			dma-channels = <16>;
579c9726326SYoulin Wang			dma-requests = <32>;
580c9726326SYoulin Wang			interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
581c9726326SYoulin Wang			interrupt-names = "asp_dma_irq";
582c9726326SYoulin Wang		};
583c9726326SYoulin Wang
5840a0698f6SChen Feng		rtc0: rtc@fff04000 {
5850a0698f6SChen Feng			compatible = "arm,pl031", "arm,primecell";
5860a0698f6SChen Feng			reg = <0x0 0Xfff04000 0x0 0x1000>;
5870a0698f6SChen Feng			interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
5880a0698f6SChen Feng			clocks = <&crg_ctrl HI3660_PCLK>;
5890a0698f6SChen Feng			clock-names = "apb_pclk";
5900a0698f6SChen Feng		};
5910a0698f6SChen Feng
592d94eab86SWang Xiaoyin		gpio0: gpio@e8a0b000 {
593d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
594d94eab86SWang Xiaoyin			reg = <0 0xe8a0b000 0 0x1000>;
595d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
596d94eab86SWang Xiaoyin			gpio-controller;
597d94eab86SWang Xiaoyin			#gpio-cells = <2>;
598d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 1 0 7>;
599d94eab86SWang Xiaoyin			interrupt-controller;
600d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
601d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO0>;
602d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
603d94eab86SWang Xiaoyin		};
604d94eab86SWang Xiaoyin
605d94eab86SWang Xiaoyin		gpio1: gpio@e8a0c000 {
606d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
607d94eab86SWang Xiaoyin			reg = <0 0xe8a0c000 0 0x1000>;
608d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
609d94eab86SWang Xiaoyin			gpio-controller;
610d94eab86SWang Xiaoyin			#gpio-cells = <2>;
611d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 1 7 7>;
612d94eab86SWang Xiaoyin			interrupt-controller;
613d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
614d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO1>;
615d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
616d94eab86SWang Xiaoyin		};
617d94eab86SWang Xiaoyin
618d94eab86SWang Xiaoyin		gpio2: gpio@e8a0d000 {
619d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
620d94eab86SWang Xiaoyin			reg = <0 0xe8a0d000 0 0x1000>;
621d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
622d94eab86SWang Xiaoyin			gpio-controller;
623d94eab86SWang Xiaoyin			#gpio-cells = <2>;
624d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 14 8>;
625d94eab86SWang Xiaoyin			interrupt-controller;
626d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
627d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO2>;
628d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
629d94eab86SWang Xiaoyin		};
630d94eab86SWang Xiaoyin
631d94eab86SWang Xiaoyin		gpio3: gpio@e8a0e000 {
632d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
633d94eab86SWang Xiaoyin			reg = <0 0xe8a0e000 0 0x1000>;
634d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
635d94eab86SWang Xiaoyin			gpio-controller;
636d94eab86SWang Xiaoyin			#gpio-cells = <2>;
637d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 22 8>;
638d94eab86SWang Xiaoyin			interrupt-controller;
639d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
640d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO3>;
641d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
642d94eab86SWang Xiaoyin		};
643d94eab86SWang Xiaoyin
644d94eab86SWang Xiaoyin		gpio4: gpio@e8a0f000 {
645d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
646d94eab86SWang Xiaoyin			reg = <0 0xe8a0f000 0 0x1000>;
647d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
648d94eab86SWang Xiaoyin			gpio-controller;
649d94eab86SWang Xiaoyin			#gpio-cells = <2>;
650d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 30 8>;
651d94eab86SWang Xiaoyin			interrupt-controller;
652d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
653d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO4>;
654d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
655d94eab86SWang Xiaoyin		};
656d94eab86SWang Xiaoyin
657d94eab86SWang Xiaoyin		gpio5: gpio@e8a10000 {
658d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
659d94eab86SWang Xiaoyin			reg = <0 0xe8a10000 0 0x1000>;
660d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
661d94eab86SWang Xiaoyin			gpio-controller;
662d94eab86SWang Xiaoyin			#gpio-cells = <2>;
663d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 38 8>;
664d94eab86SWang Xiaoyin			interrupt-controller;
665d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
666d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO5>;
667d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
668d94eab86SWang Xiaoyin		};
669d94eab86SWang Xiaoyin
670d94eab86SWang Xiaoyin		gpio6: gpio@e8a11000 {
671d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
672d94eab86SWang Xiaoyin			reg = <0 0xe8a11000 0 0x1000>;
673d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
674d94eab86SWang Xiaoyin			gpio-controller;
675d94eab86SWang Xiaoyin			#gpio-cells = <2>;
676d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 46 8>;
677d94eab86SWang Xiaoyin			interrupt-controller;
678d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
679d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO6>;
680d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
681d94eab86SWang Xiaoyin		};
682d94eab86SWang Xiaoyin
683d94eab86SWang Xiaoyin		gpio7: gpio@e8a12000 {
684d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
685d94eab86SWang Xiaoyin			reg = <0 0xe8a12000 0 0x1000>;
686d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
687d94eab86SWang Xiaoyin			gpio-controller;
688d94eab86SWang Xiaoyin			#gpio-cells = <2>;
689d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 54 8>;
690d94eab86SWang Xiaoyin			interrupt-controller;
691d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
692d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO7>;
693d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
694d94eab86SWang Xiaoyin		};
695d94eab86SWang Xiaoyin
696d94eab86SWang Xiaoyin		gpio8: gpio@e8a13000 {
697d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
698d94eab86SWang Xiaoyin			reg = <0 0xe8a13000 0 0x1000>;
699d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
700d94eab86SWang Xiaoyin			gpio-controller;
701d94eab86SWang Xiaoyin			#gpio-cells = <2>;
702d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 62 8>;
703d94eab86SWang Xiaoyin			interrupt-controller;
704d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
705d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO8>;
706d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
707d94eab86SWang Xiaoyin		};
708d94eab86SWang Xiaoyin
709d94eab86SWang Xiaoyin		gpio9: gpio@e8a14000 {
710d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
711d94eab86SWang Xiaoyin			reg = <0 0xe8a14000 0 0x1000>;
712d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
713d94eab86SWang Xiaoyin			gpio-controller;
714d94eab86SWang Xiaoyin			#gpio-cells = <2>;
715d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 70 8>;
716d94eab86SWang Xiaoyin			interrupt-controller;
717d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
718d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO9>;
719d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
720d94eab86SWang Xiaoyin		};
721d94eab86SWang Xiaoyin
722d94eab86SWang Xiaoyin		gpio10: gpio@e8a15000 {
723d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
724d94eab86SWang Xiaoyin			reg = <0 0xe8a15000 0 0x1000>;
725d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
726d94eab86SWang Xiaoyin			gpio-controller;
727d94eab86SWang Xiaoyin			#gpio-cells = <2>;
728d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 78 8>;
729d94eab86SWang Xiaoyin			interrupt-controller;
730d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
731d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO10>;
732d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
733d94eab86SWang Xiaoyin		};
734d94eab86SWang Xiaoyin
735d94eab86SWang Xiaoyin		gpio11: gpio@e8a16000 {
736d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
737d94eab86SWang Xiaoyin			reg = <0 0xe8a16000 0 0x1000>;
738d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
739d94eab86SWang Xiaoyin			gpio-controller;
740d94eab86SWang Xiaoyin			#gpio-cells = <2>;
741d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 86 8>;
742d94eab86SWang Xiaoyin			interrupt-controller;
743d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
744d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO11>;
745d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
746d94eab86SWang Xiaoyin		};
747d94eab86SWang Xiaoyin
748d94eab86SWang Xiaoyin		gpio12: gpio@e8a17000 {
749d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
750d94eab86SWang Xiaoyin			reg = <0 0xe8a17000 0 0x1000>;
751d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
752d94eab86SWang Xiaoyin			gpio-controller;
753d94eab86SWang Xiaoyin			#gpio-cells = <2>;
754d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 94 3 &pmx0 7 101 1>;
755d94eab86SWang Xiaoyin			interrupt-controller;
756d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
757d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO12>;
758d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
759d94eab86SWang Xiaoyin		};
760d94eab86SWang Xiaoyin
761d94eab86SWang Xiaoyin		gpio13: gpio@e8a18000 {
762d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
763d94eab86SWang Xiaoyin			reg = <0 0xe8a18000 0 0x1000>;
764d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
765d94eab86SWang Xiaoyin			gpio-controller;
766d94eab86SWang Xiaoyin			#gpio-cells = <2>;
767d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 102 8>;
768d94eab86SWang Xiaoyin			interrupt-controller;
769d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
770d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO13>;
771d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
772d94eab86SWang Xiaoyin		};
773d94eab86SWang Xiaoyin
774d94eab86SWang Xiaoyin		gpio14: gpio@e8a19000 {
775d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
776d94eab86SWang Xiaoyin			reg = <0 0xe8a19000 0 0x1000>;
777d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
778d94eab86SWang Xiaoyin			gpio-controller;
779d94eab86SWang Xiaoyin			#gpio-cells = <2>;
780d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 110 8>;
781d94eab86SWang Xiaoyin			interrupt-controller;
782d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
783d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO14>;
784d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
785d94eab86SWang Xiaoyin		};
786d94eab86SWang Xiaoyin
787d94eab86SWang Xiaoyin		gpio15: gpio@e8a1a000 {
788d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
789d94eab86SWang Xiaoyin			reg = <0 0xe8a1a000 0 0x1000>;
790d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
791d94eab86SWang Xiaoyin			gpio-controller;
792d94eab86SWang Xiaoyin			#gpio-cells = <2>;
793d94eab86SWang Xiaoyin			gpio-ranges = <&pmx0 0 118 6>;
794d94eab86SWang Xiaoyin			interrupt-controller;
795d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
796d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO15>;
797d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
798d94eab86SWang Xiaoyin		};
799d94eab86SWang Xiaoyin
800d94eab86SWang Xiaoyin		gpio16: gpio@e8a1b000 {
801d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
802d94eab86SWang Xiaoyin			reg = <0 0xe8a1b000 0 0x1000>;
803d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
804d94eab86SWang Xiaoyin			gpio-controller;
805d94eab86SWang Xiaoyin			#gpio-cells = <2>;
806d94eab86SWang Xiaoyin			interrupt-controller;
807d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
808d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO16>;
809d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
810d94eab86SWang Xiaoyin		};
811d94eab86SWang Xiaoyin
812d94eab86SWang Xiaoyin		gpio17: gpio@e8a1c000 {
813d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
814d94eab86SWang Xiaoyin			reg = <0 0xe8a1c000 0 0x1000>;
815d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
816d94eab86SWang Xiaoyin			gpio-controller;
817d94eab86SWang Xiaoyin			#gpio-cells = <2>;
818d94eab86SWang Xiaoyin			interrupt-controller;
819d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
820d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO17>;
821d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
822d94eab86SWang Xiaoyin		};
823d94eab86SWang Xiaoyin
824d94eab86SWang Xiaoyin		gpio18: gpio@ff3b4000 {
825d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
826d94eab86SWang Xiaoyin			reg = <0 0xff3b4000 0 0x1000>;
827d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
828d94eab86SWang Xiaoyin			gpio-controller;
829d94eab86SWang Xiaoyin			#gpio-cells = <2>;
830d94eab86SWang Xiaoyin			gpio-ranges = <&pmx2 0 0 8>;
831d94eab86SWang Xiaoyin			interrupt-controller;
832d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
833d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO18>;
834d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
835d94eab86SWang Xiaoyin		};
836d94eab86SWang Xiaoyin
837d94eab86SWang Xiaoyin		gpio19: gpio@ff3b5000 {
838d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
839d94eab86SWang Xiaoyin			reg = <0 0xff3b5000 0 0x1000>;
840d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
841d94eab86SWang Xiaoyin			gpio-controller;
842d94eab86SWang Xiaoyin			#gpio-cells = <2>;
843d94eab86SWang Xiaoyin			gpio-ranges = <&pmx2 0 8 4>;
844d94eab86SWang Xiaoyin			interrupt-controller;
845d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
846d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO19>;
847d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
848d94eab86SWang Xiaoyin		};
849d94eab86SWang Xiaoyin
850d94eab86SWang Xiaoyin		gpio20: gpio@e8a1f000 {
851d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
852d94eab86SWang Xiaoyin			reg = <0 0xe8a1f000 0 0x1000>;
853d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
854d94eab86SWang Xiaoyin			gpio-controller;
855d94eab86SWang Xiaoyin			#gpio-cells = <2>;
856d94eab86SWang Xiaoyin			gpio-ranges = <&pmx1 0 0 6>;
857d94eab86SWang Xiaoyin			interrupt-controller;
858d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
859d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO20>;
860d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
861d94eab86SWang Xiaoyin		};
862d94eab86SWang Xiaoyin
863d94eab86SWang Xiaoyin		gpio21: gpio@e8a20000 {
864d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
865d94eab86SWang Xiaoyin			reg = <0 0xe8a20000 0 0x1000>;
866d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
867d94eab86SWang Xiaoyin			gpio-controller;
868d94eab86SWang Xiaoyin			#gpio-cells = <2>;
869d94eab86SWang Xiaoyin			interrupt-controller;
870d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
871d94eab86SWang Xiaoyin			gpio-ranges = <&pmx3 0 0 6>;
872d94eab86SWang Xiaoyin			clocks = <&crg_ctrl HI3660_PCLK_GPIO21>;
873d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
874d94eab86SWang Xiaoyin		};
875d94eab86SWang Xiaoyin
876d94eab86SWang Xiaoyin		gpio22: gpio@fff0b000 {
877d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
878d94eab86SWang Xiaoyin			reg = <0 0xfff0b000 0 0x1000>;
879d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
880d94eab86SWang Xiaoyin			gpio-controller;
881d94eab86SWang Xiaoyin			#gpio-cells = <2>;
882d94eab86SWang Xiaoyin			/* GPIO176 */
883d94eab86SWang Xiaoyin			gpio-ranges = <&pmx4 2 0 6>;
884d94eab86SWang Xiaoyin			interrupt-controller;
885d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
886d94eab86SWang Xiaoyin			clocks = <&sctrl HI3660_PCLK_AO_GPIO0>;
887d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
888d94eab86SWang Xiaoyin		};
889d94eab86SWang Xiaoyin
890d94eab86SWang Xiaoyin		gpio23: gpio@fff0c000 {
891d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
892d94eab86SWang Xiaoyin			reg = <0 0xfff0c000 0 0x1000>;
893d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
894d94eab86SWang Xiaoyin			gpio-controller;
895d94eab86SWang Xiaoyin			#gpio-cells = <2>;
896d94eab86SWang Xiaoyin			/* GPIO184 */
897d94eab86SWang Xiaoyin			gpio-ranges = <&pmx4 0 6 7>;
898d94eab86SWang Xiaoyin			interrupt-controller;
899d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
900d94eab86SWang Xiaoyin			clocks = <&sctrl HI3660_PCLK_AO_GPIO1>;
901d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
902d94eab86SWang Xiaoyin		};
903d94eab86SWang Xiaoyin
904d94eab86SWang Xiaoyin		gpio24: gpio@fff0d000 {
905d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
906d94eab86SWang Xiaoyin			reg = <0 0xfff0d000 0 0x1000>;
907d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
908d94eab86SWang Xiaoyin			gpio-controller;
909d94eab86SWang Xiaoyin			#gpio-cells = <2>;
910d94eab86SWang Xiaoyin			/* GPIO192 */
911d94eab86SWang Xiaoyin			gpio-ranges = <&pmx4 0 13 8>;
912d94eab86SWang Xiaoyin			interrupt-controller;
913d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
914d94eab86SWang Xiaoyin			clocks = <&sctrl HI3660_PCLK_AO_GPIO2>;
915d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
916d94eab86SWang Xiaoyin		};
917d94eab86SWang Xiaoyin
918d94eab86SWang Xiaoyin		gpio25: gpio@fff0e000 {
919d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
920d94eab86SWang Xiaoyin			reg = <0 0xfff0e000 0 0x1000>;
921d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
922d94eab86SWang Xiaoyin			gpio-controller;
923d94eab86SWang Xiaoyin			#gpio-cells = <2>;
924d94eab86SWang Xiaoyin			/* GPIO200 */
925d94eab86SWang Xiaoyin			gpio-ranges = <&pmx4 0 21 4 &pmx4 5 25 3>;
926d94eab86SWang Xiaoyin			interrupt-controller;
927d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
928d94eab86SWang Xiaoyin			clocks = <&sctrl HI3660_PCLK_AO_GPIO3>;
929d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
930d94eab86SWang Xiaoyin		};
931d94eab86SWang Xiaoyin
932d94eab86SWang Xiaoyin		gpio26: gpio@fff0f000 {
933d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
934d94eab86SWang Xiaoyin			reg = <0 0xfff0f000 0 0x1000>;
935d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
936d94eab86SWang Xiaoyin			gpio-controller;
937d94eab86SWang Xiaoyin			#gpio-cells = <2>;
938d94eab86SWang Xiaoyin			/* GPIO208 */
939d94eab86SWang Xiaoyin			gpio-ranges = <&pmx4 0 28 8>;
940d94eab86SWang Xiaoyin			interrupt-controller;
941d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
942d94eab86SWang Xiaoyin			clocks = <&sctrl HI3660_PCLK_AO_GPIO4>;
943d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
944d94eab86SWang Xiaoyin		};
945d94eab86SWang Xiaoyin
946d94eab86SWang Xiaoyin		gpio27: gpio@fff10000 {
947d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
948d94eab86SWang Xiaoyin			reg = <0 0xfff10000 0 0x1000>;
949d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
950d94eab86SWang Xiaoyin			gpio-controller;
951d94eab86SWang Xiaoyin			#gpio-cells = <2>;
952d94eab86SWang Xiaoyin			/* GPIO216 */
953d94eab86SWang Xiaoyin			gpio-ranges = <&pmx4 0 36 6>;
954d94eab86SWang Xiaoyin			interrupt-controller;
955d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
956d94eab86SWang Xiaoyin			clocks = <&sctrl HI3660_PCLK_AO_GPIO5>;
957d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
958d94eab86SWang Xiaoyin		};
959d94eab86SWang Xiaoyin
960d94eab86SWang Xiaoyin		gpio28: gpio@fff1d000 {
961d94eab86SWang Xiaoyin			compatible = "arm,pl061", "arm,primecell";
962d94eab86SWang Xiaoyin			reg = <0 0xfff1d000 0 0x1000>;
963d94eab86SWang Xiaoyin			interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
964d94eab86SWang Xiaoyin			gpio-controller;
965d94eab86SWang Xiaoyin			#gpio-cells = <2>;
966d94eab86SWang Xiaoyin			interrupt-controller;
967d94eab86SWang Xiaoyin			#interrupt-cells = <2>;
968d94eab86SWang Xiaoyin			clocks = <&sctrl HI3660_PCLK_AO_GPIO6>;
969d94eab86SWang Xiaoyin			clock-names = "apb_pclk";
970d94eab86SWang Xiaoyin		};
97138810497SWang Xiaoyin
97238810497SWang Xiaoyin		spi2: spi@ffd68000 {
97338810497SWang Xiaoyin			compatible = "arm,pl022", "arm,primecell";
97438810497SWang Xiaoyin			reg = <0x0 0xffd68000 0x0 0x1000>;
97538810497SWang Xiaoyin			#address-cells = <1>;
97638810497SWang Xiaoyin			#size-cells = <0>;
97738810497SWang Xiaoyin			interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
978c85731abSZhen Lei			clocks = <&crg_ctrl HI3660_CLK_GATE_SPI2>, <&crg_ctrl HI3660_CLK_GATE_SPI2>;
979c85731abSZhen Lei			clock-names = "sspclk", "apb_pclk";
98038810497SWang Xiaoyin			pinctrl-names = "default";
981a8dad3e1SLoic Poulain			pinctrl-0 = <&spi2_pmx_func &spi2_cfg_func>;
98238810497SWang Xiaoyin			num-cs = <1>;
98338810497SWang Xiaoyin			cs-gpios = <&gpio27 2 0>;
98438810497SWang Xiaoyin			status = "disabled";
98538810497SWang Xiaoyin		};
98638810497SWang Xiaoyin
98738810497SWang Xiaoyin		spi3: spi@ff3b3000 {
98838810497SWang Xiaoyin			compatible = "arm,pl022", "arm,primecell";
98938810497SWang Xiaoyin			reg = <0x0 0xff3b3000 0x0 0x1000>;
99038810497SWang Xiaoyin			#address-cells = <1>;
99138810497SWang Xiaoyin			#size-cells = <0>;
99238810497SWang Xiaoyin			interrupts = <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>;
993c85731abSZhen Lei			clocks = <&crg_ctrl HI3660_CLK_GATE_SPI3>, <&crg_ctrl HI3660_CLK_GATE_SPI3>;
994c85731abSZhen Lei			clock-names = "sspclk", "apb_pclk";
99538810497SWang Xiaoyin			pinctrl-names = "default";
996a8dad3e1SLoic Poulain			pinctrl-0 = <&spi3_pmx_func &spi3_cfg_func>;
99738810497SWang Xiaoyin			num-cs = <1>;
99838810497SWang Xiaoyin			cs-gpios = <&gpio18 5 0>;
99938810497SWang Xiaoyin			status = "disabled";
100038810497SWang Xiaoyin		};
100196909778SXiaowei Song
100296909778SXiaowei Song		pcie@f4000000 {
100396909778SXiaowei Song			compatible = "hisilicon,kirin960-pcie";
100496909778SXiaowei Song			reg = <0x0 0xf4000000 0x0 0x1000>,
100596909778SXiaowei Song			      <0x0 0xff3fe000 0x0 0x1000>,
100696909778SXiaowei Song			      <0x0 0xf3f20000 0x0 0x40000>,
100796909778SXiaowei Song			      <0x0 0xf5000000 0x0 0x2000>;
100896909778SXiaowei Song			reg-names = "dbi", "apb", "phy", "config";
10092dc30eb9SMauro Carvalho Chehab			bus-range = <0x0 0xff>;
101096909778SXiaowei Song			#address-cells = <3>;
101196909778SXiaowei Song			#size-cells = <2>;
101296909778SXiaowei Song			device_type = "pci";
101396909778SXiaowei Song			ranges = <0x02000000 0x0 0x00000000
101496909778SXiaowei Song				  0x0 0xf6000000
101596909778SXiaowei Song				  0x0 0x02000000>;
101696909778SXiaowei Song			num-lanes = <1>;
101796909778SXiaowei Song			#interrupt-cells = <1>;
10182bff3594SYao Chen			interrupts = <0 283 4>;
10192bff3594SYao Chen			interrupt-names = "msi";
102096909778SXiaowei Song			interrupt-map-mask = <0xf800 0 0 7>;
102196909778SXiaowei Song			interrupt-map = <0x0 0 0 1
102296909778SXiaowei Song					 &gic GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>,
102396909778SXiaowei Song					<0x0 0 0 2
102496909778SXiaowei Song					 &gic GIC_SPI 283 IRQ_TYPE_LEVEL_HIGH>,
102596909778SXiaowei Song					<0x0 0 0 3
102696909778SXiaowei Song					 &gic GIC_SPI 284 IRQ_TYPE_LEVEL_HIGH>,
102796909778SXiaowei Song					<0x0 0 0 4
102896909778SXiaowei Song					 &gic GIC_SPI 285 IRQ_TYPE_LEVEL_HIGH>;
102996909778SXiaowei Song			clocks = <&crg_ctrl HI3660_PCIEPHY_REF>,
103096909778SXiaowei Song				 <&crg_ctrl HI3660_CLK_GATE_PCIEAUX>,
103196909778SXiaowei Song				 <&crg_ctrl HI3660_PCLK_GATE_PCIE_PHY>,
103296909778SXiaowei Song				 <&crg_ctrl HI3660_PCLK_GATE_PCIE_SYS>,
103396909778SXiaowei Song				 <&crg_ctrl HI3660_ACLK_GATE_PCIE>;
103496909778SXiaowei Song			clock-names = "pcie_phy_ref", "pcie_aux",
103596909778SXiaowei Song				      "pcie_apb_phy", "pcie_apb_sys",
103696909778SXiaowei Song				      "pcie_aclk";
103796909778SXiaowei Song			reset-gpios = <&gpio11 1 0 >;
103896909778SXiaowei Song		};
1039804d7d7aSLi Wei
1040360249d2Sliwei		/* UFS */
1041360249d2Sliwei		ufs: ufs@ff3b0000 {
1042360249d2Sliwei			compatible = "hisilicon,hi3660-ufs", "jedec,ufs-1.1";
1043360249d2Sliwei			/* 0: HCI standard */
1044360249d2Sliwei			/* 1: UFS SYS CTRL */
1045360249d2Sliwei			reg = <0x0 0xff3b0000 0x0 0x1000>,
1046360249d2Sliwei				<0x0 0xff3b1000 0x0 0x1000>;
1047360249d2Sliwei			interrupt-parent = <&gic>;
1048360249d2Sliwei			interrupts = <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>;
1049360249d2Sliwei			clocks = <&crg_ctrl HI3660_CLK_GATE_UFSIO_REF>,
1050360249d2Sliwei				<&crg_ctrl HI3660_CLK_GATE_UFSPHY_CFG>;
1051360249d2Sliwei			clock-names = "ref_clk", "phy_clk";
105265b96377SKrzysztof Kozlowski			freq-table-hz = <0 0>,
105365b96377SKrzysztof Kozlowski					<0 0>;
1054360249d2Sliwei			/* offset: 0x84; bit: 12 */
1055360249d2Sliwei			resets = <&crg_rst 0x84 12>;
1056360249d2Sliwei			reset-names = "rst";
1057360249d2Sliwei		};
1058360249d2Sliwei
1059804d7d7aSLi Wei		/* SD */
1060804d7d7aSLi Wei		dwmmc1: dwmmc1@ff37f000 {
1061f0ab786fSoscardagrach			compatible = "hisilicon,hi3660-dw-mshc";
1062f0ab786fSoscardagrach			reg = <0x0 0xff37f000 0x0 0x1000>;
1063804d7d7aSLi Wei			#address-cells = <1>;
1064804d7d7aSLi Wei			#size-cells = <0>;
1065804d7d7aSLi Wei			interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
1066804d7d7aSLi Wei			clocks = <&crg_ctrl HI3660_CLK_GATE_SD>,
1067804d7d7aSLi Wei				<&crg_ctrl HI3660_HCLK_GATE_SD>;
1068804d7d7aSLi Wei			clock-names = "ciu", "biu";
1069804d7d7aSLi Wei			clock-frequency = <3200000>;
1070804d7d7aSLi Wei			resets = <&crg_rst 0x94 18>;
1071996707d7SGuodong Xu			reset-names = "reset";
1072804d7d7aSLi Wei			hisilicon,peripheral-syscon = <&sctrl>;
1073f0ab786fSoscardagrach			card-detect-delay = <200>;
1074804d7d7aSLi Wei			status = "disabled";
1075804d7d7aSLi Wei		};
1076804d7d7aSLi Wei
1077804d7d7aSLi Wei		/* SDIO */
1078804d7d7aSLi Wei		dwmmc2: dwmmc2@ff3ff000 {
1079804d7d7aSLi Wei			compatible = "hisilicon,hi3660-dw-mshc";
1080804d7d7aSLi Wei			reg = <0x0 0xff3ff000 0x0 0x1000>;
1081f0ab786fSoscardagrach			#address-cells = <0x1>;
1082f0ab786fSoscardagrach			#size-cells = <0x0>;
1083804d7d7aSLi Wei			interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
1084804d7d7aSLi Wei			clocks = <&crg_ctrl HI3660_CLK_GATE_SDIO0>,
1085804d7d7aSLi Wei				 <&crg_ctrl HI3660_HCLK_GATE_SDIO0>;
1086804d7d7aSLi Wei			clock-names = "ciu", "biu";
1087804d7d7aSLi Wei			resets = <&crg_rst 0x94 20>;
1088996707d7SGuodong Xu			reset-names = "reset";
1089804d7d7aSLi Wei			card-detect-delay = <200>;
1090804d7d7aSLi Wei			status = "disabled";
1091804d7d7aSLi Wei		};
1092487f00d4SLeo Yan
1093487f00d4SLeo Yan		watchdog0: watchdog@e8a06000 {
1094894d4f1fSMichael Walle			compatible = "arm,sp805", "arm,primecell";
1095487f00d4SLeo Yan			reg = <0x0 0xe8a06000 0x0 0x1000>;
1096487f00d4SLeo Yan			interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
1097a665b2c1SAndre Przywara			clocks = <&crg_ctrl HI3660_OSC32K>,
1098a665b2c1SAndre Przywara				 <&crg_ctrl HI3660_OSC32K>;
1099a665b2c1SAndre Przywara			clock-names = "wdog_clk", "apb_pclk";
1100487f00d4SLeo Yan		};
1101487f00d4SLeo Yan
1102487f00d4SLeo Yan		watchdog1: watchdog@e8a07000 {
1103894d4f1fSMichael Walle			compatible = "arm,sp805", "arm,primecell";
1104487f00d4SLeo Yan			reg = <0x0 0xe8a07000 0x0 0x1000>;
1105487f00d4SLeo Yan			interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
1106a665b2c1SAndre Przywara			clocks = <&crg_ctrl HI3660_OSC32K>,
1107a665b2c1SAndre Przywara				 <&crg_ctrl HI3660_OSC32K>;
1108a665b2c1SAndre Przywara			clock-names = "wdog_clk", "apb_pclk";
1109487f00d4SLeo Yan		};
1110a7ab4cb4SKevin Wangtao
1111a7ab4cb4SKevin Wangtao		tsensor: tsensor@fff30000 {
1112a7ab4cb4SKevin Wangtao			compatible = "hisilicon,hi3660-tsensor";
1113a7ab4cb4SKevin Wangtao			reg = <0x0 0xfff30000 0x0 0x1000>;
1114a7ab4cb4SKevin Wangtao			interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
1115a7ab4cb4SKevin Wangtao			#thermal-sensor-cells = <1>;
1116a7ab4cb4SKevin Wangtao		};
11178d93e94bSTao Wang
11188d93e94bSTao Wang		thermal-zones {
11198d93e94bSTao Wang
1120dbbf5131SZhen Lei			cls0: cls0-thermal {
11218d93e94bSTao Wang				polling-delay = <1000>;
11228d93e94bSTao Wang				polling-delay-passive = <100>;
11238d93e94bSTao Wang				sustainable-power = <4500>;
11248d93e94bSTao Wang
11258d93e94bSTao Wang				/* sensor ID */
11268d93e94bSTao Wang				thermal-sensors = <&tsensor 1>;
11278d93e94bSTao Wang
11288d93e94bSTao Wang				trips {
1129dbbf5131SZhen Lei					threshold: trip-point0 {
11308d93e94bSTao Wang						temperature = <65000>;
11318d93e94bSTao Wang						hysteresis = <1000>;
11328d93e94bSTao Wang						type = "passive";
11338d93e94bSTao Wang					};
11348d93e94bSTao Wang
1135dbbf5131SZhen Lei					target: trip-point1 {
11368d93e94bSTao Wang						temperature = <75000>;
11378d93e94bSTao Wang						hysteresis = <1000>;
11388d93e94bSTao Wang						type = "passive";
11398d93e94bSTao Wang					};
11408d93e94bSTao Wang				};
11418d93e94bSTao Wang
11428d93e94bSTao Wang				cooling-maps {
11438d93e94bSTao Wang					map0 {
11448d93e94bSTao Wang						trip = <&target>;
11458d93e94bSTao Wang						contribution = <1024>;
11466ad5506eSViresh Kumar						cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
11476ad5506eSViresh Kumar								 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
11486ad5506eSViresh Kumar								 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
11496ad5506eSViresh Kumar								 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
11508d93e94bSTao Wang					};
11518d93e94bSTao Wang					map1 {
11528d93e94bSTao Wang						trip = <&target>;
11538d93e94bSTao Wang						contribution = <512>;
11546ad5506eSViresh Kumar						cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
11556ad5506eSViresh Kumar								 <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
11566ad5506eSViresh Kumar								 <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
11576ad5506eSViresh Kumar								 <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
11588d93e94bSTao Wang					};
11598d93e94bSTao Wang				};
11608d93e94bSTao Wang			};
11618d93e94bSTao Wang		};
116247e2843fSJohn Stultz
116347e2843fSJohn Stultz		usb3_otg_bc: usb3_otg_bc@ff200000 {
1164*bc9ec165SKrzysztof Kozlowski			compatible = "hisilicon,hi3660-usb3-otg-bc", "syscon", "simple-mfd";
116547e2843fSJohn Stultz			reg = <0x0 0xff200000 0x0 0x1000>;
116647e2843fSJohn Stultz
116747e2843fSJohn Stultz			usb_phy: usb-phy {
116847e2843fSJohn Stultz				compatible = "hisilicon,hi3660-usb-phy";
116947e2843fSJohn Stultz				#phy-cells = <0>;
117047e2843fSJohn Stultz				hisilicon,pericrg-syscon = <&crg_ctrl>;
117147e2843fSJohn Stultz				hisilicon,pctrl-syscon = <&pctrl>;
117247e2843fSJohn Stultz				hisilicon,eye-diagram-param = <0x22466e4>;
117347e2843fSJohn Stultz			};
117447e2843fSJohn Stultz		};
117547e2843fSJohn Stultz
11764dc5288fSSerge Semin		dwc3: usb@ff100000 {
117747e2843fSJohn Stultz			compatible = "snps,dwc3";
117847e2843fSJohn Stultz			reg = <0x0 0xff100000 0x0 0x100000>;
117947e2843fSJohn Stultz
118047e2843fSJohn Stultz			clocks = <&crg_ctrl HI3660_CLK_ABB_USB>,
118147e2843fSJohn Stultz				 <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>;
118247e2843fSJohn Stultz			clock-names = "ref", "bus_early";
118347e2843fSJohn Stultz
118447e2843fSJohn Stultz			assigned-clocks = <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>;
118547e2843fSJohn Stultz			assigned-clock-rates = <229000000>;
118647e2843fSJohn Stultz
118747e2843fSJohn Stultz			resets = <&crg_rst 0x90 8>,
118847e2843fSJohn Stultz				 <&crg_rst 0x90 7>,
118947e2843fSJohn Stultz				 <&crg_rst 0x90 6>,
119047e2843fSJohn Stultz				 <&crg_rst 0x90 5>;
119147e2843fSJohn Stultz
119247e2843fSJohn Stultz			interrupts = <0 159 4>, <0 161 4>;
119347e2843fSJohn Stultz			phys = <&usb_phy>;
119447e2843fSJohn Stultz			phy-names = "usb3-phy";
119547e2843fSJohn Stultz		};
119635ca8168SChen Feng	};
119735ca8168SChen Feng};
11989500ff14SWanglai Shi
11999500ff14SWanglai Shi#include "hi3660-coresight.dtsi"
1200