blob: c2bc03dd463139c465c980115a6fe266403b01c7 (
plain)
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
|
/dts-v1/;
/ {
model = "qemu malta";
compatible = "qemu,malta";
#address-cells = <1>;
#size-cells = <1>;
chosen {
environment {
compatible = "barebox,environment";
device-path = &env_nor;
};
};
memory@0 {
device_type = "memory";
reg = <0x00000000 0x10000000>;
};
clocks {
ref_clk: ref_clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <320000000>;
};
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "mips,mips24Kf";
clocks = <&ref_clk>;
reg = <0>;
};
};
uart0: serial@180003f8 {
compatible = "ns16550a";
reg = <0x180003f8 0x08>;
reg-shift = <0>;
/* no matter for emulated port */
clock-frequency = <1843200>;
};
fpga_regs: system-controller@1f000000 {
compatible = "mti,malta-fpga", "syscon", "simple-mfd";
reg = <0x1f000000 0x600>;
native-endian;
reboot {
compatible = "syscon-reboot";
regmap = <&fpga_regs>;
offset = <0x500>;
mask = <0x42>;
};
};
gpio: gpio@1f000b00 {
compatible = "mti,malta-fpga-i2c-gpio";
gpio-controller;
reg = <0x1f000b00 0x20>;
#gpio-cells = <2>;
};
i2c0: i2c0 {
compatible = "i2c-gpio";
gpios = <&gpio 0 0 /* sda */
&gpio 1 0 /* scl */
>;
i2c-gpio,sda-open-drain;
i2c-gpio,scl-open-drain;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
uart2: serial@1f000900 {
compatible = "ns16550a";
reg = <0x1f000900 0x40>;
reg-shift = <3>;
/* no matter for emulated port */
clock-frequency = <1843200>;
};
nor0: flash@1e000000 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
reg = <0x1e000000 0x00400000>;
partition@0 {
label = "barebox";
reg = <0 0x80000>;
read-only;
};
env_nor: partition@80000 {
label = "barebox-environment";
reg = <0x80000 0x10000>;
};
};
};
&i2c0 {
status = "okay";
};
|