Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 1 | /* |
annsai01 | 7c607f2 | 2023-02-20 13:34:57 +0000 | [diff] [blame] | 2 | * Copyright (c) 2020-2024, Arm Limited. All rights reserved. |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
Kshitij Sisodia | b32a8f4 | 2023-08-16 09:46:05 +0100 | [diff] [blame] | 9 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 10 | #include <dt-bindings/interrupt-controller/irq.h> |
| 11 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 12 | / { |
Usama Arif | f151362 | 2021-04-09 17:07:41 +0100 | [diff] [blame] | 13 | compatible = "arm,tc"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 14 | interrupt-parent = <&gic>; |
| 15 | #address-cells = <2>; |
| 16 | #size-cells = <2>; |
| 17 | |
| 18 | aliases { |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 19 | serial0 = &os_uart; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | chosen { |
Nikos Nikoleris | 35800bd | 2021-01-21 13:50:25 +0000 | [diff] [blame] | 23 | stdout-path = "serial0:115200n8"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | cpus { |
| 27 | #address-cells = <1>; |
| 28 | #size-cells = <0>; |
| 29 | |
| 30 | cpu-map { |
| 31 | cluster0 { |
| 32 | core0 { |
| 33 | cpu = <&CPU0>; |
| 34 | }; |
| 35 | core1 { |
| 36 | cpu = <&CPU1>; |
| 37 | }; |
| 38 | core2 { |
| 39 | cpu = <&CPU2>; |
| 40 | }; |
| 41 | core3 { |
| 42 | cpu = <&CPU3>; |
| 43 | }; |
Avinash Mehta | f68a084 | 2020-10-28 16:43:28 +0000 | [diff] [blame] | 44 | core4 { |
| 45 | cpu = <&CPU4>; |
| 46 | }; |
| 47 | core5 { |
| 48 | cpu = <&CPU5>; |
| 49 | }; |
| 50 | core6 { |
| 51 | cpu = <&CPU6>; |
| 52 | }; |
| 53 | core7 { |
| 54 | cpu = <&CPU7>; |
| 55 | }; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 56 | }; |
| 57 | }; |
| 58 | |
Usama Arif | 5790078 | 2020-08-12 17:14:37 +0100 | [diff] [blame] | 59 | /* |
| 60 | * The timings below are just to demonstrate working cpuidle. |
| 61 | * These values may be inaccurate. |
| 62 | */ |
| 63 | idle-states { |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 64 | entry-method = "psci"; |
Usama Arif | 5790078 | 2020-08-12 17:14:37 +0100 | [diff] [blame] | 65 | |
| 66 | CPU_SLEEP_0: cpu-sleep-0 { |
| 67 | compatible = "arm,idle-state"; |
| 68 | arm,psci-suspend-param = <0x0010000>; |
| 69 | local-timer-stop; |
| 70 | entry-latency-us = <300>; |
| 71 | exit-latency-us = <1200>; |
| 72 | min-residency-us = <2000>; |
| 73 | }; |
| 74 | CLUSTER_SLEEP_0: cluster-sleep-0 { |
| 75 | compatible = "arm,idle-state"; |
| 76 | arm,psci-suspend-param = <0x1010000>; |
| 77 | local-timer-stop; |
| 78 | entry-latency-us = <400>; |
| 79 | exit-latency-us = <1200>; |
| 80 | min-residency-us = <2500>; |
| 81 | }; |
| 82 | }; |
| 83 | |
Chris Kay | c2d29ba | 2021-05-18 18:49:51 +0100 | [diff] [blame] | 84 | amus { |
| 85 | amu: amu-0 { |
| 86 | #address-cells = <1>; |
| 87 | #size-cells = <0>; |
| 88 | |
| 89 | mpmm_gear0: counter@0 { |
| 90 | reg = <0>; |
| 91 | |
| 92 | enable-at-el3; |
| 93 | }; |
| 94 | |
| 95 | mpmm_gear1: counter@1 { |
| 96 | reg = <1>; |
| 97 | |
| 98 | enable-at-el3; |
| 99 | }; |
| 100 | |
| 101 | mpmm_gear2: counter@2 { |
| 102 | reg = <2>; |
| 103 | |
| 104 | enable-at-el3; |
| 105 | }; |
| 106 | }; |
| 107 | }; |
| 108 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 109 | CPU0:cpu@0 { |
| 110 | device_type = "cpu"; |
| 111 | compatible = "arm,armv8"; |
| 112 | reg = <0x0>; |
| 113 | enable-method = "psci"; |
| 114 | clocks = <&scmi_dvfs 0>; |
Usama Arif | 5790078 | 2020-08-12 17:14:37 +0100 | [diff] [blame] | 115 | cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; |
Usama Arif | ecbc846 | 2021-06-14 12:38:37 +0100 | [diff] [blame] | 116 | capacity-dmips-mhz = <406>; |
Chris Kay | c2d29ba | 2021-05-18 18:49:51 +0100 | [diff] [blame] | 117 | amu = <&amu>; |
| 118 | supports-mpmm; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 119 | }; |
| 120 | |
| 121 | CPU1:cpu@100 { |
| 122 | device_type = "cpu"; |
| 123 | compatible = "arm,armv8"; |
| 124 | reg = <0x100>; |
| 125 | enable-method = "psci"; |
| 126 | clocks = <&scmi_dvfs 0>; |
Usama Arif | 5790078 | 2020-08-12 17:14:37 +0100 | [diff] [blame] | 127 | cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; |
Usama Arif | ecbc846 | 2021-06-14 12:38:37 +0100 | [diff] [blame] | 128 | capacity-dmips-mhz = <406>; |
Chris Kay | c2d29ba | 2021-05-18 18:49:51 +0100 | [diff] [blame] | 129 | amu = <&amu>; |
| 130 | supports-mpmm; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 131 | }; |
| 132 | |
| 133 | CPU2:cpu@200 { |
| 134 | device_type = "cpu"; |
| 135 | compatible = "arm,armv8"; |
| 136 | reg = <0x200>; |
| 137 | enable-method = "psci"; |
| 138 | clocks = <&scmi_dvfs 0>; |
Usama Arif | 5790078 | 2020-08-12 17:14:37 +0100 | [diff] [blame] | 139 | cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; |
Usama Arif | ecbc846 | 2021-06-14 12:38:37 +0100 | [diff] [blame] | 140 | capacity-dmips-mhz = <406>; |
Chris Kay | c2d29ba | 2021-05-18 18:49:51 +0100 | [diff] [blame] | 141 | amu = <&amu>; |
| 142 | supports-mpmm; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 143 | }; |
| 144 | |
| 145 | CPU3:cpu@300 { |
| 146 | device_type = "cpu"; |
| 147 | compatible = "arm,armv8"; |
| 148 | reg = <0x300>; |
| 149 | enable-method = "psci"; |
| 150 | clocks = <&scmi_dvfs 0>; |
Usama Arif | 5790078 | 2020-08-12 17:14:37 +0100 | [diff] [blame] | 151 | cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; |
Usama Arif | ecbc846 | 2021-06-14 12:38:37 +0100 | [diff] [blame] | 152 | capacity-dmips-mhz = <406>; |
Chris Kay | c2d29ba | 2021-05-18 18:49:51 +0100 | [diff] [blame] | 153 | amu = <&amu>; |
| 154 | supports-mpmm; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 155 | }; |
| 156 | |
Avinash Mehta | f68a084 | 2020-10-28 16:43:28 +0000 | [diff] [blame] | 157 | CPU4:cpu@400 { |
| 158 | device_type = "cpu"; |
| 159 | compatible = "arm,armv8"; |
| 160 | reg = <0x400>; |
| 161 | enable-method = "psci"; |
Usama Arif | 75edb75 | 2021-02-03 15:40:46 +0000 | [diff] [blame] | 162 | clocks = <&scmi_dvfs 1>; |
Avinash Mehta | f68a084 | 2020-10-28 16:43:28 +0000 | [diff] [blame] | 163 | cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; |
Usama Arif | ecbc846 | 2021-06-14 12:38:37 +0100 | [diff] [blame] | 164 | capacity-dmips-mhz = <912>; |
Chris Kay | c2d29ba | 2021-05-18 18:49:51 +0100 | [diff] [blame] | 165 | amu = <&amu>; |
| 166 | supports-mpmm; |
Avinash Mehta | f68a084 | 2020-10-28 16:43:28 +0000 | [diff] [blame] | 167 | }; |
| 168 | |
| 169 | CPU5:cpu@500 { |
| 170 | device_type = "cpu"; |
| 171 | compatible = "arm,armv8"; |
| 172 | reg = <0x500>; |
| 173 | enable-method = "psci"; |
Usama Arif | 75edb75 | 2021-02-03 15:40:46 +0000 | [diff] [blame] | 174 | clocks = <&scmi_dvfs 1>; |
Avinash Mehta | f68a084 | 2020-10-28 16:43:28 +0000 | [diff] [blame] | 175 | cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; |
Usama Arif | ecbc846 | 2021-06-14 12:38:37 +0100 | [diff] [blame] | 176 | capacity-dmips-mhz = <912>; |
Chris Kay | c2d29ba | 2021-05-18 18:49:51 +0100 | [diff] [blame] | 177 | amu = <&amu>; |
| 178 | supports-mpmm; |
Avinash Mehta | f68a084 | 2020-10-28 16:43:28 +0000 | [diff] [blame] | 179 | }; |
| 180 | |
| 181 | CPU6:cpu@600 { |
| 182 | device_type = "cpu"; |
| 183 | compatible = "arm,armv8"; |
| 184 | reg = <0x600>; |
| 185 | enable-method = "psci"; |
Usama Arif | 75edb75 | 2021-02-03 15:40:46 +0000 | [diff] [blame] | 186 | clocks = <&scmi_dvfs 1>; |
Avinash Mehta | f68a084 | 2020-10-28 16:43:28 +0000 | [diff] [blame] | 187 | cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; |
Usama Arif | ecbc846 | 2021-06-14 12:38:37 +0100 | [diff] [blame] | 188 | capacity-dmips-mhz = <912>; |
Chris Kay | c2d29ba | 2021-05-18 18:49:51 +0100 | [diff] [blame] | 189 | amu = <&amu>; |
| 190 | supports-mpmm; |
Avinash Mehta | f68a084 | 2020-10-28 16:43:28 +0000 | [diff] [blame] | 191 | }; |
| 192 | |
| 193 | CPU7:cpu@700 { |
| 194 | device_type = "cpu"; |
| 195 | compatible = "arm,armv8"; |
| 196 | reg = <0x700>; |
| 197 | enable-method = "psci"; |
Usama Arif | 410d50d | 2021-04-07 11:48:22 +0100 | [diff] [blame] | 198 | clocks = <&scmi_dvfs 2>; |
Avinash Mehta | f68a084 | 2020-10-28 16:43:28 +0000 | [diff] [blame] | 199 | cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; |
Usama Arif | ecbc846 | 2021-06-14 12:38:37 +0100 | [diff] [blame] | 200 | capacity-dmips-mhz = <1024>; |
Chris Kay | c2d29ba | 2021-05-18 18:49:51 +0100 | [diff] [blame] | 201 | amu = <&amu>; |
| 202 | supports-mpmm; |
Avinash Mehta | f68a084 | 2020-10-28 16:43:28 +0000 | [diff] [blame] | 203 | }; |
| 204 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 205 | }; |
| 206 | |
Arunachalam Ganapathy | 948bb44 | 2020-12-14 12:31:32 +0000 | [diff] [blame] | 207 | reserved-memory { |
| 208 | #address-cells = <2>; |
| 209 | #size-cells = <2>; |
| 210 | ranges; |
| 211 | |
Anders Dellien | a6c9b72 | 2021-12-08 21:57:21 +0000 | [diff] [blame] | 212 | linux,cma { |
| 213 | compatible = "shared-dma-pool"; |
| 214 | reusable; |
| 215 | size = <0x0 0x8000000>; |
| 216 | linux,cma-default; |
| 217 | }; |
| 218 | |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 219 | optee@f8e00000 { |
Davidson K | 4662a88 | 2022-12-14 17:38:14 +0530 | [diff] [blame] | 220 | compatible = "restricted-dma-pool"; |
Arunachalam Ganapathy | ac9e120 | 2022-04-11 17:38:17 +0100 | [diff] [blame] | 221 | reg = <0x00000000 0xf8e00000 0 0x00200000>; |
Arunachalam Ganapathy | 948bb44 | 2020-12-14 12:31:32 +0000 | [diff] [blame] | 222 | }; |
Tudor Cretu | 77b301a | 2021-09-24 12:09:53 +0000 | [diff] [blame] | 223 | |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 224 | fwu_mm@fca00000 { |
Tudor Cretu | 77b301a | 2021-09-24 12:09:53 +0000 | [diff] [blame] | 225 | reg = <0x00000000 0xfca00000 0 0x00400000>; |
| 226 | no-map; |
| 227 | }; |
Arunachalam Ganapathy | 948bb44 | 2020-12-14 12:31:32 +0000 | [diff] [blame] | 228 | }; |
| 229 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 230 | psci { |
Usama Arif | 7a64bfa | 2021-05-27 20:09:17 +0100 | [diff] [blame] | 231 | compatible = "arm,psci-1.0", "arm,psci-0.2"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 232 | method = "smc"; |
| 233 | }; |
| 234 | |
Boyan Karatotev | 4fef47c | 2023-11-15 11:29:59 +0000 | [diff] [blame] | 235 | cpu-pmu { |
| 236 | compatible = "arm,armv8-pmuv3"; |
| 237 | interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; |
| 238 | interrupt-affinity = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>, |
| 239 | <&CPU4>, <&CPU5>, <&CPU6>, <&CPU7> |
| 240 | ; |
| 241 | }; |
| 242 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 243 | sram: sram@6000000 { |
| 244 | compatible = "mmio-sram"; |
| 245 | reg = <0x0 0x06000000 0x0 0x8000>; |
| 246 | |
| 247 | #address-cells = <1>; |
| 248 | #size-cells = <1>; |
| 249 | ranges = <0 0x0 0x06000000 0x8000>; |
| 250 | |
| 251 | cpu_scp_scmi_mem: scp-shmem@0 { |
| 252 | compatible = "arm,scmi-shmem"; |
| 253 | reg = <0x0 0x80>; |
| 254 | }; |
| 255 | }; |
| 256 | |
| 257 | mbox_db_rx: mhu@45010000 { |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 258 | compatible = "arm,mhuv2-rx","arm,primecell"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 259 | reg = <0x0 0x45010000 0x0 0x1000>; |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 260 | clocks = <&soc_refclk>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 261 | clock-names = "apb_pclk"; |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 262 | #mbox-cells = <2>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 263 | interrupts = <GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 264 | interrupt-names = "mhu_rx"; |
| 265 | mhu-protocol = "doorbell"; |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 266 | arm,mhuv2-protocols = <0 1>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 267 | }; |
| 268 | |
| 269 | mbox_db_tx: mhu@45000000 { |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 270 | compatible = "arm,mhuv2-tx","arm,primecell"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 271 | reg = <0x0 0x45000000 0x0 0x1000>; |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 272 | clocks = <&soc_refclk>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 273 | clock-names = "apb_pclk"; |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 274 | #mbox-cells = <2>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 275 | interrupt-names = "mhu_tx"; |
| 276 | mhu-protocol = "doorbell"; |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 277 | arm,mhuv2-protocols = <0 1>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 278 | }; |
| 279 | |
Rupinderjit Singh | 8c90196 | 2022-02-22 21:50:33 +0000 | [diff] [blame] | 280 | cmn-pmu { |
| 281 | compatible = "arm,ci-700"; |
| 282 | reg = <0x0 0x50000000 0x0 0x10000000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 283 | interrupts = <GIC_SPI 460 IRQ_TYPE_LEVEL_HIGH>; |
Rupinderjit Singh | 8c90196 | 2022-02-22 21:50:33 +0000 | [diff] [blame] | 284 | }; |
| 285 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 286 | scmi { |
| 287 | compatible = "arm,scmi"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 288 | mbox-names = "tx", "rx"; |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 289 | mboxes = <&mbox_db_tx 0 0 &mbox_db_rx 0 0 >; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 290 | shmem = <&cpu_scp_scmi_mem &cpu_scp_scmi_mem>; |
| 291 | #address-cells = <1>; |
| 292 | #size-cells = <0>; |
| 293 | |
Ben Horgan | 80781a5 | 2023-07-26 20:45:27 +0100 | [diff] [blame] | 294 | scmi_devpd: protocol@11 { |
| 295 | reg = <0x11>; |
| 296 | #power-domain-cells = <1>; |
| 297 | }; |
| 298 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 299 | scmi_dvfs: protocol@13 { |
| 300 | reg = <0x13>; |
| 301 | #clock-cells = <1>; |
| 302 | }; |
| 303 | |
| 304 | scmi_clk: protocol@14 { |
| 305 | reg = <0x14>; |
| 306 | #clock-cells = <1>; |
| 307 | }; |
| 308 | }; |
| 309 | |
| 310 | gic: interrupt-controller@2c010000 { |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 311 | compatible = "arm,gic-v3"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 312 | #address-cells = <2>; |
| 313 | #interrupt-cells = <3>; |
| 314 | #size-cells = <2>; |
| 315 | ranges; |
| 316 | interrupt-controller; |
| 317 | reg = <0x0 0x30000000 0 0x10000>, /* GICD */ |
Usama Arif | fdfd250 | 2021-03-30 16:39:19 +0100 | [diff] [blame] | 318 | <0x0 0x30080000 0 0x200000>; /* GICR */ |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 319 | interrupts = <GIC_PPI 0x9 IRQ_TYPE_LEVEL_LOW>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 320 | }; |
| 321 | |
| 322 | timer { |
| 323 | compatible = "arm,armv8-timer"; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 324 | interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, |
| 325 | <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, |
| 326 | <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, |
| 327 | <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 328 | }; |
| 329 | |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 330 | soc_refclk: refclk { |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 331 | compatible = "fixed-clock"; |
| 332 | #clock-cells = <0>; |
| 333 | clock-frequency = <100000000>; |
| 334 | clock-output-names = "apb_pclk"; |
| 335 | }; |
| 336 | |
| 337 | soc_refclk60mhz: refclk60mhz { |
| 338 | compatible = "fixed-clock"; |
| 339 | #clock-cells = <0>; |
| 340 | clock-frequency = <60000000>; |
| 341 | clock-output-names = "iofpga_clk"; |
| 342 | }; |
| 343 | |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 344 | soc_uartclk: uartclk { |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 345 | compatible = "fixed-clock"; |
| 346 | #clock-cells = <0>; |
| 347 | clock-frequency = <50000000>; |
| 348 | clock-output-names = "uartclk"; |
| 349 | }; |
| 350 | |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 351 | os_uart: serial@2a400000 { |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 352 | compatible = "arm,pl011", "arm,primecell"; |
annsai01 | 7c607f2 | 2023-02-20 13:34:57 +0000 | [diff] [blame] | 353 | reg = <0x0 0x2A400000 0x0 0x1000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 354 | interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 355 | clocks = <&soc_uartclk>, <&soc_refclk>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 356 | clock-names = "uartclk", "apb_pclk"; |
| 357 | status = "okay"; |
| 358 | }; |
| 359 | |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 360 | rtc@1c170000 { |
Jayanth Dodderi Chidanand | 2858cf5 | 2022-09-28 11:41:48 +0100 | [diff] [blame] | 361 | compatible = "arm,pl031", "arm,primecell"; |
| 362 | reg = <0x0 0x1C170000 0x0 0x1000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 363 | interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 364 | clocks = <&soc_refclk>; |
Jayanth Dodderi Chidanand | 2858cf5 | 2022-09-28 11:41:48 +0100 | [diff] [blame] | 365 | clock-names = "apb_pclk"; |
Jayanth Dodderi Chidanand | 2858cf5 | 2022-09-28 11:41:48 +0100 | [diff] [blame] | 366 | }; |
Rupinderjit Singh | d2d0298 | 2022-09-12 17:25:32 +0100 | [diff] [blame] | 367 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 368 | vencoder { |
| 369 | compatible = "drm,virtual-encoder"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 370 | port { |
| 371 | vencoder_in: endpoint { |
Avinash Mehta | df71a60 | 2020-07-22 16:40:07 +0100 | [diff] [blame] | 372 | remote-endpoint = <&dp_pl0_out0>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 373 | }; |
| 374 | }; |
| 375 | |
| 376 | display-timings { |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 377 | timing-panel { |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 378 | clock-frequency = <25175000>; |
| 379 | hactive = <640>; |
| 380 | vactive = <480>; |
| 381 | hfront-porch = <16>; |
| 382 | hback-porch = <48>; |
| 383 | hsync-len = <96>; |
| 384 | vfront-porch = <10>; |
| 385 | vback-porch = <33>; |
| 386 | vsync-len = <2>; |
| 387 | }; |
| 388 | }; |
| 389 | |
| 390 | }; |
| 391 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 392 | ethernet@18000000 { |
| 393 | compatible = "smsc,lan91c111"; |
| 394 | reg = <0x0 0x18000000 0x0 0x10000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 395 | interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 396 | }; |
| 397 | |
| 398 | kmi@1c060000 { |
| 399 | compatible = "arm,pl050", "arm,primecell"; |
| 400 | reg = <0x0 0x001c060000 0x0 0x1000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 401 | interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 402 | clocks = <&bp_clock24mhz>, <&bp_clock24mhz>; |
| 403 | clock-names = "KMIREFCLK", "apb_pclk"; |
| 404 | }; |
| 405 | |
| 406 | kmi@1c070000 { |
| 407 | compatible = "arm,pl050", "arm,primecell"; |
| 408 | reg = <0x0 0x001c070000 0x0 0x1000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 409 | interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 410 | clocks = <&bp_clock24mhz>, <&bp_clock24mhz>; |
| 411 | clock-names = "KMIREFCLK", "apb_pclk"; |
| 412 | }; |
| 413 | |
| 414 | bp_clock24mhz: clock24mhz { |
| 415 | compatible = "fixed-clock"; |
| 416 | #clock-cells = <0>; |
| 417 | clock-frequency = <24000000>; |
| 418 | clock-output-names = "bp:clock24mhz"; |
| 419 | }; |
| 420 | |
| 421 | virtio_block@1c130000 { |
| 422 | compatible = "virtio,mmio"; |
| 423 | reg = <0x0 0x1c130000 0x0 0x200>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 424 | /* spec lists this wrong */ |
| 425 | interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 426 | }; |
| 427 | |
Usama Arif | 1cd56dc | 2020-06-10 16:27:53 +0100 | [diff] [blame] | 428 | sysreg: sysreg@1c010000 { |
| 429 | compatible = "arm,vexpress-sysreg"; |
| 430 | reg = <0x0 0x001c010000 0x0 0x1000>; |
| 431 | gpio-controller; |
| 432 | #gpio-cells = <2>; |
| 433 | }; |
| 434 | |
| 435 | fixed_3v3: v2m-3v3 { |
| 436 | compatible = "regulator-fixed"; |
| 437 | regulator-name = "3V3"; |
| 438 | regulator-min-microvolt = <3300000>; |
| 439 | regulator-max-microvolt = <3300000>; |
| 440 | regulator-always-on; |
| 441 | }; |
| 442 | |
| 443 | mmci@1c050000 { |
| 444 | compatible = "arm,pl180", "arm,primecell"; |
| 445 | reg = <0x0 0x001c050000 0x0 0x1000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 446 | interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>, |
| 447 | <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | 1cd56dc | 2020-06-10 16:27:53 +0100 | [diff] [blame] | 448 | cd-gpios = <&sysreg 0 0>; |
| 449 | wp-gpios = <&sysreg 1 0>; |
| 450 | bus-width = <8>; |
| 451 | max-frequency = <12000000>; |
| 452 | vmmc-supply = <&fixed_3v3>; |
| 453 | clocks = <&bp_clock24mhz>, <&bp_clock24mhz>; |
| 454 | clock-names = "mclk", "apb_pclk"; |
| 455 | }; |
| 456 | |
Rupinderjit Singh | b2a75b8 | 2023-02-03 09:29:57 +0000 | [diff] [blame] | 457 | gpu_clk: gpu_clk { |
| 458 | compatible = "fixed-clock"; |
| 459 | #clock-cells = <0>; |
| 460 | clock-frequency = <1000000000>; |
| 461 | }; |
| 462 | |
| 463 | gpu_core_clk: gpu_core_clk { |
| 464 | compatible = "fixed-clock"; |
| 465 | #clock-cells = <0>; |
| 466 | clock-frequency = <1000000000>; |
| 467 | }; |
| 468 | |
Anders Dellien | 7a84980 | 2022-01-01 21:51:21 +0000 | [diff] [blame] | 469 | gpu: gpu@2d000000 { |
| 470 | compatible = "arm,mali-midgard"; |
| 471 | reg = <0x0 0x2d000000 0x0 0x200000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 472 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>, |
| 473 | <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, |
| 474 | <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
Anders Dellien | 7a84980 | 2022-01-01 21:51:21 +0000 | [diff] [blame] | 475 | interrupt-names = "JOB", "MMU", "GPU"; |
Ben Horgan | 80781a5 | 2023-07-26 20:45:27 +0100 | [diff] [blame] | 476 | clocks = <&gpu_core_clk>; |
| 477 | clock-names = "shadercores"; |
| 478 | power-domains = <&scmi_devpd 9>; |
| 479 | scmi-perf-domain = <3>; |
Davidson K | ce63312 | 2022-11-21 17:49:51 +0530 | [diff] [blame] | 480 | iommus = <&smmu_700 0x200>; |
Anders Dellien | 7a84980 | 2022-01-01 21:51:21 +0000 | [diff] [blame] | 481 | }; |
| 482 | |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 483 | power_model_simple { |
Rupinderjit Singh | b2a75b8 | 2023-02-03 09:29:57 +0000 | [diff] [blame] | 484 | /* |
| 485 | * Numbers used are irrelevant to Titan, |
| 486 | * it helps suppressing the kernel warnings. |
| 487 | */ |
| 488 | compatible = "arm,mali-simple-power-model"; |
| 489 | static-coefficient = <2427750>; |
| 490 | dynamic-coefficient = <4687>; |
| 491 | ts = <20000 2000 (-20) 2>; |
| 492 | thermal-zone = ""; |
| 493 | }; |
| 494 | |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 495 | smmu_700: iommu@3f000000 { |
Anders Dellien | a191413 | 2022-01-01 21:56:25 +0000 | [diff] [blame] | 496 | #iommu-cells = <1>; |
| 497 | compatible = "arm,smmu-v3"; |
Davidson K | ce63312 | 2022-11-21 17:49:51 +0530 | [diff] [blame] | 498 | reg = <0x0 0x3f000000 0x0 0x5000000>; |
Kshitij Sisodia | b32a8f4 | 2023-08-16 09:46:05 +0100 | [diff] [blame] | 499 | interrupts = <GIC_SPI 228 IRQ_TYPE_EDGE_RISING>, |
| 500 | <GIC_SPI 229 IRQ_TYPE_EDGE_RISING>, |
| 501 | <GIC_SPI 230 IRQ_TYPE_EDGE_RISING>; |
| 502 | interrupt-names = "eventq", "cmdq-sync", "gerror"; |
Davidson K | ce63312 | 2022-11-21 17:49:51 +0530 | [diff] [blame] | 503 | dma-coherent; |
Anders Dellien | a191413 | 2022-01-01 21:56:25 +0000 | [diff] [blame] | 504 | }; |
| 505 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 506 | dp0: display@2cc00000 { |
| 507 | #address-cells = <1>; |
| 508 | #size-cells = <0>; |
| 509 | compatible = "arm,mali-d71"; |
| 510 | reg = <0 0x2cc00000 0 0x20000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 511 | interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 512 | interrupt-names = "DPU"; |
| 513 | clocks = <&scmi_clk 0>; |
| 514 | clock-names = "aclk"; |
Davidson K | ce63312 | 2022-11-21 17:49:51 +0530 | [diff] [blame] | 515 | iommus = <&smmu_700 0x100>; |
Ben Horgan | 80781a5 | 2023-07-26 20:45:27 +0100 | [diff] [blame] | 516 | power-domains = <&scmi_devpd 10>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 517 | pl0: pipeline@0 { |
| 518 | reg = <0>; |
| 519 | clocks = <&scmi_clk 1>; |
| 520 | clock-names = "pxclk"; |
| 521 | pl_id = <0>; |
| 522 | ports { |
| 523 | #address-cells = <1>; |
| 524 | #size-cells = <0>; |
| 525 | port@0 { |
| 526 | reg = <0>; |
| 527 | dp_pl0_out0: endpoint { |
| 528 | remote-endpoint = <&vencoder_in>; |
| 529 | }; |
| 530 | }; |
| 531 | }; |
| 532 | }; |
| 533 | |
| 534 | pl1: pipeline@1 { |
| 535 | reg = <1>; |
| 536 | clocks = <&scmi_clk 2>; |
| 537 | clock-names = "pxclk"; |
| 538 | pl_id = <1>; |
| 539 | ports { |
| 540 | #address-cells = <1>; |
| 541 | #size-cells = <0>; |
| 542 | port@0 { |
| 543 | reg = <0>; |
| 544 | }; |
| 545 | }; |
| 546 | }; |
| 547 | }; |
Arunachalam Ganapathy | c44e43d | 2020-11-17 15:05:01 +0000 | [diff] [blame] | 548 | |
Davidson K | 1ad2c41 | 2023-01-13 14:02:13 +0530 | [diff] [blame] | 549 | /* |
| 550 | * L3 cache in the DSU is the Memory System Component (MSC) |
| 551 | * The MPAM registers are accessed through utility bus in the DSU |
| 552 | */ |
| 553 | msc0 { |
| 554 | compatible = "arm,mpam-msc"; |
| 555 | reg = <0x1 0x00010000 0x0 0x2000>; |
| 556 | }; |
| 557 | |
Davidson K | 6536105 | 2021-10-13 18:49:41 +0530 | [diff] [blame] | 558 | ete0 { |
| 559 | compatible = "arm,embedded-trace-extension"; |
| 560 | cpu = <&CPU0>; |
| 561 | }; |
| 562 | |
| 563 | ete1 { |
| 564 | compatible = "arm,embedded-trace-extension"; |
| 565 | cpu = <&CPU1>; |
| 566 | }; |
| 567 | |
| 568 | ete2 { |
| 569 | compatible = "arm,embedded-trace-extension"; |
| 570 | cpu = <&CPU2>; |
| 571 | }; |
| 572 | |
| 573 | ete3 { |
| 574 | compatible = "arm,embedded-trace-extension"; |
| 575 | cpu = <&CPU3>; |
| 576 | }; |
| 577 | |
| 578 | ete4 { |
| 579 | compatible = "arm,embedded-trace-extension"; |
| 580 | cpu = <&CPU4>; |
| 581 | }; |
| 582 | |
| 583 | ete5 { |
| 584 | compatible = "arm,embedded-trace-extension"; |
| 585 | cpu = <&CPU5>; |
| 586 | }; |
| 587 | |
| 588 | ete6 { |
| 589 | compatible = "arm,embedded-trace-extension"; |
| 590 | cpu = <&CPU6>; |
| 591 | }; |
| 592 | |
| 593 | ete7 { |
| 594 | compatible = "arm,embedded-trace-extension"; |
| 595 | cpu = <&CPU7>; |
| 596 | }; |
| 597 | |
Boyan Karatotev | 13b8e74 | 2023-11-14 13:57:56 +0000 | [diff] [blame^] | 598 | trbe { |
Davidson K | 6536105 | 2021-10-13 18:49:41 +0530 | [diff] [blame] | 599 | compatible = "arm,trace-buffer-extension"; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 600 | interrupts = <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>; |
Davidson K | 6536105 | 2021-10-13 18:49:41 +0530 | [diff] [blame] | 601 | }; |
Arunachalam Ganapathy | 63128dc | 2022-04-11 14:43:15 +0100 | [diff] [blame] | 602 | |
| 603 | trusty { |
| 604 | #size-cells = <0x02>; |
| 605 | #address-cells = <0x02>; |
| 606 | ranges = <0x00>; |
| 607 | compatible = "android,trusty-v1"; |
| 608 | |
| 609 | virtio { |
| 610 | compatible = "android,trusty-virtio-v1"; |
| 611 | }; |
| 612 | |
| 613 | test { |
| 614 | compatible = "android,trusty-test-v1"; |
| 615 | }; |
| 616 | |
| 617 | log { |
| 618 | compatible = "android,trusty-log-v1"; |
| 619 | }; |
| 620 | |
| 621 | irq { |
| 622 | ipi-range = <0x08 0x0f 0x08>; |
| 623 | interrupt-ranges = <0x00 0x0f 0x00 0x10 0x1f 0x01 0x20 0x3f 0x02>; |
| 624 | interrupt-templates = <0x01 0x00 0x8001 0x01 0x01 0x04 0x8001 0x01 0x00 0x04>; |
| 625 | compatible = "android,trusty-irq-v1"; |
| 626 | }; |
| 627 | }; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 628 | }; |