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 <gigadevice/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		spi-flash0 = &nor_flash;
39	};
40};
41
42&gpioa {
43	status = "okay";
44};
45
46&gpiob {
47	status = "okay";
48};
49
50&gpioc {
51	status = "okay";
52};
53
54&gpiod {
55	status = "okay";
56};
57
58&gpioe {
59	status = "okay";
60};
61
62&gpiof {
63	status = "okay";
64};
65
66&usart0 {
67	status = "okay";
68	current-speed = <115200>;
69	pinctrl-0 = <&usart0_default>;
70	pinctrl-names = "default";
71};
72
73&adc0 {
74	status = "okay";
75	pinctrl-0 = <&adc0_default>;
76	pinctrl-names = "default";
77};
78
79&dac {
80	status = "okay";
81	pinctrl-0 = <&dac_default>;
82	pinctrl-names = "default";
83};
84
85&fwdgt {
86	status = "okay";
87};
88
89&spi0 {
90	status = "okay";
91	pinctrl-0 = <&spi0_default>;
92	pinctrl-names = "default";
93	cs-gpios = <&gpioa 1 GPIO_ACTIVE_LOW>;
94
95	nor_flash: gd25q16@0 {
96		compatible ="jedec,spi-nor";
97		size = <0x1000000>;
98		reg = <0>;
99		spi-max-frequency = <4000000>;
100		status = "okay";
101		jedec-id = [c8 40 15];
102	};
103};
104