Skip to content

Commit 8a54f73

Browse files
VynDragonnashif
authored andcommitted
boards: dt_xt_zb1_devkit: clear up module/board confusion
Clears module and board being confused Signed-off-by: Camille BAUD <mail@massdriver.space>
1 parent a927634 commit 8a54f73

File tree

4 files changed

+87
-70
lines changed

4 files changed

+87
-70
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright (c) 2025 MASSDRIVER EI (massdriver.space)
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#include <zephyr/dt-bindings/pinctrl/bl702x-pinctrl.h>
7+
8+
&pinctrl {
9+
uart0_default: uart0_default {
10+
group1 {
11+
pinmux = <GPIO15_UART0_RX>,
12+
<GPIO14_UART0_TX>;
13+
bias-pull-up;
14+
input-schmitt-enable;
15+
};
16+
};
17+
18+
uart0_sleep: uart0_sleep {
19+
group1 {
20+
pinmux = <GPIO15_UART0_RX>,
21+
<GPIO14_UART0_TX>;
22+
bias-high-impedance;
23+
};
24+
};
25+
};
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/*
2+
* Copyright (c) 2025 MASSDRIVER EI (massdriver.space)
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#include <bflb/bl70x.dtsi>
7+
#include "dt_xt_zb1-pinctrl.dtsi"
8+
9+
/ {
10+
model = "Zigbee 3.0 and BLE 5.0 Coexistence Module";
11+
compatible = "bflb,bl702";
12+
13+
chosen {
14+
zephyr,flash = &flash0;
15+
zephyr,code-partition = &slot0_partition;
16+
zephyr,itcm = &itcm;
17+
zephyr,dtcm = &dtcm;
18+
zephyr,sram = &sram0;
19+
zephyr,console = &uart0;
20+
zephyr,shell-uart = &uart0;
21+
};
22+
};
23+
24+
&cpu0 {
25+
clock-frequency = <DT_FREQ_M(144)>;
26+
};
27+
28+
&flashctrl {
29+
flash0: flash@23000000 {
30+
compatible = "soc-nv-flash", "mxicy,kh25v80";
31+
reg = <0x23000000 (0x1000000 - 0x2000)>;
32+
write-block-size = <256>;
33+
erase-block-size = <DT_SIZE_K(4)>;
34+
35+
partitions {
36+
compatible = "fixed-partitions";
37+
#address-cells = <1>;
38+
#size-cells = <1>;
39+
40+
slot0_partition: partition@0 {
41+
label = "image-0";
42+
reg = <0x00000000 0x80000>;
43+
read-only;
44+
};
45+
46+
storage_partition: partition@80000 {
47+
label = "storage";
48+
reg = <0x00080000 (0x80000 - 0x2000)>;
49+
};
50+
};
51+
};
52+
};
53+
54+
&uart0 {
55+
status = "okay";
56+
current-speed = <115200>;
57+
58+
pinctrl-0 = <&uart0_default>;
59+
pinctrl-1 = <&uart0_sleep>;
60+
pinctrl-names = "default", "sleep";
61+
};

boards/doiting/dt_xt_zb1_devkit/dt_xt_zb1_devkit-pinctrl.dtsi

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
#include <zephyr/dt-bindings/pinctrl/bl702x-pinctrl.h>
7-
86
&pinctrl {
9-
uart0_default: uart0_default {
10-
group1 {
11-
pinmux = <GPIO15_UART0_RX>,
12-
<GPIO14_UART0_TX>;
13-
bias-pull-up;
14-
input-schmitt-enable;
15-
};
16-
};
17-
18-
uart0_sleep: uart0_sleep {
19-
group1 {
20-
pinmux = <GPIO15_UART0_RX>,
21-
<GPIO14_UART0_TX>;
22-
bias-high-impedance;
23-
};
24-
};
25-
267
i2c0_default: i2c0_default {
278
group1 {
289
pinmux = <GPIO0_I2C_SCL>,

boards/doiting/dt_xt_zb1_devkit/dt_xt_zb1_devkit.dts

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,61 +5,11 @@
55

66
/dts-v1/;
77

8-
#include <bflb/bl70x.dtsi>
8+
#include "dt_xt_zb1.dtsi"
99
#include "dt_xt_zb1_devkit-pinctrl.dtsi"
1010

1111
/ {
1212
model = "Zigbee 3.0 and BLE 5.0 Coexistence Module Development Kit";
13-
compatible = "bflb,bl702";
14-
15-
chosen {
16-
zephyr,flash = &flash0;
17-
zephyr,code-partition = &slot0_partition;
18-
zephyr,itcm = &itcm;
19-
zephyr,dtcm = &dtcm;
20-
zephyr,sram = &sram0;
21-
zephyr,console = &uart0;
22-
zephyr,shell-uart = &uart0;
23-
};
24-
};
25-
26-
&cpu0 {
27-
clock-frequency = <DT_FREQ_M(144)>;
28-
};
29-
30-
&flashctrl {
31-
flash0: flash@23000000 {
32-
compatible = "soc-nv-flash", "mxicy,kh25v80";
33-
reg = <0x23000000 (0x1000000 - 0x2000)>;
34-
write-block-size = <256>;
35-
erase-block-size = <DT_SIZE_K(4)>;
36-
37-
partitions {
38-
compatible = "fixed-partitions";
39-
#address-cells = <1>;
40-
#size-cells = <1>;
41-
42-
slot0_partition: partition@0 {
43-
label = "image-0";
44-
reg = <0x00000000 0x80000>;
45-
read-only;
46-
};
47-
48-
storage_partition: partition@80000 {
49-
label = "storage";
50-
reg = <0x00080000 (0x80000 - 0x2000)>;
51-
};
52-
};
53-
};
54-
};
55-
56-
&uart0 {
57-
status = "okay";
58-
current-speed = <115200>;
59-
60-
pinctrl-0 = <&uart0_default>;
61-
pinctrl-1 = <&uart0_sleep>;
62-
pinctrl-names = "default", "sleep";
6313
};
6414

6515
&i2c0 {

0 commit comments

Comments
 (0)