1/* 2 * Copyright (c) 2022 YuLong Yao <feilongphone@gmail.com> 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/dts-v1/; 7 8#include <gd/gd32a50x/gd32a503vdt3.dtsi> 9#include "gd32a503v_eval-pinctrl.dtsi" 10 11/ { 12 model = "GigaDevice GD32A503V-EVAL"; 13 compatible = "gd,gd32a503v-eval"; 14 15 chosen { 16 zephyr,sram = &sram0; 17 zephyr,flash = &flash0; 18 zephyr,console = &usart0; 19 zephyr,shell-uart = &usart0; 20 zephyr,flash-controller = &fmc; 21 }; 22 23 leds { 24 compatible = "gpio-leds"; 25 led1: led1 { 26 gpios = <&gpioc 0 GPIO_ACTIVE_LOW>; 27 label = "LED1"; 28 }; 29 led2: led2 { 30 gpios = <&gpioc 1 GPIO_ACTIVE_LOW>; 31 label = "LED2"; 32 }; 33 }; 34 35 aliases { 36 led0 = &led1; 37 led1 = &led2; 38 }; 39}; 40 41&gpioa { 42 status = "okay"; 43}; 44 45&gpiob { 46 status = "okay"; 47}; 48 49&gpioc { 50 status = "okay"; 51}; 52 53&gpiod { 54 status = "okay"; 55}; 56 57&gpioe { 58 status = "okay"; 59}; 60 61&gpiof { 62 status = "okay"; 63}; 64 65&usart0 { 66 status = "okay"; 67 current-speed = <115200>; 68 pinctrl-0 = <&usart0_default>; 69 pinctrl-names = "default"; 70}; 71 72&adc0 { 73 status = "okay"; 74 pinctrl-0 = <&adc0_default>; 75 pinctrl-names = "default"; 76}; 77 78&dac { 79 status = "okay"; 80 pinctrl-0 = <&dac_default>; 81 pinctrl-names = "default"; 82}; 83 84&fwdgt { 85 status = "okay"; 86}; 87 88&spi0 { 89 status = "okay"; 90 pinctrl-0 = <&spi0_default>; 91 pinctrl-names = "default"; 92 cs-gpios = <&gpioa 1 GPIO_ACTIVE_LOW>; 93 94 nor_flash: gd25q16@0 { 95 compatible ="jedec,spi-nor"; 96 size = <0x1000000>; 97 reg = <0>; 98 spi-max-frequency = <4000000>; 99 status = "okay"; 100 jedec-id = [c8 40 15]; 101 }; 102}; 103