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 { |
annsai01 | 7c607f2 | 2023-02-20 13:34:57 +0000 | [diff] [blame] | 19 | serial0 = &ap_ns_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 { |
| 64 | entry-method = "arm,psci"; |
| 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 | |
Arunachalam Ganapathy | ac9e120 | 2022-04-11 17:38:17 +0100 | [diff] [blame] | 219 | optee@0xf8e00000 { |
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 | }; |
| 223 | }; |
| 224 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 225 | psci { |
Usama Arif | 7a64bfa | 2021-05-27 20:09:17 +0100 | [diff] [blame] | 226 | compatible = "arm,psci-1.0", "arm,psci-0.2"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 227 | method = "smc"; |
| 228 | }; |
| 229 | |
| 230 | sram: sram@6000000 { |
| 231 | compatible = "mmio-sram"; |
| 232 | reg = <0x0 0x06000000 0x0 0x8000>; |
| 233 | |
| 234 | #address-cells = <1>; |
| 235 | #size-cells = <1>; |
| 236 | ranges = <0 0x0 0x06000000 0x8000>; |
| 237 | |
| 238 | cpu_scp_scmi_mem: scp-shmem@0 { |
| 239 | compatible = "arm,scmi-shmem"; |
| 240 | reg = <0x0 0x80>; |
| 241 | }; |
| 242 | }; |
| 243 | |
| 244 | mbox_db_rx: mhu@45010000 { |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 245 | compatible = "arm,mhuv2-rx","arm,primecell"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 246 | reg = <0x0 0x45010000 0x0 0x1000>; |
| 247 | clocks = <&soc_refclk100mhz>; |
| 248 | clock-names = "apb_pclk"; |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 249 | #mbox-cells = <2>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 250 | interrupts = <GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 251 | interrupt-names = "mhu_rx"; |
| 252 | mhu-protocol = "doorbell"; |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 253 | arm,mhuv2-protocols = <0 1>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 254 | }; |
| 255 | |
| 256 | mbox_db_tx: mhu@45000000 { |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 257 | compatible = "arm,mhuv2-tx","arm,primecell"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 258 | reg = <0x0 0x45000000 0x0 0x1000>; |
| 259 | clocks = <&soc_refclk100mhz>; |
| 260 | clock-names = "apb_pclk"; |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 261 | #mbox-cells = <2>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 262 | interrupt-names = "mhu_tx"; |
| 263 | mhu-protocol = "doorbell"; |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 264 | arm,mhuv2-protocols = <0 1>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 265 | }; |
| 266 | |
Rupinderjit Singh | 8c90196 | 2022-02-22 21:50:33 +0000 | [diff] [blame] | 267 | cmn-pmu { |
| 268 | compatible = "arm,ci-700"; |
| 269 | reg = <0x0 0x50000000 0x0 0x10000000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 270 | interrupts = <GIC_SPI 460 IRQ_TYPE_LEVEL_HIGH>; |
Rupinderjit Singh | 8c90196 | 2022-02-22 21:50:33 +0000 | [diff] [blame] | 271 | }; |
| 272 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 273 | scmi { |
| 274 | compatible = "arm,scmi"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 275 | mbox-names = "tx", "rx"; |
Usama Arif | b315c70 | 2021-05-27 20:01:39 +0100 | [diff] [blame] | 276 | mboxes = <&mbox_db_tx 0 0 &mbox_db_rx 0 0 >; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 277 | shmem = <&cpu_scp_scmi_mem &cpu_scp_scmi_mem>; |
| 278 | #address-cells = <1>; |
| 279 | #size-cells = <0>; |
| 280 | |
Ben Horgan | 80781a5 | 2023-07-26 20:45:27 +0100 | [diff] [blame] | 281 | scmi_devpd: protocol@11 { |
| 282 | reg = <0x11>; |
| 283 | #power-domain-cells = <1>; |
| 284 | }; |
| 285 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 286 | scmi_dvfs: protocol@13 { |
| 287 | reg = <0x13>; |
| 288 | #clock-cells = <1>; |
| 289 | }; |
| 290 | |
| 291 | scmi_clk: protocol@14 { |
| 292 | reg = <0x14>; |
| 293 | #clock-cells = <1>; |
| 294 | }; |
| 295 | }; |
| 296 | |
| 297 | gic: interrupt-controller@2c010000 { |
| 298 | compatible = "arm,gic-600", "arm,gic-v3"; |
| 299 | #address-cells = <2>; |
| 300 | #interrupt-cells = <3>; |
| 301 | #size-cells = <2>; |
| 302 | ranges; |
| 303 | interrupt-controller; |
| 304 | reg = <0x0 0x30000000 0 0x10000>, /* GICD */ |
Usama Arif | fdfd250 | 2021-03-30 16:39:19 +0100 | [diff] [blame] | 305 | <0x0 0x30080000 0 0x200000>; /* GICR */ |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 306 | interrupts = <GIC_PPI 0x9 IRQ_TYPE_LEVEL_LOW>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 307 | }; |
| 308 | |
| 309 | timer { |
| 310 | compatible = "arm,armv8-timer"; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 311 | interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, |
| 312 | <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, |
| 313 | <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, |
| 314 | <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 315 | }; |
| 316 | |
| 317 | soc_refclk100mhz: refclk100mhz { |
| 318 | compatible = "fixed-clock"; |
| 319 | #clock-cells = <0>; |
| 320 | clock-frequency = <100000000>; |
| 321 | clock-output-names = "apb_pclk"; |
| 322 | }; |
| 323 | |
| 324 | soc_refclk60mhz: refclk60mhz { |
| 325 | compatible = "fixed-clock"; |
| 326 | #clock-cells = <0>; |
| 327 | clock-frequency = <60000000>; |
| 328 | clock-output-names = "iofpga_clk"; |
| 329 | }; |
| 330 | |
| 331 | soc_uartclk: uartclk { |
| 332 | compatible = "fixed-clock"; |
| 333 | #clock-cells = <0>; |
| 334 | clock-frequency = <50000000>; |
| 335 | clock-output-names = "uartclk"; |
| 336 | }; |
| 337 | |
annsai01 | 7c607f2 | 2023-02-20 13:34:57 +0000 | [diff] [blame] | 338 | ap_ns_uart: uart@2A400000 { |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 339 | compatible = "arm,pl011", "arm,primecell"; |
annsai01 | 7c607f2 | 2023-02-20 13:34:57 +0000 | [diff] [blame] | 340 | reg = <0x0 0x2A400000 0x0 0x1000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 341 | interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 342 | clocks = <&soc_uartclk>, <&soc_refclk100mhz>; |
| 343 | clock-names = "uartclk", "apb_pclk"; |
| 344 | status = "okay"; |
| 345 | }; |
| 346 | |
Jayanth Dodderi Chidanand | 2858cf5 | 2022-09-28 11:41:48 +0100 | [diff] [blame] | 347 | rtc0: rtc@1C170000 { |
| 348 | compatible = "arm,pl031", "arm,primecell"; |
| 349 | reg = <0x0 0x1C170000 0x0 0x1000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 350 | interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; |
Jayanth Dodderi Chidanand | 2858cf5 | 2022-09-28 11:41:48 +0100 | [diff] [blame] | 351 | clocks = <&soc_refclk100mhz>; |
| 352 | clock-names = "apb_pclk"; |
| 353 | wakeup-source; |
| 354 | }; |
Rupinderjit Singh | d2d0298 | 2022-09-12 17:25:32 +0100 | [diff] [blame] | 355 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 356 | vencoder { |
| 357 | compatible = "drm,virtual-encoder"; |
| 358 | |
| 359 | port { |
| 360 | vencoder_in: endpoint { |
Avinash Mehta | df71a60 | 2020-07-22 16:40:07 +0100 | [diff] [blame] | 361 | remote-endpoint = <&dp_pl0_out0>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 362 | }; |
| 363 | }; |
| 364 | |
| 365 | display-timings { |
| 366 | panel-timing { |
| 367 | clock-frequency = <25175000>; |
| 368 | hactive = <640>; |
| 369 | vactive = <480>; |
| 370 | hfront-porch = <16>; |
| 371 | hback-porch = <48>; |
| 372 | hsync-len = <96>; |
| 373 | vfront-porch = <10>; |
| 374 | vback-porch = <33>; |
| 375 | vsync-len = <2>; |
| 376 | }; |
| 377 | }; |
| 378 | |
| 379 | }; |
| 380 | |
| 381 | hdlcd: hdlcd@7ff60000 { |
| 382 | compatible = "arm,hdlcd"; |
| 383 | reg = <0x0 0x7ff60000 0x0 0x1000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 384 | interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 385 | clocks = <&fake_hdlcd_clk>; |
| 386 | clock-names = "pxlclk"; |
Avinash Mehta | df71a60 | 2020-07-22 16:40:07 +0100 | [diff] [blame] | 387 | status = "disabled"; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 388 | |
| 389 | port { |
| 390 | hdlcd_out: endpoint { |
| 391 | remote-endpoint = <&vencoder_in>; |
| 392 | }; |
| 393 | }; |
| 394 | }; |
| 395 | |
| 396 | fake_hdlcd_clk: fake-hdlcd-clk { |
| 397 | compatible = "fixed-clock"; |
| 398 | #clock-cells = <0>; |
| 399 | clock-frequency = <25175000>; |
| 400 | clock-output-names = "pxlclk"; |
| 401 | }; |
| 402 | |
| 403 | ethernet@18000000 { |
| 404 | compatible = "smsc,lan91c111"; |
| 405 | reg = <0x0 0x18000000 0x0 0x10000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 406 | interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 407 | }; |
| 408 | |
| 409 | kmi@1c060000 { |
| 410 | compatible = "arm,pl050", "arm,primecell"; |
| 411 | reg = <0x0 0x001c060000 0x0 0x1000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 412 | interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 413 | clocks = <&bp_clock24mhz>, <&bp_clock24mhz>; |
| 414 | clock-names = "KMIREFCLK", "apb_pclk"; |
| 415 | }; |
| 416 | |
| 417 | kmi@1c070000 { |
| 418 | compatible = "arm,pl050", "arm,primecell"; |
| 419 | reg = <0x0 0x001c070000 0x0 0x1000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 420 | interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 421 | clocks = <&bp_clock24mhz>, <&bp_clock24mhz>; |
| 422 | clock-names = "KMIREFCLK", "apb_pclk"; |
| 423 | }; |
| 424 | |
| 425 | bp_clock24mhz: clock24mhz { |
| 426 | compatible = "fixed-clock"; |
| 427 | #clock-cells = <0>; |
| 428 | clock-frequency = <24000000>; |
| 429 | clock-output-names = "bp:clock24mhz"; |
| 430 | }; |
| 431 | |
| 432 | virtio_block@1c130000 { |
| 433 | compatible = "virtio,mmio"; |
| 434 | reg = <0x0 0x1c130000 0x0 0x200>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 435 | /* spec lists this wrong */ |
| 436 | interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 437 | }; |
| 438 | |
Usama Arif | 1cd56dc | 2020-06-10 16:27:53 +0100 | [diff] [blame] | 439 | sysreg: sysreg@1c010000 { |
| 440 | compatible = "arm,vexpress-sysreg"; |
| 441 | reg = <0x0 0x001c010000 0x0 0x1000>; |
| 442 | gpio-controller; |
| 443 | #gpio-cells = <2>; |
| 444 | }; |
| 445 | |
| 446 | fixed_3v3: v2m-3v3 { |
| 447 | compatible = "regulator-fixed"; |
| 448 | regulator-name = "3V3"; |
| 449 | regulator-min-microvolt = <3300000>; |
| 450 | regulator-max-microvolt = <3300000>; |
| 451 | regulator-always-on; |
| 452 | }; |
| 453 | |
| 454 | mmci@1c050000 { |
| 455 | compatible = "arm,pl180", "arm,primecell"; |
| 456 | reg = <0x0 0x001c050000 0x0 0x1000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 457 | interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>, |
| 458 | <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | 1cd56dc | 2020-06-10 16:27:53 +0100 | [diff] [blame] | 459 | cd-gpios = <&sysreg 0 0>; |
| 460 | wp-gpios = <&sysreg 1 0>; |
| 461 | bus-width = <8>; |
| 462 | max-frequency = <12000000>; |
| 463 | vmmc-supply = <&fixed_3v3>; |
| 464 | clocks = <&bp_clock24mhz>, <&bp_clock24mhz>; |
| 465 | clock-names = "mclk", "apb_pclk"; |
| 466 | }; |
| 467 | |
Rupinderjit Singh | b2a75b8 | 2023-02-03 09:29:57 +0000 | [diff] [blame] | 468 | gpu_clk: gpu_clk { |
| 469 | compatible = "fixed-clock"; |
| 470 | #clock-cells = <0>; |
| 471 | clock-frequency = <1000000000>; |
| 472 | }; |
| 473 | |
| 474 | gpu_core_clk: gpu_core_clk { |
| 475 | compatible = "fixed-clock"; |
| 476 | #clock-cells = <0>; |
| 477 | clock-frequency = <1000000000>; |
| 478 | }; |
| 479 | |
Anders Dellien | 7a84980 | 2022-01-01 21:51:21 +0000 | [diff] [blame] | 480 | gpu: gpu@2d000000 { |
| 481 | compatible = "arm,mali-midgard"; |
| 482 | reg = <0x0 0x2d000000 0x0 0x200000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 483 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>, |
| 484 | <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, |
| 485 | <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
Anders Dellien | 7a84980 | 2022-01-01 21:51:21 +0000 | [diff] [blame] | 486 | interrupt-names = "JOB", "MMU", "GPU"; |
Ben Horgan | 80781a5 | 2023-07-26 20:45:27 +0100 | [diff] [blame] | 487 | clocks = <&gpu_core_clk>; |
| 488 | clock-names = "shadercores"; |
| 489 | power-domains = <&scmi_devpd 9>; |
| 490 | scmi-perf-domain = <3>; |
Davidson K | ce63312 | 2022-11-21 17:49:51 +0530 | [diff] [blame] | 491 | iommus = <&smmu_700 0x200>; |
Anders Dellien | 7a84980 | 2022-01-01 21:51:21 +0000 | [diff] [blame] | 492 | }; |
| 493 | |
Rupinderjit Singh | b2a75b8 | 2023-02-03 09:29:57 +0000 | [diff] [blame] | 494 | power_model@simple { |
| 495 | /* |
| 496 | * Numbers used are irrelevant to Titan, |
| 497 | * it helps suppressing the kernel warnings. |
| 498 | */ |
| 499 | compatible = "arm,mali-simple-power-model"; |
| 500 | static-coefficient = <2427750>; |
| 501 | dynamic-coefficient = <4687>; |
| 502 | ts = <20000 2000 (-20) 2>; |
| 503 | thermal-zone = ""; |
| 504 | }; |
| 505 | |
Davidson K | ce63312 | 2022-11-21 17:49:51 +0530 | [diff] [blame] | 506 | smmu_700: smmu_700@3f000000 { |
Anders Dellien | a191413 | 2022-01-01 21:56:25 +0000 | [diff] [blame] | 507 | #iommu-cells = <1>; |
| 508 | compatible = "arm,smmu-v3"; |
Davidson K | ce63312 | 2022-11-21 17:49:51 +0530 | [diff] [blame] | 509 | reg = <0x0 0x3f000000 0x0 0x5000000>; |
Kshitij Sisodia | b32a8f4 | 2023-08-16 09:46:05 +0100 | [diff] [blame] | 510 | interrupts = <GIC_SPI 228 IRQ_TYPE_EDGE_RISING>, |
| 511 | <GIC_SPI 229 IRQ_TYPE_EDGE_RISING>, |
| 512 | <GIC_SPI 230 IRQ_TYPE_EDGE_RISING>; |
| 513 | interrupt-names = "eventq", "cmdq-sync", "gerror"; |
Davidson K | ce63312 | 2022-11-21 17:49:51 +0530 | [diff] [blame] | 514 | dma-coherent; |
Anders Dellien | a191413 | 2022-01-01 21:56:25 +0000 | [diff] [blame] | 515 | }; |
| 516 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 517 | dp0: display@2cc00000 { |
| 518 | #address-cells = <1>; |
| 519 | #size-cells = <0>; |
| 520 | compatible = "arm,mali-d71"; |
| 521 | reg = <0 0x2cc00000 0 0x20000>; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 522 | interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 523 | interrupt-names = "DPU"; |
| 524 | clocks = <&scmi_clk 0>; |
| 525 | clock-names = "aclk"; |
Davidson K | ce63312 | 2022-11-21 17:49:51 +0530 | [diff] [blame] | 526 | iommus = <&smmu_700 0x100>; |
Ben Horgan | 80781a5 | 2023-07-26 20:45:27 +0100 | [diff] [blame] | 527 | power-domains = <&scmi_devpd 10>; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 528 | pl0: pipeline@0 { |
| 529 | reg = <0>; |
| 530 | clocks = <&scmi_clk 1>; |
| 531 | clock-names = "pxclk"; |
| 532 | pl_id = <0>; |
| 533 | ports { |
| 534 | #address-cells = <1>; |
| 535 | #size-cells = <0>; |
| 536 | port@0 { |
| 537 | reg = <0>; |
| 538 | dp_pl0_out0: endpoint { |
| 539 | remote-endpoint = <&vencoder_in>; |
| 540 | }; |
| 541 | }; |
| 542 | }; |
| 543 | }; |
| 544 | |
| 545 | pl1: pipeline@1 { |
| 546 | reg = <1>; |
| 547 | clocks = <&scmi_clk 2>; |
| 548 | clock-names = "pxclk"; |
| 549 | pl_id = <1>; |
| 550 | ports { |
| 551 | #address-cells = <1>; |
| 552 | #size-cells = <0>; |
| 553 | port@0 { |
| 554 | reg = <0>; |
| 555 | }; |
| 556 | }; |
| 557 | }; |
| 558 | }; |
Arunachalam Ganapathy | c44e43d | 2020-11-17 15:05:01 +0000 | [diff] [blame] | 559 | |
Davidson K | 1ad2c41 | 2023-01-13 14:02:13 +0530 | [diff] [blame] | 560 | /* |
| 561 | * L3 cache in the DSU is the Memory System Component (MSC) |
| 562 | * The MPAM registers are accessed through utility bus in the DSU |
| 563 | */ |
| 564 | msc0 { |
| 565 | compatible = "arm,mpam-msc"; |
| 566 | reg = <0x1 0x00010000 0x0 0x2000>; |
| 567 | }; |
| 568 | |
Davidson K | 6536105 | 2021-10-13 18:49:41 +0530 | [diff] [blame] | 569 | ete0 { |
| 570 | compatible = "arm,embedded-trace-extension"; |
| 571 | cpu = <&CPU0>; |
| 572 | }; |
| 573 | |
| 574 | ete1 { |
| 575 | compatible = "arm,embedded-trace-extension"; |
| 576 | cpu = <&CPU1>; |
| 577 | }; |
| 578 | |
| 579 | ete2 { |
| 580 | compatible = "arm,embedded-trace-extension"; |
| 581 | cpu = <&CPU2>; |
| 582 | }; |
| 583 | |
| 584 | ete3 { |
| 585 | compatible = "arm,embedded-trace-extension"; |
| 586 | cpu = <&CPU3>; |
| 587 | }; |
| 588 | |
| 589 | ete4 { |
| 590 | compatible = "arm,embedded-trace-extension"; |
| 591 | cpu = <&CPU4>; |
| 592 | }; |
| 593 | |
| 594 | ete5 { |
| 595 | compatible = "arm,embedded-trace-extension"; |
| 596 | cpu = <&CPU5>; |
| 597 | }; |
| 598 | |
| 599 | ete6 { |
| 600 | compatible = "arm,embedded-trace-extension"; |
| 601 | cpu = <&CPU6>; |
| 602 | }; |
| 603 | |
| 604 | ete7 { |
| 605 | compatible = "arm,embedded-trace-extension"; |
| 606 | cpu = <&CPU7>; |
| 607 | }; |
| 608 | |
| 609 | trbe0 { |
| 610 | compatible = "arm,trace-buffer-extension"; |
Boyan Karatotev | 25c4fb7 | 2023-08-08 15:37:52 +0100 | [diff] [blame] | 611 | interrupts = <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>; |
Davidson K | 6536105 | 2021-10-13 18:49:41 +0530 | [diff] [blame] | 612 | }; |
Arunachalam Ganapathy | 63128dc | 2022-04-11 14:43:15 +0100 | [diff] [blame^] | 613 | |
| 614 | trusty { |
| 615 | #size-cells = <0x02>; |
| 616 | #address-cells = <0x02>; |
| 617 | ranges = <0x00>; |
| 618 | compatible = "android,trusty-v1"; |
| 619 | |
| 620 | virtio { |
| 621 | compatible = "android,trusty-virtio-v1"; |
| 622 | }; |
| 623 | |
| 624 | test { |
| 625 | compatible = "android,trusty-test-v1"; |
| 626 | }; |
| 627 | |
| 628 | log { |
| 629 | compatible = "android,trusty-log-v1"; |
| 630 | }; |
| 631 | |
| 632 | irq { |
| 633 | ipi-range = <0x08 0x0f 0x08>; |
| 634 | interrupt-ranges = <0x00 0x0f 0x00 0x10 0x1f 0x01 0x20 0x3f 0x02>; |
| 635 | interrupt-templates = <0x01 0x00 0x8001 0x01 0x01 0x04 0x8001 0x01 0x00 0x04>; |
| 636 | compatible = "android,trusty-irq-v1"; |
| 637 | }; |
| 638 | }; |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 639 | }; |