]>
Commit | Line | Data |
---|---|---|
0a7ba7e9 | 1 | #include "bcm283x.dtsi" |
2 | #include "bcm270x.dtsi" | |
3 | #include "bcm2708-rpi.dtsi" | |
4 | ||
5 | / { | |
6 | compatible = "brcm,bcm2837", "brcm,bcm2836"; | |
7 | model = "BCM2837"; | |
8 | ||
9 | soc { | |
10 | ranges = <0x7e000000 0x3f000000 0x01000000>, | |
11 | <0x40000000 0x40000000 0x00040000>; | |
12 | dma-ranges = <0xc0000000 0x00000000 0x3f000000>; | |
13 | ||
14 | local_intc: local_intc { | |
15 | compatible = "brcm,bcm2836-l1-intc"; | |
16 | reg = <0x40000000 0x100>; | |
17 | interrupt-controller; | |
18 | #interrupt-cells = <1>; | |
19 | interrupt-parent = <&local_intc>; | |
20 | }; | |
21 | ||
22 | arm-pmu { | |
23 | #ifdef RPI364 | |
24 | compatible = "arm,armv8-pmuv3", "arm,cortex-a7-pmu"; | |
25 | #else | |
26 | compatible = "arm,cortex-a7-pmu"; | |
27 | #endif | |
28 | interrupt-parent = <&local_intc>; | |
29 | interrupts = <9>; | |
30 | }; | |
31 | ||
32 | timer { | |
33 | #ifdef RPI364 | |
34 | compatible = "arm,armv8-timer", "arm,armv7-timer"; | |
35 | #else | |
36 | compatible = "arm,armv7-timer"; | |
37 | #endif | |
38 | interrupt-parent = <&local_intc>; | |
39 | interrupts = <0>, // PHYS_SECURE_PPI | |
40 | <1>, // PHYS_NONSECURE_PPI | |
41 | <3>, // VIRT_PPI | |
42 | <2>; // HYP_PPI | |
43 | always-on; | |
44 | }; | |
45 | ||
46 | syscon@40000000 { | |
47 | compatible = "brcm,bcm2836-arm-local", "syscon"; | |
48 | reg = <0x40000000 0x100>; | |
49 | }; | |
50 | }; | |
51 | ||
52 | #ifdef RPI364 | |
53 | cpus: cpus { | |
54 | #address-cells = <1>; | |
55 | #size-cells = <0>; | |
56 | ||
57 | v8_cpu0: cpu@0 { | |
58 | device_type = "cpu"; | |
59 | compatible = "arm,cortex-a53", "arm,armv8"; | |
60 | reg = <0x0>; | |
61 | clock-frequency = <1200000000>; | |
62 | }; | |
63 | ||
64 | v8_cpu1: cpu@1 { | |
65 | device_type = "cpu"; | |
66 | compatible = "arm,cortex-a53", "arm,armv8"; | |
67 | reg = <0x1>; | |
68 | clock-frequency = <1200000000>; | |
69 | enable-method = "spin-table"; | |
70 | cpu-release-addr = <0x0 0x000000e0>; | |
71 | }; | |
72 | ||
73 | v8_cpu2: cpu@2 { | |
74 | device_type = "cpu"; | |
75 | compatible = "arm,cortex-a53", "arm,armv8"; | |
76 | reg = <0x2>; | |
77 | clock-frequency = <1200000000>; | |
78 | enable-method = "spin-table"; | |
79 | cpu-release-addr = <0x0 0x000000e8>; | |
80 | }; | |
81 | ||
82 | v8_cpu3: cpu@3 { | |
83 | device_type = "cpu"; | |
84 | compatible = "arm,cortex-a53", "arm,armv8"; | |
85 | reg = <0x3>; | |
86 | clock-frequency = <1200000000>; | |
87 | enable-method = "spin-table"; | |
88 | cpu-release-addr = <0x0 0x000000f0>; | |
89 | }; | |
90 | }; | |
91 | ||
92 | __overrides__ { | |
93 | arm_freq = <&v8_cpu0>, "clock-frequency:0", | |
94 | <&v8_cpu1>, "clock-frequency:0", | |
95 | <&v8_cpu2>, "clock-frequency:0", | |
96 | <&v8_cpu3>, "clock-frequency:0"; | |
97 | }; | |
98 | ||
99 | #else | |
100 | cpus: cpus { | |
101 | #address-cells = <1>; | |
102 | #size-cells = <0>; | |
103 | ||
104 | v7_cpu0: cpu@0 { | |
105 | device_type = "cpu"; | |
106 | compatible = "arm,cortex-a7"; | |
107 | reg = <0x000>; | |
108 | clock-frequency = <800000000>; | |
109 | }; | |
110 | ||
111 | v7_cpu1: cpu@1 { | |
112 | device_type = "cpu"; | |
113 | compatible = "arm,cortex-a7"; | |
114 | reg = <0x001>; | |
115 | clock-frequency = <800000000>; | |
116 | }; | |
117 | ||
118 | v7_cpu2: cpu@2 { | |
119 | device_type = "cpu"; | |
120 | compatible = "arm,cortex-a7"; | |
121 | reg = <0x002>; | |
122 | clock-frequency = <800000000>; | |
123 | }; | |
124 | ||
125 | v7_cpu3: cpu@3 { | |
126 | device_type = "cpu"; | |
127 | compatible = "arm,cortex-a7"; | |
128 | reg = <0x003>; | |
129 | clock-frequency = <800000000>; | |
130 | }; | |
131 | }; | |
132 | ||
133 | __overrides__ { | |
134 | arm_freq = <&v7_cpu0>, "clock-frequency:0", | |
135 | <&v7_cpu1>, "clock-frequency:0", | |
136 | <&v7_cpu2>, "clock-frequency:0", | |
137 | <&v7_cpu3>, "clock-frequency:0"; | |
138 | }; | |
139 | #endif | |
140 | }; | |
141 | ||
142 | &intc { | |
143 | compatible = "brcm,bcm2836-armctrl-ic"; | |
144 | reg = <0x7e00b200 0x200>; | |
145 | interrupt-parent = <&local_intc>; | |
146 | interrupts = <8>; | |
147 | }; |