1/* 2 * Copyright (c) 2024 Michael Hope <michaelh@juju.nz> 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/dts-v1/; 7 8#include <wch/ch32v00x.dtsi> 9#include "ch32v003evt-pinctrl.dtsi" 10 11/ { 12 model = "ch32v003evt"; 13 compatible = "wch,ch32v003"; 14 15 chosen { 16 zephyr,sram = &sram0; 17 zephyr,flash = &flash0; 18 zephyr,console = &usart1; 19 zephyr,shell-uart = &usart1; 20 }; 21 22 leds { 23 compatible = "gpio-leds"; 24 25 /* 26 * Please connect the unconnected LED on the WCH CH32V003EVT 27 * board to a suitable GPIO pin (like PD4) and then change 28 * this status to "okay". 29 */ 30 status = "disabled"; 31 32 red_led: led0 { 33 gpios = <&gpiod 4 GPIO_ACTIVE_HIGH>; 34 }; 35 }; 36 37 aliases { 38 led0 = &red_led; 39 }; 40}; 41 42&clk_hse { 43 clock-frequency = <DT_FREQ_M(24)>; 44 status = "okay"; 45}; 46 47&pll { 48 clocks = <&clk_hse>; 49 status = "okay"; 50}; 51 52&rcc { 53 clocks = <&pll>; 54}; 55 56&gpiod { 57 status = "okay"; 58}; 59 60&usart1 { 61 status = "okay"; 62 current-speed = <115200>; 63 pinctrl-0 = <&usart1_default>; 64 pinctrl-names = "default"; 65}; 66