1/* 2 * Copyright (c) 2021 Katsuhiro Suzuki 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <sifive/riscv64-fu540.dtsi> 10 11/ { 12 chosen { 13 zephyr,console = &uart0; 14 zephyr,shell-uart = &uart0; 15 zephyr,sram = &ram0; 16 }; 17 18 ram0: ram0@80000000 { 19 compatible = "memory"; 20 reg = <0x80000000 0xf0000000>; 21 reg-names = "mem"; 22 }; 23 24 lscon_96b: connector { 25 compatible = "linaro,96b-lscon-1v8"; 26 #gpio-cells = <2>; 27 gpio-map-mask = <0xffffffff 0xffffffc0>; 28 gpio-map-pass-thru = <0 0x3f>; 29 gpio-map = <22 0 &gpio0 0 0>, /* GPIO-A */ 30 <23 0 &gpio0 1 0>, /* GPIO-B */ 31 <24 0 &gpio0 2 0>, /* GPIO-C */ 32 <25 0 &gpio0 3 0>, /* GPIO-D */ 33 <26 0 &gpio0 4 0>, /* GPIO-E */ 34 <27 0 &gpio0 5 0>, /* GPIO-F */ 35 <38 0 &gpio0 6 0>, /* GPIO-G */ 36 <39 0 &gpio0 7 0>, /* GPIO-H */ 37 <30 0 &gpio0 8 0>, /* GPIO-I */ 38 <31 0 &gpio0 9 0>, /* GPIO-J */ 39 <32 0 &gpio0 15 0>; /* GPIO-K */ 40 /* GPIO-L not connected */ 41 }; 42}; 43 44&uart0 { 45 status = "okay"; 46 current-speed = <115200>; 47}; 48 49/* disabled (used by Flash ROM by default) */ 50&spi0 { 51 reg = <0x10040000 0x1000 0x20000000 0x2000000>; 52 flash0: flash@0 { 53 compatible = "issi,is25wp256d", "jedec,spi-nor"; 54 status = "disabled"; 55 size = <33554432>; 56 jedec-id = [96 60 18]; 57 reg = <0>; 58 spi-max-frequency = <133000000>; 59 }; 60}; 61 62&spi1 { 63 status = "okay"; 64}; 65 66&spi2 { 67 status = "okay"; 68}; 69 70&gpio0 { 71 status = "okay"; 72}; 73