]> git.ipfire.org Git - thirdparty/linux.git/blob - arch/arm/boot/dts/bcm283x.dtsi
riscv: select ARCH_HAS_STRICT_KERNEL_RWX only if MMU
[thirdparty/linux.git] / arch / arm / boot / dts / bcm283x.dtsi
1 #include <dt-bindings/pinctrl/bcm2835.h>
2 #include <dt-bindings/clock/bcm2835.h>
3 #include <dt-bindings/clock/bcm2835-aux.h>
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/interrupt-controller/irq.h>
6 #include <dt-bindings/soc/bcm2835-pm.h>
7
8 /* firmware-provided startup stubs live here, where the secondary CPUs are
9 * spinning.
10 */
11 /memreserve/ 0x00000000 0x00001000;
12
13 /* This include file covers the common peripherals and configuration between
14 * bcm2835 and bcm2836 implementations, leaving the CPU configuration to
15 * bcm2835.dtsi and bcm2836.dtsi.
16 */
17
18 / {
19 compatible = "brcm,bcm2835";
20 model = "BCM2835";
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 aliases {
25 serial0 = &uart0;
26 serial1 = &uart1;
27 };
28
29 chosen {
30 stdout-path = "serial0:115200n8";
31 };
32
33 rmem: reserved-memory {
34 #address-cells = <1>;
35 #size-cells = <1>;
36 ranges;
37
38 cma: linux,cma {
39 compatible = "shared-dma-pool";
40 size = <0x4000000>; /* 64MB */
41 reusable;
42 linux,cma-default;
43 };
44 };
45
46 thermal-zones {
47 cpu_thermal: cpu-thermal {
48 polling-delay-passive = <0>;
49 polling-delay = <1000>;
50
51 trips {
52 cpu-crit {
53 temperature = <90000>;
54 hysteresis = <0>;
55 type = "critical";
56 };
57 };
58
59 cooling-maps {
60 };
61 };
62 };
63
64 soc {
65 compatible = "simple-bus";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 system_timer: timer@7e003000 {
70 compatible = "brcm,bcm2835-system-timer";
71 reg = <0x7e003000 0x1000>;
72 interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
73 /* This could be a reference to BCM2835_CLOCK_TIMER,
74 * but we don't have the driver using the common clock
75 * support yet.
76 */
77 clock-frequency = <1000000>;
78 };
79
80 txp: txp@7e004000 {
81 compatible = "brcm,bcm2835-txp";
82 reg = <0x7e004000 0x20>;
83 interrupts = <1 11>;
84 };
85
86 clocks: cprman@7e101000 {
87 compatible = "brcm,bcm2835-cprman";
88 #clock-cells = <1>;
89 reg = <0x7e101000 0x2000>;
90
91 /* CPRMAN derives almost everything from the
92 * platform's oscillator. However, the DSI
93 * pixel clocks come from the DSI analog PHY.
94 */
95 clocks = <&clk_osc>,
96 <&dsi0 0>, <&dsi0 1>, <&dsi0 2>,
97 <&dsi1 0>, <&dsi1 1>, <&dsi1 2>;
98 };
99
100 mailbox: mailbox@7e00b880 {
101 compatible = "brcm,bcm2835-mbox";
102 reg = <0x7e00b880 0x40>;
103 interrupts = <0 1>;
104 #mbox-cells = <0>;
105 };
106
107 gpio: gpio@7e200000 {
108 compatible = "brcm,bcm2835-gpio";
109 reg = <0x7e200000 0xb4>;
110 /*
111 * The GPIO IP block is designed for 3 banks of GPIOs.
112 * Each bank has a GPIO interrupt for itself.
113 * There is an overall "any bank" interrupt.
114 * In order, these are GIC interrupts 17, 18, 19, 20.
115 * Since the BCM2835 only has 2 banks, the 2nd bank
116 * interrupt output appears to be mirrored onto the
117 * 3rd bank's interrupt signal.
118 * So, a bank0 interrupt shows up on 17, 20, and
119 * a bank1 interrupt shows up on 18, 19, 20!
120 */
121 interrupts = <2 17>, <2 18>, <2 19>, <2 20>;
122
123 gpio-controller;
124 #gpio-cells = <2>;
125
126 interrupt-controller;
127 #interrupt-cells = <2>;
128
129 /* Defines common pin muxing groups
130 *
131 * While each pin can have its mux selected
132 * for various functions individually, some
133 * groups only make sense to switch to a
134 * particular function together.
135 */
136 dpi_gpio0: dpi_gpio0 {
137 brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
138 12 13 14 15 16 17 18 19
139 20 21 22 23 24 25 26 27>;
140 brcm,function = <BCM2835_FSEL_ALT2>;
141 };
142 emmc_gpio22: emmc_gpio22 {
143 brcm,pins = <22 23 24 25 26 27>;
144 brcm,function = <BCM2835_FSEL_ALT3>;
145 };
146 emmc_gpio34: emmc_gpio34 {
147 brcm,pins = <34 35 36 37 38 39>;
148 brcm,function = <BCM2835_FSEL_ALT3>;
149 brcm,pull = <BCM2835_PUD_OFF
150 BCM2835_PUD_UP
151 BCM2835_PUD_UP
152 BCM2835_PUD_UP
153 BCM2835_PUD_UP
154 BCM2835_PUD_UP>;
155 };
156 emmc_gpio48: emmc_gpio48 {
157 brcm,pins = <48 49 50 51 52 53>;
158 brcm,function = <BCM2835_FSEL_ALT3>;
159 };
160
161 gpclk0_gpio4: gpclk0_gpio4 {
162 brcm,pins = <4>;
163 brcm,function = <BCM2835_FSEL_ALT0>;
164 };
165 gpclk1_gpio5: gpclk1_gpio5 {
166 brcm,pins = <5>;
167 brcm,function = <BCM2835_FSEL_ALT0>;
168 };
169 gpclk1_gpio42: gpclk1_gpio42 {
170 brcm,pins = <42>;
171 brcm,function = <BCM2835_FSEL_ALT0>;
172 };
173 gpclk1_gpio44: gpclk1_gpio44 {
174 brcm,pins = <44>;
175 brcm,function = <BCM2835_FSEL_ALT0>;
176 };
177 gpclk2_gpio6: gpclk2_gpio6 {
178 brcm,pins = <6>;
179 brcm,function = <BCM2835_FSEL_ALT0>;
180 };
181 gpclk2_gpio43: gpclk2_gpio43 {
182 brcm,pins = <43>;
183 brcm,function = <BCM2835_FSEL_ALT0>;
184 brcm,pull = <BCM2835_PUD_OFF>;
185 };
186
187 i2c0_gpio0: i2c0_gpio0 {
188 brcm,pins = <0 1>;
189 brcm,function = <BCM2835_FSEL_ALT0>;
190 };
191 i2c0_gpio28: i2c0_gpio28 {
192 brcm,pins = <28 29>;
193 brcm,function = <BCM2835_FSEL_ALT0>;
194 };
195 i2c0_gpio44: i2c0_gpio44 {
196 brcm,pins = <44 45>;
197 brcm,function = <BCM2835_FSEL_ALT1>;
198 };
199 i2c1_gpio2: i2c1_gpio2 {
200 brcm,pins = <2 3>;
201 brcm,function = <BCM2835_FSEL_ALT0>;
202 };
203 i2c1_gpio44: i2c1_gpio44 {
204 brcm,pins = <44 45>;
205 brcm,function = <BCM2835_FSEL_ALT2>;
206 };
207
208 jtag_gpio22: jtag_gpio22 {
209 brcm,pins = <22 23 24 25 26 27>;
210 brcm,function = <BCM2835_FSEL_ALT4>;
211 };
212
213 pcm_gpio18: pcm_gpio18 {
214 brcm,pins = <18 19 20 21>;
215 brcm,function = <BCM2835_FSEL_ALT0>;
216 };
217 pcm_gpio28: pcm_gpio28 {
218 brcm,pins = <28 29 30 31>;
219 brcm,function = <BCM2835_FSEL_ALT2>;
220 };
221
222 sdhost_gpio48: sdhost_gpio48 {
223 brcm,pins = <48 49 50 51 52 53>;
224 brcm,function = <BCM2835_FSEL_ALT0>;
225 };
226
227 spi0_gpio7: spi0_gpio7 {
228 brcm,pins = <7 8 9 10 11>;
229 brcm,function = <BCM2835_FSEL_ALT0>;
230 };
231 spi0_gpio35: spi0_gpio35 {
232 brcm,pins = <35 36 37 38 39>;
233 brcm,function = <BCM2835_FSEL_ALT0>;
234 };
235 spi1_gpio16: spi1_gpio16 {
236 brcm,pins = <16 17 18 19 20 21>;
237 brcm,function = <BCM2835_FSEL_ALT4>;
238 };
239 spi2_gpio40: spi2_gpio40 {
240 brcm,pins = <40 41 42 43 44 45>;
241 brcm,function = <BCM2835_FSEL_ALT4>;
242 };
243
244 uart0_gpio14: uart0_gpio14 {
245 brcm,pins = <14 15>;
246 brcm,function = <BCM2835_FSEL_ALT0>;
247 };
248 /* Separate from the uart0_gpio14 group
249 * because it conflicts with spi1_gpio16, and
250 * people often run uart0 on the two pins
251 * without flow control.
252 */
253 uart0_ctsrts_gpio16: uart0_ctsrts_gpio16 {
254 brcm,pins = <16 17>;
255 brcm,function = <BCM2835_FSEL_ALT3>;
256 };
257 uart0_ctsrts_gpio30: uart0_ctsrts_gpio30 {
258 brcm,pins = <30 31>;
259 brcm,function = <BCM2835_FSEL_ALT3>;
260 brcm,pull = <BCM2835_PUD_UP BCM2835_PUD_OFF>;
261 };
262 uart0_gpio32: uart0_gpio32 {
263 brcm,pins = <32 33>;
264 brcm,function = <BCM2835_FSEL_ALT3>;
265 brcm,pull = <BCM2835_PUD_OFF BCM2835_PUD_UP>;
266 };
267 uart0_gpio36: uart0_gpio36 {
268 brcm,pins = <36 37>;
269 brcm,function = <BCM2835_FSEL_ALT2>;
270 };
271 uart0_ctsrts_gpio38: uart0_ctsrts_gpio38 {
272 brcm,pins = <38 39>;
273 brcm,function = <BCM2835_FSEL_ALT2>;
274 };
275
276 uart1_gpio14: uart1_gpio14 {
277 brcm,pins = <14 15>;
278 brcm,function = <BCM2835_FSEL_ALT5>;
279 };
280 uart1_ctsrts_gpio16: uart1_ctsrts_gpio16 {
281 brcm,pins = <16 17>;
282 brcm,function = <BCM2835_FSEL_ALT5>;
283 };
284 uart1_gpio32: uart1_gpio32 {
285 brcm,pins = <32 33>;
286 brcm,function = <BCM2835_FSEL_ALT5>;
287 };
288 uart1_ctsrts_gpio30: uart1_ctsrts_gpio30 {
289 brcm,pins = <30 31>;
290 brcm,function = <BCM2835_FSEL_ALT5>;
291 };
292 uart1_gpio40: uart1_gpio40 {
293 brcm,pins = <40 41>;
294 brcm,function = <BCM2835_FSEL_ALT5>;
295 };
296 uart1_ctsrts_gpio42: uart1_ctsrts_gpio42 {
297 brcm,pins = <42 43>;
298 brcm,function = <BCM2835_FSEL_ALT5>;
299 };
300 };
301
302 uart0: serial@7e201000 {
303 compatible = "arm,pl011", "arm,primecell";
304 reg = <0x7e201000 0x200>;
305 interrupts = <2 25>;
306 clocks = <&clocks BCM2835_CLOCK_UART>,
307 <&clocks BCM2835_CLOCK_VPU>;
308 clock-names = "uartclk", "apb_pclk";
309 arm,primecell-periphid = <0x00241011>;
310 };
311
312 sdhost: mmc@7e202000 {
313 compatible = "brcm,bcm2835-sdhost";
314 reg = <0x7e202000 0x100>;
315 interrupts = <2 24>;
316 clocks = <&clocks BCM2835_CLOCK_VPU>;
317 status = "disabled";
318 };
319
320 i2s: i2s@7e203000 {
321 compatible = "brcm,bcm2835-i2s";
322 reg = <0x7e203000 0x24>;
323 clocks = <&clocks BCM2835_CLOCK_PCM>;
324 status = "disabled";
325 };
326
327 spi: spi@7e204000 {
328 compatible = "brcm,bcm2835-spi";
329 reg = <0x7e204000 0x200>;
330 interrupts = <2 22>;
331 clocks = <&clocks BCM2835_CLOCK_VPU>;
332 #address-cells = <1>;
333 #size-cells = <0>;
334 status = "disabled";
335 };
336
337 i2c0: i2c@7e205000 {
338 compatible = "brcm,bcm2835-i2c";
339 reg = <0x7e205000 0x200>;
340 interrupts = <2 21>;
341 clocks = <&clocks BCM2835_CLOCK_VPU>;
342 #address-cells = <1>;
343 #size-cells = <0>;
344 status = "disabled";
345 };
346
347 dpi: dpi@7e208000 {
348 compatible = "brcm,bcm2835-dpi";
349 reg = <0x7e208000 0x8c>;
350 clocks = <&clocks BCM2835_CLOCK_VPU>,
351 <&clocks BCM2835_CLOCK_DPI>;
352 clock-names = "core", "pixel";
353 #address-cells = <1>;
354 #size-cells = <0>;
355 status = "disabled";
356 };
357
358 dsi0: dsi@7e209000 {
359 compatible = "brcm,bcm2835-dsi0";
360 reg = <0x7e209000 0x78>;
361 interrupts = <2 4>;
362 #address-cells = <1>;
363 #size-cells = <0>;
364 #clock-cells = <1>;
365
366 clocks = <&clocks BCM2835_PLLA_DSI0>,
367 <&clocks BCM2835_CLOCK_DSI0E>,
368 <&clocks BCM2835_CLOCK_DSI0P>;
369 clock-names = "phy", "escape", "pixel";
370
371 clock-output-names = "dsi0_byte",
372 "dsi0_ddr2",
373 "dsi0_ddr";
374
375 };
376
377 aux: aux@7e215000 {
378 compatible = "brcm,bcm2835-aux";
379 #clock-cells = <1>;
380 reg = <0x7e215000 0x8>;
381 clocks = <&clocks BCM2835_CLOCK_VPU>;
382 };
383
384 uart1: serial@7e215040 {
385 compatible = "brcm,bcm2835-aux-uart";
386 reg = <0x7e215040 0x40>;
387 interrupts = <1 29>;
388 clocks = <&aux BCM2835_AUX_CLOCK_UART>;
389 status = "disabled";
390 };
391
392 spi1: spi@7e215080 {
393 compatible = "brcm,bcm2835-aux-spi";
394 reg = <0x7e215080 0x40>;
395 interrupts = <1 29>;
396 clocks = <&aux BCM2835_AUX_CLOCK_SPI1>;
397 #address-cells = <1>;
398 #size-cells = <0>;
399 status = "disabled";
400 };
401
402 spi2: spi@7e2150c0 {
403 compatible = "brcm,bcm2835-aux-spi";
404 reg = <0x7e2150c0 0x40>;
405 interrupts = <1 29>;
406 clocks = <&aux BCM2835_AUX_CLOCK_SPI2>;
407 #address-cells = <1>;
408 #size-cells = <0>;
409 status = "disabled";
410 };
411
412 pwm: pwm@7e20c000 {
413 compatible = "brcm,bcm2835-pwm";
414 reg = <0x7e20c000 0x28>;
415 clocks = <&clocks BCM2835_CLOCK_PWM>;
416 assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
417 assigned-clock-rates = <10000000>;
418 #pwm-cells = <2>;
419 status = "disabled";
420 };
421
422 sdhci: sdhci@7e300000 {
423 compatible = "brcm,bcm2835-sdhci";
424 reg = <0x7e300000 0x100>;
425 interrupts = <2 30>;
426 clocks = <&clocks BCM2835_CLOCK_EMMC>;
427 status = "disabled";
428 };
429
430 hvs@7e400000 {
431 compatible = "brcm,bcm2835-hvs";
432 reg = <0x7e400000 0x6000>;
433 interrupts = <2 1>;
434 };
435
436 dsi1: dsi@7e700000 {
437 compatible = "brcm,bcm2835-dsi1";
438 reg = <0x7e700000 0x8c>;
439 interrupts = <2 12>;
440 #address-cells = <1>;
441 #size-cells = <0>;
442 #clock-cells = <1>;
443
444 clocks = <&clocks BCM2835_PLLD_DSI1>,
445 <&clocks BCM2835_CLOCK_DSI1E>,
446 <&clocks BCM2835_CLOCK_DSI1P>;
447 clock-names = "phy", "escape", "pixel";
448
449 clock-output-names = "dsi1_byte",
450 "dsi1_ddr2",
451 "dsi1_ddr";
452
453 status = "disabled";
454 };
455
456 i2c1: i2c@7e804000 {
457 compatible = "brcm,bcm2835-i2c";
458 reg = <0x7e804000 0x1000>;
459 interrupts = <2 21>;
460 clocks = <&clocks BCM2835_CLOCK_VPU>;
461 #address-cells = <1>;
462 #size-cells = <0>;
463 status = "disabled";
464 };
465
466 vec: vec@7e806000 {
467 compatible = "brcm,bcm2835-vec";
468 reg = <0x7e806000 0x1000>;
469 clocks = <&clocks BCM2835_CLOCK_VEC>;
470 interrupts = <2 27>;
471 status = "disabled";
472 };
473
474 usb: usb@7e980000 {
475 compatible = "brcm,bcm2835-usb";
476 reg = <0x7e980000 0x10000>;
477 interrupts = <1 9>;
478 #address-cells = <1>;
479 #size-cells = <0>;
480 clocks = <&clk_usb>;
481 clock-names = "otg";
482 phys = <&usbphy>;
483 phy-names = "usb2-phy";
484 };
485 };
486
487 clocks {
488 /* The oscillator is the root of the clock tree. */
489 clk_osc: clk-osc {
490 compatible = "fixed-clock";
491 #clock-cells = <0>;
492 clock-output-names = "osc";
493 clock-frequency = <19200000>;
494 };
495
496 clk_usb: clk-usb {
497 compatible = "fixed-clock";
498 #clock-cells = <0>;
499 clock-output-names = "otg";
500 clock-frequency = <480000000>;
501 };
502 };
503
504 usbphy: phy {
505 compatible = "usb-nop-xceiv";
506 #phy-cells = <0>;
507 };
508 };