1 // SPDX-License-Identifier: GPL-2.0
2 #include "bcm283x.dtsi"
4 #include <dt-bindings/interrupt-controller/arm-gic.h>
5 #include <dt-bindings/soc/bcm2835-pm.h>
8 compatible = "brcm,bcm2711";
13 interrupt-parent = <&gicv2>;
16 compatible = "brcm,bcm2711-vc5";
22 compatible = "fixed-clock";
23 clock-frequency = <27000000>;
24 clock-output-names = "27MHz-clock";
27 clk_108MHz: clk-108M {
29 compatible = "fixed-clock";
30 clock-frequency = <108000000>;
31 clock-output-names = "108MHz-clock";
37 * Common BCM283x peripherals
38 * BCM2711-specific peripherals
39 * ARM-local peripherals
41 ranges = <0x7e000000 0x0 0xfe000000 0x01800000>,
42 <0x7c000000 0x0 0xfc000000 0x02000000>,
43 <0x40000000 0x0 0xff800000 0x00800000>;
44 /* Emulate a contiguous 30-bit address range for DMA */
45 dma-ranges = <0xc0000000 0x0 0x00000000 0x40000000>;
48 * This node is the provider for the enable-method for
49 * bringing up secondary cores.
51 local_intc: local_intc@40000000 {
52 compatible = "brcm,bcm2836-l1-intc";
53 reg = <0x40000000 0x100>;
56 gicv2: interrupt-controller@40041000 {
58 #interrupt-cells = <3>;
59 compatible = "arm,gic-400";
60 reg = <0x40041000 0x1000>,
64 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
65 IRQ_TYPE_LEVEL_HIGH)>;
68 avs_monitor: avs-monitor@7d5d2000 {
69 compatible = "brcm,bcm2711-avs-monitor",
70 "syscon", "simple-mfd";
71 reg = <0x7d5d2000 0xf00>;
74 compatible = "brcm,bcm2711-thermal";
75 #thermal-sensor-cells = <0>;
80 compatible = "brcm,bcm2835-dma";
81 reg = <0x7e007000 0xb00>;
82 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>,
83 <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
84 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
85 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
86 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
87 <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
88 <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>,
90 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
91 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
92 <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
93 <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
94 interrupt-names = "dma0",
106 brcm,dma-channel-mask = <0x07f5>;
109 pm: watchdog@7e100000 {
110 compatible = "brcm,bcm2835-pm", "brcm,bcm2835-pm-wdt";
111 #power-domain-cells = <1>;
113 reg = <0x7e100000 0x114>,
116 clocks = <&clocks BCM2835_CLOCK_V3D>,
117 <&clocks BCM2835_CLOCK_PERI_IMAGE>,
118 <&clocks BCM2835_CLOCK_H264>,
119 <&clocks BCM2835_CLOCK_ISP>;
120 clock-names = "v3d", "peri_image", "h264", "isp";
121 system-power-controller;
125 compatible = "brcm,bcm2711-rng200";
126 reg = <0x7e104000 0x28>;
129 uart2: serial@7e201400 {
130 compatible = "arm,pl011", "arm,primecell";
131 reg = <0x7e201400 0x200>;
132 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
133 clocks = <&clocks BCM2835_CLOCK_UART>,
134 <&clocks BCM2835_CLOCK_VPU>;
135 clock-names = "uartclk", "apb_pclk";
136 arm,primecell-periphid = <0x00241011>;
140 uart3: serial@7e201600 {
141 compatible = "arm,pl011", "arm,primecell";
142 reg = <0x7e201600 0x200>;
143 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
144 clocks = <&clocks BCM2835_CLOCK_UART>,
145 <&clocks BCM2835_CLOCK_VPU>;
146 clock-names = "uartclk", "apb_pclk";
147 arm,primecell-periphid = <0x00241011>;
151 uart4: serial@7e201800 {
152 compatible = "arm,pl011", "arm,primecell";
153 reg = <0x7e201800 0x200>;
154 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
155 clocks = <&clocks BCM2835_CLOCK_UART>,
156 <&clocks BCM2835_CLOCK_VPU>;
157 clock-names = "uartclk", "apb_pclk";
158 arm,primecell-periphid = <0x00241011>;
162 uart5: serial@7e201a00 {
163 compatible = "arm,pl011", "arm,primecell";
164 reg = <0x7e201a00 0x200>;
165 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
166 clocks = <&clocks BCM2835_CLOCK_UART>,
167 <&clocks BCM2835_CLOCK_VPU>;
168 clock-names = "uartclk", "apb_pclk";
169 arm,primecell-periphid = <0x00241011>;
174 compatible = "brcm,bcm2835-spi";
175 reg = <0x7e204600 0x0200>;
176 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
177 clocks = <&clocks BCM2835_CLOCK_VPU>;
178 #address-cells = <1>;
184 compatible = "brcm,bcm2835-spi";
185 reg = <0x7e204800 0x0200>;
186 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
187 clocks = <&clocks BCM2835_CLOCK_VPU>;
188 #address-cells = <1>;
194 compatible = "brcm,bcm2835-spi";
195 reg = <0x7e204a00 0x0200>;
196 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
197 clocks = <&clocks BCM2835_CLOCK_VPU>;
198 #address-cells = <1>;
204 compatible = "brcm,bcm2835-spi";
205 reg = <0x7e204c00 0x0200>;
206 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
207 clocks = <&clocks BCM2835_CLOCK_VPU>;
208 #address-cells = <1>;
214 compatible = "brcm,bcm2711-i2c", "brcm,bcm2835-i2c";
215 reg = <0x7e205600 0x200>;
216 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
217 clocks = <&clocks BCM2835_CLOCK_VPU>;
218 #address-cells = <1>;
224 compatible = "brcm,bcm2711-i2c", "brcm,bcm2835-i2c";
225 reg = <0x7e205800 0x200>;
226 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
227 clocks = <&clocks BCM2835_CLOCK_VPU>;
228 #address-cells = <1>;
234 compatible = "brcm,bcm2711-i2c", "brcm,bcm2835-i2c";
235 reg = <0x7e205a00 0x200>;
236 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
237 clocks = <&clocks BCM2835_CLOCK_VPU>;
238 #address-cells = <1>;
244 compatible = "brcm,bcm2711-i2c", "brcm,bcm2835-i2c";
245 reg = <0x7e205c00 0x200>;
246 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
247 clocks = <&clocks BCM2835_CLOCK_VPU>;
248 #address-cells = <1>;
253 pixelvalve0: pixelvalve@7e206000 {
254 compatible = "brcm,bcm2711-pixelvalve0";
255 reg = <0x7e206000 0x100>;
256 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
260 pixelvalve1: pixelvalve@7e207000 {
261 compatible = "brcm,bcm2711-pixelvalve1";
262 reg = <0x7e207000 0x100>;
263 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
267 pixelvalve2: pixelvalve@7e20a000 {
268 compatible = "brcm,bcm2711-pixelvalve2";
269 reg = <0x7e20a000 0x100>;
270 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
275 compatible = "brcm,bcm2835-pwm";
276 reg = <0x7e20c800 0x28>;
277 clocks = <&clocks BCM2835_CLOCK_PWM>;
278 assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
279 assigned-clock-rates = <10000000>;
284 pixelvalve4: pixelvalve@7e216000 {
285 compatible = "brcm,bcm2711-pixelvalve4";
286 reg = <0x7e216000 0x100>;
287 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
292 compatible = "brcm,bcm2711-hvs";
293 reg = <0x7e400000 0x8000>;
294 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
297 pixelvalve3: pixelvalve@7ec12000 {
298 compatible = "brcm,bcm2711-pixelvalve3";
299 reg = <0x7ec12000 0x100>;
300 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
305 compatible = "brcm,bcm2711-vec";
306 reg = <0x7ec13000 0x1000>;
307 clocks = <&clocks BCM2835_CLOCK_VEC>;
308 interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
312 dvp: clock@7ef00000 {
313 compatible = "brcm,brcm2711-dvp";
314 reg = <0x7ef00000 0x10>;
315 clocks = <&clk_108MHz>;
320 aon_intr: interrupt-controller@7ef00100 {
321 compatible = "brcm,bcm2711-l2-intc", "brcm,l2-intc";
322 reg = <0x7ef00100 0x30>;
323 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
324 interrupt-controller;
325 #interrupt-cells = <1>;
328 hdmi0: hdmi@7ef00700 {
329 compatible = "brcm,bcm2711-hdmi0";
330 reg = <0x7ef00700 0x300>,
348 clock-names = "hdmi", "bvb", "audio", "cec";
350 interrupt-parent = <&aon_intr>;
351 interrupts = <0>, <1>, <2>,
353 interrupt-names = "cec-tx", "cec-rx", "cec-low",
354 "wakeup", "hpd-connected", "hpd-removed";
357 dma-names = "audio-rx";
362 compatible = "brcm,bcm2711-hdmi-i2c";
363 reg = <0x7ef04500 0x100>, <0x7ef00b00 0x300>;
364 reg-names = "bsc", "auto-i2c";
365 clock-frequency = <97500>;
369 hdmi1: hdmi@7ef05700 {
370 compatible = "brcm,bcm2711-hdmi1";
371 reg = <0x7ef05700 0x300>,
390 clock-names = "hdmi", "bvb", "audio", "cec";
392 interrupt-parent = <&aon_intr>;
393 interrupts = <8>, <7>, <6>,
395 interrupt-names = "cec-tx", "cec-rx", "cec-low",
396 "wakeup", "hpd-connected", "hpd-removed";
398 dma-names = "audio-rx";
403 compatible = "brcm,bcm2711-hdmi-i2c";
404 reg = <0x7ef09500 0x100>, <0x7ef05b00 0x300>;
405 reg-names = "bsc", "auto-i2c";
406 clock-frequency = <97500>;
412 * emmc2 has different DMA constraints based on SoC revisions. It was
413 * moved into its own bus, so as for RPi4's firmware to update them.
414 * The firmware will find whether the emmc2bus alias is defined, and if
415 * so, it'll edit the dma-ranges property below accordingly.
418 compatible = "simple-bus";
419 #address-cells = <2>;
422 ranges = <0x0 0x7e000000 0x0 0xfe000000 0x01800000>;
423 dma-ranges = <0x0 0xc0000000 0x0 0x00000000 0x40000000>;
425 emmc2: mmc@7e340000 {
426 compatible = "brcm,bcm2711-emmc2";
427 reg = <0x0 0x7e340000 0x100>;
428 interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
429 clocks = <&clocks BCM2711_CLOCK_EMMC2>;
435 compatible = "arm,cortex-a72-pmu", "arm,armv8-pmuv3";
436 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
437 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
438 <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
439 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
440 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
444 compatible = "arm,armv8-timer";
445 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
446 IRQ_TYPE_LEVEL_LOW)>,
447 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) |
448 IRQ_TYPE_LEVEL_LOW)>,
449 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) |
450 IRQ_TYPE_LEVEL_LOW)>,
451 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) |
452 IRQ_TYPE_LEVEL_LOW)>;
453 /* This only applies to the ARMv7 stub */
454 arm,cpu-registers-not-fw-configured;
458 #address-cells = <1>;
460 enable-method = "brcm,bcm2836-smp"; // for ARM 32-bit
464 compatible = "arm,cortex-a72";
466 enable-method = "spin-table";
467 cpu-release-addr = <0x0 0x000000d8>;
472 compatible = "arm,cortex-a72";
474 enable-method = "spin-table";
475 cpu-release-addr = <0x0 0x000000e0>;
480 compatible = "arm,cortex-a72";
482 enable-method = "spin-table";
483 cpu-release-addr = <0x0 0x000000e8>;
488 compatible = "arm,cortex-a72";
490 enable-method = "spin-table";
491 cpu-release-addr = <0x0 0x000000f0>;
496 compatible = "simple-bus";
497 #address-cells = <2>;
500 ranges = <0x0 0x7c000000 0x0 0xfc000000 0x03800000>,
501 <0x6 0x00000000 0x6 0x00000000 0x40000000>;
503 pcie0: pcie@7d500000 {
504 compatible = "brcm,bcm2711-pcie";
505 reg = <0x0 0x7d500000 0x9310>;
507 #address-cells = <3>;
508 #interrupt-cells = <1>;
510 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
511 <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
512 interrupt-names = "pcie", "msi";
513 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
514 interrupt-map = <0 0 0 1 &gicv2 GIC_SPI 143
515 IRQ_TYPE_LEVEL_HIGH>,
516 <0 0 0 2 &gicv2 GIC_SPI 144
517 IRQ_TYPE_LEVEL_HIGH>,
518 <0 0 0 3 &gicv2 GIC_SPI 145
519 IRQ_TYPE_LEVEL_HIGH>,
520 <0 0 0 4 &gicv2 GIC_SPI 146
521 IRQ_TYPE_LEVEL_HIGH>;
523 msi-parent = <&pcie0>;
525 ranges = <0x02000000 0x0 0xf8000000 0x6 0x00000000
528 * The wrapper around the PCIe block has a bug
529 * preventing it from accessing beyond the first 3GB of
532 dma-ranges = <0x02000000 0x0 0x00000000 0x0 0x00000000
537 genet: ethernet@7d580000 {
538 compatible = "brcm,bcm2711-genet-v5";
539 reg = <0x0 0x7d580000 0x10000>;
540 #address-cells = <0x1>;
542 interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
543 <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
546 genet_mdio: mdio@e14 {
547 compatible = "brcm,genet-mdio-v5";
550 #address-cells = <0x1>;
558 clock-frequency = <54000000>;
562 compatible = "brcm,bcm2711-cprman";
566 coefficients = <(-487) 410040>;
567 thermal-sensors = <&thermal>;
571 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
575 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
576 compatible = "brcm,bcm2711-dsi1";
580 compatible = "brcm,bcm2711-gpio";
581 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
582 <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
583 <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
584 <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
586 gpio-ranges = <&gpio 0 0 58>;
588 gpclk0_gpio49: gpclk0_gpio49 {
595 gpclk1_gpio50: gpclk1_gpio50 {
602 gpclk2_gpio51: gpclk2_gpio51 {
610 i2c0_gpio46: i2c0_gpio46 {
622 i2c1_gpio46: i2c1_gpio46 {
634 i2c3_gpio2: i2c3_gpio2 {
646 i2c3_gpio4: i2c3_gpio4 {
658 i2c4_gpio6: i2c4_gpio6 {
670 i2c4_gpio8: i2c4_gpio8 {
682 i2c5_gpio10: i2c5_gpio10 {
694 i2c5_gpio12: i2c5_gpio12 {
706 i2c6_gpio0: i2c6_gpio0 {
718 i2c6_gpio22: i2c6_gpio22 {
730 i2c_slave_gpio8: i2c_slave_gpio8 {
740 jtag_gpio48: jtag_gpio48 {
752 mii_gpio28: mii_gpio28 {
761 mii_gpio36: mii_gpio36 {
771 pcm_gpio50: pcm_gpio50 {
781 pwm0_0_gpio12: pwm0_0_gpio12 {
788 pwm0_0_gpio18: pwm0_0_gpio18 {
795 pwm1_0_gpio40: pwm1_0_gpio40 {
802 pwm0_1_gpio13: pwm0_1_gpio13 {
809 pwm0_1_gpio19: pwm0_1_gpio19 {
816 pwm1_1_gpio41: pwm1_1_gpio41 {
823 pwm0_1_gpio45: pwm0_1_gpio45 {
830 pwm0_0_gpio52: pwm0_0_gpio52 {
837 pwm0_1_gpio53: pwm0_1_gpio53 {
845 rgmii_gpio35: rgmii_gpio35 {
855 rgmii_irq_gpio34: rgmii_irq_gpio34 {
861 rgmii_irq_gpio39: rgmii_irq_gpio39 {
867 rgmii_mdio_gpio28: rgmii_mdio_gpio28 {
874 rgmii_mdio_gpio37: rgmii_mdio_gpio37 {
882 spi0_gpio46: spi0_gpio46 {
891 spi2_gpio46: spi2_gpio46 {
901 spi3_gpio0: spi3_gpio0 {
910 spi4_gpio4: spi4_gpio4 {
919 spi5_gpio12: spi5_gpio12 {
928 spi6_gpio18: spi6_gpio18 {
938 uart2_gpio0: uart2_gpio0 {
950 uart2_ctsrts_gpio2: uart2_ctsrts_gpio2 {
962 uart3_gpio4: uart3_gpio4 {
974 uart3_ctsrts_gpio6: uart3_ctsrts_gpio6 {
986 uart4_gpio8: uart4_gpio8 {
998 uart4_ctsrts_gpio10: uart4_ctsrts_gpio10 {
1010 uart5_gpio12: uart5_gpio12 {
1022 uart5_ctsrts_gpio14: uart5_ctsrts_gpio14 {
1037 #address-cells = <2>;
1042 * arm64 reserves the CMA by default somewhere in ZONE_DMA32,
1043 * that's not good enough for the BCM2711 as some devices can
1044 * only address the lower 1G of memory (ZONE_DMA).
1046 alloc-ranges = <0x0 0x00000000 0x40000000>;
1050 compatible = "brcm,bcm2711-i2c", "brcm,bcm2835-i2c";
1051 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
1055 compatible = "brcm,bcm2711-i2c", "brcm,bcm2835-i2c";
1056 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
1060 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
1064 interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
1068 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
1072 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
1076 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
1080 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
1084 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
1085 <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
1086 <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
1087 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
1091 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
1095 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
1099 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
1103 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
1107 compatible = "brcm,bcm2711-vec";
1108 interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;