blob: f5f79267c16fed4d912815bc1f33fb95dbb88778 [file] [log] [blame]
/*
* Copyright (c) 2022 YuLong Yao <feilongphone@gmail.com>
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <gigadevice/gd32a50x/gd32a503vdt3.dtsi>
#include "gd32a503v_eval-pinctrl.dtsi"
/ {
model = "GigaDevice GD32A503V-EVAL";
compatible = "gd,gd32a503v-eval";
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &usart0;
zephyr,shell-uart = &usart0;
zephyr,flash-controller = &fmc;
};
leds {
compatible = "gpio-leds";
led1: led1 {
gpios = <&gpioc 0 GPIO_ACTIVE_LOW>;
label = "LED1";
};
led2: led2 {
gpios = <&gpioc 1 GPIO_ACTIVE_LOW>;
label = "LED2";
};
};
aliases {
led0 = &led1;
led1 = &led2;
spi-flash0 = &nor_flash;
};
};
&gpioa {
status = "okay";
};
&gpiob {
status = "okay";
};
&gpioc {
status = "okay";
};
&gpiod {
status = "okay";
};
&gpioe {
status = "okay";
};
&gpiof {
status = "okay";
};
&usart0 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&usart0_default>;
pinctrl-names = "default";
};
&adc0 {
status = "okay";
pinctrl-0 = <&adc0_default>;
pinctrl-names = "default";
};
&dac {
status = "okay";
pinctrl-0 = <&dac_default>;
pinctrl-names = "default";
};
&fwdgt {
status = "okay";
};
&spi0 {
status = "okay";
pinctrl-0 = <&spi0_default>;
pinctrl-names = "default";
cs-gpios = <&gpioa 1 GPIO_ACTIVE_LOW>;
nor_flash: gd25q16@0 {
compatible ="jedec,spi-nor";
size = <0x1000000>;
reg = <0>;
spi-max-frequency = <4000000>;
status = "okay";
jedec-id = [c8 40 15];
};
};