xref: /rk3399_ARM-atf/fdts/fvp-foundation-gicv3-psci.dts (revision e8ca7d1e32c04f4a7f9679f7d09dbe0e49baa471)
143ef4f1eSHarry Liebel/*
2e83b0cadSDan Handley * Copyright (c) 2013-2014, 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 {
55*e8ca7d1eSSoby 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";
88bab7bfd2SAchin Gupta				entry-method-param = <0x0010000>;
89bab7bfd2SAchin Gupta				entry-latency-us = <40>;
90bab7bfd2SAchin Gupta				exit-latency-us = <100>;
91bab7bfd2SAchin Gupta				min-residency-us = <150>;
92bab7bfd2SAchin Gupta			};
93bab7bfd2SAchin Gupta
94bab7bfd2SAchin Gupta			CLUSTER_SLEEP_0: cluster-sleep-0 {
95bab7bfd2SAchin Gupta				compatible = "arm,idle-state";
96bab7bfd2SAchin Gupta				entry-method-param = <0x1010000>;
97bab7bfd2SAchin Gupta				entry-latency-us = <500>;
98bab7bfd2SAchin Gupta				exit-latency-us = <1000>;
99bab7bfd2SAchin Gupta				min-residency-us = <2500>;
100bab7bfd2SAchin Gupta			};
101bab7bfd2SAchin Gupta		};
102bab7bfd2SAchin Gupta
103bab7bfd2SAchin Gupta		CPU0:cpu@0 {
10443ef4f1eSHarry Liebel			device_type = "cpu";
10543ef4f1eSHarry Liebel			compatible = "arm,armv8";
10643ef4f1eSHarry Liebel			reg = <0x0 0x0>;
10743ef4f1eSHarry Liebel			enable-method = "psci";
108bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
10943ef4f1eSHarry Liebel		};
110bab7bfd2SAchin Gupta
111bab7bfd2SAchin Gupta		CPU1:cpu@1 {
11243ef4f1eSHarry Liebel			device_type = "cpu";
11343ef4f1eSHarry Liebel			compatible = "arm,armv8";
11443ef4f1eSHarry Liebel			reg = <0x0 0x1>;
11543ef4f1eSHarry Liebel			enable-method = "psci";
116bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
11743ef4f1eSHarry Liebel		};
118bab7bfd2SAchin Gupta
119bab7bfd2SAchin Gupta		CPU2:cpu@2 {
12043ef4f1eSHarry Liebel			device_type = "cpu";
12143ef4f1eSHarry Liebel			compatible = "arm,armv8";
12243ef4f1eSHarry Liebel			reg = <0x0 0x2>;
12343ef4f1eSHarry Liebel			enable-method = "psci";
124bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
12543ef4f1eSHarry Liebel		};
126bab7bfd2SAchin Gupta
127bab7bfd2SAchin Gupta		CPU3:cpu@3 {
12843ef4f1eSHarry Liebel			device_type = "cpu";
12943ef4f1eSHarry Liebel			compatible = "arm,armv8";
13043ef4f1eSHarry Liebel			reg = <0x0 0x3>;
13143ef4f1eSHarry Liebel			enable-method = "psci";
132bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
13343ef4f1eSHarry Liebel		};
13443ef4f1eSHarry Liebel	};
13543ef4f1eSHarry Liebel
13643ef4f1eSHarry Liebel	memory@80000000 {
13743ef4f1eSHarry Liebel		device_type = "memory";
138364daf93SJuan Castillo		reg = <0x00000000 0x80000000 0 0x7F000000>,
13943ef4f1eSHarry Liebel		      <0x00000008 0x80000000 0 0x80000000>;
14043ef4f1eSHarry Liebel	};
14143ef4f1eSHarry Liebel
1423498859bSHarry Liebel	gic: interrupt-controller@2f000000 {
14343ef4f1eSHarry Liebel		compatible = "arm,gic-v3";
14443ef4f1eSHarry Liebel		#interrupt-cells = <3>;
1453498859bSHarry Liebel		#address-cells = <2>;
1463498859bSHarry Liebel		#size-cells = <2>;
1473498859bSHarry Liebel		ranges;
14843ef4f1eSHarry Liebel		interrupt-controller;
14943ef4f1eSHarry Liebel		reg = <0x0 0x2f000000 0 0x10000>,	// GICD
15043ef4f1eSHarry Liebel		      <0x0 0x2f100000 0 0x200000>,	// GICR
15143ef4f1eSHarry Liebel		      <0x0 0x2c000000 0 0x2000>,	// GICC
15243ef4f1eSHarry Liebel		      <0x0 0x2c010000 0 0x2000>,	// GICH
1533498859bSHarry Liebel		      <0x0 0x2c02f000 0 0x2000>;	// GICV
15443ef4f1eSHarry Liebel		interrupts = <1 9 4>;
1553498859bSHarry Liebel
1563498859bSHarry Liebel		its: its@2f020000 {
1573498859bSHarry Liebel			compatible = "arm,gic-v3-its";
1583498859bSHarry Liebel			msi-controller;
1593498859bSHarry Liebel			reg = <0x0 0x2f020000 0x0 0x20000>; // GITS
1603498859bSHarry Liebel		};
16143ef4f1eSHarry Liebel	};
16243ef4f1eSHarry Liebel
16343ef4f1eSHarry Liebel	timer {
16443ef4f1eSHarry Liebel		compatible = "arm,armv8-timer";
16543ef4f1eSHarry Liebel		interrupts = <1 13 0xff01>,
16643ef4f1eSHarry Liebel			     <1 14 0xff01>,
16743ef4f1eSHarry Liebel			     <1 11 0xff01>,
16843ef4f1eSHarry Liebel			     <1 10 0xff01>;
16943ef4f1eSHarry Liebel		clock-frequency = <100000000>;
17043ef4f1eSHarry Liebel	};
17143ef4f1eSHarry Liebel
17243ef4f1eSHarry Liebel	timer@2a810000 {
17343ef4f1eSHarry Liebel			compatible = "arm,armv7-timer-mem";
17443ef4f1eSHarry Liebel			reg = <0x0 0x2a810000 0x0 0x10000>;
17543ef4f1eSHarry Liebel			clock-frequency = <100000000>;
17643ef4f1eSHarry Liebel			#address-cells = <2>;
17743ef4f1eSHarry Liebel			#size-cells = <2>;
17843ef4f1eSHarry Liebel			ranges;
179f2199d95SHarry Liebel			frame@2a830000 {
180f2199d95SHarry Liebel				frame-number = <1>;
181f2199d95SHarry Liebel				interrupts = <0 26 4>;
182f2199d95SHarry Liebel				reg = <0x0 0x2a830000 0x0 0x10000>;
18343ef4f1eSHarry Liebel			};
18443ef4f1eSHarry Liebel	};
18543ef4f1eSHarry Liebel
18643ef4f1eSHarry Liebel	pmu {
18743ef4f1eSHarry Liebel		compatible = "arm,armv8-pmuv3";
18843ef4f1eSHarry Liebel		interrupts = <0 60 4>,
18943ef4f1eSHarry Liebel			     <0 61 4>,
19043ef4f1eSHarry Liebel			     <0 62 4>,
19143ef4f1eSHarry Liebel			     <0 63 4>;
19243ef4f1eSHarry Liebel	};
19343ef4f1eSHarry Liebel
19443ef4f1eSHarry Liebel	smb {
19543ef4f1eSHarry Liebel		compatible = "simple-bus";
19643ef4f1eSHarry Liebel
19743ef4f1eSHarry Liebel		#address-cells = <2>;
19843ef4f1eSHarry Liebel		#size-cells = <1>;
19943ef4f1eSHarry Liebel		ranges = <0 0 0 0x08000000 0x04000000>,
20043ef4f1eSHarry Liebel			 <1 0 0 0x14000000 0x04000000>,
20143ef4f1eSHarry Liebel			 <2 0 0 0x18000000 0x04000000>,
20243ef4f1eSHarry Liebel			 <3 0 0 0x1c000000 0x04000000>,
20343ef4f1eSHarry Liebel			 <4 0 0 0x0c000000 0x04000000>,
20443ef4f1eSHarry Liebel			 <5 0 0 0x10000000 0x04000000>;
20543ef4f1eSHarry Liebel
20643ef4f1eSHarry Liebel		#interrupt-cells = <1>;
20743ef4f1eSHarry Liebel		interrupt-map-mask = <0 0 63>;
2083498859bSHarry Liebel		interrupt-map = <0 0  0 &gic 0 0 0  0 4>,
2093498859bSHarry Liebel				<0 0  1 &gic 0 0 0  1 4>,
2103498859bSHarry Liebel				<0 0  2 &gic 0 0 0  2 4>,
2113498859bSHarry Liebel				<0 0  3 &gic 0 0 0  3 4>,
2123498859bSHarry Liebel				<0 0  4 &gic 0 0 0  4 4>,
2133498859bSHarry Liebel				<0 0  5 &gic 0 0 0  5 4>,
2143498859bSHarry Liebel				<0 0  6 &gic 0 0 0  6 4>,
2153498859bSHarry Liebel				<0 0  7 &gic 0 0 0  7 4>,
2163498859bSHarry Liebel				<0 0  8 &gic 0 0 0  8 4>,
2173498859bSHarry Liebel				<0 0  9 &gic 0 0 0  9 4>,
2183498859bSHarry Liebel				<0 0 10 &gic 0 0 0 10 4>,
2193498859bSHarry Liebel				<0 0 11 &gic 0 0 0 11 4>,
2203498859bSHarry Liebel				<0 0 12 &gic 0 0 0 12 4>,
2213498859bSHarry Liebel				<0 0 13 &gic 0 0 0 13 4>,
2223498859bSHarry Liebel				<0 0 14 &gic 0 0 0 14 4>,
2233498859bSHarry Liebel				<0 0 15 &gic 0 0 0 15 4>,
2243498859bSHarry Liebel				<0 0 16 &gic 0 0 0 16 4>,
2253498859bSHarry Liebel				<0 0 17 &gic 0 0 0 17 4>,
2263498859bSHarry Liebel				<0 0 18 &gic 0 0 0 18 4>,
2273498859bSHarry Liebel				<0 0 19 &gic 0 0 0 19 4>,
2283498859bSHarry Liebel				<0 0 20 &gic 0 0 0 20 4>,
2293498859bSHarry Liebel				<0 0 21 &gic 0 0 0 21 4>,
2303498859bSHarry Liebel				<0 0 22 &gic 0 0 0 22 4>,
2313498859bSHarry Liebel				<0 0 23 &gic 0 0 0 23 4>,
2323498859bSHarry Liebel				<0 0 24 &gic 0 0 0 24 4>,
2333498859bSHarry Liebel				<0 0 25 &gic 0 0 0 25 4>,
2343498859bSHarry Liebel				<0 0 26 &gic 0 0 0 26 4>,
2353498859bSHarry Liebel				<0 0 27 &gic 0 0 0 27 4>,
2363498859bSHarry Liebel				<0 0 28 &gic 0 0 0 28 4>,
2373498859bSHarry Liebel				<0 0 29 &gic 0 0 0 29 4>,
2383498859bSHarry Liebel				<0 0 30 &gic 0 0 0 30 4>,
2393498859bSHarry Liebel				<0 0 31 &gic 0 0 0 31 4>,
2403498859bSHarry Liebel				<0 0 32 &gic 0 0 0 32 4>,
2413498859bSHarry Liebel				<0 0 33 &gic 0 0 0 33 4>,
2423498859bSHarry Liebel				<0 0 34 &gic 0 0 0 34 4>,
2433498859bSHarry Liebel				<0 0 35 &gic 0 0 0 35 4>,
2443498859bSHarry Liebel				<0 0 36 &gic 0 0 0 36 4>,
2453498859bSHarry Liebel				<0 0 37 &gic 0 0 0 37 4>,
2463498859bSHarry Liebel				<0 0 38 &gic 0 0 0 38 4>,
2473498859bSHarry Liebel				<0 0 39 &gic 0 0 0 39 4>,
2483498859bSHarry Liebel				<0 0 40 &gic 0 0 0 40 4>,
2493498859bSHarry Liebel				<0 0 41 &gic 0 0 0 41 4>,
2503498859bSHarry Liebel				<0 0 42 &gic 0 0 0 42 4>;
25143ef4f1eSHarry Liebel
252d5f13093SJuan Castillo		/include/ "fvp-foundation-motherboard-no_psci.dtsi"
25343ef4f1eSHarry Liebel	};
25443ef4f1eSHarry Liebel};
255