Skip to content

Commit 07e0063

Browse files
author
Gang He
committed
dts: arm: sifli: sf32lb52x: define mailbox
Mbox is hardware interface between Application HCPU and Bluetooth LCPU. Signed-off-by: Gang He <[email protected]>
1 parent 4ef1163 commit 07e0063

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

dts/arm/sifli/sf32lb52x-ram012.dtsi

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6+
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
67
#include <mem.h>
78

89
/ {
@@ -13,7 +14,21 @@
1314
soc {
1415
ram012: memory@20000000 {
1516
compatible = "mmio-sram";
16-
reg = <0x20000000 DT_SIZE_K(512)>;
17+
reg = <0x20000000 DT_SIZE_K(511)>;
18+
};
19+
sram0_shared: memory@2007fc00 {
20+
compatible = "zephyr,memory-region", "mmio-sram";
21+
reg = <0x2007fc00 DT_SIZE_K(1)>;
22+
device_type = "memory";
23+
zephyr,memory-region = "sram0_shared";
24+
zephyr,memory-attr = <(DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE))>;
25+
};
26+
sram1_shared: memory@20400000 {
27+
compatible = "zephyr,memory-region", "mmio-sram";
28+
reg = <0x20400000 DT_SIZE_K(64)>;
29+
device_type = "memory";
30+
zephyr,memory-region = "sram1_shared";
31+
zephyr,memory-attr = <(DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE))>;
1732
};
1833
};
1934
};

dts/arm/sifli/sf32lb52x.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@
129129
status = "disabled";
130130
};
131131

132+
mailbox: mailbox@50082000 {
133+
compatible = "sifli,sf32lb-mailbox";
134+
reg = <0x50082000 0x1000>;
135+
interrupts = <58 1>;
136+
status = "disabled";
137+
};
138+
132139
usart1: serial@50084000 {
133140
compatible = "sifli,sf32lb-usart";
134141
reg = <0x50084000 0x400>;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Mailbox Bluetooth HCI device
2+
3+
description: Bluetooth HCI behind a mailbox IPC device (H:4)
4+
5+
compatible: "sifli,sf32lb-mailbox"
6+
7+
include: bt-hci.yaml
8+
9+
properties:
10+
bt-hci-name:
11+
default: "mailbox"
12+
bt-hci-bus:
13+
default: "virtual"
14+
15+
mail-cells:
16+
- channel

0 commit comments

Comments
 (0)