|
3 | 3 | ##include <dt-bindings/input/input.h> |
4 | 4 | ##include <dt-bindings/interrupt-controller/irq.h> |
5 | 5 |
|
| 6 | +/ { |
| 7 | + compatible = "spinal,vexiiriscv"; |
| 8 | + ##address-cells = <1>; |
| 9 | + ##size-cells = <1>; |
6 | 10 |
|
| 11 | + chosen { |
| 12 | + bootargs = "rootwait console=hvc0 earlycon=sbi root=/dev/ram0 init=/sbin/init"; |
| 13 | + linux,initrd-start = <0x81000000>; |
| 14 | + linux,initrd-end = <0x81800000>; |
| 15 | + }; |
7 | 16 |
|
8 | | -/ { |
9 | | - ##address-cells = <0x1>; |
10 | | - ##size-cells = <0x1>; |
11 | | - compatible = "spinal,naxriscv"; |
12 | | - model = "spinal,naxriscv_sim"; |
13 | | - |
14 | | - chosen { |
15 | | - bootargs = "rootwait console=hvc0 earlycon=sbi root=/dev/ram0 init=/sbin/init"; |
16 | | - linux,initrd-start = <0x81000000>; |
17 | | - linux,initrd-end = <0x81800000>; |
18 | | - }; |
19 | | - |
20 | | - cpus { |
21 | | - ##address-cells = <0x1>; |
22 | | - ##size-cells = <0x0>; |
23 | | - timebase-frequency = <100000000>; |
24 | | - cpu@0 { |
25 | | - device_type = "cpu"; |
26 | | - compatible = "riscv"; |
27 | | - riscv,isa = ISA_STR; |
28 | | - mmu-type = MMU_TYPE; |
29 | | - reg = <0>; |
30 | | - status = "okay"; |
31 | | - L0: interrupt-controller { |
32 | | - ##interrupt-cells = <0x00000001>; |
33 | | - interrupt-controller; |
34 | | - compatible = "riscv,cpu-intc"; |
35 | | - }; |
36 | | - }; |
37 | | - }; |
38 | | - |
39 | | - memory@80000000 { |
40 | | - device_type = "memory"; |
41 | | - reg = <0x80400000 0x0FC00000>; |
42 | | - }; |
43 | | -}; |
| 17 | + cpus { |
| 18 | + ##address-cells = <1>; |
| 19 | + ##size-cells = <0>; |
| 20 | + timebase-frequency = <100000000>; |
| 21 | + |
| 22 | + cpu@0 { |
| 23 | + compatible = "spinal,vexiiriscv", "riscv"; |
| 24 | + reg = <0>; |
| 25 | + device_type = "cpu"; |
| 26 | + mmu-type = MMU_TYPE; |
| 27 | + riscv,isa-base = ISA_BASE; |
| 28 | + riscv,isa-extensions = ISA_STR; |
| 29 | + |
| 30 | + cpu0_intc: interrupt-controller { |
| 31 | + compatible = "riscv,cpu-intc"; |
| 32 | + interrupt-controller; |
| 33 | + ##interrupt-cells = <1>; |
| 34 | + }; |
| 35 | + }; |
| 36 | + }; |
44 | 37 |
|
| 38 | + memory@80000000 { |
| 39 | + device_type = "memory"; |
| 40 | + reg = <0x80000000 0x40000000>; |
| 41 | + }; |
45 | 42 |
|
| 43 | + soc { |
| 44 | + compatible = "simple-bus"; |
| 45 | + ##address-cells = <1>; |
| 46 | + ##size-cells = <1>; |
| 47 | + ranges; |
| 48 | + |
| 49 | + serial0: serial@10000000 { |
| 50 | + compatible = "spinal,vexiiriscv-uart"; |
| 51 | + reg = <0x10000000 0x1000>; |
| 52 | + }; |
| 53 | + |
| 54 | + clint: timer@10010000 { |
| 55 | + compatible = "sifive,clint0"; |
| 56 | + reg = <0x10010000 0x10000>; |
| 57 | + interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>; |
| 58 | + }; |
| 59 | + }; |
| 60 | + |
| 61 | + poweroff { |
| 62 | + compatible = "spinal-poweroff"; |
| 63 | + }; |
| 64 | +}; |
0 commit comments