Skip to content

Commit 76423e8

Browse files
author
ganghe
committed
dts: arm: sifli: sf32lb52x: define mbox
Mbox is hardware interface between Application HCPU and Bluetooth LCPU. Signed-off-by: ganghe <[email protected]>
1 parent e3d2e7d commit 76423e8

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

dts/arm/sifli/sf32lb52x-ram012.dtsi

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6+
#include <arm/armv8-m.dtsi>
7+
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
68
#include <mem.h>
79

810
/ {
@@ -13,7 +15,23 @@
1315
soc {
1416
ram012: memory@20000000 {
1517
compatible = "mmio-sram";
16-
reg = <0x20000000 DT_SIZE_K(512)>;
17-
};
18+
reg = <0x20000000 DT_SIZE_K(511)>;
19+
};
20+
sram0_shared: memory@2007fc00 {
21+
/* Last 1 kB of sram0 */
22+
compatible = "zephyr,memory-region", "mmio-sram";
23+
reg = <0x2007fc00 DT_SIZE_K(1)>;
24+
device_type = "memory";
25+
zephyr,memory-region = "sram0_shared";
26+
zephyr,memory-attr = <(DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE))>;
27+
};
28+
sram1_shared: memory@20400000 {
29+
/* Last 1 kB of sram0 */
30+
compatible = "zephyr,memory-region", "mmio-sram";
31+
reg = <0x20400000 DT_SIZE_K(64)>;
32+
device_type = "memory";
33+
zephyr,memory-region = "sram1_shared";
34+
zephyr,memory-attr = <(DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE))>;
35+
};
1836
};
1937
};

dts/arm/sifli/sf32lb52x.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@
110110
status = "disabled";
111111
};
112112

113+
mbox: mbox@50082000 {
114+
compatible = "sifli,bt-mbox";
115+
reg = <0x50082000 0x1000>;
116+
interrupts = <58 1>;
117+
status = "okay";
118+
};
119+
113120
usart1: serial@50084000 {
114121
compatible = "sifli,sf32lb-usart";
115122
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,bt-mbox"
6+
7+
include: bt-hci.yaml
8+
9+
properties:
10+
bt-hci-name:
11+
default: "mbox"
12+
bt-hci-bus:
13+
default: "virtual"
14+
15+
mbox-cells:
16+
- channel

0 commit comments

Comments
 (0)