xref: /rk3399_ARM-atf/fdts/fvp-foundation-gicv2-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 *
1443ef4f1eSHarry Liebel * Neither the name of the 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>;
60d5f13093SJuan Castillo		sys_poweroff = <0x84000008>;
61d5f13093SJuan Castillo		sys_reset = <0x84000009>;
6243ef4f1eSHarry Liebel	};
6343ef4f1eSHarry Liebel
6443ef4f1eSHarry Liebel	cpus {
6543ef4f1eSHarry Liebel		#address-cells = <2>;
6643ef4f1eSHarry Liebel		#size-cells = <0>;
6743ef4f1eSHarry Liebel
68bab7bfd2SAchin Gupta		cpu-map {
69bab7bfd2SAchin Gupta			cluster0 {
70bab7bfd2SAchin Gupta				core0 {
71bab7bfd2SAchin Gupta					cpu = <&CPU0>;
72bab7bfd2SAchin Gupta				};
73bab7bfd2SAchin Gupta				core1 {
74bab7bfd2SAchin Gupta					cpu = <&CPU1>;
75bab7bfd2SAchin Gupta				};
76bab7bfd2SAchin Gupta				core2 {
77bab7bfd2SAchin Gupta					cpu = <&CPU2>;
78bab7bfd2SAchin Gupta				};
79bab7bfd2SAchin Gupta				core3 {
80bab7bfd2SAchin Gupta					cpu = <&CPU3>;
81bab7bfd2SAchin Gupta				};
82bab7bfd2SAchin Gupta			};
83bab7bfd2SAchin Gupta		};
84bab7bfd2SAchin Gupta
85bab7bfd2SAchin Gupta		idle-states {
86bab7bfd2SAchin Gupta			entry-method = "arm,psci";
87bab7bfd2SAchin Gupta
88bab7bfd2SAchin Gupta			CPU_SLEEP_0: cpu-sleep-0 {
89bab7bfd2SAchin Gupta				compatible = "arm,idle-state";
906136f372SJuan Castillo				local-timer-stop;
916136f372SJuan Castillo				arm,psci-suspend-param = <0x0010000>;
92bab7bfd2SAchin Gupta				entry-latency-us = <40>;
93bab7bfd2SAchin Gupta				exit-latency-us = <100>;
94bab7bfd2SAchin Gupta				min-residency-us = <150>;
95bab7bfd2SAchin Gupta			};
96bab7bfd2SAchin Gupta
97bab7bfd2SAchin Gupta			CLUSTER_SLEEP_0: cluster-sleep-0 {
98bab7bfd2SAchin Gupta				compatible = "arm,idle-state";
996136f372SJuan Castillo				local-timer-stop;
1006136f372SJuan Castillo				arm,psci-suspend-param = <0x1010000>;
101bab7bfd2SAchin Gupta				entry-latency-us = <500>;
102bab7bfd2SAchin Gupta				exit-latency-us = <1000>;
103bab7bfd2SAchin Gupta				min-residency-us = <2500>;
104bab7bfd2SAchin Gupta			};
105bab7bfd2SAchin Gupta		};
106bab7bfd2SAchin Gupta
107bab7bfd2SAchin Gupta		CPU0:cpu@0 {
10843ef4f1eSHarry Liebel			device_type = "cpu";
10943ef4f1eSHarry Liebel			compatible = "arm,armv8";
11043ef4f1eSHarry Liebel			reg = <0x0 0x0>;
11143ef4f1eSHarry Liebel			enable-method = "psci";
112bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
113*b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
11443ef4f1eSHarry Liebel		};
115bab7bfd2SAchin Gupta
116bab7bfd2SAchin Gupta		CPU1:cpu@1 {
11743ef4f1eSHarry Liebel			device_type = "cpu";
11843ef4f1eSHarry Liebel			compatible = "arm,armv8";
11943ef4f1eSHarry Liebel			reg = <0x0 0x1>;
12043ef4f1eSHarry Liebel			enable-method = "psci";
121bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
122*b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
12343ef4f1eSHarry Liebel		};
124bab7bfd2SAchin Gupta
125bab7bfd2SAchin Gupta		CPU2:cpu@2 {
12643ef4f1eSHarry Liebel			device_type = "cpu";
12743ef4f1eSHarry Liebel			compatible = "arm,armv8";
12843ef4f1eSHarry Liebel			reg = <0x0 0x2>;
12943ef4f1eSHarry Liebel			enable-method = "psci";
130bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
131*b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
13243ef4f1eSHarry Liebel		};
133bab7bfd2SAchin Gupta
134bab7bfd2SAchin Gupta		CPU3:cpu@3 {
13543ef4f1eSHarry Liebel			device_type = "cpu";
13643ef4f1eSHarry Liebel			compatible = "arm,armv8";
13743ef4f1eSHarry Liebel			reg = <0x0 0x3>;
13843ef4f1eSHarry Liebel			enable-method = "psci";
139bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
140*b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
141*b1063d95SAntonio Nino Diaz		};
142*b1063d95SAntonio Nino Diaz
143*b1063d95SAntonio Nino Diaz		L2_0: l2-cache0 {
144*b1063d95SAntonio Nino Diaz			compatible = "cache";
14543ef4f1eSHarry Liebel		};
14643ef4f1eSHarry Liebel	};
14743ef4f1eSHarry Liebel
14843ef4f1eSHarry Liebel	memory@80000000 {
14943ef4f1eSHarry Liebel		device_type = "memory";
150364daf93SJuan Castillo		reg = <0x00000000 0x80000000 0 0x7F000000>,
15143ef4f1eSHarry Liebel		      <0x00000008 0x80000000 0 0x80000000>;
15243ef4f1eSHarry Liebel	};
15343ef4f1eSHarry Liebel
15443ef4f1eSHarry Liebel	gic: interrupt-controller@2f000000 {
15543ef4f1eSHarry Liebel		compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic";
15643ef4f1eSHarry Liebel		#interrupt-cells = <3>;
15743ef4f1eSHarry Liebel		#address-cells = <0>;
15843ef4f1eSHarry Liebel		interrupt-controller;
15943ef4f1eSHarry Liebel		reg = <0x0 0x2f000000 0 0x10000>,
16043ef4f1eSHarry Liebel		      <0x0 0x2c000000 0 0x2000>,
16143ef4f1eSHarry Liebel		      <0x0 0x2c010000 0 0x2000>,
16243ef4f1eSHarry Liebel		      <0x0 0x2c02F000 0 0x2000>;
16343ef4f1eSHarry Liebel		interrupts = <1 9 0xf04>;
16443ef4f1eSHarry Liebel	};
16543ef4f1eSHarry Liebel
16643ef4f1eSHarry Liebel	timer {
16743ef4f1eSHarry Liebel		compatible = "arm,armv8-timer";
16843ef4f1eSHarry Liebel		interrupts = <1 13 0xff01>,
16943ef4f1eSHarry Liebel			     <1 14 0xff01>,
17043ef4f1eSHarry Liebel			     <1 11 0xff01>,
17143ef4f1eSHarry Liebel			     <1 10 0xff01>;
17243ef4f1eSHarry Liebel		clock-frequency = <100000000>;
17343ef4f1eSHarry Liebel	};
17443ef4f1eSHarry Liebel
17543ef4f1eSHarry Liebel	timer@2a810000 {
17643ef4f1eSHarry Liebel			compatible = "arm,armv7-timer-mem";
17743ef4f1eSHarry Liebel			reg = <0x0 0x2a810000 0x0 0x10000>;
17843ef4f1eSHarry Liebel			clock-frequency = <100000000>;
17943ef4f1eSHarry Liebel			#address-cells = <2>;
18043ef4f1eSHarry Liebel			#size-cells = <2>;
18143ef4f1eSHarry Liebel			ranges;
182f2199d95SHarry Liebel			frame@2a830000 {
183f2199d95SHarry Liebel				frame-number = <1>;
184f2199d95SHarry Liebel				interrupts = <0 26 4>;
185f2199d95SHarry Liebel				reg = <0x0 0x2a830000 0x0 0x10000>;
18643ef4f1eSHarry Liebel			};
18743ef4f1eSHarry Liebel	};
18843ef4f1eSHarry Liebel
18943ef4f1eSHarry Liebel	pmu {
19043ef4f1eSHarry Liebel		compatible = "arm,armv8-pmuv3";
19143ef4f1eSHarry Liebel		interrupts = <0 60 4>,
19243ef4f1eSHarry Liebel			     <0 61 4>,
19343ef4f1eSHarry Liebel			     <0 62 4>,
19443ef4f1eSHarry Liebel			     <0 63 4>;
19543ef4f1eSHarry Liebel	};
19643ef4f1eSHarry Liebel
19743ef4f1eSHarry Liebel	smb {
19843ef4f1eSHarry Liebel		compatible = "simple-bus";
19943ef4f1eSHarry Liebel
20043ef4f1eSHarry Liebel		#address-cells = <2>;
20143ef4f1eSHarry Liebel		#size-cells = <1>;
20243ef4f1eSHarry Liebel		ranges = <0 0 0 0x08000000 0x04000000>,
20343ef4f1eSHarry Liebel			 <1 0 0 0x14000000 0x04000000>,
20443ef4f1eSHarry Liebel			 <2 0 0 0x18000000 0x04000000>,
20543ef4f1eSHarry Liebel			 <3 0 0 0x1c000000 0x04000000>,
20643ef4f1eSHarry Liebel			 <4 0 0 0x0c000000 0x04000000>,
20743ef4f1eSHarry Liebel			 <5 0 0 0x10000000 0x04000000>;
20843ef4f1eSHarry Liebel
20943ef4f1eSHarry Liebel		#interrupt-cells = <1>;
21043ef4f1eSHarry Liebel		interrupt-map-mask = <0 0 63>;
21143ef4f1eSHarry Liebel		interrupt-map = <0 0  0 &gic 0  0 4>,
21243ef4f1eSHarry Liebel				<0 0  1 &gic 0  1 4>,
21343ef4f1eSHarry Liebel				<0 0  2 &gic 0  2 4>,
21443ef4f1eSHarry Liebel				<0 0  3 &gic 0  3 4>,
21543ef4f1eSHarry Liebel				<0 0  4 &gic 0  4 4>,
21643ef4f1eSHarry Liebel				<0 0  5 &gic 0  5 4>,
21743ef4f1eSHarry Liebel				<0 0  6 &gic 0  6 4>,
21843ef4f1eSHarry Liebel				<0 0  7 &gic 0  7 4>,
21943ef4f1eSHarry Liebel				<0 0  8 &gic 0  8 4>,
22043ef4f1eSHarry Liebel				<0 0  9 &gic 0  9 4>,
22143ef4f1eSHarry Liebel				<0 0 10 &gic 0 10 4>,
22243ef4f1eSHarry Liebel				<0 0 11 &gic 0 11 4>,
22343ef4f1eSHarry Liebel				<0 0 12 &gic 0 12 4>,
22443ef4f1eSHarry Liebel				<0 0 13 &gic 0 13 4>,
22543ef4f1eSHarry Liebel				<0 0 14 &gic 0 14 4>,
22643ef4f1eSHarry Liebel				<0 0 15 &gic 0 15 4>,
22743ef4f1eSHarry Liebel				<0 0 16 &gic 0 16 4>,
22843ef4f1eSHarry Liebel				<0 0 17 &gic 0 17 4>,
22943ef4f1eSHarry Liebel				<0 0 18 &gic 0 18 4>,
23043ef4f1eSHarry Liebel				<0 0 19 &gic 0 19 4>,
23143ef4f1eSHarry Liebel				<0 0 20 &gic 0 20 4>,
23243ef4f1eSHarry Liebel				<0 0 21 &gic 0 21 4>,
23343ef4f1eSHarry Liebel				<0 0 22 &gic 0 22 4>,
23443ef4f1eSHarry Liebel				<0 0 23 &gic 0 23 4>,
23543ef4f1eSHarry Liebel				<0 0 24 &gic 0 24 4>,
23643ef4f1eSHarry Liebel				<0 0 25 &gic 0 25 4>,
23743ef4f1eSHarry Liebel				<0 0 26 &gic 0 26 4>,
23843ef4f1eSHarry Liebel				<0 0 27 &gic 0 27 4>,
23943ef4f1eSHarry Liebel				<0 0 28 &gic 0 28 4>,
24043ef4f1eSHarry Liebel				<0 0 29 &gic 0 29 4>,
24143ef4f1eSHarry Liebel				<0 0 30 &gic 0 30 4>,
24243ef4f1eSHarry Liebel				<0 0 31 &gic 0 31 4>,
24343ef4f1eSHarry Liebel				<0 0 32 &gic 0 32 4>,
24443ef4f1eSHarry Liebel				<0 0 33 &gic 0 33 4>,
24543ef4f1eSHarry Liebel				<0 0 34 &gic 0 34 4>,
24643ef4f1eSHarry Liebel				<0 0 35 &gic 0 35 4>,
24743ef4f1eSHarry Liebel				<0 0 36 &gic 0 36 4>,
24843ef4f1eSHarry Liebel				<0 0 37 &gic 0 37 4>,
24943ef4f1eSHarry Liebel				<0 0 38 &gic 0 38 4>,
25043ef4f1eSHarry Liebel				<0 0 39 &gic 0 39 4>,
25143ef4f1eSHarry Liebel				<0 0 40 &gic 0 40 4>,
25243ef4f1eSHarry Liebel				<0 0 41 &gic 0 41 4>,
25343ef4f1eSHarry Liebel				<0 0 42 &gic 0 42 4>;
25443ef4f1eSHarry Liebel
25543ef4f1eSHarry Liebel		/include/ "fvp-foundation-motherboard.dtsi"
25643ef4f1eSHarry Liebel	};
25743ef4f1eSHarry Liebel};
258