xref: /rk3399_ARM-atf/fdts/fvp-foundation-gicv3-psci.dts (revision b1063d955bfed46de9e1bfdf58684f2da9837dcd)
143ef4f1eSHarry Liebel/*
2*b1063d95SAntonio Nino Diaz * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved.
343ef4f1eSHarry Liebel *
443ef4f1eSHarry Liebel * Redistribution and use in source and binary forms, with or without
543ef4f1eSHarry Liebel * modification, are permitted provided that the following conditions are met:
643ef4f1eSHarry Liebel *
743ef4f1eSHarry Liebel * Redistributions of source code must retain the above copyright notice, this
843ef4f1eSHarry Liebel * list of conditions and the following disclaimer.
943ef4f1eSHarry Liebel *
1043ef4f1eSHarry Liebel * Redistributions in binary form must reproduce the above copyright notice,
1143ef4f1eSHarry Liebel * this list of conditions and the following disclaimer in the documentation
1243ef4f1eSHarry Liebel * and/or other materials provided with the distribution.
1343ef4f1eSHarry Liebel *
143498859bSHarry Liebel * Neither the name of ARM nor the names of its contributors may be used
1543ef4f1eSHarry Liebel * to endorse or promote products derived from this software without specific
1643ef4f1eSHarry Liebel * prior written permission.
1743ef4f1eSHarry Liebel *
1843ef4f1eSHarry Liebel * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1943ef4f1eSHarry Liebel * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2043ef4f1eSHarry Liebel * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2143ef4f1eSHarry Liebel * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
2243ef4f1eSHarry Liebel * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2343ef4f1eSHarry Liebel * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2443ef4f1eSHarry Liebel * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2543ef4f1eSHarry Liebel * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2643ef4f1eSHarry Liebel * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2743ef4f1eSHarry Liebel * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2843ef4f1eSHarry Liebel * POSSIBILITY OF SUCH DAMAGE.
2943ef4f1eSHarry Liebel */
3043ef4f1eSHarry Liebel
3143ef4f1eSHarry Liebel/dts-v1/;
3243ef4f1eSHarry Liebel
3343ef4f1eSHarry Liebel/memreserve/ 0x80000000 0x00010000;
3443ef4f1eSHarry Liebel
3543ef4f1eSHarry Liebel/ {
3643ef4f1eSHarry Liebel};
3743ef4f1eSHarry Liebel
3843ef4f1eSHarry Liebel/ {
39f2199d95SHarry Liebel	model = "FVP Foundation";
4043ef4f1eSHarry Liebel	compatible = "arm,fvp-base", "arm,vexpress";
4143ef4f1eSHarry Liebel	interrupt-parent = <&gic>;
4243ef4f1eSHarry Liebel	#address-cells = <2>;
4343ef4f1eSHarry Liebel	#size-cells = <2>;
4443ef4f1eSHarry Liebel
4543ef4f1eSHarry Liebel	chosen { };
4643ef4f1eSHarry Liebel
4743ef4f1eSHarry Liebel	aliases {
4843ef4f1eSHarry Liebel		serial0 = &v2m_serial0;
4943ef4f1eSHarry Liebel		serial1 = &v2m_serial1;
5043ef4f1eSHarry Liebel		serial2 = &v2m_serial2;
5143ef4f1eSHarry Liebel		serial3 = &v2m_serial3;
5243ef4f1eSHarry Liebel	};
5343ef4f1eSHarry Liebel
5443ef4f1eSHarry Liebel	psci {
55e8ca7d1eSSoby Mathew		compatible = "arm,psci-1.0", "arm,psci-0.2", "arm,psci";
5643ef4f1eSHarry Liebel		method = "smc";
5743ef4f1eSHarry Liebel		cpu_suspend = <0xc4000001>;
5843ef4f1eSHarry Liebel		cpu_off = <0x84000002>;
5943ef4f1eSHarry Liebel		cpu_on = <0xc4000003>;
6043ef4f1eSHarry Liebel	};
6143ef4f1eSHarry Liebel
6243ef4f1eSHarry Liebel	cpus {
6343ef4f1eSHarry Liebel		#address-cells = <2>;
6443ef4f1eSHarry Liebel		#size-cells = <0>;
6543ef4f1eSHarry Liebel
66bab7bfd2SAchin Gupta		cpu-map {
67bab7bfd2SAchin Gupta			cluster0 {
68bab7bfd2SAchin Gupta				core0 {
69bab7bfd2SAchin Gupta					cpu = <&CPU0>;
70bab7bfd2SAchin Gupta				};
71bab7bfd2SAchin Gupta				core1 {
72bab7bfd2SAchin Gupta					cpu = <&CPU1>;
73bab7bfd2SAchin Gupta				};
74bab7bfd2SAchin Gupta				core2 {
75bab7bfd2SAchin Gupta					cpu = <&CPU2>;
76bab7bfd2SAchin Gupta				};
77bab7bfd2SAchin Gupta				core3 {
78bab7bfd2SAchin Gupta					cpu = <&CPU3>;
79bab7bfd2SAchin Gupta				};
80bab7bfd2SAchin Gupta			};
81bab7bfd2SAchin Gupta		};
82bab7bfd2SAchin Gupta
83bab7bfd2SAchin Gupta		idle-states {
84bab7bfd2SAchin Gupta			entry-method = "arm,psci";
85bab7bfd2SAchin Gupta
86bab7bfd2SAchin Gupta			CPU_SLEEP_0: cpu-sleep-0 {
87bab7bfd2SAchin Gupta				compatible = "arm,idle-state";
886136f372SJuan Castillo				local-timer-stop;
896136f372SJuan Castillo				arm,psci-suspend-param = <0x0010000>;
90bab7bfd2SAchin Gupta				entry-latency-us = <40>;
91bab7bfd2SAchin Gupta				exit-latency-us = <100>;
92bab7bfd2SAchin Gupta				min-residency-us = <150>;
93bab7bfd2SAchin Gupta			};
94bab7bfd2SAchin Gupta
95bab7bfd2SAchin Gupta			CLUSTER_SLEEP_0: cluster-sleep-0 {
96bab7bfd2SAchin Gupta				compatible = "arm,idle-state";
976136f372SJuan Castillo				local-timer-stop;
986136f372SJuan Castillo				arm,psci-suspend-param = <0x1010000>;
99bab7bfd2SAchin Gupta				entry-latency-us = <500>;
100bab7bfd2SAchin Gupta				exit-latency-us = <1000>;
101bab7bfd2SAchin Gupta				min-residency-us = <2500>;
102bab7bfd2SAchin Gupta			};
103bab7bfd2SAchin Gupta		};
104bab7bfd2SAchin Gupta
105bab7bfd2SAchin Gupta		CPU0:cpu@0 {
10643ef4f1eSHarry Liebel			device_type = "cpu";
10743ef4f1eSHarry Liebel			compatible = "arm,armv8";
10843ef4f1eSHarry Liebel			reg = <0x0 0x0>;
10943ef4f1eSHarry Liebel			enable-method = "psci";
110bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
111*b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
11243ef4f1eSHarry Liebel		};
113bab7bfd2SAchin Gupta
114bab7bfd2SAchin Gupta		CPU1:cpu@1 {
11543ef4f1eSHarry Liebel			device_type = "cpu";
11643ef4f1eSHarry Liebel			compatible = "arm,armv8";
11743ef4f1eSHarry Liebel			reg = <0x0 0x1>;
11843ef4f1eSHarry Liebel			enable-method = "psci";
119bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
120*b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
12143ef4f1eSHarry Liebel		};
122bab7bfd2SAchin Gupta
123bab7bfd2SAchin Gupta		CPU2:cpu@2 {
12443ef4f1eSHarry Liebel			device_type = "cpu";
12543ef4f1eSHarry Liebel			compatible = "arm,armv8";
12643ef4f1eSHarry Liebel			reg = <0x0 0x2>;
12743ef4f1eSHarry Liebel			enable-method = "psci";
128bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
129*b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
13043ef4f1eSHarry Liebel		};
131bab7bfd2SAchin Gupta
132bab7bfd2SAchin Gupta		CPU3:cpu@3 {
13343ef4f1eSHarry Liebel			device_type = "cpu";
13443ef4f1eSHarry Liebel			compatible = "arm,armv8";
13543ef4f1eSHarry Liebel			reg = <0x0 0x3>;
13643ef4f1eSHarry Liebel			enable-method = "psci";
137bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
138*b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
139*b1063d95SAntonio Nino Diaz		};
140*b1063d95SAntonio Nino Diaz
141*b1063d95SAntonio Nino Diaz		L2_0: l2-cache0 {
142*b1063d95SAntonio Nino Diaz			compatible = "cache";
14343ef4f1eSHarry Liebel		};
14443ef4f1eSHarry Liebel	};
14543ef4f1eSHarry Liebel
14643ef4f1eSHarry Liebel	memory@80000000 {
14743ef4f1eSHarry Liebel		device_type = "memory";
148364daf93SJuan Castillo		reg = <0x00000000 0x80000000 0 0x7F000000>,
14943ef4f1eSHarry Liebel		      <0x00000008 0x80000000 0 0x80000000>;
15043ef4f1eSHarry Liebel	};
15143ef4f1eSHarry Liebel
1523498859bSHarry Liebel	gic: interrupt-controller@2f000000 {
15343ef4f1eSHarry Liebel		compatible = "arm,gic-v3";
15443ef4f1eSHarry Liebel		#interrupt-cells = <3>;
1553498859bSHarry Liebel		#address-cells = <2>;
1563498859bSHarry Liebel		#size-cells = <2>;
1573498859bSHarry Liebel		ranges;
15843ef4f1eSHarry Liebel		interrupt-controller;
15943ef4f1eSHarry Liebel		reg = <0x0 0x2f000000 0 0x10000>,	// GICD
16043ef4f1eSHarry Liebel		      <0x0 0x2f100000 0 0x200000>,	// GICR
16143ef4f1eSHarry Liebel		      <0x0 0x2c000000 0 0x2000>,	// GICC
16243ef4f1eSHarry Liebel		      <0x0 0x2c010000 0 0x2000>,	// GICH
1633498859bSHarry Liebel		      <0x0 0x2c02f000 0 0x2000>;	// GICV
16443ef4f1eSHarry Liebel		interrupts = <1 9 4>;
1653498859bSHarry Liebel
1663498859bSHarry Liebel		its: its@2f020000 {
1673498859bSHarry Liebel			compatible = "arm,gic-v3-its";
1683498859bSHarry Liebel			msi-controller;
1693498859bSHarry Liebel			reg = <0x0 0x2f020000 0x0 0x20000>; // GITS
1703498859bSHarry Liebel		};
17143ef4f1eSHarry Liebel	};
17243ef4f1eSHarry Liebel
17343ef4f1eSHarry Liebel	timer {
17443ef4f1eSHarry Liebel		compatible = "arm,armv8-timer";
17543ef4f1eSHarry Liebel		interrupts = <1 13 0xff01>,
17643ef4f1eSHarry Liebel			     <1 14 0xff01>,
17743ef4f1eSHarry Liebel			     <1 11 0xff01>,
17843ef4f1eSHarry Liebel			     <1 10 0xff01>;
17943ef4f1eSHarry Liebel		clock-frequency = <100000000>;
18043ef4f1eSHarry Liebel	};
18143ef4f1eSHarry Liebel
18243ef4f1eSHarry Liebel	timer@2a810000 {
18343ef4f1eSHarry Liebel			compatible = "arm,armv7-timer-mem";
18443ef4f1eSHarry Liebel			reg = <0x0 0x2a810000 0x0 0x10000>;
18543ef4f1eSHarry Liebel			clock-frequency = <100000000>;
18643ef4f1eSHarry Liebel			#address-cells = <2>;
18743ef4f1eSHarry Liebel			#size-cells = <2>;
18843ef4f1eSHarry Liebel			ranges;
189f2199d95SHarry Liebel			frame@2a830000 {
190f2199d95SHarry Liebel				frame-number = <1>;
191f2199d95SHarry Liebel				interrupts = <0 26 4>;
192f2199d95SHarry Liebel				reg = <0x0 0x2a830000 0x0 0x10000>;
19343ef4f1eSHarry Liebel			};
19443ef4f1eSHarry Liebel	};
19543ef4f1eSHarry Liebel
19643ef4f1eSHarry Liebel	pmu {
19743ef4f1eSHarry Liebel		compatible = "arm,armv8-pmuv3";
19843ef4f1eSHarry Liebel		interrupts = <0 60 4>,
19943ef4f1eSHarry Liebel			     <0 61 4>,
20043ef4f1eSHarry Liebel			     <0 62 4>,
20143ef4f1eSHarry Liebel			     <0 63 4>;
20243ef4f1eSHarry Liebel	};
20343ef4f1eSHarry Liebel
20443ef4f1eSHarry Liebel	smb {
20543ef4f1eSHarry Liebel		compatible = "simple-bus";
20643ef4f1eSHarry Liebel
20743ef4f1eSHarry Liebel		#address-cells = <2>;
20843ef4f1eSHarry Liebel		#size-cells = <1>;
20943ef4f1eSHarry Liebel		ranges = <0 0 0 0x08000000 0x04000000>,
21043ef4f1eSHarry Liebel			 <1 0 0 0x14000000 0x04000000>,
21143ef4f1eSHarry Liebel			 <2 0 0 0x18000000 0x04000000>,
21243ef4f1eSHarry Liebel			 <3 0 0 0x1c000000 0x04000000>,
21343ef4f1eSHarry Liebel			 <4 0 0 0x0c000000 0x04000000>,
21443ef4f1eSHarry Liebel			 <5 0 0 0x10000000 0x04000000>;
21543ef4f1eSHarry Liebel
21643ef4f1eSHarry Liebel		#interrupt-cells = <1>;
21743ef4f1eSHarry Liebel		interrupt-map-mask = <0 0 63>;
2183498859bSHarry Liebel		interrupt-map = <0 0  0 &gic 0 0 0  0 4>,
2193498859bSHarry Liebel				<0 0  1 &gic 0 0 0  1 4>,
2203498859bSHarry Liebel				<0 0  2 &gic 0 0 0  2 4>,
2213498859bSHarry Liebel				<0 0  3 &gic 0 0 0  3 4>,
2223498859bSHarry Liebel				<0 0  4 &gic 0 0 0  4 4>,
2233498859bSHarry Liebel				<0 0  5 &gic 0 0 0  5 4>,
2243498859bSHarry Liebel				<0 0  6 &gic 0 0 0  6 4>,
2253498859bSHarry Liebel				<0 0  7 &gic 0 0 0  7 4>,
2263498859bSHarry Liebel				<0 0  8 &gic 0 0 0  8 4>,
2273498859bSHarry Liebel				<0 0  9 &gic 0 0 0  9 4>,
2283498859bSHarry Liebel				<0 0 10 &gic 0 0 0 10 4>,
2293498859bSHarry Liebel				<0 0 11 &gic 0 0 0 11 4>,
2303498859bSHarry Liebel				<0 0 12 &gic 0 0 0 12 4>,
2313498859bSHarry Liebel				<0 0 13 &gic 0 0 0 13 4>,
2323498859bSHarry Liebel				<0 0 14 &gic 0 0 0 14 4>,
2333498859bSHarry Liebel				<0 0 15 &gic 0 0 0 15 4>,
2343498859bSHarry Liebel				<0 0 16 &gic 0 0 0 16 4>,
2353498859bSHarry Liebel				<0 0 17 &gic 0 0 0 17 4>,
2363498859bSHarry Liebel				<0 0 18 &gic 0 0 0 18 4>,
2373498859bSHarry Liebel				<0 0 19 &gic 0 0 0 19 4>,
2383498859bSHarry Liebel				<0 0 20 &gic 0 0 0 20 4>,
2393498859bSHarry Liebel				<0 0 21 &gic 0 0 0 21 4>,
2403498859bSHarry Liebel				<0 0 22 &gic 0 0 0 22 4>,
2413498859bSHarry Liebel				<0 0 23 &gic 0 0 0 23 4>,
2423498859bSHarry Liebel				<0 0 24 &gic 0 0 0 24 4>,
2433498859bSHarry Liebel				<0 0 25 &gic 0 0 0 25 4>,
2443498859bSHarry Liebel				<0 0 26 &gic 0 0 0 26 4>,
2453498859bSHarry Liebel				<0 0 27 &gic 0 0 0 27 4>,
2463498859bSHarry Liebel				<0 0 28 &gic 0 0 0 28 4>,
2473498859bSHarry Liebel				<0 0 29 &gic 0 0 0 29 4>,
2483498859bSHarry Liebel				<0 0 30 &gic 0 0 0 30 4>,
2493498859bSHarry Liebel				<0 0 31 &gic 0 0 0 31 4>,
2503498859bSHarry Liebel				<0 0 32 &gic 0 0 0 32 4>,
2513498859bSHarry Liebel				<0 0 33 &gic 0 0 0 33 4>,
2523498859bSHarry Liebel				<0 0 34 &gic 0 0 0 34 4>,
2533498859bSHarry Liebel				<0 0 35 &gic 0 0 0 35 4>,
2543498859bSHarry Liebel				<0 0 36 &gic 0 0 0 36 4>,
2553498859bSHarry Liebel				<0 0 37 &gic 0 0 0 37 4>,
2563498859bSHarry Liebel				<0 0 38 &gic 0 0 0 38 4>,
2573498859bSHarry Liebel				<0 0 39 &gic 0 0 0 39 4>,
2583498859bSHarry Liebel				<0 0 40 &gic 0 0 0 40 4>,
2593498859bSHarry Liebel				<0 0 41 &gic 0 0 0 41 4>,
2603498859bSHarry Liebel				<0 0 42 &gic 0 0 0 42 4>;
26143ef4f1eSHarry Liebel
262d5f13093SJuan Castillo		/include/ "fvp-foundation-motherboard-no_psci.dtsi"
26343ef4f1eSHarry Liebel	};
26443ef4f1eSHarry Liebel};
265