Browse Source

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>
pull/92038/merge
Michael Hope 1 month ago committed by Dan Kalowsky
parent
commit
99fbef14c2
  1. 3
      boards/wch/ch32v003evt/ch32v003evt.yaml
  2. 4
      boards/wch/ch32v003f4p6_dev_board/ch32v003f4p6_dev_board.yaml
  3. 5
      boards/wch/ch32v006evt/ch32v006evt.dts
  4. 1
      boards/wch/ch32v006evt/ch32v006evt.yaml
  5. 14
      boards/wch/ch32v303vct6_evt/ch32v303vct6_evt.yaml
  6. 5
      boards/wch/linkw/linkw.dts
  7. 4
      boards/wch/linkw/linkw.yaml
  8. 3
      boards/weact/bluepillplus_ch32v203/bluepillplus_ch32v203.yaml

3
boards/wch/ch32v003evt/ch32v003evt.yaml

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

4
boards/wch/ch32v003f4p6_dev_board/ch32v003f4p6_dev_board.yaml

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

5
boards/wch/ch32v006evt/ch32v006evt.dts

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

1
boards/wch/ch32v006evt/ch32v006evt.yaml

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

14
boards/wch/ch32v303vct6_evt/ch32v303vct6_evt.yaml

@ -0,0 +1,14 @@ @@ -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

5
boards/wch/linkw/linkw.dts

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

4
boards/wch/linkw/linkw.yaml

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

3
boards/weact/bluepillplus_ch32v203/bluepillplus_ch32v203.yaml

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

Loading…
Cancel
Save