Skip to content

Commit 99fbef1

Browse files
nzmichaelhdkalowsk
authored andcommitted
boards: wch: update the bord test definitions to match the new drivers
The CH32V series now has GPIO, watchdog, I2C, and PWM drivers. Enable Twister for these drivers by updating the board definitions to match. On the larger chips, also enable the watchdog in Devicetree so it's usable by the sample. Note that the 203 and 303 do not yet have the appropriate iwdg Devicetree node. Signed-off-by: Michael Hope <michaelh@juju.nz>
1 parent 401ec8b commit 99fbef1

File tree

8 files changed

+38
-1
lines changed

8 files changed

+38
-1
lines changed

boards/wch/ch32v003evt/ch32v003evt.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ supported:
1111
- dma
1212
- gpio
1313
- i2c
14+
- pwm
15+
- uart
16+
- watchdog

boards/wch/ch32v003f4p6_dev_board/ch32v003f4p6_dev_board.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ ram: 2
99
flash: 16
1010
supported:
1111
- gpio
12-
- uart
1312
- i2c
13+
- pwm
14+
- uart
15+
- watchdog

boards/wch/ch32v006evt/ch32v006evt.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
led0 = &blue_led1;
5858
led1 = &blue_led2;
5959
pwm-led0 = &blue_pwm2;
60+
watchdog0 = &iwdg;
6061
};
6162
};
6263

@@ -88,3 +89,7 @@
8889
pinctrl-0 = <&usart1_default>;
8990
pinctrl-names = "default";
9091
};
92+
93+
&iwdg {
94+
status = "okay";
95+
};

boards/wch/ch32v006evt/ch32v006evt.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ supported:
1212
- gpio
1313
- i2c
1414
- pwm
15+
- uart
1516
- watchdog
1617
vendor: wch
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
identifier: ch32v303vct6_evt
2+
name: WCH CH32V303VCT6-EVT Evaluation Board
3+
type: mcu
4+
arch: riscv
5+
toolchain:
6+
- cross-compile
7+
- zephyr
8+
ram: 32
9+
flash: 480
10+
supported:
11+
- gpio
12+
- i2c
13+
- pwm
14+
- uart

boards/wch/linkw/linkw.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
aliases {
5252
led0 = &blue_led;
5353
sw0 = &mode;
54+
watchdog0 = &iwdg;
5455
};
5556
};
5657

@@ -82,3 +83,7 @@
8283
pinctrl-0 = <&usart2_default>;
8384
pinctrl-names = "default";
8485
};
86+
87+
&iwdg {
88+
status = "okay";
89+
};

boards/wch/linkw/linkw.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ flash: 128
1010
supported:
1111
- dma
1212
- gpio
13+
- i2c
14+
- pwm
15+
- uart
16+
- watchdog

boards/weact/bluepillplus_ch32v203/bluepillplus_ch32v203.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ ram: 20
99
flash: 224
1010
supported:
1111
- gpio
12+
- i2c
13+
- pwm
14+
- uart

0 commit comments

Comments
 (0)