blob: c053289e29735821406c038d1989c8bc4f2de898 [file] [log] [blame]
Jeenu Viswambharand27ad952017-07-19 17:27:49 +01001/*
Alexei Fedorovcb8fef62021-04-12 12:49:54 +01002 * Copyright (c) 2017-2021, ARM Limited and Contributors. All rights reserved.
Jeenu Viswambharand27ad952017-07-19 17:27:49 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Alexei Fedorovcb8fef62021-04-12 12:49:54 +01007#include <dt-bindings/interrupt-controller/arm-gic.h>
Alexei Fedorov9fe73b22021-04-23 16:12:11 +01008#include <services/sdei_flags.h>
Balint Dobszayd0dbd5e2019-12-18 15:28:00 +01009
Madhukar Pappireddy02cc3ff2020-06-02 09:26:30 -050010#define LEVEL 0
11#define EDGE 2
12#define SDEI_NORMAL 0x70
13#define HIGHEST_SEC 0
14
Jeenu Viswambharand27ad952017-07-19 17:27:49 +010015/memreserve/ 0x80000000 0x00010000;
16
17/ {
18};
19
20/ {
21 model = "FVP Base";
22 compatible = "arm,vfp-base", "arm,vexpress";
23 interrupt-parent = <&gic>;
24 #address-cells = <2>;
25 #size-cells = <2>;
26
Zelalem Awekea00ebae2021-07-13 18:59:19 -050027#if (ENABLE_RME == 1)
28 chosen { bootargs = "mem=1G console=ttyAMA0 earlycon=pl011,0x1c090000 root=/dev/vda ip=on";};
29#else
30 chosen {};
31#endif
Jeenu Viswambharand27ad952017-07-19 17:27:49 +010032
33 aliases {
34 serial0 = &v2m_serial0;
35 serial1 = &v2m_serial1;
36 serial2 = &v2m_serial2;
37 serial3 = &v2m_serial3;
38 };
39
40 psci {
Andre Przywarafff428c2021-12-10 18:22:09 +000041 compatible = "arm,psci-1.0", "arm,psci-0.2";
Jeenu Viswambharand27ad952017-07-19 17:27:49 +010042 method = "smc";
Madhukar Pappireddy26b945c2019-12-27 12:02:34 -060043 max-pwr-lvl = <2>;
Jeenu Viswambharand27ad952017-07-19 17:27:49 +010044 };
Balint Dobszayd0dbd5e2019-12-18 15:28:00 +010045
Madhukar Pappireddy02cc3ff2020-06-02 09:26:30 -050046#if SDEI_IN_FCONF || SEC_INT_DESC_IN_FCONF
Balint Dobszayd0dbd5e2019-12-18 15:28:00 +010047 firmware {
Madhukar Pappireddy02cc3ff2020-06-02 09:26:30 -050048#if SDEI_IN_FCONF
Balint Dobszayd0dbd5e2019-12-18 15:28:00 +010049 sdei {
50 compatible = "arm,sdei-1.0";
51 method = "smc";
52 private_event_count = <3>;
53 shared_event_count = <3>;
54 /*
55 * Each event descriptor has typically 3 fields:
56 * 1. Event number
57 * 2. Interrupt number the event is bound to or
58 * if event is dynamic, specified as SDEI_DYN_IRQ
59 * 3. Bit map of event flags
60 */
61 private_events = <1000 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>,
62 <1001 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>,
63 <1002 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>;
64 shared_events = <2000 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>,
65 <2001 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>,
66 <2002 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>;
67 };
Balint Dobszayd0dbd5e2019-12-18 15:28:00 +010068#endif /* SDEI_IN_FCONF */
Jeenu Viswambharand27ad952017-07-19 17:27:49 +010069
Madhukar Pappireddy02cc3ff2020-06-02 09:26:30 -050070#if SEC_INT_DESC_IN_FCONF
71 sec_interrupts {
72 compatible = "arm,secure_interrupt_desc";
73 /* Number of G0 and G1 secure interrupts defined by the platform */
74 g0_intr_cnt = <2>;
75 g1s_intr_cnt = <9>;
76 /*
77 * Define a list of Group 1 Secure and Group 0 interrupts as per GICv3
78 * terminology. Each interrupt property descriptor has 3 fields:
79 * 1. Interrupt number
80 * 2. Interrupt priority
81 * 3. Type of interrupt (Edge or Level configured)
82 */
83 g0_intr_desc = < 8 SDEI_NORMAL EDGE>,
84 <14 HIGHEST_SEC EDGE>;
85
86 g1s_intr_desc = < 9 HIGHEST_SEC EDGE>,
87 <10 HIGHEST_SEC EDGE>,
88 <11 HIGHEST_SEC EDGE>,
89 <12 HIGHEST_SEC EDGE>,
90 <13 HIGHEST_SEC EDGE>,
91 <15 HIGHEST_SEC EDGE>,
92 <29 HIGHEST_SEC LEVEL>,
93 <56 HIGHEST_SEC LEVEL>,
94 <57 HIGHEST_SEC LEVEL>;
95 };
96#endif /* SEC_INT_DESC_IN_FCONF */
97 };
98#endif /* SDEI_IN_FCONF || SEC_INT_DESC_IN_FCONF */
99
Jeenu Viswambharand27ad952017-07-19 17:27:49 +0100100 cpus {
101 #address-cells = <2>;
102 #size-cells = <0>;
103
Alexei Fedorov4348f492020-05-13 21:13:57 +0100104 CPU_MAP
Jeenu Viswambharand27ad952017-07-19 17:27:49 +0100105
106 idle-states {
107 entry-method = "arm,psci";
108
109 CPU_SLEEP_0: cpu-sleep-0 {
110 compatible = "arm,idle-state";
111 local-timer-stop;
112 arm,psci-suspend-param = <0x0010000>;
113 entry-latency-us = <40>;
114 exit-latency-us = <100>;
115 min-residency-us = <150>;
116 };
117
118 CLUSTER_SLEEP_0: cluster-sleep-0 {
119 compatible = "arm,idle-state";
120 local-timer-stop;
121 arm,psci-suspend-param = <0x1010000>;
122 entry-latency-us = <500>;
123 exit-latency-us = <1000>;
124 min-residency-us = <2500>;
125 };
126 };
127
Alexei Fedorov4348f492020-05-13 21:13:57 +0100128 CPUS
Jeenu Viswambharand27ad952017-07-19 17:27:49 +0100129
130 L2_0: l2-cache0 {
131 compatible = "cache";
132 };
133 };
134
135 memory@80000000 {
136 device_type = "memory";
Zelalem Awekea00ebae2021-07-13 18:59:19 -0500137#if (ENABLE_RME == 1)
138 reg = <0x00000000 0x80000000 0 0x7C000000>,
139 <0x00000008 0x80000000 0 0x80000000>;
140#else
Jeenu Viswambharand27ad952017-07-19 17:27:49 +0100141 reg = <0x00000000 0x80000000 0 0x7F000000>,
142 <0x00000008 0x80000000 0 0x80000000>;
Zelalem Awekea00ebae2021-07-13 18:59:19 -0500143#endif
Jeenu Viswambharand27ad952017-07-19 17:27:49 +0100144 };
145
146 gic: interrupt-controller@2f000000 {
147 compatible = "arm,gic-v3";
148 #interrupt-cells = <3>;
149 #address-cells = <2>;
150 #size-cells = <2>;
151 ranges;
152 interrupt-controller;
153 reg = <0x0 0x2f000000 0 0x10000>, // GICD
154 <0x0 0x2f100000 0 0x200000>, // GICR
155 <0x0 0x2c000000 0 0x2000>, // GICC
156 <0x0 0x2c010000 0 0x2000>, // GICH
157 <0x0 0x2c02f000 0 0x2000>; // GICV
158 interrupts = <1 9 4>;
159
160 its: its@2f020000 {
161 compatible = "arm,gic-v3-its";
162 msi-controller;
163 reg = <0x0 0x2f020000 0x0 0x20000>; // GITS
164 };
165 };
166
167 timer {
168 compatible = "arm,armv8-timer";
Alexei Fedorovcb8fef62021-04-12 12:49:54 +0100169 interrupts = <GIC_PPI 13
170 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
171 <GIC_PPI 14
172 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
173 <GIC_PPI 11
174 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
175 <GIC_PPI 10
176 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
Jeenu Viswambharand27ad952017-07-19 17:27:49 +0100177 clock-frequency = <100000000>;
178 };
179
180 timer@2a810000 {
181 compatible = "arm,armv7-timer-mem";
182 reg = <0x0 0x2a810000 0x0 0x10000>;
183 clock-frequency = <100000000>;
184 #address-cells = <2>;
185 #size-cells = <2>;
186 ranges;
187 frame@2a830000 {
188 frame-number = <1>;
189 interrupts = <0 26 4>;
190 reg = <0x0 0x2a830000 0x0 0x10000>;
191 };
192 };
193
194 pmu {
195 compatible = "arm,armv8-pmuv3";
196 interrupts = <0 60 4>,
197 <0 61 4>,
198 <0 62 4>,
199 <0 63 4>;
200 };
201
Roberto Vargas0fccc502018-04-23 14:44:54 +0100202 smb@0,0 {
Jeenu Viswambharand27ad952017-07-19 17:27:49 +0100203 compatible = "simple-bus";
204
205 #address-cells = <2>;
206 #size-cells = <1>;
207 ranges = <0 0 0 0x08000000 0x04000000>,
208 <1 0 0 0x14000000 0x04000000>,
209 <2 0 0 0x18000000 0x04000000>,
210 <3 0 0 0x1c000000 0x04000000>,
211 <4 0 0 0x0c000000 0x04000000>,
212 <5 0 0 0x10000000 0x04000000>;
213
Balint Dobszay5ce2c322020-01-10 17:16:27 +0100214 #include "rtsm_ve-motherboard.dtsi"
Jeenu Viswambharand27ad952017-07-19 17:27:49 +0100215 };
216
217 panels {
Roberto Vargas0fccc502018-04-23 14:44:54 +0100218 panel {
Jeenu Viswambharand27ad952017-07-19 17:27:49 +0100219 compatible = "panel";
220 mode = "XVGA";
221 refresh = <60>;
222 xres = <1024>;
223 yres = <768>;
224 pixclock = <15748>;
225 left_margin = <152>;
226 right_margin = <48>;
227 upper_margin = <23>;
228 lower_margin = <3>;
229 hsync_len = <104>;
230 vsync_len = <4>;
231 sync = <0>;
232 vmode = "FB_VMODE_NONINTERLACED";
233 tim2 = "TIM2_BCD", "TIM2_IPC";
234 cntl = "CNTL_LCDTFT", "CNTL_BGR", "CNTL_LCDVCOMP(1)";
235 caps = "CLCD_CAP_5551", "CLCD_CAP_565", "CLCD_CAP_888";
236 bpp = <16>;
237 };
238 };
239};