1/* 2 * Copyright (c) 2022, Teslabs Engineering S.L. 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/dts-v1/; 7 8#include <arm/gd/gd32e50x/gd32e507xe.dtsi> 9#include "gd32e507v_start-pinctrl.dtsi" 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "GigaDevice GD32E507V-START"; 14 compatible = "gd,gd32e507v-start"; 15 16 chosen { 17 zephyr,sram = &sram0; 18 zephyr,flash = &flash0; 19 zephyr,console = &usart0; 20 zephyr,shell-uart = &usart0; 21 zephyr,flash-controller = &fmc; 22 }; 23 24 leds { 25 compatible = "gpio-leds"; 26 led1: led1 { 27 gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>; 28 }; 29 }; 30 31 gpio_keys { 32 compatible = "gpio-keys"; 33 user_key: user_key { 34 label = "USER_KEY"; 35 gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; 36 zephyr,code = <INPUT_KEY_0>; 37 }; 38 }; 39 40 pwmleds { 41 compatible = "pwm-leds"; 42 43 pwm_led: pwm_led { 44 pwms = <&pwm2 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 45 }; 46 }; 47 48 aliases { 49 led0 = &led1; 50 sw0 = &user_key; 51 pwm-led0 = &pwm_led; 52 watchdog0 = &fwdgt; 53 }; 54}; 55 56&gpioa { 57 status = "okay"; 58}; 59 60&gpioc { 61 status = "okay"; 62}; 63 64&usart0 { 65 status = "okay"; 66 current-speed = <115200>; 67 pinctrl-0 = <&usart0_default>; 68 pinctrl-names = "default"; 69}; 70 71&timer2 { 72 status = "okay"; 73 prescaler = <256>; 74 75 pwm2: pwm { 76 status = "okay"; 77 pinctrl-0 = <&pwm2_default>; 78 pinctrl-names = "default"; 79 }; 80}; 81 82&fwdgt { 83 status = "okay"; 84}; 85