1298638Sbr/*-
2298638Sbr * Copyright (c) 2016 Ruslan Bukin <br@bsdpad.com>
3298638Sbr * All rights reserved.
4298638Sbr *
5298638Sbr * Portions of this software were developed by SRI International and the
6298638Sbr * University of Cambridge Computer Laboratory under DARPA/AFRL contract
7298638Sbr * FA8750-10-C-0237 ("CTSRD"), as part of the DARPA CRASH research programme.
8298638Sbr *
9298638Sbr * Portions of this software were developed by the University of Cambridge
10298638Sbr * Computer Laboratory as part of the CTSRD Project, with support from the
11298638Sbr * UK Higher Education Innovation Fund (HEIF).
12298638Sbr *
13298638Sbr * Redistribution and use in source and binary forms, with or without
14298638Sbr * modification, are permitted provided that the following conditions
15298638Sbr * are met:
16298638Sbr * 1. Redistributions of source code must retain the above copyright
17298638Sbr *    notice, this list of conditions and the following disclaimer.
18298638Sbr * 2. Redistributions in binary form must reproduce the above copyright
19298638Sbr *    notice, this list of conditions and the following disclaimer in the
20298638Sbr *    documentation and/or other materials provided with the distribution.
21298638Sbr *
22298638Sbr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23298638Sbr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24298638Sbr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25298638Sbr * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
26298638Sbr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27298638Sbr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28298638Sbr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29298638Sbr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30298638Sbr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31298638Sbr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32298638Sbr * SUCH DAMAGE.
33298638Sbr *
34298638Sbr * $FreeBSD: releng/11.0/sys/boot/fdt/dts/riscv/rocket.dts 298638 2016-04-26 13:22:08Z br $
35298638Sbr */
36298638Sbr
37298638Sbr/dts-v1/;
38298638Sbr
39298638Sbr/ {
40298638Sbr	model = "UC Berkeley Spike Simulator RV64I";
41298638Sbr	compatible = "riscv,rv64i";
42298638Sbr	#address-cells = <1>;
43298638Sbr	#size-cells = <1>;
44298638Sbr	#interrupt-cells = <1>;
45298638Sbr
46298638Sbr	cpus {
47298638Sbr		#address-cells = <1>;
48298638Sbr		#size-cells = <0>;
49298638Sbr
50298638Sbr		cpu@0 {
51298638Sbr			device_type = "cpu";
52298638Sbr			compatible = "riscv,rv64i";
53298638Sbr			reg = <0x40002000>;
54298638Sbr		};
55298638Sbr	};
56298638Sbr
57298638Sbr	aliases {
58298638Sbr		console0 = &console0;
59298638Sbr	};
60298638Sbr
61298638Sbr	memory {
62298638Sbr		device_type = "memory";
63298638Sbr		reg = <0x0 0x10000000>; /* 256MB at 0x0 */
64298638Sbr	};
65298638Sbr
66298638Sbr	soc {
67298638Sbr		#address-cells = <2>;
68298638Sbr		#size-cells = <2>;
69298638Sbr		#interrupt-cells = <1>;
70298638Sbr
71298638Sbr		compatible = "simple-bus";
72298638Sbr		ranges;
73298638Sbr
74298638Sbr		pic0: pic@0 {
75298638Sbr			compatible = "riscv,pic";
76298638Sbr			interrupt-controller;
77298638Sbr		};
78298638Sbr
79298638Sbr		timer0: timer@0 {
80298638Sbr			compatible = "riscv,timer";
81298638Sbr			interrupts = < 1 >;
82298638Sbr			interrupt-parent = < &pic0 >;
83298638Sbr			clock-frequency = < 1000000 >;
84298638Sbr		};
85298638Sbr
86298638Sbr		htif0: htif@0 {
87298638Sbr			compatible = "riscv,htif";
88298638Sbr			interrupts = < 0 >;
89298638Sbr			interrupt-parent = < &pic0 >;
90298638Sbr
91298638Sbr			console0: console@0 {
92298638Sbr				compatible = "htif,console";
93298638Sbr				status = "okay";
94298638Sbr			};
95298638Sbr		};
96298638Sbr	};
97298638Sbr
98298638Sbr	chosen {
99298638Sbr		bootargs = "-v";
100298638Sbr		stdin = "console0";
101298638Sbr		stdout = "console0";
102298638Sbr	};
103298638Sbr};
104