xref: /rk3399_ARM-atf/fdts/fvp-foundation-gicv2-psci.dts (revision f2199d95d931826be7f87af0935ac536812d0488)
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 *
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/ {
39*f2199d95SHarry 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 {
5543ef4f1eSHarry Liebel		compatible = "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
6643ef4f1eSHarry Liebel		cpu@0 {
6743ef4f1eSHarry Liebel			device_type = "cpu";
6843ef4f1eSHarry Liebel			compatible = "arm,armv8";
6943ef4f1eSHarry Liebel			reg = <0x0 0x0>;
7043ef4f1eSHarry Liebel			enable-method = "psci";
7143ef4f1eSHarry Liebel		};
7243ef4f1eSHarry Liebel		cpu@1 {
7343ef4f1eSHarry Liebel			device_type = "cpu";
7443ef4f1eSHarry Liebel			compatible = "arm,armv8";
7543ef4f1eSHarry Liebel			reg = <0x0 0x1>;
7643ef4f1eSHarry Liebel			enable-method = "psci";
7743ef4f1eSHarry Liebel		};
7843ef4f1eSHarry Liebel		cpu@2 {
7943ef4f1eSHarry Liebel			device_type = "cpu";
8043ef4f1eSHarry Liebel			compatible = "arm,armv8";
8143ef4f1eSHarry Liebel			reg = <0x0 0x2>;
8243ef4f1eSHarry Liebel			enable-method = "psci";
8343ef4f1eSHarry Liebel		};
8443ef4f1eSHarry Liebel		cpu@3 {
8543ef4f1eSHarry Liebel			device_type = "cpu";
8643ef4f1eSHarry Liebel			compatible = "arm,armv8";
8743ef4f1eSHarry Liebel			reg = <0x0 0x3>;
8843ef4f1eSHarry Liebel			enable-method = "psci";
8943ef4f1eSHarry Liebel		};
9043ef4f1eSHarry Liebel	};
9143ef4f1eSHarry Liebel
9243ef4f1eSHarry Liebel	memory@80000000 {
9343ef4f1eSHarry Liebel		device_type = "memory";
9443ef4f1eSHarry Liebel		reg = <0x00000000 0x80000000 0 0x80000000>,
9543ef4f1eSHarry Liebel		      <0x00000008 0x80000000 0 0x80000000>;
9643ef4f1eSHarry Liebel	};
9743ef4f1eSHarry Liebel
9843ef4f1eSHarry Liebel	gic: interrupt-controller@2f000000 {
9943ef4f1eSHarry Liebel		compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic";
10043ef4f1eSHarry Liebel		#interrupt-cells = <3>;
10143ef4f1eSHarry Liebel		#address-cells = <0>;
10243ef4f1eSHarry Liebel		interrupt-controller;
10343ef4f1eSHarry Liebel		reg = <0x0 0x2f000000 0 0x10000>,
10443ef4f1eSHarry Liebel		      <0x0 0x2c000000 0 0x2000>,
10543ef4f1eSHarry Liebel		      <0x0 0x2c010000 0 0x2000>,
10643ef4f1eSHarry Liebel		      <0x0 0x2c02F000 0 0x2000>;
10743ef4f1eSHarry Liebel		interrupts = <1 9 0xf04>;
10843ef4f1eSHarry Liebel	};
10943ef4f1eSHarry Liebel
11043ef4f1eSHarry Liebel	timer {
11143ef4f1eSHarry Liebel		compatible = "arm,armv8-timer";
11243ef4f1eSHarry Liebel		interrupts = <1 13 0xff01>,
11343ef4f1eSHarry Liebel			     <1 14 0xff01>,
11443ef4f1eSHarry Liebel			     <1 11 0xff01>,
11543ef4f1eSHarry Liebel			     <1 10 0xff01>;
11643ef4f1eSHarry Liebel		clock-frequency = <100000000>;
11743ef4f1eSHarry Liebel	};
11843ef4f1eSHarry Liebel
11943ef4f1eSHarry Liebel	timer@2a810000 {
12043ef4f1eSHarry Liebel			compatible = "arm,armv7-timer-mem";
12143ef4f1eSHarry Liebel			reg = <0x0 0x2a810000 0x0 0x10000>;
12243ef4f1eSHarry Liebel			clock-frequency = <100000000>;
12343ef4f1eSHarry Liebel			#address-cells = <2>;
12443ef4f1eSHarry Liebel			#size-cells = <2>;
12543ef4f1eSHarry Liebel			ranges;
126*f2199d95SHarry Liebel			frame@2a830000 {
127*f2199d95SHarry Liebel				frame-number = <1>;
128*f2199d95SHarry Liebel				interrupts = <0 26 4>;
129*f2199d95SHarry Liebel				reg = <0x0 0x2a830000 0x0 0x10000>;
13043ef4f1eSHarry Liebel			};
13143ef4f1eSHarry Liebel	};
13243ef4f1eSHarry Liebel
13343ef4f1eSHarry Liebel	pmu {
13443ef4f1eSHarry Liebel		compatible = "arm,armv8-pmuv3";
13543ef4f1eSHarry Liebel		interrupts = <0 60 4>,
13643ef4f1eSHarry Liebel			     <0 61 4>,
13743ef4f1eSHarry Liebel			     <0 62 4>,
13843ef4f1eSHarry Liebel			     <0 63 4>;
13943ef4f1eSHarry Liebel	};
14043ef4f1eSHarry Liebel
14143ef4f1eSHarry Liebel	smb {
14243ef4f1eSHarry Liebel		compatible = "simple-bus";
14343ef4f1eSHarry Liebel
14443ef4f1eSHarry Liebel		#address-cells = <2>;
14543ef4f1eSHarry Liebel		#size-cells = <1>;
14643ef4f1eSHarry Liebel		ranges = <0 0 0 0x08000000 0x04000000>,
14743ef4f1eSHarry Liebel			 <1 0 0 0x14000000 0x04000000>,
14843ef4f1eSHarry Liebel			 <2 0 0 0x18000000 0x04000000>,
14943ef4f1eSHarry Liebel			 <3 0 0 0x1c000000 0x04000000>,
15043ef4f1eSHarry Liebel			 <4 0 0 0x0c000000 0x04000000>,
15143ef4f1eSHarry Liebel			 <5 0 0 0x10000000 0x04000000>;
15243ef4f1eSHarry Liebel
15343ef4f1eSHarry Liebel		#interrupt-cells = <1>;
15443ef4f1eSHarry Liebel		interrupt-map-mask = <0 0 63>;
15543ef4f1eSHarry Liebel		interrupt-map = <0 0  0 &gic 0  0 4>,
15643ef4f1eSHarry Liebel				<0 0  1 &gic 0  1 4>,
15743ef4f1eSHarry Liebel				<0 0  2 &gic 0  2 4>,
15843ef4f1eSHarry Liebel				<0 0  3 &gic 0  3 4>,
15943ef4f1eSHarry Liebel				<0 0  4 &gic 0  4 4>,
16043ef4f1eSHarry Liebel				<0 0  5 &gic 0  5 4>,
16143ef4f1eSHarry Liebel				<0 0  6 &gic 0  6 4>,
16243ef4f1eSHarry Liebel				<0 0  7 &gic 0  7 4>,
16343ef4f1eSHarry Liebel				<0 0  8 &gic 0  8 4>,
16443ef4f1eSHarry Liebel				<0 0  9 &gic 0  9 4>,
16543ef4f1eSHarry Liebel				<0 0 10 &gic 0 10 4>,
16643ef4f1eSHarry Liebel				<0 0 11 &gic 0 11 4>,
16743ef4f1eSHarry Liebel				<0 0 12 &gic 0 12 4>,
16843ef4f1eSHarry Liebel				<0 0 13 &gic 0 13 4>,
16943ef4f1eSHarry Liebel				<0 0 14 &gic 0 14 4>,
17043ef4f1eSHarry Liebel				<0 0 15 &gic 0 15 4>,
17143ef4f1eSHarry Liebel				<0 0 16 &gic 0 16 4>,
17243ef4f1eSHarry Liebel				<0 0 17 &gic 0 17 4>,
17343ef4f1eSHarry Liebel				<0 0 18 &gic 0 18 4>,
17443ef4f1eSHarry Liebel				<0 0 19 &gic 0 19 4>,
17543ef4f1eSHarry Liebel				<0 0 20 &gic 0 20 4>,
17643ef4f1eSHarry Liebel				<0 0 21 &gic 0 21 4>,
17743ef4f1eSHarry Liebel				<0 0 22 &gic 0 22 4>,
17843ef4f1eSHarry Liebel				<0 0 23 &gic 0 23 4>,
17943ef4f1eSHarry Liebel				<0 0 24 &gic 0 24 4>,
18043ef4f1eSHarry Liebel				<0 0 25 &gic 0 25 4>,
18143ef4f1eSHarry Liebel				<0 0 26 &gic 0 26 4>,
18243ef4f1eSHarry Liebel				<0 0 27 &gic 0 27 4>,
18343ef4f1eSHarry Liebel				<0 0 28 &gic 0 28 4>,
18443ef4f1eSHarry Liebel				<0 0 29 &gic 0 29 4>,
18543ef4f1eSHarry Liebel				<0 0 30 &gic 0 30 4>,
18643ef4f1eSHarry Liebel				<0 0 31 &gic 0 31 4>,
18743ef4f1eSHarry Liebel				<0 0 32 &gic 0 32 4>,
18843ef4f1eSHarry Liebel				<0 0 33 &gic 0 33 4>,
18943ef4f1eSHarry Liebel				<0 0 34 &gic 0 34 4>,
19043ef4f1eSHarry Liebel				<0 0 35 &gic 0 35 4>,
19143ef4f1eSHarry Liebel				<0 0 36 &gic 0 36 4>,
19243ef4f1eSHarry Liebel				<0 0 37 &gic 0 37 4>,
19343ef4f1eSHarry Liebel				<0 0 38 &gic 0 38 4>,
19443ef4f1eSHarry Liebel				<0 0 39 &gic 0 39 4>,
19543ef4f1eSHarry Liebel				<0 0 40 &gic 0 40 4>,
19643ef4f1eSHarry Liebel				<0 0 41 &gic 0 41 4>,
19743ef4f1eSHarry Liebel				<0 0 42 &gic 0 42 4>;
19843ef4f1eSHarry Liebel
19943ef4f1eSHarry Liebel		/include/ "fvp-foundation-motherboard.dtsi"
20043ef4f1eSHarry Liebel	};
20143ef4f1eSHarry Liebel};
202