Skip to content

Commit 6dff07b

Browse files
committed
boards: nordic: nrf54h20dk: add mbox for event report
cpusec will raise an mbox signal when an event report is generated. This is done when a peripheral triggers an error event to cpusec that cannot be directly passed to cpuapp or cpurad. Define the mbox and enable the IRQ for the corresponding bell in the bellboard. Signed-off-by: Håkon Amundsen <[email protected]>
1 parent d0cda31 commit 6dff07b

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20-ipc_conf.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66

77
/ {
88
ipc {
9+
cpusec_cpuapp_event_report: event-report-1-2 {
10+
compatible = "vnd,mbox-consumer";
11+
mboxes = <&cpuapp_bellboard 1>;
12+
mbox-names = "event_channel";
13+
};
14+
15+
cpusec_cpurad_event_report: event-report-1-3 {
16+
compatible = "vnd,mbox-consumer";
17+
mboxes = <&cpurad_bellboard 1>;
18+
mbox-names = "event_channel";
19+
};
20+
921
cpusec_cpuapp_ipc: ipc-1-2 {
1022
compatible = "nordic,ironside-call";
1123
status = "disabled";

boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,13 @@
118118
interrupt-names = "irq0";
119119
/* irq0:
120120
* - 0: cpuapp-cpusec
121+
* - 1: cpuapp-cpusec
121122
* - 6: cpuapp-cpusys
122123
* - 13: cpuapp-cpuppr
123124
* - 14: cpuapp-cpuflpr
124125
* - 18: cpuapp-cpurad
125126
*/
126-
nordic,interrupt-mapping = <0x00046041 0>;
127+
nordic,interrupt-mapping = <0x00046043 0>;
127128
};
128129

129130
&cpurad_bellboard {

boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpurad.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
status = "okay";
4141
interrupts = <96 NRF_DEFAULT_IRQ_PRIORITY>;
4242
interrupt-names = "irq0";
43-
/* irq0: 0: cpurad-cpusec, 6: cpurad-cpusys, 12: cpurad-cpuapp */
44-
nordic,interrupt-mapping = <0x00001041 0>;
43+
/* irq0: 0: cpurad-cpusec, 1: cpurad-cpusec, 6: cpurad-cpusys, 12: cpurad-cpuapp */
44+
nordic,interrupt-mapping = <0x00001043 0>;
4545
};
4646

4747
&cpuapp_bellboard {

0 commit comments

Comments
 (0)