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>
This commit is contained in:
Michael Hope 2025-05-25 09:40:23 +00:00 committed by Dan Kalowsky
parent 401ec8bae2
commit 99fbef14c2
8 changed files with 38 additions and 1 deletions

View File

@ -11,3 +11,6 @@ supported:
- dma
- gpio
- i2c
- pwm
- uart
- watchdog

View File

@ -9,5 +9,7 @@ ram: 2
flash: 16
supported:
- gpio
- uart
- i2c
- pwm
- uart
- watchdog

View File

@ -57,6 +57,7 @@
led0 = &blue_led1;
led1 = &blue_led2;
pwm-led0 = &blue_pwm2;
watchdog0 = &iwdg;
};
};
@ -88,3 +89,7 @@
pinctrl-0 = <&usart1_default>;
pinctrl-names = "default";
};
&iwdg {
status = "okay";
};

View File

@ -12,5 +12,6 @@ supported:
- gpio
- i2c
- pwm
- uart
- watchdog
vendor: wch

View File

@ -0,0 +1,14 @@
identifier: ch32v303vct6_evt
name: WCH CH32V303VCT6-EVT Evaluation Board
type: mcu
arch: riscv
toolchain:
- cross-compile
- zephyr
ram: 32
flash: 480
supported:
- gpio
- i2c
- pwm
- uart

View File

@ -51,6 +51,7 @@
aliases {
led0 = &blue_led;
sw0 = &mode;
watchdog0 = &iwdg;
};
};
@ -82,3 +83,7 @@
pinctrl-0 = <&usart2_default>;
pinctrl-names = "default";
};
&iwdg {
status = "okay";
};

View File

@ -10,3 +10,7 @@ flash: 128
supported:
- dma
- gpio
- i2c
- pwm
- uart
- watchdog

View File

@ -9,3 +9,6 @@ ram: 20
flash: 224
supported:
- gpio
- i2c
- pwm
- uart