Skip to content

Commit 3968320

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 4ef1163 commit 3968320

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
status = "disabled";
118118
};
119119

120+
120121
dmac: dma-controller@50081000 {
121122
compatible = "sifli,sf32lb-dmac";
122123
reg = <0x50081000 0x1000>;
@@ -129,6 +130,13 @@
129130
status = "disabled";
130131
};
131132

133+
mbox: mbox@50082000 {
134+
compatible = "sifli,bt-mbox";
135+
reg = <0x50082000 0x1000>;
136+
interrupts = <58 1>;
137+
status = "okay";
138+
};
139+
132140
usart1: serial@50084000 {
133141
compatible = "sifli,sf32lb-usart";
134142
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)