Jeenu Viswambharan | d27ad95 | 2017-07-19 17:27:49 +0100 | [diff] [blame] | 1 | /* |
Balint Dobszay | 5ce2c32 | 2020-01-10 17:16:27 +0100 | [diff] [blame] | 2 | * Copyright (c) 2017-2020, ARM Limited and Contributors. All rights reserved. |
Jeenu Viswambharan | d27ad95 | 2017-07-19 17:27:49 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Balint Dobszay | d0dbd5e | 2019-12-18 15:28:00 +0100 | [diff] [blame] | 7 | #include <services/sdei_flags.h> |
| 8 | |
Jeenu Viswambharan | d27ad95 | 2017-07-19 17:27:49 +0100 | [diff] [blame] | 9 | /memreserve/ 0x80000000 0x00010000; |
| 10 | |
| 11 | / { |
| 12 | }; |
| 13 | |
| 14 | / { |
| 15 | model = "FVP Base"; |
| 16 | compatible = "arm,vfp-base", "arm,vexpress"; |
| 17 | interrupt-parent = <&gic>; |
| 18 | #address-cells = <2>; |
| 19 | #size-cells = <2>; |
| 20 | |
| 21 | chosen { }; |
| 22 | |
| 23 | aliases { |
| 24 | serial0 = &v2m_serial0; |
| 25 | serial1 = &v2m_serial1; |
| 26 | serial2 = &v2m_serial2; |
| 27 | serial3 = &v2m_serial3; |
| 28 | }; |
| 29 | |
| 30 | psci { |
| 31 | compatible = "arm,psci-1.0", "arm,psci-0.2", "arm,psci"; |
| 32 | method = "smc"; |
| 33 | cpu_suspend = <0xc4000001>; |
| 34 | cpu_off = <0x84000002>; |
| 35 | cpu_on = <0xc4000003>; |
| 36 | sys_poweroff = <0x84000008>; |
| 37 | sys_reset = <0x84000009>; |
Madhukar Pappireddy | 26b945c | 2019-12-27 12:02:34 -0600 | [diff] [blame] | 38 | max-pwr-lvl = <2>; |
Jeenu Viswambharan | d27ad95 | 2017-07-19 17:27:49 +0100 | [diff] [blame] | 39 | }; |
Balint Dobszay | d0dbd5e | 2019-12-18 15:28:00 +0100 | [diff] [blame] | 40 | |
| 41 | #if SDEI_IN_FCONF |
| 42 | firmware { |
| 43 | sdei { |
| 44 | compatible = "arm,sdei-1.0"; |
| 45 | method = "smc"; |
| 46 | private_event_count = <3>; |
| 47 | shared_event_count = <3>; |
| 48 | /* |
| 49 | * Each event descriptor has typically 3 fields: |
| 50 | * 1. Event number |
| 51 | * 2. Interrupt number the event is bound to or |
| 52 | * if event is dynamic, specified as SDEI_DYN_IRQ |
| 53 | * 3. Bit map of event flags |
| 54 | */ |
| 55 | private_events = <1000 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>, |
| 56 | <1001 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>, |
| 57 | <1002 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>; |
| 58 | shared_events = <2000 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>, |
| 59 | <2001 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>, |
| 60 | <2002 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>; |
| 61 | }; |
| 62 | }; |
| 63 | #endif /* SDEI_IN_FCONF */ |
Jeenu Viswambharan | d27ad95 | 2017-07-19 17:27:49 +0100 | [diff] [blame] | 64 | |
| 65 | cpus { |
| 66 | #address-cells = <2>; |
| 67 | #size-cells = <0>; |
| 68 | |
Alexei Fedorov | 4348f49 | 2020-05-13 21:13:57 +0100 | [diff] [blame] | 69 | CPU_MAP |
Jeenu Viswambharan | d27ad95 | 2017-07-19 17:27:49 +0100 | [diff] [blame] | 70 | |
| 71 | idle-states { |
| 72 | entry-method = "arm,psci"; |
| 73 | |
| 74 | CPU_SLEEP_0: cpu-sleep-0 { |
| 75 | compatible = "arm,idle-state"; |
| 76 | local-timer-stop; |
| 77 | arm,psci-suspend-param = <0x0010000>; |
| 78 | entry-latency-us = <40>; |
| 79 | exit-latency-us = <100>; |
| 80 | min-residency-us = <150>; |
| 81 | }; |
| 82 | |
| 83 | CLUSTER_SLEEP_0: cluster-sleep-0 { |
| 84 | compatible = "arm,idle-state"; |
| 85 | local-timer-stop; |
| 86 | arm,psci-suspend-param = <0x1010000>; |
| 87 | entry-latency-us = <500>; |
| 88 | exit-latency-us = <1000>; |
| 89 | min-residency-us = <2500>; |
| 90 | }; |
| 91 | }; |
| 92 | |
Alexei Fedorov | 4348f49 | 2020-05-13 21:13:57 +0100 | [diff] [blame] | 93 | CPUS |
Jeenu Viswambharan | d27ad95 | 2017-07-19 17:27:49 +0100 | [diff] [blame] | 94 | |
| 95 | L2_0: l2-cache0 { |
| 96 | compatible = "cache"; |
| 97 | }; |
| 98 | }; |
| 99 | |
| 100 | memory@80000000 { |
| 101 | device_type = "memory"; |
| 102 | reg = <0x00000000 0x80000000 0 0x7F000000>, |
| 103 | <0x00000008 0x80000000 0 0x80000000>; |
| 104 | }; |
| 105 | |
| 106 | gic: interrupt-controller@2f000000 { |
| 107 | compatible = "arm,gic-v3"; |
| 108 | #interrupt-cells = <3>; |
| 109 | #address-cells = <2>; |
| 110 | #size-cells = <2>; |
| 111 | ranges; |
| 112 | interrupt-controller; |
| 113 | reg = <0x0 0x2f000000 0 0x10000>, // GICD |
| 114 | <0x0 0x2f100000 0 0x200000>, // GICR |
| 115 | <0x0 0x2c000000 0 0x2000>, // GICC |
| 116 | <0x0 0x2c010000 0 0x2000>, // GICH |
| 117 | <0x0 0x2c02f000 0 0x2000>; // GICV |
| 118 | interrupts = <1 9 4>; |
| 119 | |
| 120 | its: its@2f020000 { |
| 121 | compatible = "arm,gic-v3-its"; |
| 122 | msi-controller; |
| 123 | reg = <0x0 0x2f020000 0x0 0x20000>; // GITS |
| 124 | }; |
| 125 | }; |
| 126 | |
| 127 | timer { |
| 128 | compatible = "arm,armv8-timer"; |
| 129 | interrupts = <1 13 0xff01>, |
| 130 | <1 14 0xff01>, |
| 131 | <1 11 0xff01>, |
| 132 | <1 10 0xff01>; |
| 133 | clock-frequency = <100000000>; |
| 134 | }; |
| 135 | |
| 136 | timer@2a810000 { |
| 137 | compatible = "arm,armv7-timer-mem"; |
| 138 | reg = <0x0 0x2a810000 0x0 0x10000>; |
| 139 | clock-frequency = <100000000>; |
| 140 | #address-cells = <2>; |
| 141 | #size-cells = <2>; |
| 142 | ranges; |
| 143 | frame@2a830000 { |
| 144 | frame-number = <1>; |
| 145 | interrupts = <0 26 4>; |
| 146 | reg = <0x0 0x2a830000 0x0 0x10000>; |
| 147 | }; |
| 148 | }; |
| 149 | |
| 150 | pmu { |
| 151 | compatible = "arm,armv8-pmuv3"; |
| 152 | interrupts = <0 60 4>, |
| 153 | <0 61 4>, |
| 154 | <0 62 4>, |
| 155 | <0 63 4>; |
| 156 | }; |
| 157 | |
Roberto Vargas | 0fccc50 | 2018-04-23 14:44:54 +0100 | [diff] [blame] | 158 | smb@0,0 { |
Jeenu Viswambharan | d27ad95 | 2017-07-19 17:27:49 +0100 | [diff] [blame] | 159 | compatible = "simple-bus"; |
| 160 | |
| 161 | #address-cells = <2>; |
| 162 | #size-cells = <1>; |
| 163 | ranges = <0 0 0 0x08000000 0x04000000>, |
| 164 | <1 0 0 0x14000000 0x04000000>, |
| 165 | <2 0 0 0x18000000 0x04000000>, |
| 166 | <3 0 0 0x1c000000 0x04000000>, |
| 167 | <4 0 0 0x0c000000 0x04000000>, |
| 168 | <5 0 0 0x10000000 0x04000000>; |
| 169 | |
Balint Dobszay | 5ce2c32 | 2020-01-10 17:16:27 +0100 | [diff] [blame] | 170 | #include "rtsm_ve-motherboard.dtsi" |
Jeenu Viswambharan | d27ad95 | 2017-07-19 17:27:49 +0100 | [diff] [blame] | 171 | }; |
| 172 | |
| 173 | panels { |
Roberto Vargas | 0fccc50 | 2018-04-23 14:44:54 +0100 | [diff] [blame] | 174 | panel { |
Jeenu Viswambharan | d27ad95 | 2017-07-19 17:27:49 +0100 | [diff] [blame] | 175 | compatible = "panel"; |
| 176 | mode = "XVGA"; |
| 177 | refresh = <60>; |
| 178 | xres = <1024>; |
| 179 | yres = <768>; |
| 180 | pixclock = <15748>; |
| 181 | left_margin = <152>; |
| 182 | right_margin = <48>; |
| 183 | upper_margin = <23>; |
| 184 | lower_margin = <3>; |
| 185 | hsync_len = <104>; |
| 186 | vsync_len = <4>; |
| 187 | sync = <0>; |
| 188 | vmode = "FB_VMODE_NONINTERLACED"; |
| 189 | tim2 = "TIM2_BCD", "TIM2_IPC"; |
| 190 | cntl = "CNTL_LCDTFT", "CNTL_BGR", "CNTL_LCDVCOMP(1)"; |
| 191 | caps = "CLCD_CAP_5551", "CLCD_CAP_565", "CLCD_CAP_888"; |
| 192 | bpp = <16>; |
| 193 | }; |
| 194 | }; |
| 195 | }; |