soc: wch: Add packages for the ch32v303

Add the different packages of the CH32V303

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
This commit is contained in:
Miguel Gazquez 2025-06-03 11:20:26 +02:00 committed by Daniel DeGrasse
parent de0ef827cd
commit 798dc5c976
5 changed files with 61 additions and 1 deletions

View File

@ -5,7 +5,7 @@
/dts-v1/;
#include <wch/ch32v303/ch32v303.dtsi>
#include <wch/ch32v303/ch32v303vct.dtsi>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include "ch32v303vct6_evt-pinctrl.dtsi"

View File

@ -0,0 +1,19 @@
/*
* Copyright (c) 2025 Bootlin
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <wch/ch32v303/ch32v303.dtsi>
&gpioc {
gpio-reserved-ranges = <0 13>;
};
&gpiod {
gpio-reserved-ranges = <2 14>;
};
&gpioe {
gpio-reserved-ranges = <0 16>;
};

View File

@ -0,0 +1,15 @@
/*
* Copyright (c) 2025 Bootlin
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <wch/ch32v303/ch32v303.dtsi>
&gpiod {
gpio-reserved-ranges = <3 13>;
};
&gpioe {
gpio-reserved-ranges = <0 16>;
};

View File

@ -0,0 +1,15 @@
/*
* Copyright (c) 2025 Bootlin
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <wch/ch32v303/ch32v303.dtsi>
&gpiod {
gpio-reserved-ranges = <3 13>;
};
&gpioe {
gpio-reserved-ranges = <0 16>;
};

View File

@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Bootlin
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <wch/ch32v303/ch32v303.dtsi>
&gpioc {
gpio-reserved-ranges = <0 3>, <14 2>;
};