xref: /rk3399_ARM-atf/fdts/fvp-foundation-gicv2-psci.dts (revision 8d2c497715ca8bc60ab390c88fa69ddb4fae5993)
143ef4f1eSHarry Liebel/*
2*8d2c4977SAchin Gupta * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
343ef4f1eSHarry Liebel *
4*8d2c4977SAchin Gupta * SPDX-License-Identifier: BSD-3-Clause
543ef4f1eSHarry Liebel */
643ef4f1eSHarry Liebel
743ef4f1eSHarry Liebel/dts-v1/;
843ef4f1eSHarry Liebel
943ef4f1eSHarry Liebel/memreserve/ 0x80000000 0x00010000;
1043ef4f1eSHarry Liebel
1143ef4f1eSHarry Liebel/ {
1243ef4f1eSHarry Liebel};
1343ef4f1eSHarry Liebel
1443ef4f1eSHarry Liebel/ {
15f2199d95SHarry Liebel	model = "FVP Foundation";
1643ef4f1eSHarry Liebel	compatible = "arm,fvp-base", "arm,vexpress";
1743ef4f1eSHarry Liebel	interrupt-parent = <&gic>;
1843ef4f1eSHarry Liebel	#address-cells = <2>;
1943ef4f1eSHarry Liebel	#size-cells = <2>;
2043ef4f1eSHarry Liebel
2143ef4f1eSHarry Liebel	chosen { };
2243ef4f1eSHarry Liebel
2343ef4f1eSHarry Liebel	aliases {
2443ef4f1eSHarry Liebel		serial0 = &v2m_serial0;
2543ef4f1eSHarry Liebel		serial1 = &v2m_serial1;
2643ef4f1eSHarry Liebel		serial2 = &v2m_serial2;
2743ef4f1eSHarry Liebel		serial3 = &v2m_serial3;
2843ef4f1eSHarry Liebel	};
2943ef4f1eSHarry Liebel
3043ef4f1eSHarry Liebel	psci {
31e8ca7d1eSSoby Mathew		compatible = "arm,psci-1.0", "arm,psci-0.2", "arm,psci";
3243ef4f1eSHarry Liebel		method = "smc";
3343ef4f1eSHarry Liebel		cpu_suspend = <0xc4000001>;
3443ef4f1eSHarry Liebel		cpu_off = <0x84000002>;
3543ef4f1eSHarry Liebel		cpu_on = <0xc4000003>;
36d5f13093SJuan Castillo		sys_poweroff = <0x84000008>;
37d5f13093SJuan Castillo		sys_reset = <0x84000009>;
3843ef4f1eSHarry Liebel	};
3943ef4f1eSHarry Liebel
4043ef4f1eSHarry Liebel	cpus {
4143ef4f1eSHarry Liebel		#address-cells = <2>;
4243ef4f1eSHarry Liebel		#size-cells = <0>;
4343ef4f1eSHarry Liebel
44bab7bfd2SAchin Gupta		cpu-map {
45bab7bfd2SAchin Gupta			cluster0 {
46bab7bfd2SAchin Gupta				core0 {
47bab7bfd2SAchin Gupta					cpu = <&CPU0>;
48bab7bfd2SAchin Gupta				};
49bab7bfd2SAchin Gupta				core1 {
50bab7bfd2SAchin Gupta					cpu = <&CPU1>;
51bab7bfd2SAchin Gupta				};
52bab7bfd2SAchin Gupta				core2 {
53bab7bfd2SAchin Gupta					cpu = <&CPU2>;
54bab7bfd2SAchin Gupta				};
55bab7bfd2SAchin Gupta				core3 {
56bab7bfd2SAchin Gupta					cpu = <&CPU3>;
57bab7bfd2SAchin Gupta				};
58bab7bfd2SAchin Gupta			};
59bab7bfd2SAchin Gupta		};
60bab7bfd2SAchin Gupta
61bab7bfd2SAchin Gupta		idle-states {
62bab7bfd2SAchin Gupta			entry-method = "arm,psci";
63bab7bfd2SAchin Gupta
64bab7bfd2SAchin Gupta			CPU_SLEEP_0: cpu-sleep-0 {
65bab7bfd2SAchin Gupta				compatible = "arm,idle-state";
666136f372SJuan Castillo				local-timer-stop;
676136f372SJuan Castillo				arm,psci-suspend-param = <0x0010000>;
68bab7bfd2SAchin Gupta				entry-latency-us = <40>;
69bab7bfd2SAchin Gupta				exit-latency-us = <100>;
70bab7bfd2SAchin Gupta				min-residency-us = <150>;
71bab7bfd2SAchin Gupta			};
72bab7bfd2SAchin Gupta
73bab7bfd2SAchin Gupta			CLUSTER_SLEEP_0: cluster-sleep-0 {
74bab7bfd2SAchin Gupta				compatible = "arm,idle-state";
756136f372SJuan Castillo				local-timer-stop;
766136f372SJuan Castillo				arm,psci-suspend-param = <0x1010000>;
77bab7bfd2SAchin Gupta				entry-latency-us = <500>;
78bab7bfd2SAchin Gupta				exit-latency-us = <1000>;
79bab7bfd2SAchin Gupta				min-residency-us = <2500>;
80bab7bfd2SAchin Gupta			};
81bab7bfd2SAchin Gupta		};
82bab7bfd2SAchin Gupta
83bab7bfd2SAchin Gupta		CPU0:cpu@0 {
8443ef4f1eSHarry Liebel			device_type = "cpu";
8543ef4f1eSHarry Liebel			compatible = "arm,armv8";
8643ef4f1eSHarry Liebel			reg = <0x0 0x0>;
8743ef4f1eSHarry Liebel			enable-method = "psci";
88bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
89b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
9043ef4f1eSHarry Liebel		};
91bab7bfd2SAchin Gupta
92bab7bfd2SAchin Gupta		CPU1:cpu@1 {
9343ef4f1eSHarry Liebel			device_type = "cpu";
9443ef4f1eSHarry Liebel			compatible = "arm,armv8";
9543ef4f1eSHarry Liebel			reg = <0x0 0x1>;
9643ef4f1eSHarry Liebel			enable-method = "psci";
97bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
98b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
9943ef4f1eSHarry Liebel		};
100bab7bfd2SAchin Gupta
101bab7bfd2SAchin Gupta		CPU2:cpu@2 {
10243ef4f1eSHarry Liebel			device_type = "cpu";
10343ef4f1eSHarry Liebel			compatible = "arm,armv8";
10443ef4f1eSHarry Liebel			reg = <0x0 0x2>;
10543ef4f1eSHarry Liebel			enable-method = "psci";
106bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
107b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
10843ef4f1eSHarry Liebel		};
109bab7bfd2SAchin Gupta
110bab7bfd2SAchin Gupta		CPU3:cpu@3 {
11143ef4f1eSHarry Liebel			device_type = "cpu";
11243ef4f1eSHarry Liebel			compatible = "arm,armv8";
11343ef4f1eSHarry Liebel			reg = <0x0 0x3>;
11443ef4f1eSHarry Liebel			enable-method = "psci";
115bab7bfd2SAchin Gupta			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
116b1063d95SAntonio Nino Diaz			next-level-cache = <&L2_0>;
117b1063d95SAntonio Nino Diaz		};
118b1063d95SAntonio Nino Diaz
119b1063d95SAntonio Nino Diaz		L2_0: l2-cache0 {
120b1063d95SAntonio Nino Diaz			compatible = "cache";
12143ef4f1eSHarry Liebel		};
12243ef4f1eSHarry Liebel	};
12343ef4f1eSHarry Liebel
12443ef4f1eSHarry Liebel	memory@80000000 {
12543ef4f1eSHarry Liebel		device_type = "memory";
126364daf93SJuan Castillo		reg = <0x00000000 0x80000000 0 0x7F000000>,
12743ef4f1eSHarry Liebel		      <0x00000008 0x80000000 0 0x80000000>;
12843ef4f1eSHarry Liebel	};
12943ef4f1eSHarry Liebel
13043ef4f1eSHarry Liebel	gic: interrupt-controller@2f000000 {
13143ef4f1eSHarry Liebel		compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic";
13243ef4f1eSHarry Liebel		#interrupt-cells = <3>;
13343ef4f1eSHarry Liebel		#address-cells = <0>;
13443ef4f1eSHarry Liebel		interrupt-controller;
13543ef4f1eSHarry Liebel		reg = <0x0 0x2f000000 0 0x10000>,
13643ef4f1eSHarry Liebel		      <0x0 0x2c000000 0 0x2000>,
13743ef4f1eSHarry Liebel		      <0x0 0x2c010000 0 0x2000>,
13843ef4f1eSHarry Liebel		      <0x0 0x2c02F000 0 0x2000>;
13943ef4f1eSHarry Liebel		interrupts = <1 9 0xf04>;
14043ef4f1eSHarry Liebel	};
14143ef4f1eSHarry Liebel
14243ef4f1eSHarry Liebel	timer {
14343ef4f1eSHarry Liebel		compatible = "arm,armv8-timer";
14443ef4f1eSHarry Liebel		interrupts = <1 13 0xff01>,
14543ef4f1eSHarry Liebel			     <1 14 0xff01>,
14643ef4f1eSHarry Liebel			     <1 11 0xff01>,
14743ef4f1eSHarry Liebel			     <1 10 0xff01>;
14843ef4f1eSHarry Liebel		clock-frequency = <100000000>;
14943ef4f1eSHarry Liebel	};
15043ef4f1eSHarry Liebel
15143ef4f1eSHarry Liebel	timer@2a810000 {
15243ef4f1eSHarry Liebel			compatible = "arm,armv7-timer-mem";
15343ef4f1eSHarry Liebel			reg = <0x0 0x2a810000 0x0 0x10000>;
15443ef4f1eSHarry Liebel			clock-frequency = <100000000>;
15543ef4f1eSHarry Liebel			#address-cells = <2>;
15643ef4f1eSHarry Liebel			#size-cells = <2>;
15743ef4f1eSHarry Liebel			ranges;
158f2199d95SHarry Liebel			frame@2a830000 {
159f2199d95SHarry Liebel				frame-number = <1>;
160f2199d95SHarry Liebel				interrupts = <0 26 4>;
161f2199d95SHarry Liebel				reg = <0x0 0x2a830000 0x0 0x10000>;
16243ef4f1eSHarry Liebel			};
16343ef4f1eSHarry Liebel	};
16443ef4f1eSHarry Liebel
16543ef4f1eSHarry Liebel	pmu {
16643ef4f1eSHarry Liebel		compatible = "arm,armv8-pmuv3";
16743ef4f1eSHarry Liebel		interrupts = <0 60 4>,
16843ef4f1eSHarry Liebel			     <0 61 4>,
16943ef4f1eSHarry Liebel			     <0 62 4>,
17043ef4f1eSHarry Liebel			     <0 63 4>;
17143ef4f1eSHarry Liebel	};
17243ef4f1eSHarry Liebel
17343ef4f1eSHarry Liebel	smb {
17443ef4f1eSHarry Liebel		compatible = "simple-bus";
17543ef4f1eSHarry Liebel
17643ef4f1eSHarry Liebel		#address-cells = <2>;
17743ef4f1eSHarry Liebel		#size-cells = <1>;
17843ef4f1eSHarry Liebel		ranges = <0 0 0 0x08000000 0x04000000>,
17943ef4f1eSHarry Liebel			 <1 0 0 0x14000000 0x04000000>,
18043ef4f1eSHarry Liebel			 <2 0 0 0x18000000 0x04000000>,
18143ef4f1eSHarry Liebel			 <3 0 0 0x1c000000 0x04000000>,
18243ef4f1eSHarry Liebel			 <4 0 0 0x0c000000 0x04000000>,
18343ef4f1eSHarry Liebel			 <5 0 0 0x10000000 0x04000000>;
18443ef4f1eSHarry Liebel
18543ef4f1eSHarry Liebel		/include/ "fvp-foundation-motherboard.dtsi"
18643ef4f1eSHarry Liebel	};
18743ef4f1eSHarry Liebel};
188