xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/hisilicon/hi3670.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun// SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun/*
3*4882a593Smuzhiyun * dts file for Hisilicon Hi3670 SoC
4*4882a593Smuzhiyun *
5*4882a593Smuzhiyun * Copyright (C) 2016, Hisilicon Ltd.
6*4882a593Smuzhiyun * Copyright (C) 2018, Linaro Ltd.
7*4882a593Smuzhiyun */
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun#include <dt-bindings/interrupt-controller/arm-gic.h>
10*4882a593Smuzhiyun#include <dt-bindings/clock/hi3670-clock.h>
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun/ {
13*4882a593Smuzhiyun	compatible = "hisilicon,hi3670";
14*4882a593Smuzhiyun	interrupt-parent = <&gic>;
15*4882a593Smuzhiyun	#address-cells = <2>;
16*4882a593Smuzhiyun	#size-cells = <2>;
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun	psci {
19*4882a593Smuzhiyun		compatible = "arm,psci-0.2";
20*4882a593Smuzhiyun		method = "smc";
21*4882a593Smuzhiyun	};
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun	cpus {
24*4882a593Smuzhiyun		#address-cells = <2>;
25*4882a593Smuzhiyun		#size-cells = <0>;
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun		cpu-map {
28*4882a593Smuzhiyun			cluster0 {
29*4882a593Smuzhiyun				core0 {
30*4882a593Smuzhiyun					cpu = <&cpu0>;
31*4882a593Smuzhiyun				};
32*4882a593Smuzhiyun				core1 {
33*4882a593Smuzhiyun					cpu = <&cpu1>;
34*4882a593Smuzhiyun				};
35*4882a593Smuzhiyun				core2 {
36*4882a593Smuzhiyun					cpu = <&cpu2>;
37*4882a593Smuzhiyun				};
38*4882a593Smuzhiyun				core3 {
39*4882a593Smuzhiyun					cpu = <&cpu3>;
40*4882a593Smuzhiyun				};
41*4882a593Smuzhiyun			};
42*4882a593Smuzhiyun			cluster1 {
43*4882a593Smuzhiyun				core0 {
44*4882a593Smuzhiyun					cpu = <&cpu4>;
45*4882a593Smuzhiyun				};
46*4882a593Smuzhiyun				core1 {
47*4882a593Smuzhiyun					cpu = <&cpu5>;
48*4882a593Smuzhiyun				};
49*4882a593Smuzhiyun				core2 {
50*4882a593Smuzhiyun					cpu = <&cpu6>;
51*4882a593Smuzhiyun				};
52*4882a593Smuzhiyun				core3 {
53*4882a593Smuzhiyun					cpu = <&cpu7>;
54*4882a593Smuzhiyun				};
55*4882a593Smuzhiyun			};
56*4882a593Smuzhiyun		};
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun		cpu0: cpu@0 {
59*4882a593Smuzhiyun			compatible = "arm,cortex-a53";
60*4882a593Smuzhiyun			device_type = "cpu";
61*4882a593Smuzhiyun			reg = <0x0 0x0>;
62*4882a593Smuzhiyun			enable-method = "psci";
63*4882a593Smuzhiyun		};
64*4882a593Smuzhiyun
65*4882a593Smuzhiyun		cpu1: cpu@1 {
66*4882a593Smuzhiyun			compatible = "arm,cortex-a53";
67*4882a593Smuzhiyun			device_type = "cpu";
68*4882a593Smuzhiyun			reg = <0x0 0x1>;
69*4882a593Smuzhiyun			enable-method = "psci";
70*4882a593Smuzhiyun		};
71*4882a593Smuzhiyun
72*4882a593Smuzhiyun		cpu2: cpu@2 {
73*4882a593Smuzhiyun			compatible = "arm,cortex-a53";
74*4882a593Smuzhiyun			device_type = "cpu";
75*4882a593Smuzhiyun			reg = <0x0 0x2>;
76*4882a593Smuzhiyun			enable-method = "psci";
77*4882a593Smuzhiyun		};
78*4882a593Smuzhiyun
79*4882a593Smuzhiyun		cpu3: cpu@3 {
80*4882a593Smuzhiyun			compatible = "arm,cortex-a53";
81*4882a593Smuzhiyun			device_type = "cpu";
82*4882a593Smuzhiyun			reg = <0x0 0x3>;
83*4882a593Smuzhiyun			enable-method = "psci";
84*4882a593Smuzhiyun		};
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun		cpu4: cpu@100 {
87*4882a593Smuzhiyun			compatible = "arm,cortex-a73";
88*4882a593Smuzhiyun			device_type = "cpu";
89*4882a593Smuzhiyun			reg = <0x0 0x100>;
90*4882a593Smuzhiyun			enable-method = "psci";
91*4882a593Smuzhiyun		};
92*4882a593Smuzhiyun
93*4882a593Smuzhiyun		cpu5: cpu@101 {
94*4882a593Smuzhiyun			compatible = "arm,cortex-a73";
95*4882a593Smuzhiyun			device_type = "cpu";
96*4882a593Smuzhiyun			reg = <0x0 0x101>;
97*4882a593Smuzhiyun			enable-method = "psci";
98*4882a593Smuzhiyun		};
99*4882a593Smuzhiyun
100*4882a593Smuzhiyun		cpu6: cpu@102 {
101*4882a593Smuzhiyun			compatible = "arm,cortex-a73";
102*4882a593Smuzhiyun			device_type = "cpu";
103*4882a593Smuzhiyun			reg = <0x0 0x102>;
104*4882a593Smuzhiyun			enable-method = "psci";
105*4882a593Smuzhiyun		};
106*4882a593Smuzhiyun
107*4882a593Smuzhiyun		cpu7: cpu@103 {
108*4882a593Smuzhiyun			compatible = "arm,cortex-a73";
109*4882a593Smuzhiyun			device_type = "cpu";
110*4882a593Smuzhiyun			reg = <0x0 0x103>;
111*4882a593Smuzhiyun			enable-method = "psci";
112*4882a593Smuzhiyun		};
113*4882a593Smuzhiyun	};
114*4882a593Smuzhiyun
115*4882a593Smuzhiyun	gic: interrupt-controller@e82b0000 {
116*4882a593Smuzhiyun		compatible = "arm,gic-400";
117*4882a593Smuzhiyun		reg = <0x0 0xe82b1000 0 0x1000>, /* GICD */
118*4882a593Smuzhiyun		      <0x0 0xe82b2000 0 0x2000>, /* GICC */
119*4882a593Smuzhiyun		      <0x0 0xe82b4000 0 0x2000>, /* GICH */
120*4882a593Smuzhiyun		      <0x0 0xe82b6000 0 0x2000>; /* GICV */
121*4882a593Smuzhiyun		#interrupt-cells = <3>;
122*4882a593Smuzhiyun		#address-cells = <0>;
123*4882a593Smuzhiyun		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) |
124*4882a593Smuzhiyun					 IRQ_TYPE_LEVEL_HIGH)>;
125*4882a593Smuzhiyun		interrupt-controller;
126*4882a593Smuzhiyun	};
127*4882a593Smuzhiyun
128*4882a593Smuzhiyun	timer {
129*4882a593Smuzhiyun		compatible = "arm,armv8-timer";
130*4882a593Smuzhiyun		interrupt-parent = <&gic>;
131*4882a593Smuzhiyun		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) |
132*4882a593Smuzhiyun					  IRQ_TYPE_LEVEL_LOW)>,
133*4882a593Smuzhiyun			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) |
134*4882a593Smuzhiyun					  IRQ_TYPE_LEVEL_LOW)>,
135*4882a593Smuzhiyun			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) |
136*4882a593Smuzhiyun					  IRQ_TYPE_LEVEL_LOW)>,
137*4882a593Smuzhiyun			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) |
138*4882a593Smuzhiyun					  IRQ_TYPE_LEVEL_LOW)>;
139*4882a593Smuzhiyun		clock-frequency = <1920000>;
140*4882a593Smuzhiyun	};
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun	soc {
143*4882a593Smuzhiyun		compatible = "simple-bus";
144*4882a593Smuzhiyun		#address-cells = <2>;
145*4882a593Smuzhiyun		#size-cells = <2>;
146*4882a593Smuzhiyun		ranges;
147*4882a593Smuzhiyun
148*4882a593Smuzhiyun		crg_ctrl: crg_ctrl@fff35000 {
149*4882a593Smuzhiyun			compatible = "hisilicon,hi3670-crgctrl", "syscon";
150*4882a593Smuzhiyun			reg = <0x0 0xfff35000 0x0 0x1000>;
151*4882a593Smuzhiyun			#clock-cells = <1>;
152*4882a593Smuzhiyun		};
153*4882a593Smuzhiyun
154*4882a593Smuzhiyun		crg_rst: crg_rst_controller {
155*4882a593Smuzhiyun			compatible = "hisilicon,hi3670-reset",
156*4882a593Smuzhiyun				     "hisilicon,hi3660-reset";
157*4882a593Smuzhiyun			#reset-cells = <2>;
158*4882a593Smuzhiyun			hisi,rst-syscon = <&crg_ctrl>;
159*4882a593Smuzhiyun		};
160*4882a593Smuzhiyun
161*4882a593Smuzhiyun		pctrl: pctrl@e8a09000 {
162*4882a593Smuzhiyun			compatible = "hisilicon,hi3670-pctrl", "syscon";
163*4882a593Smuzhiyun			reg = <0x0 0xe8a09000 0x0 0x1000>;
164*4882a593Smuzhiyun			#clock-cells = <1>;
165*4882a593Smuzhiyun		};
166*4882a593Smuzhiyun
167*4882a593Smuzhiyun		pmuctrl: crg_ctrl@fff34000 {
168*4882a593Smuzhiyun			compatible = "hisilicon,hi3670-pmuctrl", "syscon";
169*4882a593Smuzhiyun			reg = <0x0 0xfff34000 0x0 0x1000>;
170*4882a593Smuzhiyun			#clock-cells = <1>;
171*4882a593Smuzhiyun		};
172*4882a593Smuzhiyun
173*4882a593Smuzhiyun		sctrl: sctrl@fff0a000 {
174*4882a593Smuzhiyun			compatible = "hisilicon,hi3670-sctrl", "syscon";
175*4882a593Smuzhiyun			reg = <0x0 0xfff0a000 0x0 0x1000>;
176*4882a593Smuzhiyun			#clock-cells = <1>;
177*4882a593Smuzhiyun		};
178*4882a593Smuzhiyun
179*4882a593Smuzhiyun		iomcu: iomcu@ffd7e000 {
180*4882a593Smuzhiyun			compatible = "hisilicon,hi3670-iomcu", "syscon";
181*4882a593Smuzhiyun			reg = <0x0 0xffd7e000 0x0 0x1000>;
182*4882a593Smuzhiyun			#clock-cells = <1>;
183*4882a593Smuzhiyun		};
184*4882a593Smuzhiyun
185*4882a593Smuzhiyun		media1_crg: media1_crgctrl@e87ff000 {
186*4882a593Smuzhiyun			compatible = "hisilicon,hi3670-media1-crg", "syscon";
187*4882a593Smuzhiyun			reg = <0x0 0xe87ff000 0x0 0x1000>;
188*4882a593Smuzhiyun			#clock-cells = <1>;
189*4882a593Smuzhiyun		};
190*4882a593Smuzhiyun
191*4882a593Smuzhiyun		media2_crg: media2_crgctrl@e8900000 {
192*4882a593Smuzhiyun			compatible = "hisilicon,hi3670-media2-crg","syscon";
193*4882a593Smuzhiyun			reg = <0x0 0xe8900000 0x0 0x1000>;
194*4882a593Smuzhiyun			#clock-cells = <1>;
195*4882a593Smuzhiyun		};
196*4882a593Smuzhiyun
197*4882a593Smuzhiyun		uart0: serial@fdf02000 {
198*4882a593Smuzhiyun			compatible = "arm,pl011", "arm,primecell";
199*4882a593Smuzhiyun			reg = <0x0 0xfdf02000 0x0 0x1000>;
200*4882a593Smuzhiyun			interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
201*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_CLK_GATE_UART0>,
202*4882a593Smuzhiyun				 <&crg_ctrl HI3670_PCLK>;
203*4882a593Smuzhiyun			clock-names = "uartclk", "apb_pclk";
204*4882a593Smuzhiyun			pinctrl-names = "default";
205*4882a593Smuzhiyun			pinctrl-0 = <&uart0_pmx_func &uart0_cfg_func>;
206*4882a593Smuzhiyun			status = "disabled";
207*4882a593Smuzhiyun		};
208*4882a593Smuzhiyun
209*4882a593Smuzhiyun		uart1: serial@fdf00000 {
210*4882a593Smuzhiyun			compatible = "arm,pl011", "arm,primecell";
211*4882a593Smuzhiyun			reg = <0x0 0xfdf00000 0x0 0x1000>;
212*4882a593Smuzhiyun			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
213*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_CLK_GATE_UART1>,
214*4882a593Smuzhiyun				 <&crg_ctrl HI3670_PCLK>;
215*4882a593Smuzhiyun			clock-names = "uartclk", "apb_pclk";
216*4882a593Smuzhiyun			pinctrl-names = "default";
217*4882a593Smuzhiyun			status = "disabled";
218*4882a593Smuzhiyun		};
219*4882a593Smuzhiyun
220*4882a593Smuzhiyun		uart2: serial@fdf03000 {
221*4882a593Smuzhiyun			compatible = "arm,pl011", "arm,primecell";
222*4882a593Smuzhiyun			reg = <0x0 0xfdf03000 0x0 0x1000>;
223*4882a593Smuzhiyun			interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
224*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_CLK_GATE_UART2>,
225*4882a593Smuzhiyun				 <&crg_ctrl HI3670_PCLK>;
226*4882a593Smuzhiyun			clock-names = "uartclk", "apb_pclk";
227*4882a593Smuzhiyun			pinctrl-names = "default";
228*4882a593Smuzhiyun			pinctrl-0 = <&uart2_pmx_func &uart2_cfg_func>;
229*4882a593Smuzhiyun			status = "disabled";
230*4882a593Smuzhiyun		};
231*4882a593Smuzhiyun
232*4882a593Smuzhiyun		uart3: serial@ffd74000 {
233*4882a593Smuzhiyun			compatible = "arm,pl011", "arm,primecell";
234*4882a593Smuzhiyun			reg = <0x0 0xffd74000 0x0 0x1000>;
235*4882a593Smuzhiyun			interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
236*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_CLK_GATE_UART3>,
237*4882a593Smuzhiyun				 <&crg_ctrl HI3670_PCLK>;
238*4882a593Smuzhiyun			clock-names = "uartclk", "apb_pclk";
239*4882a593Smuzhiyun			pinctrl-names = "default";
240*4882a593Smuzhiyun			pinctrl-0 = <&uart3_pmx_func &uart3_cfg_func>;
241*4882a593Smuzhiyun			status = "disabled";
242*4882a593Smuzhiyun		};
243*4882a593Smuzhiyun
244*4882a593Smuzhiyun		uart4: serial@fdf01000 {
245*4882a593Smuzhiyun			compatible = "arm,pl011", "arm,primecell";
246*4882a593Smuzhiyun			reg = <0x0 0xfdf01000 0x0 0x1000>;
247*4882a593Smuzhiyun			interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
248*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_CLK_GATE_UART4>,
249*4882a593Smuzhiyun				 <&crg_ctrl HI3670_PCLK>;
250*4882a593Smuzhiyun			clock-names = "uartclk", "apb_pclk";
251*4882a593Smuzhiyun			pinctrl-names = "default";
252*4882a593Smuzhiyun			pinctrl-0 = <&uart4_pmx_func &uart4_cfg_func>;
253*4882a593Smuzhiyun			status = "disabled";
254*4882a593Smuzhiyun		};
255*4882a593Smuzhiyun
256*4882a593Smuzhiyun		uart5: serial@fdf05000 {
257*4882a593Smuzhiyun			compatible = "arm,pl011", "arm,primecell";
258*4882a593Smuzhiyun			reg = <0x0 0xfdf05000 0x0 0x1000>;
259*4882a593Smuzhiyun			interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
260*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_CLK_GATE_UART5>,
261*4882a593Smuzhiyun				 <&crg_ctrl HI3670_PCLK>;
262*4882a593Smuzhiyun			clock-names = "uartclk", "apb_pclk";
263*4882a593Smuzhiyun			pinctrl-names = "default";
264*4882a593Smuzhiyun			status = "disabled";
265*4882a593Smuzhiyun		};
266*4882a593Smuzhiyun
267*4882a593Smuzhiyun		uart6: serial@fff32000 {
268*4882a593Smuzhiyun			compatible = "arm,pl011", "arm,primecell";
269*4882a593Smuzhiyun			reg = <0x0 0xfff32000 0x0 0x1000>;
270*4882a593Smuzhiyun			interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
271*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_CLK_UART6>,
272*4882a593Smuzhiyun				 <&crg_ctrl HI3670_PCLK>;
273*4882a593Smuzhiyun			clock-names = "uartclk", "apb_pclk";
274*4882a593Smuzhiyun			pinctrl-names = "default";
275*4882a593Smuzhiyun			pinctrl-0 = <&uart6_pmx_func &uart6_cfg_func>;
276*4882a593Smuzhiyun			status = "disabled";
277*4882a593Smuzhiyun		};
278*4882a593Smuzhiyun
279*4882a593Smuzhiyun		gpio0: gpio@e8a0b000 {
280*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
281*4882a593Smuzhiyun			reg = <0x0 0xe8a0b000 0x0 0x1000>;
282*4882a593Smuzhiyun			interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
283*4882a593Smuzhiyun			gpio-controller;
284*4882a593Smuzhiyun			#gpio-cells = <2>;
285*4882a593Smuzhiyun			gpio-ranges = <&pmx0 1 0 1 &pmx0 3 1 5>;
286*4882a593Smuzhiyun			interrupt-controller;
287*4882a593Smuzhiyun			#interrupt-cells = <2>;
288*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO0>;
289*4882a593Smuzhiyun			clock-names = "apb_pclk";
290*4882a593Smuzhiyun		};
291*4882a593Smuzhiyun
292*4882a593Smuzhiyun		gpio1: gpio@e8a0c000 {
293*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
294*4882a593Smuzhiyun			reg = <0x0 0xe8a0c000 0x0 0x1000>;
295*4882a593Smuzhiyun			interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
296*4882a593Smuzhiyun			gpio-controller;
297*4882a593Smuzhiyun			#gpio-cells = <2>;
298*4882a593Smuzhiyun			interrupt-controller;
299*4882a593Smuzhiyun			#interrupt-cells = <2>;
300*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO1>;
301*4882a593Smuzhiyun			clock-names = "apb_pclk";
302*4882a593Smuzhiyun		};
303*4882a593Smuzhiyun
304*4882a593Smuzhiyun		gpio2: gpio@e8a0d000 {
305*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
306*4882a593Smuzhiyun			reg = <0x0 0xe8a0d000 0x0 0x1000>;
307*4882a593Smuzhiyun			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
308*4882a593Smuzhiyun			gpio-controller;
309*4882a593Smuzhiyun			#gpio-cells = <2>;
310*4882a593Smuzhiyun			gpio-ranges = <&pmx0 1 6 7>;
311*4882a593Smuzhiyun			interrupt-controller;
312*4882a593Smuzhiyun			#interrupt-cells = <2>;
313*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO2>;
314*4882a593Smuzhiyun			clock-names = "apb_pclk";
315*4882a593Smuzhiyun		};
316*4882a593Smuzhiyun
317*4882a593Smuzhiyun		gpio3: gpio@e8a0e000 {
318*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
319*4882a593Smuzhiyun			reg = <0x0 0xe8a0e000 0x0 0x1000>;
320*4882a593Smuzhiyun			interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
321*4882a593Smuzhiyun			gpio-controller;
322*4882a593Smuzhiyun			#gpio-cells = <2>;
323*4882a593Smuzhiyun			gpio-ranges =  <&pmx0 0 13 4 &pmx0 7 17 1>;
324*4882a593Smuzhiyun			interrupt-controller;
325*4882a593Smuzhiyun			#interrupt-cells = <2>;
326*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO3>;
327*4882a593Smuzhiyun			clock-names = "apb_pclk";
328*4882a593Smuzhiyun		};
329*4882a593Smuzhiyun
330*4882a593Smuzhiyun		gpio4: gpio@e8a0f000 {
331*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
332*4882a593Smuzhiyun			reg = <0x0 0xe8a0f000 0x0 0x1000>;
333*4882a593Smuzhiyun			interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
334*4882a593Smuzhiyun			gpio-controller;
335*4882a593Smuzhiyun			#gpio-cells = <2>;
336*4882a593Smuzhiyun			gpio-ranges = <&pmx0 0 18 8>;
337*4882a593Smuzhiyun			interrupt-controller;
338*4882a593Smuzhiyun			#interrupt-cells = <2>;
339*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO4>;
340*4882a593Smuzhiyun			clock-names = "apb_pclk";
341*4882a593Smuzhiyun		};
342*4882a593Smuzhiyun
343*4882a593Smuzhiyun		gpio5: gpio@e8a10000 {
344*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
345*4882a593Smuzhiyun			reg = <0x0 0xe8a10000 0x0 0x1000>;
346*4882a593Smuzhiyun			interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
347*4882a593Smuzhiyun			gpio-controller;
348*4882a593Smuzhiyun			#gpio-cells = <2>;
349*4882a593Smuzhiyun			gpio-ranges = <&pmx0 0 26 8>;
350*4882a593Smuzhiyun			interrupt-controller;
351*4882a593Smuzhiyun			#interrupt-cells = <2>;
352*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO5>;
353*4882a593Smuzhiyun			clock-names = "apb_pclk";
354*4882a593Smuzhiyun		};
355*4882a593Smuzhiyun
356*4882a593Smuzhiyun		gpio6: gpio@e8a11000 {
357*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
358*4882a593Smuzhiyun			reg = <0x0 0xe8a11000 0x0 0x1000>;
359*4882a593Smuzhiyun			interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
360*4882a593Smuzhiyun			gpio-controller;
361*4882a593Smuzhiyun			#gpio-cells = <2>;
362*4882a593Smuzhiyun			gpio-ranges = <&pmx0 1 34 7>;
363*4882a593Smuzhiyun			interrupt-controller;
364*4882a593Smuzhiyun			#interrupt-cells = <2>;
365*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO6>;
366*4882a593Smuzhiyun			clock-names = "apb_pclk";
367*4882a593Smuzhiyun		};
368*4882a593Smuzhiyun
369*4882a593Smuzhiyun		gpio7: gpio@e8a12000 {
370*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
371*4882a593Smuzhiyun			reg = <0x0 0xe8a12000 0x0 0x1000>;
372*4882a593Smuzhiyun			interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
373*4882a593Smuzhiyun			gpio-controller;
374*4882a593Smuzhiyun			#gpio-cells = <2>;
375*4882a593Smuzhiyun			gpio-ranges = <&pmx0 0 41 8>;
376*4882a593Smuzhiyun			interrupt-controller;
377*4882a593Smuzhiyun			#interrupt-cells = <2>;
378*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO7>;
379*4882a593Smuzhiyun			clock-names = "apb_pclk";
380*4882a593Smuzhiyun		};
381*4882a593Smuzhiyun
382*4882a593Smuzhiyun		gpio8: gpio@e8a13000 {
383*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
384*4882a593Smuzhiyun			reg = <0x0 0xe8a13000 0x0 0x1000>;
385*4882a593Smuzhiyun			interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
386*4882a593Smuzhiyun			gpio-controller;
387*4882a593Smuzhiyun			#gpio-cells = <2>;
388*4882a593Smuzhiyun			gpio-ranges = <&pmx0 0 49 8>;
389*4882a593Smuzhiyun			interrupt-controller;
390*4882a593Smuzhiyun			#interrupt-cells = <2>;
391*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO8>;
392*4882a593Smuzhiyun			clock-names = "apb_pclk";
393*4882a593Smuzhiyun		};
394*4882a593Smuzhiyun
395*4882a593Smuzhiyun		gpio9: gpio@e8a14000 {
396*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
397*4882a593Smuzhiyun			reg = <0x0 0xe8a14000 0x0 0x1000>;
398*4882a593Smuzhiyun			interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
399*4882a593Smuzhiyun			gpio-controller;
400*4882a593Smuzhiyun			#gpio-cells = <2>;
401*4882a593Smuzhiyun			gpio-ranges = <&pmx0 0 57 8>;
402*4882a593Smuzhiyun			interrupt-controller;
403*4882a593Smuzhiyun			#interrupt-cells = <2>;
404*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO9>;
405*4882a593Smuzhiyun			clock-names = "apb_pclk";
406*4882a593Smuzhiyun		};
407*4882a593Smuzhiyun
408*4882a593Smuzhiyun		gpio10: gpio@e8a15000 {
409*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
410*4882a593Smuzhiyun			reg = <0x0 0xe8a15000 0x0 0x1000>;
411*4882a593Smuzhiyun			interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
412*4882a593Smuzhiyun			gpio-controller;
413*4882a593Smuzhiyun			#gpio-cells = <2>;
414*4882a593Smuzhiyun			gpio-ranges = <&pmx0 0 65 8>;
415*4882a593Smuzhiyun			interrupt-controller;
416*4882a593Smuzhiyun			#interrupt-cells = <2>;
417*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO10>;
418*4882a593Smuzhiyun			clock-names = "apb_pclk";
419*4882a593Smuzhiyun		};
420*4882a593Smuzhiyun
421*4882a593Smuzhiyun		gpio11: gpio@e8a16000 {
422*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
423*4882a593Smuzhiyun			reg = <0x0 0xe8a16000 0x0 0x1000>;
424*4882a593Smuzhiyun			interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
425*4882a593Smuzhiyun			gpio-controller;
426*4882a593Smuzhiyun			#gpio-cells = <2>;
427*4882a593Smuzhiyun			gpio-ranges = <&pmx0 0 73 8>;
428*4882a593Smuzhiyun			interrupt-controller;
429*4882a593Smuzhiyun			#interrupt-cells = <2>;
430*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO11>;
431*4882a593Smuzhiyun			clock-names = "apb_pclk";
432*4882a593Smuzhiyun		};
433*4882a593Smuzhiyun
434*4882a593Smuzhiyun		gpio12: gpio@e8a17000 {
435*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
436*4882a593Smuzhiyun			reg = <0x0 0xe8a17000 0x0 0x1000>;
437*4882a593Smuzhiyun			interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
438*4882a593Smuzhiyun			gpio-controller;
439*4882a593Smuzhiyun			#gpio-cells = <2>;
440*4882a593Smuzhiyun			gpio-ranges = <&pmx0 0 81 1>;
441*4882a593Smuzhiyun			interrupt-controller;
442*4882a593Smuzhiyun			#interrupt-cells = <2>;
443*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO12>;
444*4882a593Smuzhiyun			clock-names = "apb_pclk";
445*4882a593Smuzhiyun		};
446*4882a593Smuzhiyun
447*4882a593Smuzhiyun		gpio13: gpio@e8a18000 {
448*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
449*4882a593Smuzhiyun			reg = <0x0 0xe8a18000 0x0 0x1000>;
450*4882a593Smuzhiyun			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
451*4882a593Smuzhiyun			gpio-controller;
452*4882a593Smuzhiyun			#gpio-cells = <2>;
453*4882a593Smuzhiyun			interrupt-controller;
454*4882a593Smuzhiyun			#interrupt-cells = <2>;
455*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO13>;
456*4882a593Smuzhiyun			clock-names = "apb_pclk";
457*4882a593Smuzhiyun		};
458*4882a593Smuzhiyun
459*4882a593Smuzhiyun		gpio14: gpio@e8a19000 {
460*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
461*4882a593Smuzhiyun			reg = <0x0 0xe8a19000 0x0 0x1000>;
462*4882a593Smuzhiyun			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
463*4882a593Smuzhiyun			gpio-controller;
464*4882a593Smuzhiyun			#gpio-cells = <2>;
465*4882a593Smuzhiyun			interrupt-controller;
466*4882a593Smuzhiyun			#interrupt-cells = <2>;
467*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO14>;
468*4882a593Smuzhiyun			clock-names = "apb_pclk";
469*4882a593Smuzhiyun		};
470*4882a593Smuzhiyun
471*4882a593Smuzhiyun		gpio15: gpio@e8a1a000 {
472*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
473*4882a593Smuzhiyun			reg = <0x0 0xe8a1a000 0x0 0x1000>;
474*4882a593Smuzhiyun			interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
475*4882a593Smuzhiyun			gpio-controller;
476*4882a593Smuzhiyun			#gpio-cells = <2>;
477*4882a593Smuzhiyun			interrupt-controller;
478*4882a593Smuzhiyun			#interrupt-cells = <2>;
479*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO15>;
480*4882a593Smuzhiyun			clock-names = "apb_pclk";
481*4882a593Smuzhiyun		};
482*4882a593Smuzhiyun
483*4882a593Smuzhiyun		gpio16: gpio@e8a1b000 {
484*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
485*4882a593Smuzhiyun			reg = <0x0 0xe8a1b000 0x0 0x1000>;
486*4882a593Smuzhiyun			interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
487*4882a593Smuzhiyun			gpio-controller;
488*4882a593Smuzhiyun			#gpio-cells = <2>;
489*4882a593Smuzhiyun			gpio-ranges = <&pmx5 0 0 8>;
490*4882a593Smuzhiyun			interrupt-controller;
491*4882a593Smuzhiyun			#interrupt-cells = <2>;
492*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO16>;
493*4882a593Smuzhiyun			clock-names = "apb_pclk";
494*4882a593Smuzhiyun		};
495*4882a593Smuzhiyun
496*4882a593Smuzhiyun		gpio17: gpio@e8a1c000 {
497*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
498*4882a593Smuzhiyun			reg = <0x0 0xe8a1c000 0x0 0x1000>;
499*4882a593Smuzhiyun			interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
500*4882a593Smuzhiyun			gpio-controller;
501*4882a593Smuzhiyun			#gpio-cells = <2>;
502*4882a593Smuzhiyun			gpio-ranges = <&pmx5 0 8 2>;
503*4882a593Smuzhiyun			interrupt-controller;
504*4882a593Smuzhiyun			#interrupt-cells = <2>;
505*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO17>;
506*4882a593Smuzhiyun			clock-names = "apb_pclk";
507*4882a593Smuzhiyun		};
508*4882a593Smuzhiyun
509*4882a593Smuzhiyun		gpio18: gpio@fff28000 {
510*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
511*4882a593Smuzhiyun			reg = <0x0 0xfff28000 0x0 0x1000>;
512*4882a593Smuzhiyun			interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
513*4882a593Smuzhiyun			gpio-controller;
514*4882a593Smuzhiyun			#gpio-cells = <2>;
515*4882a593Smuzhiyun			gpio-ranges = <&pmx1 4 42 4>;
516*4882a593Smuzhiyun			interrupt-controller;
517*4882a593Smuzhiyun			#interrupt-cells = <2>;
518*4882a593Smuzhiyun			clocks = <&sctrl HI3670_PCLK_GPIO18>;
519*4882a593Smuzhiyun			clock-names = "apb_pclk";
520*4882a593Smuzhiyun		};
521*4882a593Smuzhiyun
522*4882a593Smuzhiyun		gpio19: gpio@fff29000 {
523*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
524*4882a593Smuzhiyun			reg = <0x0 0xfff29000 0x0 0x1000>;
525*4882a593Smuzhiyun			interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
526*4882a593Smuzhiyun			gpio-controller;
527*4882a593Smuzhiyun			#gpio-cells = <2>;
528*4882a593Smuzhiyun			gpio-ranges = <&pmx1 0 61 2>;
529*4882a593Smuzhiyun			interrupt-controller;
530*4882a593Smuzhiyun			#interrupt-cells = <2>;
531*4882a593Smuzhiyun			clocks = <&sctrl HI3670_PCLK_GPIO19>;
532*4882a593Smuzhiyun			clock-names = "apb_pclk";
533*4882a593Smuzhiyun		};
534*4882a593Smuzhiyun
535*4882a593Smuzhiyun		gpio20: gpio@e8a1f000 {
536*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
537*4882a593Smuzhiyun			reg = <0x0 0xe8a1f000 0x0 0x1000>;
538*4882a593Smuzhiyun			interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
539*4882a593Smuzhiyun			gpio-controller;
540*4882a593Smuzhiyun			#gpio-cells = <2>;
541*4882a593Smuzhiyun			gpio-ranges = <&pmx7 0 0 8>;
542*4882a593Smuzhiyun			interrupt-controller;
543*4882a593Smuzhiyun			#interrupt-cells = <2>;
544*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO20>;
545*4882a593Smuzhiyun			clock-names = "apb_pclk";
546*4882a593Smuzhiyun		};
547*4882a593Smuzhiyun
548*4882a593Smuzhiyun		gpio21: gpio@e8a20000 {
549*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
550*4882a593Smuzhiyun			reg = <0x0 0xe8a20000 0x0 0x1000>;
551*4882a593Smuzhiyun			interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
552*4882a593Smuzhiyun			gpio-controller;
553*4882a593Smuzhiyun			#gpio-cells = <2>;
554*4882a593Smuzhiyun			gpio-ranges = <&pmx7 0 8 4>;
555*4882a593Smuzhiyun			interrupt-controller;
556*4882a593Smuzhiyun			#interrupt-cells = <2>;
557*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_PCLK_GPIO21>;
558*4882a593Smuzhiyun			clock-names = "apb_pclk";
559*4882a593Smuzhiyun		};
560*4882a593Smuzhiyun
561*4882a593Smuzhiyun		gpio22: gpio@fff0b000 {
562*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
563*4882a593Smuzhiyun			reg = <0x0 0xfff0b000 0x0 0x1000>;
564*4882a593Smuzhiyun			interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
565*4882a593Smuzhiyun			gpio-controller;
566*4882a593Smuzhiyun			#gpio-cells = <2>;
567*4882a593Smuzhiyun			/* GPIO176 */
568*4882a593Smuzhiyun			gpio-ranges = <&pmx1 2 0 6>;
569*4882a593Smuzhiyun			interrupt-controller;
570*4882a593Smuzhiyun			#interrupt-cells = <2>;
571*4882a593Smuzhiyun			clocks = <&sctrl HI3670_PCLK_AO_GPIO0>;
572*4882a593Smuzhiyun			clock-names = "apb_pclk";
573*4882a593Smuzhiyun		};
574*4882a593Smuzhiyun
575*4882a593Smuzhiyun		gpio23: gpio@fff0c000 {
576*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
577*4882a593Smuzhiyun			reg = <0x0 0xfff0c000 0x0 0x1000>;
578*4882a593Smuzhiyun			interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
579*4882a593Smuzhiyun			gpio-controller;
580*4882a593Smuzhiyun			#gpio-cells = <2>;
581*4882a593Smuzhiyun			/* GPIO184 */
582*4882a593Smuzhiyun			gpio-ranges = <&pmx1 0 6 8>;
583*4882a593Smuzhiyun			interrupt-controller;
584*4882a593Smuzhiyun			#interrupt-cells = <2>;
585*4882a593Smuzhiyun			clocks = <&sctrl HI3670_PCLK_AO_GPIO1>;
586*4882a593Smuzhiyun			clock-names = "apb_pclk";
587*4882a593Smuzhiyun		};
588*4882a593Smuzhiyun
589*4882a593Smuzhiyun		gpio24: gpio@fff0d000 {
590*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
591*4882a593Smuzhiyun			reg = <0x0 0xfff0d000 0x0 0x1000>;
592*4882a593Smuzhiyun			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
593*4882a593Smuzhiyun			gpio-controller;
594*4882a593Smuzhiyun			#gpio-cells = <2>;
595*4882a593Smuzhiyun			/* GPIO192 */
596*4882a593Smuzhiyun			gpio-ranges = <&pmx1 0 14 8>;
597*4882a593Smuzhiyun			interrupt-controller;
598*4882a593Smuzhiyun			#interrupt-cells = <2>;
599*4882a593Smuzhiyun			clocks = <&sctrl HI3670_PCLK_AO_GPIO2>;
600*4882a593Smuzhiyun			clock-names = "apb_pclk";
601*4882a593Smuzhiyun		};
602*4882a593Smuzhiyun
603*4882a593Smuzhiyun		gpio25: gpio@fff0e000 {
604*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
605*4882a593Smuzhiyun			reg = <0x0 0xfff0e000 0x0 0x1000>;
606*4882a593Smuzhiyun			interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
607*4882a593Smuzhiyun			gpio-controller;
608*4882a593Smuzhiyun			#gpio-cells = <2>;
609*4882a593Smuzhiyun			/* GPIO200 */
610*4882a593Smuzhiyun			gpio-ranges = <&pmx1 0 22 8>;
611*4882a593Smuzhiyun			interrupt-controller;
612*4882a593Smuzhiyun			#interrupt-cells = <2>;
613*4882a593Smuzhiyun			clocks = <&sctrl HI3670_PCLK_AO_GPIO3>;
614*4882a593Smuzhiyun			clock-names = "apb_pclk";
615*4882a593Smuzhiyun		};
616*4882a593Smuzhiyun
617*4882a593Smuzhiyun		gpio26: gpio@fff0f000 {
618*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
619*4882a593Smuzhiyun			reg = <0x0 0xfff0f000 0x0 0x1000>;
620*4882a593Smuzhiyun			interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
621*4882a593Smuzhiyun			gpio-controller;
622*4882a593Smuzhiyun			#gpio-cells = <2>;
623*4882a593Smuzhiyun			/* GPIO208 */
624*4882a593Smuzhiyun			gpio-ranges = <&pmx1 0 30 1>;
625*4882a593Smuzhiyun			interrupt-controller;
626*4882a593Smuzhiyun			#interrupt-cells = <2>;
627*4882a593Smuzhiyun			clocks = <&sctrl HI3670_PCLK_AO_GPIO4>;
628*4882a593Smuzhiyun			clock-names = "apb_pclk";
629*4882a593Smuzhiyun		};
630*4882a593Smuzhiyun
631*4882a593Smuzhiyun		gpio27: gpio@fff10000 {
632*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
633*4882a593Smuzhiyun			reg = <0x0 0xfff10000 0x0 0x1000>;
634*4882a593Smuzhiyun			interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
635*4882a593Smuzhiyun			gpio-controller;
636*4882a593Smuzhiyun			#gpio-cells = <2>;
637*4882a593Smuzhiyun			/* GPIO216 */
638*4882a593Smuzhiyun			gpio-ranges = <&pmx1 4 31 4>;
639*4882a593Smuzhiyun			interrupt-controller;
640*4882a593Smuzhiyun			#interrupt-cells = <2>;
641*4882a593Smuzhiyun			clocks = <&sctrl HI3670_PCLK_AO_GPIO5>;
642*4882a593Smuzhiyun			clock-names = "apb_pclk";
643*4882a593Smuzhiyun		};
644*4882a593Smuzhiyun
645*4882a593Smuzhiyun		gpio28: gpio@fff1d000 {
646*4882a593Smuzhiyun			compatible = "arm,pl061", "arm,primecell";
647*4882a593Smuzhiyun			reg = <0x0 0xfff1d000 0x0 0x1000>;
648*4882a593Smuzhiyun			interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
649*4882a593Smuzhiyun			gpio-controller;
650*4882a593Smuzhiyun			#gpio-cells = <2>;
651*4882a593Smuzhiyun			gpio-ranges = <&pmx1 1 35 7>;
652*4882a593Smuzhiyun			interrupt-controller;
653*4882a593Smuzhiyun			#interrupt-cells = <2>;
654*4882a593Smuzhiyun			clocks = <&sctrl HI3670_PCLK_AO_GPIO6>;
655*4882a593Smuzhiyun			clock-names = "apb_pclk";
656*4882a593Smuzhiyun		};
657*4882a593Smuzhiyun
658*4882a593Smuzhiyun		/* UFS */
659*4882a593Smuzhiyun		ufs: ufs@ff3c0000 {
660*4882a593Smuzhiyun			compatible = "hisilicon,hi3670-ufs", "jedec,ufs-2.1";
661*4882a593Smuzhiyun			/* 0: HCI standard */
662*4882a593Smuzhiyun			/* 1: UFS SYS CTRL */
663*4882a593Smuzhiyun			reg = <0x0 0xff3c0000 0x0 0x1000>,
664*4882a593Smuzhiyun				<0x0 0xff3e0000 0x0 0x1000>;
665*4882a593Smuzhiyun			interrupt-parent = <&gic>;
666*4882a593Smuzhiyun			interrupts = <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>;
667*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_CLK_GATE_UFSIO_REF>,
668*4882a593Smuzhiyun				<&crg_ctrl HI3670_CLK_GATE_UFS_SUBSYS>;
669*4882a593Smuzhiyun			clock-names = "ref_clk", "phy_clk";
670*4882a593Smuzhiyun			freq-table-hz = <0 0>, <0 0>;
671*4882a593Smuzhiyun			/* offset: 0x84; bit: 12 */
672*4882a593Smuzhiyun			resets = <&crg_rst 0x84 12>;
673*4882a593Smuzhiyun			reset-names = "rst";
674*4882a593Smuzhiyun		};
675*4882a593Smuzhiyun
676*4882a593Smuzhiyun		/* SD */
677*4882a593Smuzhiyun		dwmmc1: dwmmc1@ff37f000 {
678*4882a593Smuzhiyun			compatible = "hisilicon,hi3670-dw-mshc",
679*4882a593Smuzhiyun				     "hisilicon,hi3660-dw-mshc";
680*4882a593Smuzhiyun			reg = <0x0 0xff37f000 0x0 0x1000>;
681*4882a593Smuzhiyun			#address-cells = <1>;
682*4882a593Smuzhiyun			#size-cells = <0>;
683*4882a593Smuzhiyun			interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
684*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_CLK_GATE_SD>,
685*4882a593Smuzhiyun				<&crg_ctrl HI3670_HCLK_GATE_SD>;
686*4882a593Smuzhiyun			clock-names = "ciu", "biu";
687*4882a593Smuzhiyun			clock-frequency = <3200000>;
688*4882a593Smuzhiyun			resets = <&crg_rst 0x94 18>;
689*4882a593Smuzhiyun			reset-names = "reset";
690*4882a593Smuzhiyun			hisilicon,peripheral-syscon = <&sctrl>;
691*4882a593Smuzhiyun			card-detect-delay = <200>;
692*4882a593Smuzhiyun			status = "disabled";
693*4882a593Smuzhiyun		};
694*4882a593Smuzhiyun
695*4882a593Smuzhiyun		/* SDIO */
696*4882a593Smuzhiyun		dwmmc2: dwmmc2@fc183000 {
697*4882a593Smuzhiyun			compatible = "hisilicon,hi3670-dw-mshc",
698*4882a593Smuzhiyun				     "hisilicon,hi3660-dw-mshc";
699*4882a593Smuzhiyun			reg = <0x0 0xfc183000 0x0 0x1000>;
700*4882a593Smuzhiyun			#address-cells = <1>;
701*4882a593Smuzhiyun			#size-cells = <0>;
702*4882a593Smuzhiyun			interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
703*4882a593Smuzhiyun			clocks = <&crg_ctrl HI3670_CLK_GATE_SDIO>,
704*4882a593Smuzhiyun				<&crg_ctrl HI3670_HCLK_GATE_SDIO>;
705*4882a593Smuzhiyun			clock-names = "ciu", "biu";
706*4882a593Smuzhiyun			clock-frequency = <3200000>;
707*4882a593Smuzhiyun			resets = <&crg_rst 0x94 20>;
708*4882a593Smuzhiyun			reset-names = "reset";
709*4882a593Smuzhiyun			card-detect-delay = <200>;
710*4882a593Smuzhiyun			status = "disabled";
711*4882a593Smuzhiyun		};
712*4882a593Smuzhiyun	};
713*4882a593Smuzhiyun};
714