blob: 5ccfebb3d4ac2adfaa43f96d8d5ae7bf55917f84 [file] [log] [blame]
Leo Yan35255f02024-04-30 11:27:17 +01001/*
2 * Copyright (c) 2020-2024, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#define LIT_CAPACITY 239
8#define MID_CAPACITY 686
9#define BIG_CAPACITY 1024
10
11#define MHU_TX_COMPAT "arm,mhuv3"
12#define MHU_TX_INT_NAME ""
13
14#define MHU_RX_COMPAT "arm,mhuv3"
15#define MHU_OFFSET 0x10000
16#define MHU_MBOX_CELLS 3
17#define MHU_RX_INT_NUM 300
Leo Yan29635be2024-11-11 10:29:17 +000018#define MHU_RX_INT_NAME "combined"
Leo Yan35255f02024-04-30 11:27:17 +010019
20#define MPAM_ADDR 0x0 0x5f010000 /* 0x5f01_0000 */
21#define UARTCLK_FREQ 3750000
22
23#if TARGET_FLAVOUR_FVP
24#define DPU_ADDR 4000000000
25#define DPU_IRQ 579
26#elif TARGET_FLAVOUR_FPGA
27#define DPU_ADDR 2cc00000
28#define DPU_IRQ 69
29#endif
30#include "tc-base.dtsi"
31
32/ {
33 cpus {
34 CPU2:cpu@200 {
35 clocks = <&scmi_dvfs 1>;
36 capacity-dmips-mhz = <MID_CAPACITY>;
37 };
38
39 CPU3:cpu@300 {
40 clocks = <&scmi_dvfs 1>;
41 capacity-dmips-mhz = <MID_CAPACITY>;
42 };
43
44 CPU6:cpu@600 {
45 clocks = <&scmi_dvfs 2>;
46 capacity-dmips-mhz = <BIG_CAPACITY>;
47 };
48
49 CPU7:cpu@700 {
50 clocks = <&scmi_dvfs 2>;
51 capacity-dmips-mhz = <BIG_CAPACITY>;
52 };
53 };
54
Yu Shihaia64b82a2024-07-08 09:50:02 +010055 rse_mbox_db_rx: mhu@RSE_MHU_RX_ADDR {
56 compatible = MHU_RX_COMPAT;
57 reg = <0x0 ADDRESSIFY(RSE_MHU_RX_ADDR) 0x0 MHU_OFFSET>;
58 clocks = <&soc_refclk>;
59 clock-names = "apb_pclk";
60 #mbox-cells = <MHU_MBOX_CELLS>;
61 interrupts = <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH 0>;
62 interrupt-names = MHU_RX_INT_NAME;
63#if TARGET_FLAVOUR_FPGA
64 status = "disabled";
65#endif
66 };
67
68 rse_mbox_db_tx: mhu@RSE_MHU_TX_ADDR {
69 compatible = MHU_TX_COMPAT;
70 reg = <0x0 ADDRESSIFY(RSE_MHU_TX_ADDR) 0x0 MHU_OFFSET>;
71 clocks = <&soc_refclk>;
72 clock-names = "apb_pclk";
73 #mbox-cells = <MHU_MBOX_CELLS>;
74 interrupt-names = MHU_TX_INT_NAME;
75#if TARGET_FLAVOUR_FPGA
76 status = "disabled";
77#endif
78 };
79
Leo Yan35255f02024-04-30 11:27:17 +010080 gic: interrupt-controller@GIC_CTRL_ADDR {
81 ppi-partitions {
82 ppi_partition_little: interrupt-partition-0 {
83 affinity = <&CPU0>, <&CPU1>;
84 };
85
86 ppi_partition_mid: interrupt-partition-1 {
87 affinity = <&CPU2>, <&CPU3>, <&CPU4>, <&CPU5>;
88 };
89
90 ppi_partition_big: interrupt-partition-2 {
91 affinity = <&CPU6>, <&CPU7>;
92 };
93 };
94 };
95
96 sram: sram@6000000 {
97 cpu_scp_scmi_p2a: scp-shmem@80 {
98 compatible = "arm,scmi-shmem";
99 reg = <0x80 0x80>;
100 };
101 };
102
103 firmware {
104 scmi {
105 mboxes = <&mbox_db_tx 0 0 0 &mbox_db_rx 0 0 0 &mbox_db_rx 0 0 1>;
106 shmem = <&cpu_scp_scmi_a2p &cpu_scp_scmi_p2a>;
107 };
Yu Shihaia64b82a2024-07-08 09:50:02 +0100108
109 rse {
110 compatible = "arm,rse";
111 mbox-names = "tx", "rx";
112 mboxes = <&rse_mbox_db_tx 0 0 0>, <&rse_mbox_db_rx 0 0 0>;
113#if TARGET_FLAVOUR_FPGA
114 status = "disabled";
115#endif
116 };
Leo Yan35255f02024-04-30 11:27:17 +0100117 };
Jagdish Gediya950fdea2024-06-19 03:37:48 +0000118
119 dsu-pmu {
120 compatible = "arm,dsu-pmu";
121 cpus = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>, <&CPU4>, <&CPU5>, <&CPU6>, <&CPU7>;
122 };
Leo Yan35255f02024-04-30 11:27:17 +0100123};