xref: /linux/scripts/dtc/include-prefixes/arm64/hisilicon/hi6220.dtsi (revision 621cde16e49b3ecf7d59a8106a20aaebfb4a59a9)
1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0
286e8f528SBintian Wang/*
386e8f528SBintian Wang * dts file for Hisilicon Hi6220 SoC
486e8f528SBintian Wang *
5e3211e41SHao Fang * Copyright (C) 2015, HiSilicon Ltd.
686e8f528SBintian Wang */
786e8f528SBintian Wang
886e8f528SBintian Wang#include <dt-bindings/interrupt-controller/arm-gic.h>
9339d00cbSXinliang Liu#include <dt-bindings/reset/hisi,hi6220-resets.h>
10a362ec8fSTyler Baker#include <dt-bindings/clock/hi6220-clock.h>
11379e9bf5SZhong Kaihua#include <dt-bindings/pinctrl/hisi.h>
12cd0b69ecSLeo Yan#include <dt-bindings/thermal/thermal.h>
1386e8f528SBintian Wang
1486e8f528SBintian Wang/ {
1586e8f528SBintian Wang	compatible = "hisilicon,hi6220";
1686e8f528SBintian Wang	interrupt-parent = <&gic>;
1786e8f528SBintian Wang	#address-cells = <2>;
1886e8f528SBintian Wang	#size-cells = <2>;
1986e8f528SBintian Wang
2086e8f528SBintian Wang	psci {
2186e8f528SBintian Wang		compatible = "arm,psci-0.2";
2286e8f528SBintian Wang		method = "smc";
2386e8f528SBintian Wang	};
2486e8f528SBintian Wang
2586e8f528SBintian Wang	cpus {
2686e8f528SBintian Wang		#address-cells = <2>;
2786e8f528SBintian Wang		#size-cells = <0>;
2886e8f528SBintian Wang
2986e8f528SBintian Wang		cpu-map {
3086e8f528SBintian Wang			cluster0 {
3186e8f528SBintian Wang				core0 {
3286e8f528SBintian Wang					cpu = <&cpu0>;
3386e8f528SBintian Wang				};
3486e8f528SBintian Wang				core1 {
3586e8f528SBintian Wang					cpu = <&cpu1>;
3686e8f528SBintian Wang				};
3786e8f528SBintian Wang				core2 {
3886e8f528SBintian Wang					cpu = <&cpu2>;
3986e8f528SBintian Wang				};
4086e8f528SBintian Wang				core3 {
4186e8f528SBintian Wang					cpu = <&cpu3>;
4286e8f528SBintian Wang				};
4386e8f528SBintian Wang			};
4486e8f528SBintian Wang			cluster1 {
4586e8f528SBintian Wang				core0 {
4686e8f528SBintian Wang					cpu = <&cpu4>;
4786e8f528SBintian Wang				};
4886e8f528SBintian Wang				core1 {
4986e8f528SBintian Wang					cpu = <&cpu5>;
5086e8f528SBintian Wang				};
5186e8f528SBintian Wang				core2 {
5286e8f528SBintian Wang					cpu = <&cpu6>;
5386e8f528SBintian Wang				};
5486e8f528SBintian Wang				core3 {
5586e8f528SBintian Wang					cpu = <&cpu7>;
5686e8f528SBintian Wang				};
5786e8f528SBintian Wang			};
5886e8f528SBintian Wang		};
5986e8f528SBintian Wang
6058fa29bfSLeo Yan		idle-states {
6158fa29bfSLeo Yan			entry-method = "psci";
6258fa29bfSLeo Yan
6358fa29bfSLeo Yan			CPU_SLEEP: cpu-sleep {
6458fa29bfSLeo Yan				compatible = "arm,idle-state";
6558fa29bfSLeo Yan				local-timer-stop;
6658fa29bfSLeo Yan				arm,psci-suspend-param = <0x0010000>;
6758fa29bfSLeo Yan				entry-latency-us = <700>;
6858fa29bfSLeo Yan				exit-latency-us = <250>;
6958fa29bfSLeo Yan				min-residency-us = <1000>;
7058fa29bfSLeo Yan			};
7158fa29bfSLeo Yan
7258fa29bfSLeo Yan			CLUSTER_SLEEP: cluster-sleep {
7358fa29bfSLeo Yan				compatible = "arm,idle-state";
7458fa29bfSLeo Yan				local-timer-stop;
7558fa29bfSLeo Yan				arm,psci-suspend-param = <0x1010000>;
7658fa29bfSLeo Yan				entry-latency-us = <1000>;
7758fa29bfSLeo Yan				exit-latency-us = <700>;
7858fa29bfSLeo Yan				min-residency-us = <2700>;
7958fa29bfSLeo Yan				wakeup-latency-us = <1500>;
8058fa29bfSLeo Yan			};
8158fa29bfSLeo Yan		};
8258fa29bfSLeo Yan
8386e8f528SBintian Wang		cpu0: cpu@0 {
8431af04cdSRob Herring			compatible = "arm,cortex-a53";
8586e8f528SBintian Wang			device_type = "cpu";
8686e8f528SBintian Wang			reg = <0x0 0x0>;
8786e8f528SBintian Wang			enable-method = "psci";
8864851603SLeo Yan			next-level-cache = <&CLUSTER0_L2>;
8999860540SLeo Yan			clocks = <&stub_clock 0>;
9099860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
9158fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
924d4585c2SViresh Kumar			#cooling-cells = <2>; /* min followed by max */
93cd0b69ecSLeo Yan			dynamic-power-coefficient = <311>;
9486e8f528SBintian Wang		};
9586e8f528SBintian Wang
9686e8f528SBintian Wang		cpu1: cpu@1 {
9731af04cdSRob Herring			compatible = "arm,cortex-a53";
9886e8f528SBintian Wang			device_type = "cpu";
9986e8f528SBintian Wang			reg = <0x0 0x1>;
10086e8f528SBintian Wang			enable-method = "psci";
10164851603SLeo Yan			next-level-cache = <&CLUSTER0_L2>;
102b27dedf5SViresh Kumar			clocks = <&stub_clock 0>;
10399860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
10458fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
1054d4585c2SViresh Kumar			#cooling-cells = <2>; /* min followed by max */
1064d4585c2SViresh Kumar			dynamic-power-coefficient = <311>;
10786e8f528SBintian Wang		};
10886e8f528SBintian Wang
10986e8f528SBintian Wang		cpu2: cpu@2 {
11031af04cdSRob Herring			compatible = "arm,cortex-a53";
11186e8f528SBintian Wang			device_type = "cpu";
11286e8f528SBintian Wang			reg = <0x0 0x2>;
11386e8f528SBintian Wang			enable-method = "psci";
11464851603SLeo Yan			next-level-cache = <&CLUSTER0_L2>;
115b27dedf5SViresh Kumar			clocks = <&stub_clock 0>;
11699860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
11758fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
1184d4585c2SViresh Kumar			#cooling-cells = <2>; /* min followed by max */
1194d4585c2SViresh Kumar			dynamic-power-coefficient = <311>;
12086e8f528SBintian Wang		};
12186e8f528SBintian Wang
12286e8f528SBintian Wang		cpu3: cpu@3 {
12331af04cdSRob Herring			compatible = "arm,cortex-a53";
12486e8f528SBintian Wang			device_type = "cpu";
12586e8f528SBintian Wang			reg = <0x0 0x3>;
12686e8f528SBintian Wang			enable-method = "psci";
12764851603SLeo Yan			next-level-cache = <&CLUSTER0_L2>;
128b27dedf5SViresh Kumar			clocks = <&stub_clock 0>;
12999860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
13058fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
1314d4585c2SViresh Kumar			#cooling-cells = <2>; /* min followed by max */
1324d4585c2SViresh Kumar			dynamic-power-coefficient = <311>;
13386e8f528SBintian Wang		};
13486e8f528SBintian Wang
13586e8f528SBintian Wang		cpu4: cpu@100 {
13631af04cdSRob Herring			compatible = "arm,cortex-a53";
13786e8f528SBintian Wang			device_type = "cpu";
13886e8f528SBintian Wang			reg = <0x0 0x100>;
13986e8f528SBintian Wang			enable-method = "psci";
14064851603SLeo Yan			next-level-cache = <&CLUSTER1_L2>;
141b27dedf5SViresh Kumar			clocks = <&stub_clock 0>;
14299860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
14358fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
1444d4585c2SViresh Kumar			#cooling-cells = <2>; /* min followed by max */
1454d4585c2SViresh Kumar			dynamic-power-coefficient = <311>;
14686e8f528SBintian Wang		};
14786e8f528SBintian Wang
14886e8f528SBintian Wang		cpu5: cpu@101 {
14931af04cdSRob Herring			compatible = "arm,cortex-a53";
15086e8f528SBintian Wang			device_type = "cpu";
15186e8f528SBintian Wang			reg = <0x0 0x101>;
15286e8f528SBintian Wang			enable-method = "psci";
15364851603SLeo Yan			next-level-cache = <&CLUSTER1_L2>;
154b27dedf5SViresh Kumar			clocks = <&stub_clock 0>;
15599860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
15658fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
1574d4585c2SViresh Kumar			#cooling-cells = <2>; /* min followed by max */
1584d4585c2SViresh Kumar			dynamic-power-coefficient = <311>;
15986e8f528SBintian Wang		};
16086e8f528SBintian Wang
16186e8f528SBintian Wang		cpu6: cpu@102 {
16231af04cdSRob Herring			compatible = "arm,cortex-a53";
16386e8f528SBintian Wang			device_type = "cpu";
16486e8f528SBintian Wang			reg = <0x0 0x102>;
16586e8f528SBintian Wang			enable-method = "psci";
16664851603SLeo Yan			next-level-cache = <&CLUSTER1_L2>;
167b27dedf5SViresh Kumar			clocks = <&stub_clock 0>;
16899860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
16958fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
1704d4585c2SViresh Kumar			#cooling-cells = <2>; /* min followed by max */
1714d4585c2SViresh Kumar			dynamic-power-coefficient = <311>;
17286e8f528SBintian Wang		};
17386e8f528SBintian Wang
17486e8f528SBintian Wang		cpu7: cpu@103 {
17531af04cdSRob Herring			compatible = "arm,cortex-a53";
17686e8f528SBintian Wang			device_type = "cpu";
17786e8f528SBintian Wang			reg = <0x0 0x103>;
17886e8f528SBintian Wang			enable-method = "psci";
17964851603SLeo Yan			next-level-cache = <&CLUSTER1_L2>;
180b27dedf5SViresh Kumar			clocks = <&stub_clock 0>;
18199860540SLeo Yan			operating-points-v2 = <&cpu_opp_table>;
18258fa29bfSLeo Yan			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
1834d4585c2SViresh Kumar			#cooling-cells = <2>; /* min followed by max */
1844d4585c2SViresh Kumar			dynamic-power-coefficient = <311>;
18586e8f528SBintian Wang		};
18664851603SLeo Yan
18764851603SLeo Yan		CLUSTER0_L2: l2-cache0 {
18864851603SLeo Yan			compatible = "cache";
1890de459a3SPierre Gondois			cache-level = <2>;
190a0936e9eSKrzysztof Kozlowski			cache-unified;
19164851603SLeo Yan		};
19264851603SLeo Yan
19364851603SLeo Yan		CLUSTER1_L2: l2-cache1 {
19464851603SLeo Yan			compatible = "cache";
1950de459a3SPierre Gondois			cache-level = <2>;
196a0936e9eSKrzysztof Kozlowski			cache-unified;
19764851603SLeo Yan		};
19886e8f528SBintian Wang	};
19986e8f528SBintian Wang
200dcc3f565SKrzysztof Kozlowski	cpu_opp_table: opp-table-0 {
20199860540SLeo Yan		compatible = "operating-points-v2";
20299860540SLeo Yan		opp-shared;
20399860540SLeo Yan
20499860540SLeo Yan		opp00 {
20599860540SLeo Yan			opp-hz = /bits/ 64 <208000000>;
20699860540SLeo Yan			opp-microvolt = <1040000>;
20799860540SLeo Yan			clock-latency-ns = <500000>;
20899860540SLeo Yan		};
20999860540SLeo Yan		opp01 {
21099860540SLeo Yan			opp-hz = /bits/ 64 <432000000>;
21199860540SLeo Yan			opp-microvolt = <1040000>;
21299860540SLeo Yan			clock-latency-ns = <500000>;
21399860540SLeo Yan		};
21499860540SLeo Yan		opp02 {
21599860540SLeo Yan			opp-hz = /bits/ 64 <729000000>;
21699860540SLeo Yan			opp-microvolt = <1090000>;
21799860540SLeo Yan			clock-latency-ns = <500000>;
21899860540SLeo Yan		};
21999860540SLeo Yan		opp03 {
22099860540SLeo Yan			opp-hz = /bits/ 64 <960000000>;
22199860540SLeo Yan			opp-microvolt = <1180000>;
22299860540SLeo Yan			clock-latency-ns = <500000>;
22399860540SLeo Yan		};
22499860540SLeo Yan		opp04 {
22599860540SLeo Yan			opp-hz = /bits/ 64 <1200000000>;
22699860540SLeo Yan			opp-microvolt = <1330000>;
22799860540SLeo Yan			clock-latency-ns = <500000>;
22899860540SLeo Yan		};
22999860540SLeo Yan	};
23099860540SLeo Yan
23186e8f528SBintian Wang	gic: interrupt-controller@f6801000 {
23286e8f528SBintian Wang		compatible = "arm,gic-400";
23386e8f528SBintian Wang		reg = <0x0 0xf6801000 0 0x1000>, /* GICD */
23486e8f528SBintian Wang		      <0x0 0xf6802000 0 0x2000>, /* GICC */
23586e8f528SBintian Wang		      <0x0 0xf6804000 0 0x2000>, /* GICH */
23686e8f528SBintian Wang		      <0x0 0xf6806000 0 0x2000>; /* GICV */
23786e8f528SBintian Wang		#address-cells = <0>;
23886e8f528SBintian Wang		#interrupt-cells = <3>;
23986e8f528SBintian Wang		interrupt-controller;
24086e8f528SBintian Wang		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
24186e8f528SBintian Wang	};
24286e8f528SBintian Wang
24386e8f528SBintian Wang	timer {
24486e8f528SBintian Wang		compatible = "arm,armv8-timer";
24586e8f528SBintian Wang		interrupt-parent = <&gic>;
24686e8f528SBintian Wang		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
24786e8f528SBintian Wang			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
24886e8f528SBintian Wang			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
24986e8f528SBintian Wang			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
25086e8f528SBintian Wang	};
25186e8f528SBintian Wang
25286e8f528SBintian Wang	soc {
25386e8f528SBintian Wang		compatible = "simple-bus";
25486e8f528SBintian Wang		#address-cells = <2>;
25586e8f528SBintian Wang		#size-cells = <2>;
25686e8f528SBintian Wang		ranges;
25786e8f528SBintian Wang
25899860540SLeo Yan		sram: sram@fff80000 {
25999860540SLeo Yan			compatible = "hisilicon,hi6220-sramctrl", "syscon";
26099860540SLeo Yan			reg = <0x0 0xfff80000 0x0 0x12000>;
26199860540SLeo Yan		};
26299860540SLeo Yan
26386e8f528SBintian Wang		ao_ctrl: ao_ctrl@f7800000 {
26486e8f528SBintian Wang			compatible = "hisilicon,hi6220-aoctrl", "syscon";
26586e8f528SBintian Wang			reg = <0x0 0xf7800000 0x0 0x2000>;
26686e8f528SBintian Wang			#clock-cells = <1>;
26737a92df9SPeter Griffin			#reset-cells = <1>;
26886e8f528SBintian Wang		};
26986e8f528SBintian Wang
27086e8f528SBintian Wang		sys_ctrl: sys_ctrl@f7030000 {
27186e8f528SBintian Wang			compatible = "hisilicon,hi6220-sysctrl", "syscon";
27286e8f528SBintian Wang			reg = <0x0 0xf7030000 0x0 0x2000>;
27386e8f528SBintian Wang			#clock-cells = <1>;
2743e14cd4cSChen Feng			#reset-cells = <1>;
27586e8f528SBintian Wang		};
27686e8f528SBintian Wang
27786e8f528SBintian Wang		media_ctrl: media_ctrl@f4410000 {
27886e8f528SBintian Wang			compatible = "hisilicon,hi6220-mediactrl", "syscon";
27986e8f528SBintian Wang			reg = <0x0 0xf4410000 0x0 0x1000>;
28086e8f528SBintian Wang			#clock-cells = <1>;
281339d00cbSXinliang Liu			#reset-cells = <1>;
28286e8f528SBintian Wang		};
28386e8f528SBintian Wang
28486e8f528SBintian Wang		pm_ctrl: pm_ctrl@f7032000 {
28586e8f528SBintian Wang			compatible = "hisilicon,hi6220-pmctrl", "syscon";
28686e8f528SBintian Wang			reg = <0x0 0xf7032000 0x0 0x1000>;
28786e8f528SBintian Wang			#clock-cells = <1>;
28886e8f528SBintian Wang		};
28986e8f528SBintian Wang
29094d2d94bSZhangfei Gao		acpu_sctrl: acpu_sctrl@f6504000 {
29194d2d94bSZhangfei Gao			compatible = "hisilicon,hi6220-acpu-sctrl", "syscon";
29294d2d94bSZhangfei Gao			reg = <0x0 0xf6504000 0x0 0x1000>;
29394d2d94bSZhangfei Gao			#clock-cells = <1>;
29494d2d94bSZhangfei Gao		};
29594d2d94bSZhangfei Gao
2963814b61bSXinliang Liu		medianoc_ade: medianoc_ade@f4520000 {
2973814b61bSXinliang Liu			compatible = "syscon";
2983814b61bSXinliang Liu			reg = <0x0 0xf4520000 0x0 0x4000>;
2993814b61bSXinliang Liu		};
3003814b61bSXinliang Liu
30199860540SLeo Yan		stub_clock: stub_clock {
30299860540SLeo Yan			compatible = "hisilicon,hi6220-stub-clk";
30399860540SLeo Yan			hisilicon,hi6220-clk-sram = <&sram>;
30499860540SLeo Yan			#clock-cells = <1>;
30599860540SLeo Yan			mbox-names = "mbox-tx";
30699860540SLeo Yan			mboxes = <&mailbox 1 0 11>;
30799860540SLeo Yan		};
30899860540SLeo Yan
3090f6b99d2SKrzysztof Kozlowski		uart0: serial@f8015000 {	/* console */
31086e8f528SBintian Wang			compatible = "arm,pl011", "arm,primecell";
31186e8f528SBintian Wang			reg = <0x0 0xf8015000 0x0 0x1000>;
31286e8f528SBintian Wang			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
313a362ec8fSTyler Baker			clocks = <&ao_ctrl HI6220_UART0_PCLK>,
314a362ec8fSTyler Baker				 <&ao_ctrl HI6220_UART0_PCLK>;
31586e8f528SBintian Wang			clock-names = "uartclk", "apb_pclk";
31686e8f528SBintian Wang		};
317a362ec8fSTyler Baker
3180f6b99d2SKrzysztof Kozlowski		uart1: serial@f7111000 {
319a362ec8fSTyler Baker			compatible = "arm,pl011", "arm,primecell";
320a362ec8fSTyler Baker			reg = <0x0 0xf7111000 0x0 0x1000>;
321a362ec8fSTyler Baker			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
322a362ec8fSTyler Baker			clocks = <&sys_ctrl HI6220_UART1_PCLK>,
323a362ec8fSTyler Baker				 <&sys_ctrl HI6220_UART1_PCLK>;
324a362ec8fSTyler Baker			clock-names = "uartclk", "apb_pclk";
325c2aad932SGuodong Xu			pinctrl-names = "default";
326c2aad932SGuodong Xu			pinctrl-0 = <&uart1_pmx_func &uart1_cfg_func1 &uart1_cfg_func2>;
32787988511SJohn Stultz			dmas = <&dma0 8 &dma0 9>;
32887988511SJohn Stultz			dma-names = "rx", "tx";
329a362ec8fSTyler Baker			status = "disabled";
330a362ec8fSTyler Baker		};
331a362ec8fSTyler Baker
3320f6b99d2SKrzysztof Kozlowski		uart2: serial@f7112000 {
333a362ec8fSTyler Baker			compatible = "arm,pl011", "arm,primecell";
334a362ec8fSTyler Baker			reg = <0x0 0xf7112000 0x0 0x1000>;
335a362ec8fSTyler Baker			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
336a362ec8fSTyler Baker			clocks = <&sys_ctrl HI6220_UART2_PCLK>,
337a362ec8fSTyler Baker				 <&sys_ctrl HI6220_UART2_PCLK>;
338a362ec8fSTyler Baker			clock-names = "uartclk", "apb_pclk";
339c2aad932SGuodong Xu			pinctrl-names = "default";
340c2aad932SGuodong Xu			pinctrl-0 = <&uart2_pmx_func &uart2_cfg_func>;
341a362ec8fSTyler Baker			status = "disabled";
342a362ec8fSTyler Baker		};
343a362ec8fSTyler Baker
3440f6b99d2SKrzysztof Kozlowski		uart3: serial@f7113000 {
345a362ec8fSTyler Baker			compatible = "arm,pl011", "arm,primecell";
346a362ec8fSTyler Baker			reg = <0x0 0xf7113000 0x0 0x1000>;
347a362ec8fSTyler Baker			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
348a362ec8fSTyler Baker			clocks = <&sys_ctrl HI6220_UART3_PCLK>,
349a362ec8fSTyler Baker				 <&sys_ctrl HI6220_UART3_PCLK>;
350a362ec8fSTyler Baker			clock-names = "uartclk", "apb_pclk";
351c2aad932SGuodong Xu			pinctrl-names = "default";
352c2aad932SGuodong Xu			pinctrl-0 = <&uart3_pmx_func &uart3_cfg_func>;
353c2aad932SGuodong Xu			status = "disabled";
354a362ec8fSTyler Baker		};
355a362ec8fSTyler Baker
3560f6b99d2SKrzysztof Kozlowski		uart4: serial@f7114000 {
357a362ec8fSTyler Baker			compatible = "arm,pl011", "arm,primecell";
358a362ec8fSTyler Baker			reg = <0x0 0xf7114000 0x0 0x1000>;
359a362ec8fSTyler Baker			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
360a362ec8fSTyler Baker			clocks = <&sys_ctrl HI6220_UART4_PCLK>,
361a362ec8fSTyler Baker				 <&sys_ctrl HI6220_UART4_PCLK>;
362a362ec8fSTyler Baker			clock-names = "uartclk", "apb_pclk";
363c2aad932SGuodong Xu			pinctrl-names = "default";
364c2aad932SGuodong Xu			pinctrl-0 = <&uart4_pmx_func &uart4_cfg_func>;
365a362ec8fSTyler Baker			status = "disabled";
366a362ec8fSTyler Baker		};
3679e927031SLeo Yan
3680cf6a8e2SJohn Stultz		dma0: dma@f7370000 {
3690cf6a8e2SJohn Stultz			compatible = "hisilicon,k3-dma-1.0";
3700cf6a8e2SJohn Stultz			reg = <0x0 0xf7370000 0x0 0x1000>;
3710cf6a8e2SJohn Stultz			#dma-cells = <1>;
3720cf6a8e2SJohn Stultz			dma-channels = <15>;
3730cf6a8e2SJohn Stultz			dma-requests = <32>;
3740cf6a8e2SJohn Stultz			interrupts = <0 84 4>;
3750cf6a8e2SJohn Stultz			clocks = <&sys_ctrl HI6220_EDMAC_ACLK>;
3760cf6a8e2SJohn Stultz			dma-no-cci;
3770cf6a8e2SJohn Stultz			dma-type = "hi6220_dma";
37864ea21e0SAdrian Schmutzler			status = "okay";
3790cf6a8e2SJohn Stultz		};
3800cf6a8e2SJohn Stultz
3819e927031SLeo Yan		dual_timer0: timer@f8008000 {
3829e927031SLeo Yan			compatible = "arm,sp804", "arm,primecell";
3839e927031SLeo Yan			reg = <0x0 0xf8008000 0x0 0x1000>;
3849e927031SLeo Yan			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
3859e927031SLeo Yan				     <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
3869e927031SLeo Yan			clocks = <&ao_ctrl HI6220_TIMER0_PCLK>,
3879e927031SLeo Yan				 <&ao_ctrl HI6220_TIMER0_PCLK>,
3889e927031SLeo Yan				 <&ao_ctrl HI6220_TIMER0_PCLK>;
3899e927031SLeo Yan			clock-names = "timer1", "timer2", "apb_pclk";
3909e927031SLeo Yan		};
391f2bfacf9SZhong Kaihua
392810bd15fSZhangfei Gao		rtc0: rtc@f8003000 {
393810bd15fSZhangfei Gao			compatible = "arm,pl031", "arm,primecell";
394810bd15fSZhangfei Gao			reg = <0x0 0xf8003000 0x0 0x1000>;
395810bd15fSZhangfei Gao			interrupts = <0 12 4>;
396810bd15fSZhangfei Gao			clocks = <&ao_ctrl HI6220_RTC0_PCLK>;
397810bd15fSZhangfei Gao			clock-names = "apb_pclk";
398810bd15fSZhangfei Gao		};
399810bd15fSZhangfei Gao
400810bd15fSZhangfei Gao		rtc1: rtc@f8004000 {
401810bd15fSZhangfei Gao			compatible = "arm,pl031", "arm,primecell";
402810bd15fSZhangfei Gao			reg = <0x0 0xf8004000 0x0 0x1000>;
403810bd15fSZhangfei Gao			interrupts = <0 8 4>;
404810bd15fSZhangfei Gao			clocks = <&ao_ctrl HI6220_RTC1_PCLK>;
405810bd15fSZhangfei Gao			clock-names = "apb_pclk";
406810bd15fSZhangfei Gao		};
407810bd15fSZhangfei Gao
408379e9bf5SZhong Kaihua		pmx0: pinmux@f7010000 {
409379e9bf5SZhong Kaihua			compatible = "pinctrl-single";
410379e9bf5SZhong Kaihua			reg = <0x0 0xf7010000  0x0 0x27c>;
411379e9bf5SZhong Kaihua			#address-cells = <1>;
41235e6bcd1STony Lindgren			#size-cells = <0>;
413be76fd31STony Lindgren			#pinctrl-cells = <1>;
414379e9bf5SZhong Kaihua			#gpio-range-cells = <3>;
415379e9bf5SZhong Kaihua			pinctrl-single,register-width = <32>;
416379e9bf5SZhong Kaihua			pinctrl-single,function-mask = <7>;
417379e9bf5SZhong Kaihua			pinctrl-single,gpio-range = <
418379e9bf5SZhong Kaihua				&range  80  8 MUX_M0 /* gpio  3: [0..7] */
419379e9bf5SZhong Kaihua				&range  88  8 MUX_M0 /* gpio  4: [0..7] */
420379e9bf5SZhong Kaihua				&range  96  8 MUX_M0 /* gpio  5: [0..7] */
421379e9bf5SZhong Kaihua				&range 104  8 MUX_M0 /* gpio  6: [0..7] */
422379e9bf5SZhong Kaihua				&range 112  8 MUX_M0 /* gpio  7: [0..7] */
423379e9bf5SZhong Kaihua				&range 120  2 MUX_M0 /* gpio  8: [0..1] */
424379e9bf5SZhong Kaihua				&range   2  6 MUX_M1 /* gpio  8: [2..7] */
425379e9bf5SZhong Kaihua				&range   8  8 MUX_M1 /* gpio  9: [0..7] */
426379e9bf5SZhong Kaihua				&range   0  1 MUX_M1 /* gpio 10: [0]    */
427379e9bf5SZhong Kaihua				&range  16  7 MUX_M1 /* gpio 10: [1..7] */
428379e9bf5SZhong Kaihua				&range  23  3 MUX_M1 /* gpio 11: [0..2] */
429379e9bf5SZhong Kaihua				&range  28  5 MUX_M1 /* gpio 11: [3..7] */
430379e9bf5SZhong Kaihua				&range  33  3 MUX_M1 /* gpio 12: [0..2] */
431379e9bf5SZhong Kaihua				&range  43  5 MUX_M1 /* gpio 12: [3..7] */
432379e9bf5SZhong Kaihua				&range  48  8 MUX_M1 /* gpio 13: [0..7] */
433379e9bf5SZhong Kaihua				&range  56  8 MUX_M1 /* gpio 14: [0..7] */
434379e9bf5SZhong Kaihua				&range  74  6 MUX_M1 /* gpio 15: [0..5] */
435379e9bf5SZhong Kaihua				&range 122  1 MUX_M1 /* gpio 15: [6]    */
436379e9bf5SZhong Kaihua				&range 126  1 MUX_M1 /* gpio 15: [7]    */
437379e9bf5SZhong Kaihua				&range 127  8 MUX_M1 /* gpio 16: [0..7] */
438379e9bf5SZhong Kaihua				&range 135  8 MUX_M1 /* gpio 17: [0..7] */
439379e9bf5SZhong Kaihua				&range 143  8 MUX_M1 /* gpio 18: [0..7] */
440379e9bf5SZhong Kaihua				&range 151  8 MUX_M1 /* gpio 19: [0..7] */
441379e9bf5SZhong Kaihua			>;
442379e9bf5SZhong Kaihua			range: gpio-range {
443379e9bf5SZhong Kaihua				#pinctrl-single,gpio-range-cells = <3>;
444379e9bf5SZhong Kaihua			};
445379e9bf5SZhong Kaihua		};
446379e9bf5SZhong Kaihua
447379e9bf5SZhong Kaihua		pmx1: pinmux@f7010800 {
448379e9bf5SZhong Kaihua			compatible = "pinconf-single";
449379e9bf5SZhong Kaihua			reg = <0x0 0xf7010800 0x0 0x28c>;
450379e9bf5SZhong Kaihua			#address-cells = <1>;
45135e6bcd1STony Lindgren			#size-cells = <0>;
452be76fd31STony Lindgren			#pinctrl-cells = <1>;
453379e9bf5SZhong Kaihua			pinctrl-single,register-width = <32>;
454379e9bf5SZhong Kaihua		};
455379e9bf5SZhong Kaihua
456379e9bf5SZhong Kaihua		pmx2: pinmux@f8001800 {
457379e9bf5SZhong Kaihua			compatible = "pinconf-single";
458379e9bf5SZhong Kaihua			reg = <0x0 0xf8001800 0x0 0x78>;
459379e9bf5SZhong Kaihua			#address-cells = <1>;
46035e6bcd1STony Lindgren			#size-cells = <0>;
461be76fd31STony Lindgren			#pinctrl-cells = <1>;
462379e9bf5SZhong Kaihua			pinctrl-single,register-width = <32>;
463379e9bf5SZhong Kaihua		};
464379e9bf5SZhong Kaihua
465f2bfacf9SZhong Kaihua		gpio0: gpio@f8011000 {
466f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
467f2bfacf9SZhong Kaihua			reg = <0x0 0xf8011000 0x0 0x1000>;
468f2bfacf9SZhong Kaihua			interrupts = <0 52 0x4>;
469f2bfacf9SZhong Kaihua			gpio-controller;
470f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
471f2bfacf9SZhong Kaihua			interrupt-controller;
472f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
473f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
474f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
475f2bfacf9SZhong Kaihua		};
476f2bfacf9SZhong Kaihua
477f2bfacf9SZhong Kaihua		gpio1: gpio@f8012000 {
478f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
479f2bfacf9SZhong Kaihua			reg = <0x0 0xf8012000 0x0 0x1000>;
480f2bfacf9SZhong Kaihua			interrupts = <0 53 0x4>;
481f2bfacf9SZhong Kaihua			gpio-controller;
482f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
483f2bfacf9SZhong Kaihua			interrupt-controller;
484f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
485f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
486f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
487f2bfacf9SZhong Kaihua		};
488f2bfacf9SZhong Kaihua
489f2bfacf9SZhong Kaihua		gpio2: gpio@f8013000 {
490f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
491f2bfacf9SZhong Kaihua			reg = <0x0 0xf8013000 0x0 0x1000>;
492f2bfacf9SZhong Kaihua			interrupts = <0 54 0x4>;
493f2bfacf9SZhong Kaihua			gpio-controller;
494f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
495f2bfacf9SZhong Kaihua			interrupt-controller;
496f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
497f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
498f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
499f2bfacf9SZhong Kaihua		};
500f2bfacf9SZhong Kaihua
501f2bfacf9SZhong Kaihua		gpio3: gpio@f8014000 {
502f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
503f2bfacf9SZhong Kaihua			reg = <0x0 0xf8014000 0x0 0x1000>;
504f2bfacf9SZhong Kaihua			interrupts = <0 55 0x4>;
505f2bfacf9SZhong Kaihua			gpio-controller;
506f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
507379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 80 8>;
508f2bfacf9SZhong Kaihua			interrupt-controller;
509f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
510f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
511f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
512f2bfacf9SZhong Kaihua		};
513f2bfacf9SZhong Kaihua
514f2bfacf9SZhong Kaihua		gpio4: gpio@f7020000 {
515f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
516f2bfacf9SZhong Kaihua			reg = <0x0 0xf7020000 0x0 0x1000>;
517f2bfacf9SZhong Kaihua			interrupts = <0 56 0x4>;
518f2bfacf9SZhong Kaihua			gpio-controller;
519f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
520379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 88 8>;
521f2bfacf9SZhong Kaihua			interrupt-controller;
522f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
523f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
524f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
525f2bfacf9SZhong Kaihua		};
526f2bfacf9SZhong Kaihua
527f2bfacf9SZhong Kaihua		gpio5: gpio@f7021000 {
528f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
529f2bfacf9SZhong Kaihua			reg = <0x0 0xf7021000 0x0 0x1000>;
530f2bfacf9SZhong Kaihua			interrupts = <0 57 0x4>;
531f2bfacf9SZhong Kaihua			gpio-controller;
532f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
533379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 96 8>;
534f2bfacf9SZhong Kaihua			interrupt-controller;
535f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
536f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
537f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
538f2bfacf9SZhong Kaihua		};
539f2bfacf9SZhong Kaihua
540f2bfacf9SZhong Kaihua		gpio6: gpio@f7022000 {
541f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
542f2bfacf9SZhong Kaihua			reg = <0x0 0xf7022000 0x0 0x1000>;
543f2bfacf9SZhong Kaihua			interrupts = <0 58 0x4>;
544f2bfacf9SZhong Kaihua			gpio-controller;
545f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
546379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 104 8>;
547f2bfacf9SZhong Kaihua			interrupt-controller;
548f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
549f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
550f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
551f2bfacf9SZhong Kaihua		};
552f2bfacf9SZhong Kaihua
553f2bfacf9SZhong Kaihua		gpio7: gpio@f7023000 {
554f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
555f2bfacf9SZhong Kaihua			reg = <0x0 0xf7023000 0x0 0x1000>;
556f2bfacf9SZhong Kaihua			interrupts = <0 59 0x4>;
557f2bfacf9SZhong Kaihua			gpio-controller;
558f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
559379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 112 8>;
560f2bfacf9SZhong Kaihua			interrupt-controller;
561f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
562f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
563f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
564f2bfacf9SZhong Kaihua		};
565f2bfacf9SZhong Kaihua
566f2bfacf9SZhong Kaihua		gpio8: gpio@f7024000 {
567f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
568f2bfacf9SZhong Kaihua			reg = <0x0 0xf7024000 0x0 0x1000>;
569f2bfacf9SZhong Kaihua			interrupts = <0 60 0x4>;
570f2bfacf9SZhong Kaihua			gpio-controller;
571f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
572379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 120 2 &pmx0 2 2 6>;
573f2bfacf9SZhong Kaihua			interrupt-controller;
574f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
575f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
576f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
577f2bfacf9SZhong Kaihua		};
578f2bfacf9SZhong Kaihua
579f2bfacf9SZhong Kaihua		gpio9: gpio@f7025000 {
580f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
581f2bfacf9SZhong Kaihua			reg = <0x0 0xf7025000 0x0 0x1000>;
582f2bfacf9SZhong Kaihua			interrupts = <0 61 0x4>;
583f2bfacf9SZhong Kaihua			gpio-controller;
584f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
585379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 8 8>;
586f2bfacf9SZhong Kaihua			interrupt-controller;
587f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
588f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
589f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
590f2bfacf9SZhong Kaihua		};
591f2bfacf9SZhong Kaihua
592f2bfacf9SZhong Kaihua		gpio10: gpio@f7026000 {
593f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
594f2bfacf9SZhong Kaihua			reg = <0x0 0xf7026000 0x0 0x1000>;
595f2bfacf9SZhong Kaihua			interrupts = <0 62 0x4>;
596f2bfacf9SZhong Kaihua			gpio-controller;
597f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
598379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 0 1 &pmx0 1 16 7>;
599f2bfacf9SZhong Kaihua			interrupt-controller;
600f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
601f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
602f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
603f2bfacf9SZhong Kaihua		};
604f2bfacf9SZhong Kaihua
605f2bfacf9SZhong Kaihua		gpio11: gpio@f7027000 {
606f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
607f2bfacf9SZhong Kaihua			reg = <0x0 0xf7027000 0x0 0x1000>;
608f2bfacf9SZhong Kaihua			interrupts = <0 63 0x4>;
609f2bfacf9SZhong Kaihua			gpio-controller;
610f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
611379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 23 3 &pmx0 3 28 5>;
612f2bfacf9SZhong Kaihua			interrupt-controller;
613f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
614f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
615f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
616f2bfacf9SZhong Kaihua		};
617f2bfacf9SZhong Kaihua
618f2bfacf9SZhong Kaihua		gpio12: gpio@f7028000 {
619f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
620f2bfacf9SZhong Kaihua			reg = <0x0 0xf7028000 0x0 0x1000>;
621f2bfacf9SZhong Kaihua			interrupts = <0 64 0x4>;
622f2bfacf9SZhong Kaihua			gpio-controller;
623f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
624379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 33 3 &pmx0 3 43 5>;
625f2bfacf9SZhong Kaihua			interrupt-controller;
626f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
627f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
628f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
629f2bfacf9SZhong Kaihua		};
630f2bfacf9SZhong Kaihua
631f2bfacf9SZhong Kaihua		gpio13: gpio@f7029000 {
632f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
633f2bfacf9SZhong Kaihua			reg = <0x0 0xf7029000 0x0 0x1000>;
634f2bfacf9SZhong Kaihua			interrupts = <0 65 0x4>;
635f2bfacf9SZhong Kaihua			gpio-controller;
636379e9bf5SZhong Kaihua			#gpio-cells = <2>;
637379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 48 8>;
638f2bfacf9SZhong Kaihua			interrupt-controller;
639f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
640f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
641f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
642f2bfacf9SZhong Kaihua		};
643f2bfacf9SZhong Kaihua
644f2bfacf9SZhong Kaihua		gpio14: gpio@f702a000 {
645f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
646f2bfacf9SZhong Kaihua			reg = <0x0 0xf702a000 0x0 0x1000>;
647f2bfacf9SZhong Kaihua			interrupts = <0 66 0x4>;
648f2bfacf9SZhong Kaihua			gpio-controller;
649f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
650379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 56 8>;
651f2bfacf9SZhong Kaihua			interrupt-controller;
652f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
653f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
654f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
655f2bfacf9SZhong Kaihua		};
656f2bfacf9SZhong Kaihua
657f2bfacf9SZhong Kaihua		gpio15: gpio@f702b000 {
658f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
659f2bfacf9SZhong Kaihua			reg = <0x0 0xf702b000 0x0 0x1000>;
660f2bfacf9SZhong Kaihua			interrupts = <0 67 0x4>;
661f2bfacf9SZhong Kaihua			gpio-controller;
662f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
663379e9bf5SZhong Kaihua			gpio-ranges = <
664379e9bf5SZhong Kaihua				&pmx0 0 74 6
665379e9bf5SZhong Kaihua				&pmx0 6 122 1
666379e9bf5SZhong Kaihua				&pmx0 7 126 1
667379e9bf5SZhong Kaihua			>;
668f2bfacf9SZhong Kaihua			interrupt-controller;
669f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
670f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
671f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
672f2bfacf9SZhong Kaihua		};
673f2bfacf9SZhong Kaihua
674f2bfacf9SZhong Kaihua		gpio16: gpio@f702c000 {
675f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
676f2bfacf9SZhong Kaihua			reg = <0x0 0xf702c000 0x0 0x1000>;
677f2bfacf9SZhong Kaihua			interrupts = <0 68 0x4>;
678f2bfacf9SZhong Kaihua			gpio-controller;
679f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
680379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 127 8>;
681f2bfacf9SZhong Kaihua			interrupt-controller;
682f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
683f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
684f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
685f2bfacf9SZhong Kaihua		};
686f2bfacf9SZhong Kaihua
687f2bfacf9SZhong Kaihua		gpio17: gpio@f702d000 {
688f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
689f2bfacf9SZhong Kaihua			reg = <0x0 0xf702d000 0x0 0x1000>;
690f2bfacf9SZhong Kaihua			interrupts = <0 69 0x4>;
691f2bfacf9SZhong Kaihua			gpio-controller;
692f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
693379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 135 8>;
694f2bfacf9SZhong Kaihua			interrupt-controller;
695f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
696f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
697f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
698f2bfacf9SZhong Kaihua		};
699f2bfacf9SZhong Kaihua
700f2bfacf9SZhong Kaihua		gpio18: gpio@f702e000 {
701f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
702f2bfacf9SZhong Kaihua			reg = <0x0 0xf702e000 0x0 0x1000>;
703f2bfacf9SZhong Kaihua			interrupts = <0 70 0x4>;
704f2bfacf9SZhong Kaihua			gpio-controller;
705f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
706379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 143 8>;
707f2bfacf9SZhong Kaihua			interrupt-controller;
708f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
709f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
710f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
711f2bfacf9SZhong Kaihua		};
712f2bfacf9SZhong Kaihua
713f2bfacf9SZhong Kaihua		gpio19: gpio@f702f000 {
714f2bfacf9SZhong Kaihua			compatible = "arm,pl061", "arm,primecell";
715f2bfacf9SZhong Kaihua			reg = <0x0 0xf702f000 0x0 0x1000>;
716f2bfacf9SZhong Kaihua			interrupts = <0 71 0x4>;
717f2bfacf9SZhong Kaihua			gpio-controller;
718f2bfacf9SZhong Kaihua			#gpio-cells = <2>;
719379e9bf5SZhong Kaihua			gpio-ranges = <&pmx0 0 151 8>;
720f2bfacf9SZhong Kaihua			interrupt-controller;
721f2bfacf9SZhong Kaihua			#interrupt-cells = <2>;
722f2bfacf9SZhong Kaihua			clocks = <&ao_ctrl 2>;
723f2bfacf9SZhong Kaihua			clock-names = "apb_pclk";
724f2bfacf9SZhong Kaihua		};
72560dac1b1SZhong Kaihua
72660dac1b1SZhong Kaihua		spi0: spi@f7106000 {
72760dac1b1SZhong Kaihua			compatible = "arm,pl022", "arm,primecell";
72860dac1b1SZhong Kaihua			reg = <0x0 0xf7106000 0x0 0x1000>;
72960dac1b1SZhong Kaihua			interrupts = <0 50 4>;
73060dac1b1SZhong Kaihua			bus-id = <0>;
73160dac1b1SZhong Kaihua			enable-dma = <0>;
732c85731abSZhen Lei			clocks = <&sys_ctrl HI6220_SPI_CLK>, <&sys_ctrl HI6220_SPI_CLK>;
733c85731abSZhen Lei			clock-names = "sspclk", "apb_pclk";
73460dac1b1SZhong Kaihua			pinctrl-names = "default";
73560dac1b1SZhong Kaihua			pinctrl-0 = <&spi0_pmx_func &spi0_cfg_func>;
73660dac1b1SZhong Kaihua			num-cs = <1>;
73760dac1b1SZhong Kaihua			cs-gpios = <&gpio6 2 0>;
73860dac1b1SZhong Kaihua			status = "disabled";
73960dac1b1SZhong Kaihua		};
7405ff3a4ddSXinwei Kong
7415ff3a4ddSXinwei Kong		i2c0: i2c@f7100000 {
7425ff3a4ddSXinwei Kong			compatible = "snps,designware-i2c";
7435ff3a4ddSXinwei Kong			reg = <0x0 0xf7100000 0x0 0x1000>;
7445ff3a4ddSXinwei Kong			interrupts = <0 44 4>;
7455ff3a4ddSXinwei Kong			clocks = <&sys_ctrl HI6220_I2C0_CLK>;
7465ff3a4ddSXinwei Kong			i2c-sda-hold-time-ns = <300>;
7475ff3a4ddSXinwei Kong			pinctrl-names = "default";
7485ff3a4ddSXinwei Kong			pinctrl-0 = <&i2c0_pmx_func &i2c0_cfg_func>;
7495ff3a4ddSXinwei Kong			status = "disabled";
7505ff3a4ddSXinwei Kong		};
7515ff3a4ddSXinwei Kong
7525ff3a4ddSXinwei Kong		i2c1: i2c@f7101000 {
7535ff3a4ddSXinwei Kong			compatible = "snps,designware-i2c";
7545ff3a4ddSXinwei Kong			reg = <0x0 0xf7101000 0x0 0x1000>;
7555ff3a4ddSXinwei Kong			clocks = <&sys_ctrl HI6220_I2C1_CLK>;
7565ff3a4ddSXinwei Kong			interrupts = <0 45 4>;
7575ff3a4ddSXinwei Kong			i2c-sda-hold-time-ns = <300>;
7585ff3a4ddSXinwei Kong			pinctrl-names = "default";
7595ff3a4ddSXinwei Kong			pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>;
7605ff3a4ddSXinwei Kong			status = "disabled";
7615ff3a4ddSXinwei Kong		};
7625ff3a4ddSXinwei Kong
7635ff3a4ddSXinwei Kong		i2c2: i2c@f7102000 {
7645ff3a4ddSXinwei Kong			compatible = "snps,designware-i2c";
7655ff3a4ddSXinwei Kong			reg = <0x0 0xf7102000 0x0 0x1000>;
7665ff3a4ddSXinwei Kong			clocks = <&sys_ctrl HI6220_I2C2_CLK>;
7675ff3a4ddSXinwei Kong			interrupts = <0 46 4>;
7685ff3a4ddSXinwei Kong			i2c-sda-hold-time-ns = <300>;
7695ff3a4ddSXinwei Kong			pinctrl-names = "default";
7705ff3a4ddSXinwei Kong			pinctrl-0 = <&i2c2_pmx_func &i2c2_cfg_func>;
7715ff3a4ddSXinwei Kong			status = "disabled";
7725ff3a4ddSXinwei Kong		};
773b4b31a7cSZhangfei Gao
774b4b31a7cSZhangfei Gao		usb_phy: usbphy {
775b4b31a7cSZhangfei Gao			compatible = "hisilicon,hi6220-usb-phy";
776b4b31a7cSZhangfei Gao			#phy-cells = <0>;
7771b32a5ffSUlf Hansson			phy-supply = <&reg_5v_hub>;
778b4b31a7cSZhangfei Gao			hisilicon,peripheral-syscon = <&sys_ctrl>;
779b4b31a7cSZhangfei Gao		};
780b4b31a7cSZhangfei Gao
781b4b31a7cSZhangfei Gao		usb: usb@f72c0000 {
782b4b31a7cSZhangfei Gao			compatible = "hisilicon,hi6220-usb";
783b4b31a7cSZhangfei Gao			reg = <0x0 0xf72c0000 0x0 0x40000>;
784b4b31a7cSZhangfei Gao			phys = <&usb_phy>;
785b4b31a7cSZhangfei Gao			phy-names = "usb2-phy";
786b4b31a7cSZhangfei Gao			clocks = <&sys_ctrl HI6220_USBOTG_HCLK>;
787b4b31a7cSZhangfei Gao			clock-names = "otg";
788b4b31a7cSZhangfei Gao			dr_mode = "otg";
789b4b31a7cSZhangfei Gao			g-rx-fifo-size = <512>;
790b4b31a7cSZhangfei Gao			g-np-tx-fifo-size = <128>;
791341b26b7SShawn Guo			g-tx-fifo-size = <128 128 128 128 128 128 128 128
792341b26b7SShawn Guo					   16  16  16  16  16  16  16>;
793b4b31a7cSZhangfei Gao			interrupts = <0 77 0x4>;
794b4b31a7cSZhangfei Gao		};
79586073570SLeo Yan
79686073570SLeo Yan		mailbox: mailbox@f7510000 {
79786073570SLeo Yan			compatible = "hisilicon,hi6220-mbox";
79886073570SLeo Yan			reg = <0x0 0xf7510000 0x0 0x1000>, /* IPC_S */
79986073570SLeo Yan			      <0x0 0x06dff800 0x0 0x0800>; /* Mailbox buffer */
80086073570SLeo Yan			interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
80186073570SLeo Yan			#mbox-cells = <3>;
80286073570SLeo Yan		};
803d6b259d4SXinwei Kong
804d6b259d4SXinwei Kong		dwmmc_0: dwmmc0@f723d000 {
805d6b259d4SXinwei Kong			compatible = "hisilicon,hi6220-dw-mshc";
806d6b259d4SXinwei Kong			reg = <0x0 0xf723d000 0x0 0x1000>;
807d6b259d4SXinwei Kong			interrupts = <0x0 0x48 0x4>;
808d6b259d4SXinwei Kong			clocks = <&sys_ctrl 2>, <&sys_ctrl 1>;
809d6b259d4SXinwei Kong			clock-names = "ciu", "biu";
81094914fc8SGuodong Xu			resets = <&sys_ctrl PERIPH_RSTDIS0_MMC0>;
8110fbdf995SDaniel Lezcano			reset-names = "reset";
812d6b259d4SXinwei Kong			pinctrl-names = "default";
813d6b259d4SXinwei Kong			pinctrl-0 = <&emmc_pmx_func &emmc_clk_cfg_func
814d6b259d4SXinwei Kong				     &emmc_cfg_func &emmc_rst_cfg_func>;
815d6b259d4SXinwei Kong		};
816d6b259d4SXinwei Kong
817d6b259d4SXinwei Kong		dwmmc_1: dwmmc1@f723e000 {
818d6b259d4SXinwei Kong			compatible = "hisilicon,hi6220-dw-mshc";
819d6b259d4SXinwei Kong			hisilicon,peripheral-syscon = <&ao_ctrl>;
820d6b259d4SXinwei Kong			reg = <0x0 0xf723e000 0x0 0x1000>;
821d6b259d4SXinwei Kong			interrupts = <0x0 0x49 0x4>;
822d6b259d4SXinwei Kong			#address-cells = <0x1>;
823d6b259d4SXinwei Kong			#size-cells = <0x0>;
824d6b259d4SXinwei Kong			clocks = <&sys_ctrl 4>, <&sys_ctrl 3>;
825d6b259d4SXinwei Kong			clock-names = "ciu", "biu";
82694914fc8SGuodong Xu			resets = <&sys_ctrl PERIPH_RSTDIS0_MMC1>;
8270fbdf995SDaniel Lezcano			reset-names = "reset";
828d6b259d4SXinwei Kong			pinctrl-names = "default", "idle";
829d6b259d4SXinwei Kong			pinctrl-0 = <&sd_pmx_func &sd_clk_cfg_func &sd_cfg_func>;
830d6b259d4SXinwei Kong			pinctrl-1 = <&sd_pmx_idle &sd_clk_cfg_idle &sd_cfg_idle>;
831d6b259d4SXinwei Kong		};
832d6b259d4SXinwei Kong
833d6b259d4SXinwei Kong		dwmmc_2: dwmmc2@f723f000 {
834d6b259d4SXinwei Kong			compatible = "hisilicon,hi6220-dw-mshc";
835d6b259d4SXinwei Kong			reg = <0x0 0xf723f000 0x0 0x1000>;
836d6b259d4SXinwei Kong			interrupts = <0x0 0x4a 0x4>;
837d6b259d4SXinwei Kong			clocks = <&sys_ctrl HI6220_MMC2_CIUCLK>, <&sys_ctrl HI6220_MMC2_CLK>;
838d6b259d4SXinwei Kong			clock-names = "ciu", "biu";
83994914fc8SGuodong Xu			resets = <&sys_ctrl PERIPH_RSTDIS0_MMC2>;
8400fbdf995SDaniel Lezcano			reset-names = "reset";
841d6b259d4SXinwei Kong			pinctrl-names = "default", "idle";
842d6b259d4SXinwei Kong			pinctrl-0 = <&sdio_pmx_func &sdio_clk_cfg_func &sdio_cfg_func>;
843d6b259d4SXinwei Kong			pinctrl-1 = <&sdio_pmx_idle &sdio_clk_cfg_idle &sdio_cfg_idle>;
844d6b259d4SXinwei Kong		};
8452158ab08SLeo Yan
8466bbec98eSDmitry Shmidt		watchdog0: watchdog@f8005000 {
847894d4f1fSMichael Walle			compatible = "arm,sp805", "arm,primecell";
8486bbec98eSDmitry Shmidt			reg = <0x0 0xf8005000 0x0 0x1000>;
8496bbec98eSDmitry Shmidt			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
850a665b2c1SAndre Przywara			clocks = <&ao_ctrl HI6220_WDT0_PCLK>,
851a665b2c1SAndre Przywara				 <&ao_ctrl HI6220_WDT0_PCLK>;
852a665b2c1SAndre Przywara			clock-names = "wdog_clk", "apb_pclk";
8536bbec98eSDmitry Shmidt		};
8546bbec98eSDmitry Shmidt
855*5cff1135SKrzysztof Kozlowski		tsensor: tsensor@f7030700 {
8562158ab08SLeo Yan			compatible = "hisilicon,tsensor";
8572158ab08SLeo Yan			reg = <0x0 0xf7030700 0x0 0x1000>;
8582158ab08SLeo Yan			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
8592158ab08SLeo Yan			clocks = <&sys_ctrl 22>;
8602158ab08SLeo Yan			clock-names = "thermal_clk";
8612158ab08SLeo Yan			#thermal-sensor-cells = <1>;
8622158ab08SLeo Yan		};
863cd0b69ecSLeo Yan
8640cf6a8e2SJohn Stultz		i2s0: i2s@f7118000 {
8650cf6a8e2SJohn Stultz			compatible = "hisilicon,hi6210-i2s";
8660cf6a8e2SJohn Stultz			reg = <0x0 0xf7118000 0x0 0x8000>; /* i2s unit */
8670cf6a8e2SJohn Stultz			interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; /* 155 "DigACodec_intr"-32 */
8680cf6a8e2SJohn Stultz			clocks = <&sys_ctrl HI6220_DACODEC_PCLK>,
8690cf6a8e2SJohn Stultz				 <&sys_ctrl HI6220_BBPPLL0_DIV>;
8700cf6a8e2SJohn Stultz			clock-names = "dacodec", "i2s-base";
8710cf6a8e2SJohn Stultz			dmas = <&dma0 15 &dma0 14>;
8720cf6a8e2SJohn Stultz			dma-names = "rx", "tx";
8730cf6a8e2SJohn Stultz			hisilicon,sysctrl-syscon = <&sys_ctrl>;
8740cf6a8e2SJohn Stultz			#sound-dai-cells = <1>;
8750cf6a8e2SJohn Stultz		};
8760cf6a8e2SJohn Stultz
877cd0b69ecSLeo Yan		thermal-zones {
878cd0b69ecSLeo Yan
879dbbf5131SZhen Lei			cls0: cls0-thermal {
880cd0b69ecSLeo Yan				polling-delay = <1000>;
881cd0b69ecSLeo Yan				polling-delay-passive = <100>;
882cd0b69ecSLeo Yan				sustainable-power = <3326>;
883cd0b69ecSLeo Yan
884cd0b69ecSLeo Yan				/* sensor ID */
885cd0b69ecSLeo Yan				thermal-sensors = <&tsensor 2>;
886cd0b69ecSLeo Yan
887cd0b69ecSLeo Yan				trips {
888dbbf5131SZhen Lei					threshold: trip-point0 {
889cd0b69ecSLeo Yan						temperature = <65000>;
890cd0b69ecSLeo Yan						hysteresis = <0>;
891cd0b69ecSLeo Yan						type = "passive";
892cd0b69ecSLeo Yan					};
893cd0b69ecSLeo Yan
894dbbf5131SZhen Lei					target: trip-point1 {
895cd0b69ecSLeo Yan						temperature = <75000>;
896cd0b69ecSLeo Yan						hysteresis = <0>;
897cd0b69ecSLeo Yan						type = "passive";
898cd0b69ecSLeo Yan					};
899cd0b69ecSLeo Yan				};
900cd0b69ecSLeo Yan
901cd0b69ecSLeo Yan				cooling-maps {
902cd0b69ecSLeo Yan					map0 {
903cd0b69ecSLeo Yan						trip = <&target>;
9046ad5506eSViresh Kumar						cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
9056ad5506eSViresh Kumar								 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
9066ad5506eSViresh Kumar								 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
9076ad5506eSViresh Kumar								 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
9086ad5506eSViresh Kumar								 <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
9096ad5506eSViresh Kumar								 <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
9106ad5506eSViresh Kumar								 <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
9116ad5506eSViresh Kumar								 <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
912cd0b69ecSLeo Yan					};
913cd0b69ecSLeo Yan				};
914cd0b69ecSLeo Yan			};
915cd0b69ecSLeo Yan		};
9163814b61bSXinliang Liu
9173814b61bSXinliang Liu		ade: ade@f4100000 {
9183814b61bSXinliang Liu			compatible = "hisilicon,hi6220-ade";
9193814b61bSXinliang Liu			reg = <0x0 0xf4100000 0x0 0x7800>;
9203814b61bSXinliang Liu			reg-names = "ade_base";
9213814b61bSXinliang Liu			hisilicon,noc-syscon = <&medianoc_ade>;
9223814b61bSXinliang Liu			resets = <&media_ctrl MEDIA_ADE>;
9233814b61bSXinliang Liu			interrupts = <0 115 4>; /* ldi interrupt */
9243814b61bSXinliang Liu
9253814b61bSXinliang Liu			clocks = <&media_ctrl HI6220_ADE_CORE>,
9263814b61bSXinliang Liu				 <&media_ctrl HI6220_CODEC_JPEG>,
9273814b61bSXinliang Liu				 <&media_ctrl HI6220_ADE_PIX_SRC>;
9283814b61bSXinliang Liu			/*clock name*/
9293814b61bSXinliang Liu			clock-names  = "clk_ade_core",
9303814b61bSXinliang Liu				       "clk_codec_jpeg",
9313814b61bSXinliang Liu				       "clk_ade_pix";
9323814b61bSXinliang Liu
9333814b61bSXinliang Liu			assigned-clocks = <&media_ctrl HI6220_ADE_CORE>,
9343814b61bSXinliang Liu				<&media_ctrl HI6220_CODEC_JPEG>;
9353814b61bSXinliang Liu			assigned-clock-rates = <360000000>, <288000000>;
9363814b61bSXinliang Liu			dma-coherent;
9373814b61bSXinliang Liu			status = "disabled";
9383814b61bSXinliang Liu
9393814b61bSXinliang Liu			port {
9403814b61bSXinliang Liu				ade_out: endpoint {
9413814b61bSXinliang Liu					remote-endpoint = <&dsi_in>;
9423814b61bSXinliang Liu				};
9433814b61bSXinliang Liu			};
9443814b61bSXinliang Liu		};
9453814b61bSXinliang Liu
9463814b61bSXinliang Liu		dsi: dsi@f4107800 {
9473814b61bSXinliang Liu			compatible = "hisilicon,hi6220-dsi";
9483814b61bSXinliang Liu			reg = <0x0 0xf4107800 0x0 0x100>;
9493814b61bSXinliang Liu			clocks = <&media_ctrl  HI6220_DSI_PCLK>;
9503814b61bSXinliang Liu			clock-names = "pclk";
9513814b61bSXinliang Liu			status = "disabled";
9523814b61bSXinliang Liu
9533814b61bSXinliang Liu			ports {
9543814b61bSXinliang Liu				#address-cells = <1>;
9553814b61bSXinliang Liu				#size-cells = <0>;
9563814b61bSXinliang Liu
9573814b61bSXinliang Liu				/* 0 for input port */
9583814b61bSXinliang Liu				port@0 {
9593814b61bSXinliang Liu					reg = <0>;
9603814b61bSXinliang Liu					dsi_in: endpoint {
9613814b61bSXinliang Liu						remote-endpoint = <&ade_out>;
9623814b61bSXinliang Liu					};
9633814b61bSXinliang Liu				};
9643814b61bSXinliang Liu			};
9653814b61bSXinliang Liu		};
9664fcf9a62SLeo Yan
9674fcf9a62SLeo Yan		debug@f6590000 {
9684fcf9a62SLeo Yan			compatible = "arm,coresight-cpu-debug","arm,primecell";
9694fcf9a62SLeo Yan			reg = <0 0xf6590000 0 0x1000>;
9704fcf9a62SLeo Yan			clocks = <&sys_ctrl HI6220_DAPB_CLK>;
9714fcf9a62SLeo Yan			clock-names = "apb_pclk";
9724fcf9a62SLeo Yan			cpu = <&cpu0>;
9734fcf9a62SLeo Yan		};
9744fcf9a62SLeo Yan
9754fcf9a62SLeo Yan		debug@f6592000 {
9764fcf9a62SLeo Yan			compatible = "arm,coresight-cpu-debug","arm,primecell";
9774fcf9a62SLeo Yan			reg = <0 0xf6592000 0 0x1000>;
9784fcf9a62SLeo Yan			clocks = <&sys_ctrl HI6220_DAPB_CLK>;
9794fcf9a62SLeo Yan			clock-names = "apb_pclk";
9804fcf9a62SLeo Yan			cpu = <&cpu1>;
9814fcf9a62SLeo Yan		};
9824fcf9a62SLeo Yan
9834fcf9a62SLeo Yan		debug@f6594000 {
9844fcf9a62SLeo Yan			compatible = "arm,coresight-cpu-debug","arm,primecell";
9854fcf9a62SLeo Yan			reg = <0 0xf6594000 0 0x1000>;
9864fcf9a62SLeo Yan			clocks = <&sys_ctrl HI6220_DAPB_CLK>;
9874fcf9a62SLeo Yan			clock-names = "apb_pclk";
9884fcf9a62SLeo Yan			cpu = <&cpu2>;
9894fcf9a62SLeo Yan		};
9904fcf9a62SLeo Yan
9914fcf9a62SLeo Yan		debug@f6596000 {
9924fcf9a62SLeo Yan			compatible = "arm,coresight-cpu-debug","arm,primecell";
9934fcf9a62SLeo Yan			reg = <0 0xf6596000 0 0x1000>;
9944fcf9a62SLeo Yan			clocks = <&sys_ctrl HI6220_DAPB_CLK>;
9954fcf9a62SLeo Yan			clock-names = "apb_pclk";
9964fcf9a62SLeo Yan			cpu = <&cpu3>;
9974fcf9a62SLeo Yan		};
9984fcf9a62SLeo Yan
9994fcf9a62SLeo Yan		debug@f65d0000 {
10004fcf9a62SLeo Yan			compatible = "arm,coresight-cpu-debug","arm,primecell";
10014fcf9a62SLeo Yan			reg = <0 0xf65d0000 0 0x1000>;
10024fcf9a62SLeo Yan			clocks = <&sys_ctrl HI6220_DAPB_CLK>;
10034fcf9a62SLeo Yan			clock-names = "apb_pclk";
10044fcf9a62SLeo Yan			cpu = <&cpu4>;
10054fcf9a62SLeo Yan		};
10064fcf9a62SLeo Yan
10074fcf9a62SLeo Yan		debug@f65d2000 {
10084fcf9a62SLeo Yan			compatible = "arm,coresight-cpu-debug","arm,primecell";
10094fcf9a62SLeo Yan			reg = <0 0xf65d2000 0 0x1000>;
10104fcf9a62SLeo Yan			clocks = <&sys_ctrl HI6220_DAPB_CLK>;
10114fcf9a62SLeo Yan			clock-names = "apb_pclk";
10124fcf9a62SLeo Yan			cpu = <&cpu5>;
10134fcf9a62SLeo Yan		};
10144fcf9a62SLeo Yan
10154fcf9a62SLeo Yan		debug@f65d4000 {
10164fcf9a62SLeo Yan			compatible = "arm,coresight-cpu-debug","arm,primecell";
10174fcf9a62SLeo Yan			reg = <0 0xf65d4000 0 0x1000>;
10184fcf9a62SLeo Yan			clocks = <&sys_ctrl HI6220_DAPB_CLK>;
10194fcf9a62SLeo Yan			clock-names = "apb_pclk";
10204fcf9a62SLeo Yan			cpu = <&cpu6>;
10214fcf9a62SLeo Yan		};
10224fcf9a62SLeo Yan
10234fcf9a62SLeo Yan		debug@f65d6000 {
10244fcf9a62SLeo Yan			compatible = "arm,coresight-cpu-debug","arm,primecell";
10254fcf9a62SLeo Yan			reg = <0 0xf65d6000 0 0x1000>;
10264fcf9a62SLeo Yan			clocks = <&sys_ctrl HI6220_DAPB_CLK>;
10274fcf9a62SLeo Yan			clock-names = "apb_pclk";
10284fcf9a62SLeo Yan			cpu = <&cpu7>;
10294fcf9a62SLeo Yan		};
103037a92df9SPeter Griffin
103137a92df9SPeter Griffin		mali: gpu@f4080000 {
103237a92df9SPeter Griffin			compatible = "hisilicon,hi6220-mali", "arm,mali-450";
103337a92df9SPeter Griffin			reg = <0x0 0xf4080000 0x0 0x00040000>;
103437a92df9SPeter Griffin			interrupt-parent = <&gic>;
103537a92df9SPeter Griffin			interrupts = <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
103637a92df9SPeter Griffin				     <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
103737a92df9SPeter Griffin				     <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
103837a92df9SPeter Griffin				     <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
103937a92df9SPeter Griffin				     <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
104037a92df9SPeter Griffin				     <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
104137a92df9SPeter Griffin				     <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
104237a92df9SPeter Griffin				     <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
104337a92df9SPeter Griffin				     <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
104437a92df9SPeter Griffin				     <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
104537a92df9SPeter Griffin				     <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>;
104637a92df9SPeter Griffin
104737a92df9SPeter Griffin			interrupt-names = "gp",
104837a92df9SPeter Griffin					  "gpmmu",
104937a92df9SPeter Griffin					  "pp",
105037a92df9SPeter Griffin					  "pp0",
105137a92df9SPeter Griffin					  "ppmmu0",
105237a92df9SPeter Griffin					  "pp1",
105337a92df9SPeter Griffin					  "ppmmu1",
105437a92df9SPeter Griffin					  "pp2",
105537a92df9SPeter Griffin					  "ppmmu2",
105637a92df9SPeter Griffin					  "pp3",
105737a92df9SPeter Griffin					  "ppmmu3";
105837a92df9SPeter Griffin			clocks = <&media_ctrl HI6220_G3D_CLK>,
105937a92df9SPeter Griffin				 <&media_ctrl HI6220_G3D_PCLK>;
10601860a518SZhen Lei			clock-names = "bus", "core";
106137a92df9SPeter Griffin			assigned-clocks = <&media_ctrl HI6220_G3D_CLK>,
106237a92df9SPeter Griffin					  <&media_ctrl HI6220_G3D_PCLK>;
106337a92df9SPeter Griffin			assigned-clock-rates = <500000000>, <144000000>;
106437a92df9SPeter Griffin			reset-names = "ao_g3d", "media_g3d";
106537a92df9SPeter Griffin			resets = <&ao_ctrl AO_G3D>, <&media_ctrl MEDIA_G3D>;
106637a92df9SPeter Griffin		};
106786e8f528SBintian Wang	};
106886e8f528SBintian Wang};
10690b798427SLi Pengcheng
10700b798427SLi Pengcheng#include "hi6220-coresight.dtsi"
1071