This repository was archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathqmtech_wukong-rocket.dts
198 lines (161 loc) · 5.37 KB
/
qmtech_wukong-rocket.dts
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/dts-v1/;
/ {
#address-cells = <1>;
#size-cells = <1>;
chosen {
//bootargs = "console=liteuart earlycon=liteuart,0x12006800 rootwait root=/dev/mmcblk0p3";
bootargs = "console=hvc0 earlycon=sbi swiotlb=noforce root=/dev/mmcblk0p3 rw rootwait ";
linux,initrd-start = <0x82000000>;
linux,initrd-end = <0x83000000>;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
timebase-frequency = <100000000>;
CPU0: cpu@0 {
device_type = "cpu";
compatible = "riscv";
riscv,isa = "rv64i2p0_mafdc";
mmu-type = "riscv,sv39";
reg = <0>;
clock-frequency = <100000000>;
status = "okay";
d-cache-size = <4096>;
d-cache-sets = <2>;
d-cache-block-size = <64>;
i-cache-size = <4096>;
i-cache-sets = <2>;
i-cache-block-size = <64>;
d-tlb-size = <4>;
d-tlb-sets = <1>;
i-tlb-size = <4>;
i-tlb-sets = <1>;
L0: interrupt-controller {
#interrupt-cells = <0x00000001>;
interrupt-controller;
compatible = "riscv,cpu-intc";
};
};
};
memory@80000000 {
device_type = "memory";
reg = <0x80000000 0x10000000>;
};
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
opensbi@80000000 {
reg = <0x80000000 0x200000>;
};
};
clocks {
sys_clk: litex_sys_clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <100000000>;
};
};
vreg_mmc: vreg_mmc {
compatible = "regulator-fixed";
regulator-name = "vreg_mmc";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
soc {
#address-cells = <1>;
#size-cells = <1>;
compatible = "freechips,rocketchip-unknown-soc", "simple-bus";
interrupt-parent = <&intc0>;
ranges;
soc_ctrl0: soc_controller@12000000 {
compatible = "litex,soc-controller";
reg = <0x12000000 0xc>;
status = "okay";
};
lintc0: clint@2000000 {
compatible = "riscv,clint0";
interrupts-extended = <&L0 3 &L0 7>;
reg = <0x2000000 0x10000>;
reg-names = "control";
};
debug0: debug-controller@0 {
compatible = "sifive,debug-013", "riscv,debug-013";
interrupts-extended = <&L0 0x3F>;
reg = <0x0 0x1000>;
reg-names = "control";
};
error0: error-device@3000 {
compatible = "sifive,error0";
reg = <0x3000 0x1000>;
};
extirq0: external-interrupts {
interrupt-parent = <&intc0>;
interrupts = <1 2 3 4 5 6 7 8>;
};
intc0: interrupt-controller@c000000 {
compatible = "sifive,fu540-c000-plic", "sifive,plic-1.0.0";
reg = <0xc000000 0x400000>;
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller;
interrupts-extended = < &L0 11 &L0 9>;
reg-names = "control";
riscv,max-priority = <7>;
riscv,ndev = <32>;
};
rom0: rom@10000 {
compatible = "sifive,rom0";
reg = <0x10000 0x10000>;
reg-names = "mem";
};
liteuart0: serial@12006800 {
compatible = "litex,liteuart";
reg = <0x12006800 0x100>;
interrupts = <1>;
status = "okay";
};
mac0: mac@12001000 {
compatible = "litex,liteeth";
reg = <0x12001000 0x7c>,
<0x12001800 0x0a>,
<0x30000000 0x2000>;
reg-names = "mac", "mdio", "buffer";
litex,rx-slots = <2>;
litex,tx-slots = <2>;
litex,slot-size = <2048>;
interrupts = <3>;
status = "okay";
};
mmc0: mmc@12005000 {
compatible = "litex,mmc";
reg = <0x12005000 0x100>,
<0x12003800 0x100>,
<0x12003000 0x100>,
<0x12004800 0x100>,
<0x12004000 0x100>;
reg-names = "phy", "core", "reader", "writer", "irq";
clocks = <&sys_clk>;
vmmc-supply = <&vreg_mmc>;
bus-width = <0x04>;
interrupts = <4>;
status = "okay";
};
leds: gpio@12002800 {
compatible = "litex,gpio";
reg = <0x12002800 0x4>;
gpio-controller;
#gpio-cells = <2>;
litex,direction = "out";
status = "disabled";
};
};
aliases {
serial0 = &liteuart0;
};
};
&leds {
litex,ngpio = <4>;
status = "okay";
};