forked from YanLinAung/rpi-open-firmware
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathrpi3.dts
512 lines (489 loc) · 13.9 KB
/
rpi3.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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
/dts-v1/;
// #define IRQ_TYPE_LEVEL_HIGH 4
#define BCM2835_FSEL_ALT0 4
#define BCM2835_CLOCK_VPU 20
#define BCM2835_CLOCK_V3D 21
#define BCM2835_CLOCK_ISP 22
#define BCM2835_CLOCK_H264 23
#define BCM2835_CLOCK_TSENS 27
#define BCM2835_CLOCK_PERI_IMAGE 29
#define BCM2835_CLOCK_DPI 44
/memreserve/ 0x00000000 0x00001000;
// /memreserve/ 0x20000000 0x1000000; // 16mb of MMIO
/ {
compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
model = "Raspberry Pi 3 Model B rev 1.2, with open firmware";
#address-cells = <0x01>;
#size-cells = <0x01>;
interrupt-parent = <&intc>;
aliases {
ethernet0 = ðernet;
serial0 = "/soc/serial@7e215040";
serial1 = "/soc/serial@7e201000";
soc = "/soc";
dma = "/soc/dma@7e007000";
intc = "/soc/interrupt-controller@7e00b200";
uart0 = "/soc/serial@7e201000";
sdhost = "/soc/mmc@7e202000";
mmc0 = "/soc/mmc@7e202000";
i2c0 = "/soc/i2c@7e205000";
uart1 = "/soc/serial@7e215040";
i2c1 = "/soc/i2c@7e804000";
i2c2 = "/soc/i2c@7e805000";
usb = "/soc/usb@7e980000";
};
chosen {
};
system {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges = <>;
framebuffer0: framebuffer@8000000 {
compatible = "simple-framebuffer";
reg = <0x8000000 160000>;
width = <200>;
height = <200>;
stride = <800>;
format = "a8r8g8b8";
status = "disabled"; // disabled by default, the bootloader will fill in the right numbers, and enable
};
};
memory {
device_type = "memory";
};
/*
leds: leds {
compatible = "gpio-leds";
act {
label = "ACT";
default-state = "keep";
linux,default-trigger = "heartbeat";
gpios = <&gpio XX GPIO_ACTIVE_HIGH>;
};
};
*/
thermal-zones {
cpu_thermal: cpu-thermal {
polling-delay-passive = <0>;
polling-delay = <1000>;
// slope offset
coefficients = <(-538) 412000>;
thermal-sensors = <&thermal>;
trips {
cpu-crit {
temperature = <80000>;
hysteresis = <0>;
type = "critical";
};
};
cooling-maps {
};
};
};
soc {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
// child parent length
ranges = <0x7e000000 0x20000000 0x1000000 /* map the MMIO space to 0x3f000000 in arm, 16mb long */
0x40000000 0x40000000 0x1000>; /* identity map the local_intc, 0x1000 bytes long */
dma-ranges = <0xc0000000 0x00 0x3f000000>; /* map arm physical 0 to the uncached alias, 1008mb long */
local_intc: local_intc@40000000 {
compatible = "brcm,bcm2836-l1-intc";
reg = <0x40000000 0x100>;
interrupt-controller;
#interrupt-cells = <2>;
interrupt-parent = <&local_intc>;
};
dma: dma@7e007000 {
compatible = "brcm,bcm2835-dma";
reg = <0x7e007000 0xf00>;
interrupts = <1 16>,
<1 17>,
<1 18>,
<1 19>,
<1 20>,
<1 21>,
<1 22>,
<1 23>,
<1 24>,
<1 25>,
<1 26>,
/* dma channel 11-14 share one irq */
<1 27>,
<1 27>,
<1 27>,
<1 27>,
/* unused shared irq for all channels */
<1 28>;
interrupt-names = "dma0",
"dma1",
"dma2",
"dma3",
"dma4",
"dma5",
"dma6",
"dma7",
"dma8",
"dma9",
"dma10",
"dma11",
"dma12",
"dma13",
"dma14",
"dma-shared-all";
#dma-cells = <1>;
brcm,dma-channel-mask = <0x7f35>;
};
/*axiperf: axiperf {
compatible = "brcm,bcm2835-axiperf";
reg = <0x7e009800 0x100>,
<0x7ee08000 0x100>;
firmware = <&firmware>;
//status = "disabled";
};*/
intc: interrupt-controller@7e00b200 {
compatible = "brcm,bcm2836-armctrl-ic";
reg = <0x7e00b200 0x200>;
interrupt-controller;
#interrupt-cells = <0x02>;
interrupt-parent = <&local_intc>;
interrupts = <8 4>;
};
mailbox: mailbox@7e00b880 {
compatible = "brcm,bcm2835-mbox";
reg = <0x7e00b880 0x40>;
interrupts = <0 1>;
#mbox-cells = <0>;
};
clocks: cprman@7e101000 {
compatible = "brcm,bcm2835-cprman";
#clock-cells = <1>;
reg = <0x7e101000 0x2000>;
/* CPRMAN derives almost everything from the
* platform's oscillator. However, the DSI
* pixel clocks come from the DSI analog PHY.
*/
clocks = <&clk_osc>;
//<&dsi0 0>, <&dsi0 1>, <&dsi0 2>,
//<&dsi1 0>, <&dsi1 1>, <&dsi1 2>;
};
// enable using BCM2835_DEVGPIOMEM
gpiomem@7e200000 {
compatible = "brcm,bcm2835-gpiomem";
reg = <0x7e200000 0x1000>;
};
gpio@7e200000 {
compatible = "brcm,bcm2835-gpio";
reg = <0x7e200000 0xb4>;
interrupts = <&intc 0x11>,
<&intc 0x12>;
gpio-controller;
#gpio-cells = <0x02>;
interrupt-controller;
#interrupt-cells = <0x02>;
gpio-line-names = "ID_SDA", // based on arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
"ID_SCL";
pinctrl-names = "default";
gpclk0_gpio4 {
brcm,pins = <0x04>;
brcm,function = <0x04>;
};
gpclk1_gpio5 {
brcm,pins = <0x05>;
brcm,function = <BCM2835_FSEL_ALT0>;
};
i2c0_bus0: i2c0_gpio0 {
brcm,pins = <0 1>;
brcm,function = <0x04>;
};
i2c0_bus28: i2c0_gpio28 {
// do not use
// changing altmode of 29 breaks usb
brcm,pins = <28 29>;
brcm,function = <0x04>;
};
i2c0_cam: i2c0_gpio44 {
brcm,pins = <44 45>;
brcm,function = <0x05>;
};
i2c0_smps: i2c0_smps {
brcm,pins = <46 47>;
brcm,function = <0x04>;
};
i2c1_bus2: i2c1_gpio2 {
brcm,pins = <2 3>;
brcm,function = <0x04>;
};
i2c1_cam: i2c1_gpio44 {
brcm,pins = <44 45>;
brcm,function = <0x06>;
};
i2c1_smps: i2c1_smps {
brcm,pins = <46 47>;
brcm,function = <0x05>;
};
sdhost: sdhost_gpio48 {
brcm,pins = <0x30 0x31 0x32 0x33 0x34 0x35>;
brcm,function = <0x04>;
};
emmc: emmc_gpio48 {
brcm,pins = <0x30 0x31 0x32 0x33 0x34 0x35>;
brcm,function = <0x07>;
};
};
firmware: firmware {
compatible = "raspberrypi,bcm2835-firmware", "simple-bus";
mboxes = <&mailbox>;
};
serial@7e201000 {
compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
reg = <0x7e201000 0x200>;
interrupts = <2 25>;
clocks = <&clocks 19>, // BCM2835_CLOCK_UART
<&clocks 20>; // BCM2835_CLOCK_VPU
clock-names = "uartclk", "apb_pclk";
arm,primecell-periphid = <0x241011>;
cts-event-workaround;
//pinctrl-names = "default";
//pinctrl-0 = <0x08 0x09>;
status = "okay";
};
pm: watchdog@7e100000 {
compatible = "brcm,bcm2835-pm", "brcm,bcm2835-pm-wdt";
#power-domain-cells = <1>;
#reset-cells = <1>;
reg = <0x7e100000 0x114>,
<0x7e00a000 0x24>;
clocks = <&clocks BCM2835_CLOCK_V3D>,
<&clocks BCM2835_CLOCK_PERI_IMAGE>,
<&clocks BCM2835_CLOCK_H264>,
<&clocks BCM2835_CLOCK_ISP>;
clock-names = "v3d", "peri_image", "h264", "isp";
system-power-controller;
};
thermal: thermal@7e212000 {
compatible = "brcm,bcm2837-thermal";
reg = <0x7e212000 0x8>;
clocks = <&clocks BCM2835_CLOCK_TSENS>;
#thermal-sensor-cells = <0>;
//status = "disabled";
};
mmc@7e202000 {
compatible = "brcm,bcm2835-sdhost";
reg = <0x7e202000 0x100>;
interrupts = <2 24>;
clocks = <&clocks 20>; // BCM2835_CLOCK_VPU
dmas = <&dma (13|(1<<29))>; //0x2000000d>;
dma-names = "rx-tx";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&sdhost>;
bus-width = <0x04>;
brcm,overclock-50 = <0x00>;
brcm,pio-limit = <0x01>;
//brcm,debug = <1>;
};
i2c0: i2c@7e205000 {
compatible = "brcm,bcm2835-i2c";
reg = <0x7e205000 0x200>;
interrupts = <0x02 0x15>;
clocks = <&clocks 0x14>;
#address-cells = <0x01>;
#size-cells = <0x00>;
//pinctrl-names = "default";
//pinctrl-0 = <&i2c0_bus0>;
clock-frequency = <100000>;
};
pixelvalve@7e206000 {
compatible = "brcm,bcm2835-pixelvalve0";
reg = <0x7e206000 0x100>;
interrupts = <2 13>; /* pwa0 */
status = "disabled";
};
pixelvalve@7e207000 {
compatible = "brcm,bcm2835-pixelvalve1";
reg = <0x7e207000 0x100>;
interrupts = <2 14>; /* pwa1 */
status = "disabled";
};
dpi: dpi@7e208000 {
compatible = "brcm,bcm2835-dpi";
reg = <0x7e208000 0x8c>;
clocks = <&clocks BCM2835_CLOCK_VPU>,
<&clocks BCM2835_CLOCK_DPI>;
clock-names = "core", "pixel";
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
serial@7e215040 {
compatible = "brcm,bcm2835-aux-uart";
reg = <0x7e215040 0x40>;
//interrupts = <0x01 0x1d>;
//clocks = <0x12 0x00>;
status = "okay";
//pinctrl-names = "default";
//pinctrl-0 = <0x13>;
//phandle = <0x23>;
};
sdhci: sdhci@7e300000 {
compatible = "brcm,bcm2835-mmc", "brcm,bcm2835-sdhci";
reg = <0x7e300000 0x100>;
interrupts = <2 30>;
clocks = <&clocks 28>; // BCM2835_CLOCK_EMMC
dmas = <&dma 0x0b>;
dma-names = "rx-tx";
brcm,overclock-50 = <0x00>;
status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&emmc>;
bus-width = <0x04>;
};
hvs@7e400000 {
// not currently functional
status = "disabled";
compatible = "brcm,bcm2835-hvs";
reg = <0x7e400000 0x6000>;
interrupts = <2 1>;
};
/*
vchiq: mailbox@7e00b840 {
compatible = "brcm,bcm2835-vchiq";
reg = <0x7e00b840 0x3c>;
interrupts = <0 2>;
};*/
pixelvalve@7e807000 {
compatible = "brcm,bcm2835-pixelvalve2";
reg = <0x7e807000 0x100>;
interrupts = <2 10>; /* pixelvalve */
status = "disabled";
};
power {
compatible = "raspberrypi,bcm2835-power";
//firmware = <0x07>;
#power-domain-cells = <0x01>;
};
usb@7e980000 {
compatible = "brcm,bcm2708-usb";
reg = <0x7e980000 0x10000 0x7e006000 0x1000>;
interrupts = <0x01 0x09 0x02 0x00>;
#address-cells = <0x01>;
#size-cells = <0x00>;
clocks = <&clk_usb>;
clock-names = "otg";
phys = <&usbphy>;
phy-names = "usb2-phy";
interrupt-names = "usb", "soft";
//power-domains = <&power 0x06>;
usb1@1 {
compatible = "usb424,9514";
reg = <0x01>;
#address-cells = <0x01>;
#size-cells = <0x00>;
ethernet: usbether@1 {
compatible = "usb424,ec00";
reg = <0x01>;
local-mac-address = [ b8 27 eb 77 df 95 ];
};
};
};
i2c1: i2c@7e804000 {
compatible = "brcm,bcm2835-i2c";
reg = <0x7e804000 0x1000>;
interrupts = <0x02 0x15>;
clocks = <&clocks 0x14>;
#address-cells = <0x01>;
#size-cells = <0x00>;
//pinctrl-names = "default";
//pinctrl-0 = <&i2c1>;
clock-frequency = <100000>; // 100khz
};
i2c@7e805000 { // i2c2
compatible = "brcm,bcm2835-i2c";
reg = <0x7e805000 0x1000>;
interrupts = <0x02 0x15>;
clocks = <&clocks 0x14>;
#address-cells = <0x01>;
#size-cells = <0x00>;
clock-frequency = <100000>; // 100khz
};
i2cmux0 {
compatible = "i2c-mux-pinctrl";
#address-cells = <1>;
#size-cells = <0>;
i2c-parent = <&i2c0>;
pinctrl-names = "bus0", "cam0", "smps0";
pinctrl-0 = <&i2c0_bus0>;
pinctrl-1 = <&i2c0_cam>;
pinctrl-2 = <&i2c0_smps>;
i2c_bus0: i2c@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
};
};
i2cmux1 {
compatible = "i2c-mux-pinctrl";
#address-cells = <1>;
#size-cells = <0>;
i2c-parent = <&i2c1>;
pinctrl-names = "bus2", "cam1", "smps1";
pinctrl-0 = <&i2c1_bus2>;
pinctrl-1 = <&i2c1_cam>;
pinctrl-2 = <&i2c1_smps>;
status = "disabled"; // not much need for the 2nd mux
};
vc4: gpu {
compatible = "brcm,bcm2835-vc4";
status = "disabled";
};
};
clocks {
compatible = "simple-bus";
#address-cells = <0x01>;
#size-cells = <0x00>;
clk_osc: clock@3 {
compatible = "fixed-clock";
reg = <0x03>;
#clock-cells = <0x00>;
clock-output-names = "osc";
clock-frequency = <19200000>; // 19.2mhz
};
clk_usb: clock@4 {
compatible = "fixed-clock";
reg = <0x04>;
#clock-cells = <0x00>;
clock-output-names = "otg";
clock-frequency = <0x1c9c3800>; // 480mhz
};
};
usbphy: phy {
compatible = "usb-nop-xceiv";
#phy-cells = <0x00>;
};
arm-pmu {
compatible = "arm,cortex-a53-pmu";
interrupt-parent = <&local_intc>;
interrupts = <9 4>;
};
timer {
compatible = "arm,armv7-timer";
interrupt-parent = <&local_intc>;
interrupts = <0x00 0x04
0x01 0x04
0x03 0x04
0x02 0x04>;
always-on;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "arm,cortex-a53";
reg = <0>;
};
};
};