-
Notifications
You must be signed in to change notification settings - Fork 1
/
arm-emulator.dts
77 lines (67 loc) · 1.53 KB
/
arm-emulator.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
// SPDX-License-Identifier: GPL-2.0
/*
* ARM emulator device tree source
*
* Copyright (c) 2019 hxdyxd
*/
/dts-v1/;
#include <dt-bindings/input/input.h>
/ {
model = "ARM Emulator";
interrupt-parent = <&intc>;
#address-cells = <1>;
#size-cells = <1>;
clocks {
#address-cells = <1>;
#size-cells = <1>;
ranges;
osc24M: clk-24M {
#clock-cells = <0>;
#reset-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <24000000>;
clock-output-names = "osc24M";
};
};
chosen {
bootargs = "console=ttyS0 rootwait phram.phram=rootfs,0x80000000,512Mi root=/dev/mtdblock0 rw rootfstype=ext2 init=/linuxrc earlyprintk video=vfb:640x480-24@24 user_debug=0xff";
stdout-path = "serial0:115200n8";
};
aliases {
serial0 = &uart0;
};
memory@00000000 {
device_type = "memory";
reg = <0x00000000 0x2000000>; //32M
};
intc: interrupt-controller@4001f040 {
compatible = "hxdyxd,armemulator-ic";
reg = <0x4001f040 0x10>;
interrupt-controller;
#interrupt-cells = <1>;
};
timer@4001f020 {
compatible = "hxdyxd,armemulator-timer";
reg = <0x4001f020 0x10>;
interrupts = <0>;
clocks = <&osc24M>;
};
uart0: serial@40020000 {
compatible = "snps,dw-apb-uart";
reg = <0x40020000 0x100>;
interrupts = <1>;
reg-shift = <2>;
reg-io-width = <4>;
clock-frequency = <115200>;
status = "okay";
};
uart1: serial@40020100 {
compatible = "snps,dw-apb-uart";
reg = <0x40020100 0x100>;
interrupts = <2>;
reg-shift = <2>;
reg-io-width = <4>;
clock-frequency = <115200>;
status = "okay";
};
};