Skip to content

Commit a927634

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

File tree

13 files changed

+102
-85
lines changed

13 files changed

+102
-85
lines changed

boards/aithinker/ai_wb2_12f/Kconfig.ai_wb2_12f renamed to boards/aithinker/ai_wb2_12f_kit/Kconfig.ai_wb2_12f_kit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
config BOARD_AI_WB2_12F
5+
config BOARD_AI_WB2_12F_KIT
66
select SOC_BL602C00Q2I

boards/aithinker/ai_wb2_12f/ai_wb2_12f-pinctrl.dtsi renamed to boards/aithinker/ai_wb2_12f_kit/ai_wb2_12f-pinctrl.dtsi

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,4 @@
2323
bias-high-impedance;
2424
};
2525
};
26-
27-
i2c0_default: i2c0_default {
28-
group1 {
29-
pinmux = <GPIO17_I2C_SDA>,
30-
<GPIO12_I2C_SCL>;
31-
bias-pull-up;
32-
input-schmitt-enable;
33-
};
34-
};
35-
36-
spi0_default: spi0_default {
37-
group1 {
38-
pinmux = <GPIO3_SPI_SCLK>,
39-
<GPIO4_SPI_MOSI>,
40-
<GPIO5_SPI_MISO>;
41-
bias-pull-up;
42-
input-schmitt-enable;
43-
};
44-
};
4526
};
Lines changed: 3 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
/*
2-
* Copyright (c) 2024-2025 MASSDRIVER EI (massdriver.space)
2+
* Copyright (c) 2025 MASSDRIVER EI (massdriver.space)
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
/dts-v1/;
8-
97
#include <bflb/bl602.dtsi>
10-
#include <zephyr/dt-bindings/gpio/gpio.h>
11-
#include <zephyr/dt-bindings/input/input-event-codes.h>
128
#include "ai_wb2_12f-pinctrl.dtsi"
139

1410
/ {
15-
model = "Ai-Thinker WB2-12F development board";
11+
model = "Ai-Thinker WB2-12F Module";
1612
compatible = "bflb,bl602";
1713

1814
chosen {
@@ -24,39 +20,6 @@
2420
zephyr,console = &uart0;
2521
zephyr,shell-uart = &uart0;
2622
};
27-
28-
aliases {
29-
led0 = &blue_led;
30-
sw0 = &button_0;
31-
};
32-
33-
leds {
34-
compatible = "gpio-leds";
35-
36-
blue_led: led_0 {
37-
gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
38-
label = "Blue - LED0";
39-
};
40-
41-
green_led: led_1 {
42-
gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
43-
label = "Green - LED1";
44-
};
45-
46-
red_led: led_2 {
47-
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
48-
label = "Red - LED2";
49-
};
50-
};
51-
52-
buttons {
53-
compatible = "gpio-keys";
54-
55-
button_0: sw0 {
56-
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
57-
zephyr,code = <INPUT_KEY_0>;
58-
};
59-
};
6023
};
6124

6225
&cpu0 {
@@ -65,7 +28,7 @@
6528

6629
&flashctrl {
6730
flash0: flash@23000000 {
68-
compatible = "soc-nv-flash", "zb,25vq32";
31+
compatible = "soc-nv-flash", "zb,zb25vq32";
6932
reg = <0x23000000 (0x400000 - 0x2000)>;
7033
write-block-size = <256>;
7134
erase-block-size = <DT_SIZE_K(4)>;
@@ -102,18 +65,3 @@
10265
&gpio0 {
10366
status = "okay";
10467
};
105-
106-
&i2c0 {
107-
status = "okay";
108-
clock-frequency = <I2C_BITRATE_STANDARD>;
109-
110-
pinctrl-0 = <&i2c0_default>;
111-
pinctrl-names = "default";
112-
};
113-
114-
&spi0 {
115-
status = "okay";
116-
117-
pinctrl-0 = <&spi0_default>;
118-
pinctrl-names = "default";
119-
};
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2024-2025 MASSDRIVER EI (massdriver.space)
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
i2c0_default: i2c0_default {
9+
group1 {
10+
pinmux = <GPIO17_I2C_SDA>,
11+
<GPIO12_I2C_SCL>;
12+
bias-pull-up;
13+
input-schmitt-enable;
14+
};
15+
};
16+
17+
spi0_default: spi0_default {
18+
group1 {
19+
pinmux = <GPIO3_SPI_SCLK>,
20+
<GPIO4_SPI_MOSI>,
21+
<GPIO5_SPI_MISO>;
22+
bias-pull-up;
23+
input-schmitt-enable;
24+
};
25+
};
26+
};
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Copyright (c) 2024-2025 MASSDRIVER EI (massdriver.space)
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "ai_wb2_12f.dtsi"
10+
#include "ai_wb2_12f_kit-pinctrl.dtsi"
11+
12+
/ {
13+
model = "Ai-Thinker WB2-12F development board";
14+
15+
aliases {
16+
led0 = &blue_led;
17+
sw0 = &button_0;
18+
};
19+
20+
leds {
21+
compatible = "gpio-leds";
22+
23+
blue_led: led_0 {
24+
gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
25+
label = "Blue - LED0";
26+
};
27+
28+
green_led: led_1 {
29+
gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
30+
label = "Green - LED1";
31+
};
32+
33+
red_led: led_2 {
34+
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
35+
label = "Red - LED2";
36+
};
37+
};
38+
39+
buttons {
40+
compatible = "gpio-keys";
41+
42+
button_0: sw0 {
43+
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
44+
zephyr,code = <INPUT_KEY_0>;
45+
};
46+
};
47+
};
48+
49+
&i2c0 {
50+
status = "okay";
51+
clock-frequency = <I2C_BITRATE_STANDARD>;
52+
53+
pinctrl-0 = <&i2c0_default>;
54+
pinctrl-names = "default";
55+
};
56+
57+
&spi0 {
58+
status = "okay";
59+
60+
pinctrl-0 = <&spi0_default>;
61+
pinctrl-names = "default";
62+
};

boards/aithinker/ai_wb2_12f/ai_wb2_12f.yaml renamed to boards/aithinker/ai_wb2_12f_kit/ai_wb2_12f_kit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
identifier: ai_wb2_12f
5+
identifier: ai_wb2_12f_kit
66
name: Ai-Thinker WB2-12F development board
77
type: mcu
88
arch: riscv
9-
ram: 64
9+
ram: 176
1010
toolchain:
1111
- zephyr
1212
testing:
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
board:
2-
name: ai_wb2_12f
2+
name: ai_wb2_12f_kit
33
full_name: Ai-Thinker WB2-12F development board
44
vendor: aithinker
55
socs:

boards/aithinker/ai_wb2_12f/doc/img/ai_wb2_12f.webp renamed to boards/aithinker/ai_wb2_12f_kit/doc/img/ai_wb2_12f_kit.webp

File renamed without changes.

0 commit comments

Comments
 (0)