xref: /linux/scripts/dtc/include-prefixes/arm64/hisilicon/hi6220.dtsi (revision 3814b61bd784cc7da966dc983a692035b7028776)
186e8f528SBintian Wang/*
286e8f528SBintian Wang * dts file for Hisilicon Hi6220 SoC
386e8f528SBintian Wang *
486e8f528SBintian Wang * Copyright (C) 2015, Hisilicon Ltd.
586e8f528SBintian Wang */
686e8f528SBintian Wang
786e8f528SBintian Wang#include <dt-bindings/interrupt-controller/arm-gic.h>
8339d00cbSXinliang Liu#include <dt-bindings/reset/hisi,hi6220-resets.h>
9a362ec8fSTyler Baker#include <dt-bindings/clock/hi6220-clock.h>
10379e9bf5SZhong Kaihua#include <dt-bindings/pinctrl/hisi.h>
11cd0b69ecSLeo Yan#include <dt-bindings/thermal/thermal.h>
1286e8f528SBintian Wang
1386e8f528SBintian Wang/ {
1486e8f528SBintian Wang	compatible = "hisilicon,hi6220";
1586e8f528SBintian Wang	interrupt-parent = <&gic>;
1686e8f528SBintian Wang	#address-cells = <2>;
1786e8f528SBintian Wang	#size-cells = <2>;
1886e8f528SBintian Wang
1986e8f528SBintian Wang	psci {
2086e8f528SBintian Wang		compatible = "arm,psci-0.2";
2186e8f528SBintian Wang		method = "smc";
2286e8f528SBintian Wang	};
2386e8f528SBintian Wang
2486e8f528SBintian Wang	cpus {
2586e8f528SBintian Wang		#address-cells = <2>;
2686e8f528SBintian Wang		#size-cells = <0>;
2786e8f528SBintian Wang
2886e8f528SBintian Wang		cpu-map {
2986e8f528SBintian Wang			cluster0 {
3086e8f528SBintian Wang				core0 {
3186e8f528SBintian Wang					cpu = <&cpu0>;
3286e8f528SBintian Wang				};
3386e8f528SBintian Wang				core1 {
3486e8f528SBintian Wang					cpu = <&cpu1>;
3586e8f528SBintian Wang				};
3686e8f528SBintian Wang				core2 {
3786e8f528SBintian Wang					cpu = <&cpu2>;
3886e8f528SBintian Wang				};
3986e8f528SBintian Wang				core3 {
4086e8f528SBintian Wang					cpu = <&cpu3>;
4186e8f528SBintian Wang				};
4286e8f528SBintian Wang			};
4386e8f528SBintian Wang			cluster1 {
4486e8f528SBintian Wang				core0 {
4586e8f528SBintian Wang					cpu = <&cpu4>;
4686e8f528SBintian Wang				};
4786e8f528SBintian Wang				core1 {
4886e8f528SBintian Wang					cpu = <&cpu5>;
4986e8f528SBintian Wang				};
5086e8f528SBintian Wang				core2 {
5186e8f528SBintian Wang					cpu = <&cpu6>;
5286e8f528SBintian Wang				};
5386e8f528SBintian Wang				core3 {
5486e8f528SBintian Wang					cpu = <&cpu7>;
5586e8f528SBintian Wang				};
5686e8f528SBintian Wang			};
5786e8f528SBintian Wang		};
5886e8f528SBintian Wang
5958fa29bfSLeo Yan		idle-states {
6058fa29bfSLeo Yan			entry-method = "psci";
6158fa29bfSLeo Yan
6258fa29bfSLeo Yan			CPU_SLEEP: cpu-sleep {
6358fa29bfSLeo Yan				compatible = "arm,idle-state";
6458fa29bfSLeo Yan				local-timer-stop;
6558fa29bfSLeo Yan				arm,psci-suspend-param = <0x0010000>;
6658fa29bfSLeo Yan				entry-latency-us = <700>;
6758fa29bfSLeo Yan				exit-latency-us = <250>;
6858fa29bfSLeo Yan				min-residency-us = <1000>;
6958fa29bfSLeo Yan			};
7058fa29bfSLeo Yan
7158fa29bfSLeo Yan			CLUSTER_SLEEP: cluster-sleep {
7258fa29bfSLeo Yan				compatible = "arm,idle-state";
7358fa29bfSLeo Yan				local-timer-stop;
7458fa29bfSLeo Yan				arm,psci-suspend-param = <0x1010000>;
7558fa29bfSLeo Yan				entry-latency-us = <1000>;
7658fa29bfSLeo Yan				exit-latency-us = <700>;
7758fa29bfSLeo Yan				min-residency-us = <2700>;
7858fa29bfSLeo Yan				wakeup-latency-us = <1500>;
7958fa29bfSLeo Yan			};
8058fa29bfSLeo Yan		};
8158fa29bfSLeo Yan
8286e8f528SBintian Wang		cpu0: cpu@0 {
8386e8f528SBintian Wang			compatible = "arm,cortex-a53", "arm,armv8";
8486e8f528SBintian Wang			device_type = "cpu";
8586e8f528SBintian Wang			reg = <0x0 0x0>;
8686e8f528SBintian Wang			enable-method = "psci";
8764851603SLeo Yan			next-level-cache = <&CLUSTER0_L2>;
8899860540SLeo Yan			clocks = <&stub_clock 0>;
8999860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
9099860540SLeo Yan			cooling-min-level = <4>;
9199860540SLeo Yan			cooling-max-level = <0>;
9299860540SLeo Yan			#cooling-cells = <2>; /* min followed by max */
9358fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
94cd0b69ecSLeo Yan			dynamic-power-coefficient = <311>;
9586e8f528SBintian Wang		};
9686e8f528SBintian Wang
9786e8f528SBintian Wang		cpu1: cpu@1 {
9886e8f528SBintian Wang			compatible = "arm,cortex-a53", "arm,armv8";
9986e8f528SBintian Wang			device_type = "cpu";
10086e8f528SBintian Wang			reg = <0x0 0x1>;
10186e8f528SBintian Wang			enable-method = "psci";
10264851603SLeo Yan			next-level-cache = <&CLUSTER0_L2>;
10399860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
10458fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
10586e8f528SBintian Wang		};
10686e8f528SBintian Wang
10786e8f528SBintian Wang		cpu2: cpu@2 {
10886e8f528SBintian Wang			compatible = "arm,cortex-a53", "arm,armv8";
10986e8f528SBintian Wang			device_type = "cpu";
11086e8f528SBintian Wang			reg = <0x0 0x2>;
11186e8f528SBintian Wang			enable-method = "psci";
11264851603SLeo Yan			next-level-cache = <&CLUSTER0_L2>;
11399860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
11458fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
11586e8f528SBintian Wang		};
11686e8f528SBintian Wang
11786e8f528SBintian Wang		cpu3: cpu@3 {
11886e8f528SBintian Wang			compatible = "arm,cortex-a53", "arm,armv8";
11986e8f528SBintian Wang			device_type = "cpu";
12086e8f528SBintian Wang			reg = <0x0 0x3>;
12186e8f528SBintian Wang			enable-method = "psci";
12264851603SLeo Yan			next-level-cache = <&CLUSTER0_L2>;
12399860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
12458fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
12586e8f528SBintian Wang		};
12686e8f528SBintian Wang
12786e8f528SBintian Wang		cpu4: cpu@100 {
12886e8f528SBintian Wang			compatible = "arm,cortex-a53", "arm,armv8";
12986e8f528SBintian Wang			device_type = "cpu";
13086e8f528SBintian Wang			reg = <0x0 0x100>;
13186e8f528SBintian Wang			enable-method = "psci";
13264851603SLeo Yan			next-level-cache = <&CLUSTER1_L2>;
13399860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
13458fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
13586e8f528SBintian Wang		};
13686e8f528SBintian Wang
13786e8f528SBintian Wang		cpu5: cpu@101 {
13886e8f528SBintian Wang			compatible = "arm,cortex-a53", "arm,armv8";
13986e8f528SBintian Wang			device_type = "cpu";
14086e8f528SBintian Wang			reg = <0x0 0x101>;
14186e8f528SBintian Wang			enable-method = "psci";
14264851603SLeo Yan			next-level-cache = <&CLUSTER1_L2>;
14399860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
14458fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
14586e8f528SBintian Wang		};
14686e8f528SBintian Wang
14786e8f528SBintian Wang		cpu6: cpu@102 {
14886e8f528SBintian Wang			compatible = "arm,cortex-a53", "arm,armv8";
14986e8f528SBintian Wang			device_type = "cpu";
15086e8f528SBintian Wang			reg = <0x0 0x102>;
15186e8f528SBintian Wang			enable-method = "psci";
15264851603SLeo Yan			next-level-cache = <&CLUSTER1_L2>;
15399860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
15458fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
15586e8f528SBintian Wang		};
15686e8f528SBintian Wang
15786e8f528SBintian Wang		cpu7: cpu@103 {
15886e8f528SBintian Wang			compatible = "arm,cortex-a53", "arm,armv8";
15986e8f528SBintian Wang			device_type = "cpu";
16086e8f528SBintian Wang			reg = <0x0 0x103>;
16186e8f528SBintian Wang			enable-method = "psci";
16264851603SLeo Yan			next-level-cache = <&CLUSTER1_L2>;
16399860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
16458fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
16586e8f528SBintian Wang		};
16664851603SLeo Yan
16764851603SLeo Yan		CLUSTER0_L2: l2-cache0 {
16864851603SLeo Yan			compatible = "cache";
16964851603SLeo Yan		};
17064851603SLeo Yan
17164851603SLeo Yan		CLUSTER1_L2: l2-cache1 {
17264851603SLeo Yan			compatible = "cache";
17364851603SLeo Yan		};
17486e8f528SBintian Wang	};
17586e8f528SBintian Wang
17699860540SLeo Yan	cpu_opp_table: cpu_opp_table {
17799860540SLeo Yan		compatible = "operating-points-v2";
17899860540SLeo Yan		opp-shared;
17999860540SLeo Yan
18099860540SLeo Yan		opp00 {
18199860540SLeo Yan			opp-hz = /bits/ 64 <208000000>;
18299860540SLeo Yan			opp-microvolt = <1040000>;
18399860540SLeo Yan			clock-latency-ns = <500000>;
18499860540SLeo Yan		};
18599860540SLeo Yan		opp01 {
18699860540SLeo Yan			opp-hz = /bits/ 64 <432000000>;
18799860540SLeo Yan			opp-microvolt = <1040000>;
18899860540SLeo Yan			clock-latency-ns = <500000>;
18999860540SLeo Yan		};
19099860540SLeo Yan		opp02 {
19199860540SLeo Yan			opp-hz = /bits/ 64 <729000000>;
19299860540SLeo Yan			opp-microvolt = <1090000>;
19399860540SLeo Yan			clock-latency-ns = <500000>;
19499860540SLeo Yan		};
19599860540SLeo Yan		opp03 {
19699860540SLeo Yan			opp-hz = /bits/ 64 <960000000>;
19799860540SLeo Yan			opp-microvolt = <1180000>;
19899860540SLeo Yan			clock-latency-ns = <500000>;
19999860540SLeo Yan		};
20099860540SLeo Yan		opp04 {
20199860540SLeo Yan			opp-hz = /bits/ 64 <1200000000>;
20299860540SLeo Yan			opp-microvolt = <1330000>;
20399860540SLeo Yan			clock-latency-ns = <500000>;
20499860540SLeo Yan		};
20599860540SLeo Yan	};
20699860540SLeo Yan
20786e8f528SBintian Wang	gic: interrupt-controller@f6801000 {
20886e8f528SBintian Wang		compatible = "arm,gic-400";
20986e8f528SBintian Wang		reg = <0x0 0xf6801000 0 0x1000>, /* GICD */
21086e8f528SBintian Wang		      <0x0 0xf6802000 0 0x2000>, /* GICC */
21186e8f528SBintian Wang		      <0x0 0xf6804000 0 0x2000>, /* GICH */
21286e8f528SBintian Wang		      <0x0 0xf6806000 0 0x2000>; /* GICV */
21386e8f528SBintian Wang		#address-cells = <0>;
21486e8f528SBintian Wang		#interrupt-cells = <3>;
21586e8f528SBintian Wang		interrupt-controller;
21686e8f528SBintian Wang		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
21786e8f528SBintian Wang	};
21886e8f528SBintian Wang
21986e8f528SBintian Wang	timer {
22086e8f528SBintian Wang		compatible = "arm,armv8-timer";
22186e8f528SBintian Wang		interrupt-parent = <&gic>;
22286e8f528SBintian Wang		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
22386e8f528SBintian Wang			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
22486e8f528SBintian Wang			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
22586e8f528SBintian Wang			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
22686e8f528SBintian Wang	};
22786e8f528SBintian Wang
22886e8f528SBintian Wang	soc {
22986e8f528SBintian Wang		compatible = "simple-bus";
23086e8f528SBintian Wang		#address-cells = <2>;
23186e8f528SBintian Wang		#size-cells = <2>;
23286e8f528SBintian Wang		ranges;
23386e8f528SBintian Wang
23499860540SLeo Yan		sram: sram@fff80000 {
23599860540SLeo Yan			compatible = "hisilicon,hi6220-sramctrl", "syscon";
23699860540SLeo Yan			reg = <0x0 0xfff80000 0x0 0x12000>;
23799860540SLeo Yan		};
23899860540SLeo Yan
23986e8f528SBintian Wang		ao_ctrl: ao_ctrl@f7800000 {
24086e8f528SBintian Wang			compatible = "hisilicon,hi6220-aoctrl", "syscon";
24186e8f528SBintian Wang			reg = <0x0 0xf7800000 0x0 0x2000>;
24286e8f528SBintian Wang			#clock-cells = <1>;
24386e8f528SBintian Wang		};
24486e8f528SBintian Wang
24586e8f528SBintian Wang		sys_ctrl: sys_ctrl@f7030000 {
24686e8f528SBintian Wang			compatible = "hisilicon,hi6220-sysctrl", "syscon";
24786e8f528SBintian Wang			reg = <0x0 0xf7030000 0x0 0x2000>;
24886e8f528SBintian Wang			#clock-cells = <1>;
2493e14cd4cSChen Feng			#reset-cells = <1>;
25086e8f528SBintian Wang		};
25186e8f528SBintian Wang
25286e8f528SBintian Wang		media_ctrl: media_ctrl@f4410000 {
25386e8f528SBintian Wang			compatible = "hisilicon,hi6220-mediactrl", "syscon";
25486e8f528SBintian Wang			reg = <0x0 0xf4410000 0x0 0x1000>;
25586e8f528SBintian Wang			#clock-cells = <1>;
256339d00cbSXinliang Liu			#reset-cells = <1>;
25786e8f528SBintian Wang		};
25886e8f528SBintian Wang
25986e8f528SBintian Wang		pm_ctrl: pm_ctrl@f7032000 {
26086e8f528SBintian Wang			compatible = "hisilicon,hi6220-pmctrl", "syscon";
26186e8f528SBintian Wang			reg = <0x0 0xf7032000 0x0 0x1000>;
26286e8f528SBintian Wang			#clock-cells = <1>;
26386e8f528SBintian Wang		};
26486e8f528SBintian Wang
265*3814b61bSXinliang Liu		medianoc_ade: medianoc_ade@f4520000 {
266*3814b61bSXinliang Liu			compatible = "syscon";
267*3814b61bSXinliang Liu			reg = <0x0 0xf4520000 0x0 0x4000>;
268*3814b61bSXinliang Liu		};
269*3814b61bSXinliang Liu
27099860540SLeo Yan		stub_clock: stub_clock {
27199860540SLeo Yan			compatible = "hisilicon,hi6220-stub-clk";
27299860540SLeo Yan			hisilicon,hi6220-clk-sram = <&sram>;
27399860540SLeo Yan			#clock-cells = <1>;
27499860540SLeo Yan			mbox-names = "mbox-tx";
27599860540SLeo Yan			mboxes = <&mailbox 1 0 11>;
27699860540SLeo Yan		};
27799860540SLeo Yan
27886e8f528SBintian Wang		uart0: uart@f8015000 {	/* console */
27986e8f528SBintian Wang			compatible = "arm,pl011", "arm,primecell";
28086e8f528SBintian Wang			reg = <0x0 0xf8015000 0x0 0x1000>;
28186e8f528SBintian Wang			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
282a362ec8fSTyler Baker			clocks = <&ao_ctrl HI6220_UART0_PCLK>,
283a362ec8fSTyler Baker				 <&ao_ctrl HI6220_UART0_PCLK>;
28486e8f528SBintian Wang			clock-names = "uartclk", "apb_pclk";
28586e8f528SBintian Wang		};
286a362ec8fSTyler Baker
287a362ec8fSTyler Baker		uart1: uart@f7111000 {
288a362ec8fSTyler Baker			compatible = "arm,pl011", "arm,primecell";
289a362ec8fSTyler Baker			reg = <0x0 0xf7111000 0x0 0x1000>;
290a362ec8fSTyler Baker			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
291a362ec8fSTyler Baker			clocks = <&sys_ctrl HI6220_UART1_PCLK>,
292a362ec8fSTyler Baker				 <&sys_ctrl HI6220_UART1_PCLK>;
293a362ec8fSTyler Baker			clock-names = "uartclk", "apb_pclk";
294c2aad932SGuodong Xu			pinctrl-names = "default";
295c2aad932SGuodong Xu			pinctrl-0 = <&uart1_pmx_func &uart1_cfg_func1 &uart1_cfg_func2>;
296a362ec8fSTyler Baker			status = "disabled";
297a362ec8fSTyler Baker		};
298a362ec8fSTyler Baker
299a362ec8fSTyler Baker		uart2: uart@f7112000 {
300a362ec8fSTyler Baker			compatible = "arm,pl011", "arm,primecell";
301a362ec8fSTyler Baker			reg = <0x0 0xf7112000 0x0 0x1000>;
302a362ec8fSTyler Baker			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
303a362ec8fSTyler Baker			clocks = <&sys_ctrl HI6220_UART2_PCLK>,
304a362ec8fSTyler Baker				 <&sys_ctrl HI6220_UART2_PCLK>;
305a362ec8fSTyler Baker			clock-names = "uartclk", "apb_pclk";
306c2aad932SGuodong Xu			pinctrl-names = "default";
307c2aad932SGuodong Xu			pinctrl-0 = <&uart2_pmx_func &uart2_cfg_func>;
308a362ec8fSTyler Baker			status = "disabled";
309a362ec8fSTyler Baker		};
310a362ec8fSTyler Baker
311a362ec8fSTyler Baker		uart3: uart@f7113000 {
312a362ec8fSTyler Baker			compatible = "arm,pl011", "arm,primecell";
313a362ec8fSTyler Baker			reg = <0x0 0xf7113000 0x0 0x1000>;
314a362ec8fSTyler Baker			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
315a362ec8fSTyler Baker			clocks = <&sys_ctrl HI6220_UART3_PCLK>,
316a362ec8fSTyler Baker				 <&sys_ctrl HI6220_UART3_PCLK>;
317a362ec8fSTyler Baker			clock-names = "uartclk", "apb_pclk";
318c2aad932SGuodong Xu			pinctrl-names = "default";
319c2aad932SGuodong Xu			pinctrl-0 = <&uart3_pmx_func &uart3_cfg_func>;
320c2aad932SGuodong Xu			status = "disabled";
321a362ec8fSTyler Baker		};
322a362ec8fSTyler Baker
323a362ec8fSTyler Baker		uart4: uart@f7114000 {
324a362ec8fSTyler Baker			compatible = "arm,pl011", "arm,primecell";
325a362ec8fSTyler Baker			reg = <0x0 0xf7114000 0x0 0x1000>;
326a362ec8fSTyler Baker			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
327a362ec8fSTyler Baker			clocks = <&sys_ctrl HI6220_UART4_PCLK>,
328a362ec8fSTyler Baker				 <&sys_ctrl HI6220_UART4_PCLK>;
329a362ec8fSTyler Baker			clock-names = "uartclk", "apb_pclk";
330c2aad932SGuodong Xu			pinctrl-names = "default";
331c2aad932SGuodong Xu			pinctrl-0 = <&uart4_pmx_func &uart4_cfg_func>;
332a362ec8fSTyler Baker			status = "disabled";
333a362ec8fSTyler Baker		};
3349e927031SLeo Yan
3359e927031SLeo Yan		dual_timer0: timer@f8008000 {
3369e927031SLeo Yan			compatible = "arm,sp804", "arm,primecell";
3379e927031SLeo Yan			reg = <0x0 0xf8008000 0x0 0x1000>;
3389e927031SLeo Yan			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
3399e927031SLeo Yan				     <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
3409e927031SLeo Yan			clocks = <&ao_ctrl HI6220_TIMER0_PCLK>,
3419e927031SLeo Yan				 <&ao_ctrl HI6220_TIMER0_PCLK>,
3429e927031SLeo Yan				 <&ao_ctrl HI6220_TIMER0_PCLK>;
3439e927031SLeo Yan			clock-names = "timer1", "timer2", "apb_pclk";
3449e927031SLeo Yan		};
345f2bfacf9SZhong Kaihua
346810bd15fSZhangfei Gao		rtc0: rtc@f8003000 {
347810bd15fSZhangfei Gao			compatible = "arm,pl031", "arm,primecell";
348810bd15fSZhangfei Gao			reg = <0x0 0xf8003000 0x0 0x1000>;
349810bd15fSZhangfei Gao			interrupts = <0 12 4>;
350810bd15fSZhangfei Gao			clocks = <&ao_ctrl HI6220_RTC0_PCLK>;
351810bd15fSZhangfei Gao			clock-names = "apb_pclk";
352810bd15fSZhangfei Gao		};
353810bd15fSZhangfei Gao
354810bd15fSZhangfei Gao		rtc1: rtc@f8004000 {
355810bd15fSZhangfei Gao			compatible = "arm,pl031", "arm,primecell";
356810bd15fSZhangfei Gao			reg = <0x0 0xf8004000 0x0 0x1000>;
357810bd15fSZhangfei Gao			interrupts = <0 8 4>;
358810bd15fSZhangfei Gao			clocks = <&ao_ctrl HI6220_RTC1_PCLK>;
359810bd15fSZhangfei Gao			clock-names = "apb_pclk";
360810bd15fSZhangfei Gao		};
361810bd15fSZhangfei Gao
362379e9bf5SZhong Kaihua		pmx0: pinmux@f7010000 {
363379e9bf5SZhong Kaihua			compatible = "pinctrl-single";
364379e9bf5SZhong Kaihua			reg = <0x0 0xf7010000  0x0 0x27c>;
365379e9bf5SZhong Kaihua			#address-cells = <1>;
366379e9bf5SZhong Kaihua			#size-cells = <1>;
367379e9bf5SZhong Kaihua			#gpio-range-cells = <3>;
368379e9bf5SZhong Kaihua			pinctrl-single,register-width = <32>;
369379e9bf5SZhong Kaihua			pinctrl-single,function-mask = <7>;
370379e9bf5SZhong Kaihua			pinctrl-single,gpio-range = <
371379e9bf5SZhong Kaihua				&range  80  8 MUX_M0 /* gpio  3: [0..7] */
372379e9bf5SZhong Kaihua				&range  88  8 MUX_M0 /* gpio  4: [0..7] */
373379e9bf5SZhong Kaihua				&range  96  8 MUX_M0 /* gpio  5: [0..7] */
374379e9bf5SZhong Kaihua				&range 104  8 MUX_M0 /* gpio  6: [0..7] */
375379e9bf5SZhong Kaihua				&range 112  8 MUX_M0 /* gpio  7: [0..7] */
376379e9bf5SZhong Kaihua				&range 120  2 MUX_M0 /* gpio  8: [0..1] */
377379e9bf5SZhong Kaihua				&range   2  6 MUX_M1 /* gpio  8: [2..7] */
378379e9bf5SZhong Kaihua				&range   8  8 MUX_M1 /* gpio  9: [0..7] */
379379e9bf5SZhong Kaihua				&range   0  1 MUX_M1 /* gpio 10: [0]    */
380379e9bf5SZhong Kaihua				&range  16  7 MUX_M1 /* gpio 10: [1..7] */
381379e9bf5SZhong Kaihua				&range  23  3 MUX_M1 /* gpio 11: [0..2] */
382379e9bf5SZhong Kaihua				&range  28  5 MUX_M1 /* gpio 11: [3..7] */
383379e9bf5SZhong Kaihua				&range  33  3 MUX_M1 /* gpio 12: [0..2] */
384379e9bf5SZhong Kaihua				&range  43  5 MUX_M1 /* gpio 12: [3..7] */
385379e9bf5SZhong Kaihua				&range  48  8 MUX_M1 /* gpio 13: [0..7] */
386379e9bf5SZhong Kaihua				&range  56  8 MUX_M1 /* gpio 14: [0..7] */
387379e9bf5SZhong Kaihua				&range  74  6 MUX_M1 /* gpio 15: [0..5] */
388379e9bf5SZhong Kaihua				&range 122  1 MUX_M1 /* gpio 15: [6]    */
389379e9bf5SZhong Kaihua				&range 126  1 MUX_M1 /* gpio 15: [7]    */
390379e9bf5SZhong Kaihua				&range 127  8 MUX_M1 /* gpio 16: [0..7] */
391379e9bf5SZhong Kaihua				&range 135  8 MUX_M1 /* gpio 17: [0..7] */
392379e9bf5SZhong Kaihua				&range 143  8 MUX_M1 /* gpio 18: [0..7] */
393379e9bf5SZhong Kaihua				&range 151  8 MUX_M1 /* gpio 19: [0..7] */
394379e9bf5SZhong Kaihua			>;
395379e9bf5SZhong Kaihua			range: gpio-range {
396379e9bf5SZhong Kaihua				#pinctrl-single,gpio-range-cells = <3>;
397379e9bf5SZhong Kaihua			};
398379e9bf5SZhong Kaihua		};
399379e9bf5SZhong Kaihua
400379e9bf5SZhong Kaihua		pmx1: pinmux@f7010800 {
401379e9bf5SZhong Kaihua			compatible = "pinconf-single";
402379e9bf5SZhong Kaihua			reg = <0x0 0xf7010800 0x0 0x28c>;
403379e9bf5SZhong Kaihua			#address-cells = <1>;
404379e9bf5SZhong Kaihua			#size-cells = <1>;
405379e9bf5SZhong Kaihua			pinctrl-single,register-width = <32>;
406379e9bf5SZhong Kaihua		};
407379e9bf5SZhong Kaihua
408379e9bf5SZhong Kaihua		pmx2: pinmux@f8001800 {
409379e9bf5SZhong Kaihua			compatible = "pinconf-single";
410379e9bf5SZhong Kaihua			reg = <0x0 0xf8001800 0x0 0x78>;
411379e9bf5SZhong Kaihua			#address-cells = <1>;
412379e9bf5SZhong Kaihua			#size-cells = <1>;
413379e9bf5SZhong Kaihua			pinctrl-single,register-width = <32>;
414379e9bf5SZhong Kaihua		};
415379e9bf5SZhong Kaihua
416f2bfacf9SZhong Kaihua		gpio0: gpio@f8011000 {
417f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
418f2bfacf9SZhong Kaihua			reg = <0x0 0xf8011000 0x0 0x1000>;
419f2bfacf9SZhong Kaihua			interrupts = <0 52 0x4>;
420f2bfacf9SZhong Kaihua			gpio-controller;
421f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
422f2bfacf9SZhong Kaihua			interrupt-controller;
423f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
424f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
425f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
426f2bfacf9SZhong Kaihua		};
427f2bfacf9SZhong Kaihua
428f2bfacf9SZhong Kaihua		gpio1: gpio@f8012000 {
429f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
430f2bfacf9SZhong Kaihua			reg = <0x0 0xf8012000 0x0 0x1000>;
431f2bfacf9SZhong Kaihua			interrupts = <0 53 0x4>;
432f2bfacf9SZhong Kaihua			gpio-controller;
433f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
434f2bfacf9SZhong Kaihua			interrupt-controller;
435f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
436f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
437f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
438f2bfacf9SZhong Kaihua		};
439f2bfacf9SZhong Kaihua
440f2bfacf9SZhong Kaihua		gpio2: gpio@f8013000 {
441f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
442f2bfacf9SZhong Kaihua			reg = <0x0 0xf8013000 0x0 0x1000>;
443f2bfacf9SZhong Kaihua			interrupts = <0 54 0x4>;
444f2bfacf9SZhong Kaihua			gpio-controller;
445f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
446f2bfacf9SZhong Kaihua			interrupt-controller;
447f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
448f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
449f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
450f2bfacf9SZhong Kaihua		};
451f2bfacf9SZhong Kaihua
452f2bfacf9SZhong Kaihua		gpio3: gpio@f8014000 {
453f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
454f2bfacf9SZhong Kaihua			reg = <0x0 0xf8014000 0x0 0x1000>;
455f2bfacf9SZhong Kaihua			interrupts = <0 55 0x4>;
456f2bfacf9SZhong Kaihua			gpio-controller;
457f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
458379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 80 8>;
459f2bfacf9SZhong Kaihua			interrupt-controller;
460f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
461f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
462f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
463f2bfacf9SZhong Kaihua		};
464f2bfacf9SZhong Kaihua
465f2bfacf9SZhong Kaihua		gpio4: gpio@f7020000 {
466f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
467f2bfacf9SZhong Kaihua			reg = <0x0 0xf7020000 0x0 0x1000>;
468f2bfacf9SZhong Kaihua			interrupts = <0 56 0x4>;
469f2bfacf9SZhong Kaihua			gpio-controller;
470f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
471379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 88 8>;
472f2bfacf9SZhong Kaihua			interrupt-controller;
473f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
474f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
475f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
476f2bfacf9SZhong Kaihua		};
477f2bfacf9SZhong Kaihua
478f2bfacf9SZhong Kaihua		gpio5: gpio@f7021000 {
479f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
480f2bfacf9SZhong Kaihua			reg = <0x0 0xf7021000 0x0 0x1000>;
481f2bfacf9SZhong Kaihua			interrupts = <0 57 0x4>;
482f2bfacf9SZhong Kaihua			gpio-controller;
483f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
484379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 96 8>;
485f2bfacf9SZhong Kaihua			interrupt-controller;
486f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
487f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
488f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
489f2bfacf9SZhong Kaihua		};
490f2bfacf9SZhong Kaihua
491f2bfacf9SZhong Kaihua		gpio6: gpio@f7022000 {
492f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
493f2bfacf9SZhong Kaihua			reg = <0x0 0xf7022000 0x0 0x1000>;
494f2bfacf9SZhong Kaihua			interrupts = <0 58 0x4>;
495f2bfacf9SZhong Kaihua			gpio-controller;
496f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
497379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 104 8>;
498f2bfacf9SZhong Kaihua			interrupt-controller;
499f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
500f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
501f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
502f2bfacf9SZhong Kaihua		};
503f2bfacf9SZhong Kaihua
504f2bfacf9SZhong Kaihua		gpio7: gpio@f7023000 {
505f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
506f2bfacf9SZhong Kaihua			reg = <0x0 0xf7023000 0x0 0x1000>;
507f2bfacf9SZhong Kaihua			interrupts = <0 59 0x4>;
508f2bfacf9SZhong Kaihua			gpio-controller;
509f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
510379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 112 8>;
511f2bfacf9SZhong Kaihua			interrupt-controller;
512f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
513f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
514f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
515f2bfacf9SZhong Kaihua		};
516f2bfacf9SZhong Kaihua
517f2bfacf9SZhong Kaihua		gpio8: gpio@f7024000 {
518f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
519f2bfacf9SZhong Kaihua			reg = <0x0 0xf7024000 0x0 0x1000>;
520f2bfacf9SZhong Kaihua			interrupts = <0 60 0x4>;
521f2bfacf9SZhong Kaihua			gpio-controller;
522f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
523379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 120 2 &pmx0 2 2 6>;
524f2bfacf9SZhong Kaihua			interrupt-controller;
525f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
526f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
527f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
528f2bfacf9SZhong Kaihua		};
529f2bfacf9SZhong Kaihua
530f2bfacf9SZhong Kaihua		gpio9: gpio@f7025000 {
531f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
532f2bfacf9SZhong Kaihua			reg = <0x0 0xf7025000 0x0 0x1000>;
533f2bfacf9SZhong Kaihua			interrupts = <0 61 0x4>;
534f2bfacf9SZhong Kaihua			gpio-controller;
535f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
536379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 8 8>;
537f2bfacf9SZhong Kaihua			interrupt-controller;
538f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
539f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
540f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
541f2bfacf9SZhong Kaihua		};
542f2bfacf9SZhong Kaihua
543f2bfacf9SZhong Kaihua		gpio10: gpio@f7026000 {
544f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
545f2bfacf9SZhong Kaihua			reg = <0x0 0xf7026000 0x0 0x1000>;
546f2bfacf9SZhong Kaihua			interrupts = <0 62 0x4>;
547f2bfacf9SZhong Kaihua			gpio-controller;
548f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
549379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 0 1 &pmx0 1 16 7>;
550f2bfacf9SZhong Kaihua			interrupt-controller;
551f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
552f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
553f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
554f2bfacf9SZhong Kaihua		};
555f2bfacf9SZhong Kaihua
556f2bfacf9SZhong Kaihua		gpio11: gpio@f7027000 {
557f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
558f2bfacf9SZhong Kaihua			reg = <0x0 0xf7027000 0x0 0x1000>;
559f2bfacf9SZhong Kaihua			interrupts = <0 63 0x4>;
560f2bfacf9SZhong Kaihua			gpio-controller;
561f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
562379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 23 3 &pmx0 3 28 5>;
563f2bfacf9SZhong Kaihua			interrupt-controller;
564f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
565f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
566f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
567f2bfacf9SZhong Kaihua		};
568f2bfacf9SZhong Kaihua
569f2bfacf9SZhong Kaihua		gpio12: gpio@f7028000 {
570f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
571f2bfacf9SZhong Kaihua			reg = <0x0 0xf7028000 0x0 0x1000>;
572f2bfacf9SZhong Kaihua			interrupts = <0 64 0x4>;
573f2bfacf9SZhong Kaihua			gpio-controller;
574f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
575379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 33 3 &pmx0 3 43 5>;
576f2bfacf9SZhong Kaihua			interrupt-controller;
577f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
578f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
579f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
580f2bfacf9SZhong Kaihua		};
581f2bfacf9SZhong Kaihua
582f2bfacf9SZhong Kaihua		gpio13: gpio@f7029000 {
583f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
584f2bfacf9SZhong Kaihua			reg = <0x0 0xf7029000 0x0 0x1000>;
585f2bfacf9SZhong Kaihua			interrupts = <0 65 0x4>;
586f2bfacf9SZhong Kaihua			gpio-controller;
587379e9bf5SZhong Kaihua			#gpio-cells = <2>;
588379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 48 8>;
589f2bfacf9SZhong Kaihua			interrupt-controller;
590f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
591f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
592f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
593f2bfacf9SZhong Kaihua		};
594f2bfacf9SZhong Kaihua
595f2bfacf9SZhong Kaihua		gpio14: gpio@f702a000 {
596f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
597f2bfacf9SZhong Kaihua			reg = <0x0 0xf702a000 0x0 0x1000>;
598f2bfacf9SZhong Kaihua			interrupts = <0 66 0x4>;
599f2bfacf9SZhong Kaihua			gpio-controller;
600f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
601379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 56 8>;
602f2bfacf9SZhong Kaihua			interrupt-controller;
603f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
604f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
605f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
606f2bfacf9SZhong Kaihua		};
607f2bfacf9SZhong Kaihua
608f2bfacf9SZhong Kaihua		gpio15: gpio@f702b000 {
609f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
610f2bfacf9SZhong Kaihua			reg = <0x0 0xf702b000 0x0 0x1000>;
611f2bfacf9SZhong Kaihua			interrupts = <0 67 0x4>;
612f2bfacf9SZhong Kaihua			gpio-controller;
613f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
614379e9bf5SZhong Kaihua			gpio-ranges = <
615379e9bf5SZhong Kaihua				&pmx0 0 74 6
616379e9bf5SZhong Kaihua				&pmx0 6 122 1
617379e9bf5SZhong Kaihua				&pmx0 7 126 1
618379e9bf5SZhong Kaihua			>;
619f2bfacf9SZhong Kaihua			interrupt-controller;
620f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
621f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
622f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
623f2bfacf9SZhong Kaihua		};
624f2bfacf9SZhong Kaihua
625f2bfacf9SZhong Kaihua		gpio16: gpio@f702c000 {
626f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
627f2bfacf9SZhong Kaihua			reg = <0x0 0xf702c000 0x0 0x1000>;
628f2bfacf9SZhong Kaihua			interrupts = <0 68 0x4>;
629f2bfacf9SZhong Kaihua			gpio-controller;
630f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
631379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 127 8>;
632f2bfacf9SZhong Kaihua			interrupt-controller;
633f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
634f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
635f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
636f2bfacf9SZhong Kaihua		};
637f2bfacf9SZhong Kaihua
638f2bfacf9SZhong Kaihua		gpio17: gpio@f702d000 {
639f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
640f2bfacf9SZhong Kaihua			reg = <0x0 0xf702d000 0x0 0x1000>;
641f2bfacf9SZhong Kaihua			interrupts = <0 69 0x4>;
642f2bfacf9SZhong Kaihua			gpio-controller;
643f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
644379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 135 8>;
645f2bfacf9SZhong Kaihua			interrupt-controller;
646f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
647f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
648f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
649f2bfacf9SZhong Kaihua		};
650f2bfacf9SZhong Kaihua
651f2bfacf9SZhong Kaihua		gpio18: gpio@f702e000 {
652f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
653f2bfacf9SZhong Kaihua			reg = <0x0 0xf702e000 0x0 0x1000>;
654f2bfacf9SZhong Kaihua			interrupts = <0 70 0x4>;
655f2bfacf9SZhong Kaihua			gpio-controller;
656f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
657379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 143 8>;
658f2bfacf9SZhong Kaihua			interrupt-controller;
659f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
660f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
661f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
662f2bfacf9SZhong Kaihua		};
663f2bfacf9SZhong Kaihua
664f2bfacf9SZhong Kaihua		gpio19: gpio@f702f000 {
665f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
666f2bfacf9SZhong Kaihua			reg = <0x0 0xf702f000 0x0 0x1000>;
667f2bfacf9SZhong Kaihua			interrupts = <0 71 0x4>;
668f2bfacf9SZhong Kaihua			gpio-controller;
669f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
670379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 151 8>;
671f2bfacf9SZhong Kaihua			interrupt-controller;
672f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
673f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
674f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
675f2bfacf9SZhong Kaihua		};
67660dac1b1SZhong Kaihua
67760dac1b1SZhong Kaihua		spi0: spi@f7106000 {
67860dac1b1SZhong Kaihua			compatible = "arm,pl022", "arm,primecell";
67960dac1b1SZhong Kaihua			reg = <0x0 0xf7106000 0x0 0x1000>;
68060dac1b1SZhong Kaihua			interrupts = <0 50 4>;
68160dac1b1SZhong Kaihua			bus-id = <0>;
68260dac1b1SZhong Kaihua			enable-dma = <0>;
68360dac1b1SZhong Kaihua			clocks = <&sys_ctrl HI6220_SPI_CLK>;
68460dac1b1SZhong Kaihua			clock-names = "apb_pclk";
68560dac1b1SZhong Kaihua			pinctrl-names = "default";
68660dac1b1SZhong Kaihua			pinctrl-0 = <&spi0_pmx_func &spi0_cfg_func>;
68760dac1b1SZhong Kaihua			num-cs = <1>;
68860dac1b1SZhong Kaihua			cs-gpios = <&gpio6 2 0>;
68960dac1b1SZhong Kaihua			status = "disabled";
69060dac1b1SZhong Kaihua		};
6915ff3a4ddSXinwei Kong
6925ff3a4ddSXinwei Kong		i2c0: i2c@f7100000 {
6935ff3a4ddSXinwei Kong			compatible = "snps,designware-i2c";
6945ff3a4ddSXinwei Kong			reg = <0x0 0xf7100000 0x0 0x1000>;
6955ff3a4ddSXinwei Kong			interrupts = <0 44 4>;
6965ff3a4ddSXinwei Kong			clocks = <&sys_ctrl HI6220_I2C0_CLK>;
6975ff3a4ddSXinwei Kong			i2c-sda-hold-time-ns = <300>;
6985ff3a4ddSXinwei Kong			pinctrl-names = "default";
6995ff3a4ddSXinwei Kong			pinctrl-0 = <&i2c0_pmx_func &i2c0_cfg_func>;
7005ff3a4ddSXinwei Kong			status = "disabled";
7015ff3a4ddSXinwei Kong		};
7025ff3a4ddSXinwei Kong
7035ff3a4ddSXinwei Kong		i2c1: i2c@f7101000 {
7045ff3a4ddSXinwei Kong			compatible = "snps,designware-i2c";
7055ff3a4ddSXinwei Kong			reg = <0x0 0xf7101000 0x0 0x1000>;
7065ff3a4ddSXinwei Kong			clocks = <&sys_ctrl HI6220_I2C1_CLK>;
7075ff3a4ddSXinwei Kong			interrupts = <0 45 4>;
7085ff3a4ddSXinwei Kong			i2c-sda-hold-time-ns = <300>;
7095ff3a4ddSXinwei Kong			pinctrl-names = "default";
7105ff3a4ddSXinwei Kong			pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>;
7115ff3a4ddSXinwei Kong			status = "disabled";
7125ff3a4ddSXinwei Kong		};
7135ff3a4ddSXinwei Kong
7145ff3a4ddSXinwei Kong		i2c2: i2c@f7102000 {
7155ff3a4ddSXinwei Kong			compatible = "snps,designware-i2c";
7165ff3a4ddSXinwei Kong			reg = <0x0 0xf7102000 0x0 0x1000>;
7175ff3a4ddSXinwei Kong			clocks = <&sys_ctrl HI6220_I2C2_CLK>;
7185ff3a4ddSXinwei Kong			interrupts = <0 46 4>;
7195ff3a4ddSXinwei Kong			i2c-sda-hold-time-ns = <300>;
7205ff3a4ddSXinwei Kong			pinctrl-names = "default";
7215ff3a4ddSXinwei Kong			pinctrl-0 = <&i2c2_pmx_func &i2c2_cfg_func>;
7225ff3a4ddSXinwei Kong			status = "disabled";
7235ff3a4ddSXinwei Kong		};
724b4b31a7cSZhangfei Gao
725b4b31a7cSZhangfei Gao		fixed_5v_hub: regulator@0 {
726b4b31a7cSZhangfei Gao			compatible = "regulator-fixed";
727b4b31a7cSZhangfei Gao			regulator-name = "fixed_5v_hub";
728b4b31a7cSZhangfei Gao			regulator-min-microvolt = <5000000>;
729b4b31a7cSZhangfei Gao			regulator-max-microvolt = <5000000>;
730b4b31a7cSZhangfei Gao			regulator-boot-on;
731b4b31a7cSZhangfei Gao			gpio = <&gpio0 7 0>;
732b4b31a7cSZhangfei Gao			regulator-always-on;
733b4b31a7cSZhangfei Gao		};
734b4b31a7cSZhangfei Gao
735b4b31a7cSZhangfei Gao		usb_phy: usbphy {
736b4b31a7cSZhangfei Gao			compatible = "hisilicon,hi6220-usb-phy";
737b4b31a7cSZhangfei Gao			#phy-cells = <0>;
738b4b31a7cSZhangfei Gao			phy-supply = <&fixed_5v_hub>;
739b4b31a7cSZhangfei Gao			hisilicon,peripheral-syscon = <&sys_ctrl>;
740b4b31a7cSZhangfei Gao		};
741b4b31a7cSZhangfei Gao
742b4b31a7cSZhangfei Gao		usb: usb@f72c0000 {
743b4b31a7cSZhangfei Gao			compatible = "hisilicon,hi6220-usb";
744b4b31a7cSZhangfei Gao			reg = <0x0 0xf72c0000 0x0 0x40000>;
745b4b31a7cSZhangfei Gao			phys = <&usb_phy>;
746b4b31a7cSZhangfei Gao			phy-names = "usb2-phy";
747b4b31a7cSZhangfei Gao			clocks = <&sys_ctrl HI6220_USBOTG_HCLK>;
748b4b31a7cSZhangfei Gao			clock-names = "otg";
749b4b31a7cSZhangfei Gao			dr_mode = "otg";
750b4b31a7cSZhangfei Gao			g-use-dma;
751b4b31a7cSZhangfei Gao			g-rx-fifo-size = <512>;
752b4b31a7cSZhangfei Gao			g-np-tx-fifo-size = <128>;
753b4b31a7cSZhangfei Gao			g-tx-fifo-size = <128 128 128 128 128 128>;
754b4b31a7cSZhangfei Gao			interrupts = <0 77 0x4>;
755b4b31a7cSZhangfei Gao		};
75686073570SLeo Yan
75786073570SLeo Yan		mailbox: mailbox@f7510000 {
75886073570SLeo Yan			compatible = "hisilicon,hi6220-mbox";
75986073570SLeo Yan			reg = <0x0 0xf7510000 0x0 0x1000>, /* IPC_S */
76086073570SLeo Yan			      <0x0 0x06dff800 0x0 0x0800>; /* Mailbox buffer */
76186073570SLeo Yan			interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
76286073570SLeo Yan			#mbox-cells = <3>;
76386073570SLeo Yan		};
764d6b259d4SXinwei Kong
765d6b259d4SXinwei Kong		dwmmc_0: dwmmc0@f723d000 {
766d6b259d4SXinwei Kong			compatible = "hisilicon,hi6220-dw-mshc";
767d6b259d4SXinwei Kong			num-slots = <0x1>;
768d6b259d4SXinwei Kong			cap-mmc-highspeed;
769d6b259d4SXinwei Kong			non-removable;
770d6b259d4SXinwei Kong			reg = <0x0 0xf723d000 0x0 0x1000>;
771d6b259d4SXinwei Kong			interrupts = <0x0 0x48 0x4>;
772d6b259d4SXinwei Kong			clocks = <&sys_ctrl 2>, <&sys_ctrl 1>;
773d6b259d4SXinwei Kong			clock-names = "ciu", "biu";
774d6b259d4SXinwei Kong			bus-width = <0x8>;
775d6b259d4SXinwei Kong			vmmc-supply = <&ldo19>;
776d6b259d4SXinwei Kong			pinctrl-names = "default";
777d6b259d4SXinwei Kong			pinctrl-0 = <&emmc_pmx_func &emmc_clk_cfg_func
778d6b259d4SXinwei Kong				     &emmc_cfg_func &emmc_rst_cfg_func>;
779d6b259d4SXinwei Kong		};
780d6b259d4SXinwei Kong
781d6b259d4SXinwei Kong		dwmmc_1: dwmmc1@f723e000 {
782d6b259d4SXinwei Kong			compatible = "hisilicon,hi6220-dw-mshc";
783d6b259d4SXinwei Kong			num-slots = <0x1>;
784d6b259d4SXinwei Kong			card-detect-delay = <200>;
785d6b259d4SXinwei Kong			hisilicon,peripheral-syscon = <&ao_ctrl>;
786d6b259d4SXinwei Kong			cap-sd-highspeed;
787d6b259d4SXinwei Kong			reg = <0x0 0xf723e000 0x0 0x1000>;
788d6b259d4SXinwei Kong			interrupts = <0x0 0x49 0x4>;
789d6b259d4SXinwei Kong			#address-cells = <0x1>;
790d6b259d4SXinwei Kong			#size-cells = <0x0>;
791d6b259d4SXinwei Kong			clocks = <&sys_ctrl 4>, <&sys_ctrl 3>;
792d6b259d4SXinwei Kong			clock-names = "ciu", "biu";
793d6b259d4SXinwei Kong			vqmmc-supply = <&ldo7>;
794d6b259d4SXinwei Kong			vmmc-supply = <&ldo10>;
795d6b259d4SXinwei Kong			bus-width = <0x4>;
796d6b259d4SXinwei Kong			disable-wp;
797d6b259d4SXinwei Kong			cd-gpios = <&gpio1 0 1>;
798d6b259d4SXinwei Kong			pinctrl-names = "default", "idle";
799d6b259d4SXinwei Kong			pinctrl-0 = <&sd_pmx_func &sd_clk_cfg_func &sd_cfg_func>;
800d6b259d4SXinwei Kong			pinctrl-1 = <&sd_pmx_idle &sd_clk_cfg_idle &sd_cfg_idle>;
801d6b259d4SXinwei Kong		};
802d6b259d4SXinwei Kong
803d6b259d4SXinwei Kong		dwmmc_2: dwmmc2@f723f000 {
804d6b259d4SXinwei Kong			compatible = "hisilicon,hi6220-dw-mshc";
805d6b259d4SXinwei Kong			num-slots = <0x1>;
806d6b259d4SXinwei Kong			reg = <0x0 0xf723f000 0x0 0x1000>;
807d6b259d4SXinwei Kong			interrupts = <0x0 0x4a 0x4>;
808d6b259d4SXinwei Kong			clocks = <&sys_ctrl HI6220_MMC2_CIUCLK>, <&sys_ctrl HI6220_MMC2_CLK>;
809d6b259d4SXinwei Kong			clock-names = "ciu", "biu";
810d6b259d4SXinwei Kong			bus-width = <0x4>;
811d6b259d4SXinwei Kong			broken-cd;
812d6b259d4SXinwei Kong			pinctrl-names = "default", "idle";
813d6b259d4SXinwei Kong			pinctrl-0 = <&sdio_pmx_func &sdio_clk_cfg_func &sdio_cfg_func>;
814d6b259d4SXinwei Kong			pinctrl-1 = <&sdio_pmx_idle &sdio_clk_cfg_idle &sdio_cfg_idle>;
815d6b259d4SXinwei Kong		};
8162158ab08SLeo Yan
8172158ab08SLeo Yan		tsensor: tsensor@0,f7030700 {
8182158ab08SLeo Yan			compatible = "hisilicon,tsensor";
8192158ab08SLeo Yan			reg = <0x0 0xf7030700 0x0 0x1000>;
8202158ab08SLeo Yan			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
8212158ab08SLeo Yan			clocks = <&sys_ctrl 22>;
8222158ab08SLeo Yan			clock-names = "thermal_clk";
8232158ab08SLeo Yan			#thermal-sensor-cells = <1>;
8242158ab08SLeo Yan		};
825cd0b69ecSLeo Yan
826cd0b69ecSLeo Yan		thermal-zones {
827cd0b69ecSLeo Yan
828cd0b69ecSLeo Yan			cls0: cls0 {
829cd0b69ecSLeo Yan				polling-delay = <1000>;
830cd0b69ecSLeo Yan				polling-delay-passive = <100>;
831cd0b69ecSLeo Yan				sustainable-power = <3326>;
832cd0b69ecSLeo Yan
833cd0b69ecSLeo Yan				/* sensor ID */
834cd0b69ecSLeo Yan				thermal-sensors = <&tsensor 2>;
835cd0b69ecSLeo Yan
836cd0b69ecSLeo Yan				trips {
837cd0b69ecSLeo Yan					threshold: trip-point@0 {
838cd0b69ecSLeo Yan						temperature = <65000>;
839cd0b69ecSLeo Yan						hysteresis = <0>;
840cd0b69ecSLeo Yan						type = "passive";
841cd0b69ecSLeo Yan					};
842cd0b69ecSLeo Yan
843cd0b69ecSLeo Yan					target: trip-point@1 {
844cd0b69ecSLeo Yan						temperature = <75000>;
845cd0b69ecSLeo Yan						hysteresis = <0>;
846cd0b69ecSLeo Yan						type = "passive";
847cd0b69ecSLeo Yan					};
848cd0b69ecSLeo Yan				};
849cd0b69ecSLeo Yan
850cd0b69ecSLeo Yan				cooling-maps {
851cd0b69ecSLeo Yan					map0 {
852cd0b69ecSLeo Yan						trip = <&target>;
853cd0b69ecSLeo Yan						cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
854cd0b69ecSLeo Yan					};
855cd0b69ecSLeo Yan				};
856cd0b69ecSLeo Yan			};
857cd0b69ecSLeo Yan		};
858*3814b61bSXinliang Liu
859*3814b61bSXinliang Liu		ade: ade@f4100000 {
860*3814b61bSXinliang Liu			compatible = "hisilicon,hi6220-ade";
861*3814b61bSXinliang Liu			reg = <0x0 0xf4100000 0x0 0x7800>;
862*3814b61bSXinliang Liu			reg-names = "ade_base";
863*3814b61bSXinliang Liu			hisilicon,noc-syscon = <&medianoc_ade>;
864*3814b61bSXinliang Liu			resets = <&media_ctrl MEDIA_ADE>;
865*3814b61bSXinliang Liu			interrupts = <0 115 4>; /* ldi interrupt */
866*3814b61bSXinliang Liu
867*3814b61bSXinliang Liu			clocks = <&media_ctrl HI6220_ADE_CORE>,
868*3814b61bSXinliang Liu				 <&media_ctrl HI6220_CODEC_JPEG>,
869*3814b61bSXinliang Liu				 <&media_ctrl HI6220_ADE_PIX_SRC>;
870*3814b61bSXinliang Liu			/*clock name*/
871*3814b61bSXinliang Liu			clock-names  = "clk_ade_core",
872*3814b61bSXinliang Liu				       "clk_codec_jpeg",
873*3814b61bSXinliang Liu				       "clk_ade_pix";
874*3814b61bSXinliang Liu
875*3814b61bSXinliang Liu			assigned-clocks = <&media_ctrl HI6220_ADE_CORE>,
876*3814b61bSXinliang Liu				<&media_ctrl HI6220_CODEC_JPEG>;
877*3814b61bSXinliang Liu			assigned-clock-rates = <360000000>, <288000000>;
878*3814b61bSXinliang Liu			dma-coherent;
879*3814b61bSXinliang Liu			status = "disabled";
880*3814b61bSXinliang Liu
881*3814b61bSXinliang Liu			port {
882*3814b61bSXinliang Liu				ade_out: endpoint {
883*3814b61bSXinliang Liu					remote-endpoint = <&dsi_in>;
884*3814b61bSXinliang Liu				};
885*3814b61bSXinliang Liu			};
886*3814b61bSXinliang Liu		};
887*3814b61bSXinliang Liu
888*3814b61bSXinliang Liu		dsi: dsi@f4107800 {
889*3814b61bSXinliang Liu			compatible = "hisilicon,hi6220-dsi";
890*3814b61bSXinliang Liu			reg = <0x0 0xf4107800 0x0 0x100>;
891*3814b61bSXinliang Liu			clocks = <&media_ctrl  HI6220_DSI_PCLK>;
892*3814b61bSXinliang Liu			clock-names = "pclk";
893*3814b61bSXinliang Liu			status = "disabled";
894*3814b61bSXinliang Liu
895*3814b61bSXinliang Liu			ports {
896*3814b61bSXinliang Liu				#address-cells = <1>;
897*3814b61bSXinliang Liu				#size-cells = <0>;
898*3814b61bSXinliang Liu
899*3814b61bSXinliang Liu				/* 0 for input port */
900*3814b61bSXinliang Liu				port@0 {
901*3814b61bSXinliang Liu					reg = <0>;
902*3814b61bSXinliang Liu					dsi_in: endpoint {
903*3814b61bSXinliang Liu						remote-endpoint = <&ade_out>;
904*3814b61bSXinliang Liu					};
905*3814b61bSXinliang Liu				};
906*3814b61bSXinliang Liu			};
907*3814b61bSXinliang Liu		};
90886e8f528SBintian Wang	};
90986e8f528SBintian Wang};
910