1/* 2 * Copyright (c) 2021 Henrik Brix Andersen <henrik@brixandersen.dk> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <neorv32.dtsi> 10#include <freq.h> 11#include <mem.h> 12 13/ { 14 aliases { 15 led0 = &led0; 16 led1 = &led1; 17 led2 = &led2; 18 led3 = &led3; 19 }; 20 21 chosen { 22 zephyr,flash = &imem; 23 zephyr,sram = &dmem; 24 zephyr,console = &uart0; 25 zephyr,shell-uart = &uart0; 26 zephyr,uart-pipe = &uart0; 27 }; 28 29 soc { 30 imem: memory@0 { 31 compatible = "soc-nv-flash", "mmio-sram"; 32 reg = <0x0 DT_SIZE_K(64)>; 33 }; 34 35 bootrom: memory@ffff0000 { 36 compatible = "soc-nv-flash", "mmio-sram"; 37 reg = <0xffff0000 DT_SIZE_K(4)>; 38 }; 39 40 dmem: memory@80000000 { 41 compatible = "mmio-sram"; 42 reg = <0x80000000 DT_SIZE_K(32)>; 43 }; 44 }; 45 46 leds { 47 compatible = "gpio-leds"; 48 led0: led0 { 49 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 50 label = "LED_0"; 51 }; 52 53 led1: led1 { 54 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; 55 label = "LED_1"; 56 }; 57 58 led2: led2 { 59 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; 60 label = "LED_2"; 61 }; 62 63 led3: led3 { 64 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; 65 label = "LED_3"; 66 }; 67 }; 68}; 69 70&cpu0 { 71 clock-frequency = <DT_FREQ_M(100)>; 72}; 73 74&uart0 { 75 status = "okay"; 76 current-speed = <19200>; 77}; 78 79&gpio_lo { 80 status = "okay"; 81}; 82 83&gpio_hi { 84 status = "okay"; 85}; 86