blob: 84aa8e85cd5fc43959061c0b28d909acab9ce21d [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 */
Leo Yan35255f02024-04-30 11:27:17 +010021
22#if TARGET_FLAVOUR_FVP
23#define DPU_ADDR 4000000000
24#define DPU_IRQ 579
25#elif TARGET_FLAVOUR_FPGA
26#define DPU_ADDR 2cc00000
27#define DPU_IRQ 69
28#endif
29#include "tc-base.dtsi"
30
31/ {
32 cpus {
33 CPU2:cpu@200 {
34 clocks = <&scmi_dvfs 1>;
35 capacity-dmips-mhz = <MID_CAPACITY>;
36 };
37
38 CPU3:cpu@300 {
39 clocks = <&scmi_dvfs 1>;
40 capacity-dmips-mhz = <MID_CAPACITY>;
41 };
42
43 CPU6:cpu@600 {
44 clocks = <&scmi_dvfs 2>;
45 capacity-dmips-mhz = <BIG_CAPACITY>;
46 };
47
48 CPU7:cpu@700 {
49 clocks = <&scmi_dvfs 2>;
50 capacity-dmips-mhz = <BIG_CAPACITY>;
51 };
52 };
53
Yu Shihaia64b82a2024-07-08 09:50:02 +010054 rse_mbox_db_rx: mhu@RSE_MHU_RX_ADDR {
55 compatible = MHU_RX_COMPAT;
56 reg = <0x0 ADDRESSIFY(RSE_MHU_RX_ADDR) 0x0 MHU_OFFSET>;
57 clocks = <&soc_refclk>;
58 clock-names = "apb_pclk";
59 #mbox-cells = <MHU_MBOX_CELLS>;
60 interrupts = <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH 0>;
61 interrupt-names = MHU_RX_INT_NAME;
62#if TARGET_FLAVOUR_FPGA
63 status = "disabled";
64#endif
65 };
66
67 rse_mbox_db_tx: mhu@RSE_MHU_TX_ADDR {
68 compatible = MHU_TX_COMPAT;
69 reg = <0x0 ADDRESSIFY(RSE_MHU_TX_ADDR) 0x0 MHU_OFFSET>;
70 clocks = <&soc_refclk>;
71 clock-names = "apb_pclk";
72 #mbox-cells = <MHU_MBOX_CELLS>;
73 interrupt-names = MHU_TX_INT_NAME;
74#if TARGET_FLAVOUR_FPGA
75 status = "disabled";
76#endif
77 };
78
Leo Yan35255f02024-04-30 11:27:17 +010079 gic: interrupt-controller@GIC_CTRL_ADDR {
80 ppi-partitions {
81 ppi_partition_little: interrupt-partition-0 {
82 affinity = <&CPU0>, <&CPU1>;
83 };
84
85 ppi_partition_mid: interrupt-partition-1 {
86 affinity = <&CPU2>, <&CPU3>, <&CPU4>, <&CPU5>;
87 };
88
89 ppi_partition_big: interrupt-partition-2 {
90 affinity = <&CPU6>, <&CPU7>;
91 };
92 };
93 };
94
95 sram: sram@6000000 {
96 cpu_scp_scmi_p2a: scp-shmem@80 {
97 compatible = "arm,scmi-shmem";
98 reg = <0x80 0x80>;
99 };
100 };
101
102 firmware {
103 scmi {
104 mboxes = <&mbox_db_tx 0 0 0 &mbox_db_rx 0 0 0 &mbox_db_rx 0 0 1>;
105 shmem = <&cpu_scp_scmi_a2p &cpu_scp_scmi_p2a>;
106 };
Yu Shihaia64b82a2024-07-08 09:50:02 +0100107
108 rse {
109 compatible = "arm,rse";
110 mbox-names = "tx", "rx";
111 mboxes = <&rse_mbox_db_tx 0 0 0>, <&rse_mbox_db_rx 0 0 0>;
112#if TARGET_FLAVOUR_FPGA
113 status = "disabled";
114#endif
115 };
Leo Yan35255f02024-04-30 11:27:17 +0100116 };
Jagdish Gediya950fdea2024-06-19 03:37:48 +0000117
118 dsu-pmu {
119 compatible = "arm,dsu-pmu";
120 cpus = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>, <&CPU4>, <&CPU5>, <&CPU6>, <&CPU7>;
121 };
Jagdish Gediya69029092024-06-19 08:52:48 +0000122
123 cs-pmu@0 {
124 compatible = "arm,coresight-pmu";
125 reg = <0x0 MCN_PMU_ADDR(0) 0x0 0xffc>;
126 };
127
128 cs-pmu@1 {
129 compatible = "arm,coresight-pmu";
130 reg = <0x0 MCN_PMU_ADDR(1) 0x0 0xffc>;
131 };
132
133 cs-pmu@2 {
134 compatible = "arm,coresight-pmu";
135 reg = <0x0 MCN_PMU_ADDR(2) 0x0 0xffc>;
136 };
137
138 cs-pmu@3 {
139 compatible = "arm,coresight-pmu";
140 reg = <0x0 MCN_PMU_ADDR(3) 0x0 0xffc>;
141 };
Leo Yan35255f02024-04-30 11:27:17 +0100142};