Leo Yan | b4d7134 | 2024-04-14 08:27:39 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020-2024, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
| 9 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 10 | #include <dt-bindings/interrupt-controller/irq.h> |
| 11 | #include <platform_def.h> |
| 12 | |
Leo Yan | 4d4a197 | 2024-04-24 09:53:21 +0100 | [diff] [blame] | 13 | #define LIT_CAPACITY 239 |
| 14 | #define MID_CAPACITY 686 |
| 15 | #define BIG_CAPACITY 1024 |
| 16 | |
Leo Yan | 4d4a197 | 2024-04-24 09:53:21 +0100 | [diff] [blame] | 17 | #define MHU_TX_ADDR 46040000 /* hex */ |
Boyan Karatotev | cd2b4cc | 2024-04-24 10:09:18 +0100 | [diff] [blame] | 18 | #define MHU_TX_COMPAT "arm,mhuv3" |
| 19 | #define MHU_TX_INT_NAME "" |
| 20 | |
Leo Yan | 4d4a197 | 2024-04-24 09:53:21 +0100 | [diff] [blame] | 21 | #define MHU_RX_ADDR 46140000 /* hex */ |
Boyan Karatotev | cd2b4cc | 2024-04-24 10:09:18 +0100 | [diff] [blame] | 22 | #define MHU_RX_COMPAT "arm,mhuv3" |
| 23 | #define MHU_OFFSET 0x10000 |
| 24 | #define MHU_MBOX_CELLS 3 |
| 25 | #define MHU_RX_INT_NUM 300 |
| 26 | #define MHU_RX_INT_NAME "combined-mbx" |
| 27 | |
Leo Yan | 4d4a197 | 2024-04-24 09:53:21 +0100 | [diff] [blame] | 28 | #define MPAM_ADDR 0x0 0x5f010000 /* 0x5f01_0000 */ |
| 29 | #define UARTCLK_FREQ 3750000 |
| 30 | |
| 31 | #if TARGET_FLAVOUR_FVP |
| 32 | #define DPU_ADDR 4000000000 |
| 33 | #define DPU_IRQ 579 |
| 34 | #elif TARGET_FLAVOUR_FPGA |
| 35 | #define DPU_ADDR 2cc00000 |
| 36 | #define DPU_IRQ 69 |
| 37 | #endif |
| 38 | |
Leo Yan | b4d7134 | 2024-04-14 08:27:39 +0100 | [diff] [blame] | 39 | #include "tc-common.dtsi" |
| 40 | #if TARGET_FLAVOUR_FVP |
| 41 | #include "tc-fvp.dtsi" |
Leo Yan | 815f550 | 2024-04-24 09:57:28 +0100 | [diff] [blame] | 42 | #else |
| 43 | #include "tc-fpga.dtsi" |
Leo Yan | b4d7134 | 2024-04-14 08:27:39 +0100 | [diff] [blame] | 44 | #endif /* TARGET_FLAVOUR_FVP */ |
| 45 | #include "tc-base.dtsi" |
Leo Yan | 6705ff0 | 2024-04-14 22:09:34 +0100 | [diff] [blame] | 46 | |
| 47 | / { |
| 48 | cpus { |
| 49 | CPU2:cpu@200 { |
| 50 | clocks = <&scmi_dvfs 1>; |
| 51 | capacity-dmips-mhz = <MID_CAPACITY>; |
| 52 | }; |
| 53 | |
| 54 | CPU3:cpu@300 { |
| 55 | clocks = <&scmi_dvfs 1>; |
| 56 | capacity-dmips-mhz = <MID_CAPACITY>; |
| 57 | }; |
| 58 | |
| 59 | CPU6:cpu@600 { |
| 60 | clocks = <&scmi_dvfs 2>; |
| 61 | capacity-dmips-mhz = <BIG_CAPACITY>; |
| 62 | }; |
| 63 | |
| 64 | CPU7:cpu@700 { |
| 65 | clocks = <&scmi_dvfs 2>; |
| 66 | capacity-dmips-mhz = <BIG_CAPACITY>; |
| 67 | }; |
| 68 | }; |
| 69 | |
| 70 | cpu-pmu { |
| 71 | interrupt-affinity = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>, |
| 72 | <&CPU4>, <&CPU5>, <&CPU6>, <&CPU7>; |
| 73 | }; |
Boyan Karatotev | 102554c | 2024-04-19 12:27:46 +0100 | [diff] [blame] | 74 | |
| 75 | sram: sram@6000000 { |
| 76 | cpu_scp_scmi_p2a: scp-shmem@80 { |
| 77 | compatible = "arm,scmi-shmem"; |
| 78 | reg = <0x80 0x80>; |
| 79 | }; |
| 80 | }; |
| 81 | |
| 82 | firmware { |
| 83 | scmi { |
| 84 | mboxes = <&mbox_db_tx 0 0 0 &mbox_db_rx 0 0 0 &mbox_db_rx 0 0 1>; |
| 85 | shmem = <&cpu_scp_scmi_a2p &cpu_scp_scmi_p2a>; |
| 86 | }; |
| 87 | }; |
Leo Yan | 6705ff0 | 2024-04-14 22:09:34 +0100 | [diff] [blame] | 88 | }; |