Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | /* * Copyright (c) 2021, YuLong Yao <feilongphone@gmail.com> * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include <gigadevice/gd32e10x/gd32e103vbt6.dtsi> #include "gd32e103v_eval-pinctrl.dtsi" / { model = "GigaDevice gd32e103v Evaluation Kit"; compatible = "gd,gd32e103v"; chosen { zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,console = &usart0; zephyr,shell-uart = &usart0; }; leds { compatible = "gpio-leds"; led2: led2 { gpios = <&gpioc 0 GPIO_ACTIVE_HIGH>; label = "LED2"; }; led3: led3 { gpios = <&gpioc 2 GPIO_ACTIVE_HIGH>; label = "LED3"; }; led4: led4 { gpios = <&gpioe 0 GPIO_ACTIVE_HIGH>; label = "LED4"; }; led5: led5 { gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>; label = "LED5"; }; }; gpio_keys { compatible = "gpio-keys"; wakeup_key: wakeup_key { label = "WAKEUP_KEY"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; }; tamper_key: tamper_key { label = "TAMPER_KEY"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; }; user_key: user_key { label = "USER_KEY1"; gpios = <&gpiob 14 GPIO_ACTIVE_LOW>; }; }; pwmleds { compatible = "pwm-leds"; /* NOTE: bridge TIMER0_CH0 (PA8) and LED1 (PC0) */ pwm_led: pwm_led { pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>; }; }; aliases { led0 = &led2; led1 = &led3; sw0 = &user_key; pwm-led0 = &pwm_led; eeprom-0 = &eeprom0; }; }; &gpioa { status = "okay"; }; &gpiob { status = "okay"; }; &gpioc { status = "okay"; }; &gpiod { status = "okay"; }; &gpioe { status = "okay"; }; &usart0 { status = "okay"; current-speed = <115200>; pinctrl-0 = <&usart0_default>; pinctrl-names = "default"; }; &timer0 { status = "okay"; prescaler = <128>; pwm0: pwm { status = "okay"; pinctrl-0 = <&pwm0_default>; pinctrl-names = "default"; }; }; &i2c0 { status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-names = "default"; eeprom0: eeprom@50 { compatible = "atmel,at24"; reg = <0x50>; status = "okay"; label = "EEPROM_AT24C02"; size = <256>; pagesize = <8>; address-width = <8>; timeout = <5>; }; }; &dac { status = "okay"; pinctrl-0 = <&dac_default>; pinctrl-names = "default"; }; |