1/* 2 * Copyright (c) 2022 BrainCo Inc. 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/dts-v1/; 7 8#include <gd/gd32l23x/gd32l233rc.dtsi> 9#include "gd32l233r_eval-pinctrl.dtsi" 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "GigaDevice GD32L233R Evaluation Kit"; 14 compatible = "gd,gd32l233r-eval"; 15 16 chosen { 17 zephyr,sram = &sram; 18 zephyr,flash = &flash0; 19 zephyr,console = &usart1; 20 zephyr,shell-uart = &usart1; 21 zephyr,flash-controller = &fmc; 22 }; 23 24 leds { 25 compatible = "gpio-leds"; 26 led2: led2 { 27 gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>; 28 label = "LED2"; 29 }; 30 led3: led3 { 31 gpios = <&gpioc 8 GPIO_ACTIVE_HIGH>; 32 label = "LED3"; 33 }; 34 led4: led4 { 35 gpios = <&gpioc 9 GPIO_ACTIVE_HIGH>; 36 label = "LED4"; 37 }; 38 led5: led5 { 39 gpios = <&gpioc 11 GPIO_ACTIVE_HIGH>; 40 label = "LED5"; 41 }; 42 }; 43 44 gpio_keys { 45 compatible = "gpio-keys"; 46 wakeup_key: wakeup_key { 47 label = "WAKEUP_KEY"; 48 gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; 49 zephyr,code = <INPUT_KEY_WAKEUP>; 50 }; 51 tamper_key: tamper_key { 52 label = "TAMPER_KEY"; 53 gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; 54 zephyr,code = <INPUT_KEY_0>; 55 }; 56 }; 57 58 aliases { 59 led0 = &led2; 60 led1 = &led3; 61 }; 62}; 63 64&gpioa { 65 status = "okay"; 66}; 67 68&gpiob { 69 status = "okay"; 70}; 71 72&gpioc { 73 status = "okay"; 74}; 75 76&gpiod { 77 status = "okay"; 78}; 79 80&gpiof { 81 status = "okay"; 82}; 83 84&usart1 { 85 status = "okay"; 86 current-speed = <115200>; 87 pinctrl-0 = <&usart1_default>; 88 pinctrl-names = "default"; 89}; 90 91&adc0 { 92 status = "okay"; 93 pinctrl-0 = <&adc0_default>; 94 pinctrl-names = "default"; 95}; 96