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>
8 /* firmware-provided startup stubs live here, where the secondary CPUs are
11 /memreserve/ 0x00000000 0x00001000;
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.
19 compatible = "brcm,bcm2835";
21 interrupt-parent = <&intc>;
31 stdout-path = "serial0:115200n8";
35 cpu_thermal: cpu-thermal {
36 polling-delay-passive = <0>;
37 polling-delay = <1000>;
39 thermal-sensors = <&thermal>;
43 temperature = <80000>;
55 compatible = "simple-bus";
60 compatible = "brcm,bcm2835-system-timer";
61 reg = <0x7e003000 0x1000>;
62 interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
63 /* This could be a reference to BCM2835_CLOCK_TIMER,
64 * but we don't have the driver using the common clock
67 clock-frequency = <1000000>;
71 compatible = "brcm,bcm2835-txp";
72 reg = <0x7e004000 0x20>;
77 compatible = "brcm,bcm2835-dma";
78 reg = <0x7e007000 0xf00>;
90 /* dma channel 11-14 share one irq */
95 /* unused shared irq for all channels */
97 interrupt-names = "dma0",
114 brcm,dma-channel-mask = <0x7f35>;
117 intc: interrupt-controller@7e00b200 {
118 compatible = "brcm,bcm2835-armctrl-ic";
119 reg = <0x7e00b200 0x200>;
120 interrupt-controller;
121 #interrupt-cells = <2>;
124 pm: watchdog@7e100000 {
125 compatible = "brcm,bcm2835-pm", "brcm,bcm2835-pm-wdt";
126 #power-domain-cells = <1>;
128 reg = <0x7e100000 0x114>,
130 clocks = <&clocks BCM2835_CLOCK_V3D>,
131 <&clocks BCM2835_CLOCK_PERI_IMAGE>,
132 <&clocks BCM2835_CLOCK_H264>,
133 <&clocks BCM2835_CLOCK_ISP>;
134 clock-names = "v3d", "peri_image", "h264", "isp";
135 system-power-controller;
138 clocks: cprman@7e101000 {
139 compatible = "brcm,bcm2835-cprman";
141 reg = <0x7e101000 0x2000>;
143 /* CPRMAN derives almost everything from the
144 * platform's oscillator. However, the DSI
145 * pixel clocks come from the DSI analog PHY.
148 <&dsi0 0>, <&dsi0 1>, <&dsi0 2>,
149 <&dsi1 0>, <&dsi1 1>, <&dsi1 2>;
153 compatible = "brcm,bcm2835-rng";
154 reg = <0x7e104000 0x10>;
158 mailbox: mailbox@7e00b880 {
159 compatible = "brcm,bcm2835-mbox";
160 reg = <0x7e00b880 0x40>;
165 gpio: gpio@7e200000 {
166 compatible = "brcm,bcm2835-gpio";
167 reg = <0x7e200000 0xb4>;
169 * The GPIO IP block is designed for 3 banks of GPIOs.
170 * Each bank has a GPIO interrupt for itself.
171 * There is an overall "any bank" interrupt.
172 * In order, these are GIC interrupts 17, 18, 19, 20.
173 * Since the BCM2835 only has 2 banks, the 2nd bank
174 * interrupt output appears to be mirrored onto the
175 * 3rd bank's interrupt signal.
176 * So, a bank0 interrupt shows up on 17, 20, and
177 * a bank1 interrupt shows up on 18, 19, 20!
179 interrupts = <2 17>, <2 18>, <2 19>, <2 20>;
184 interrupt-controller;
185 #interrupt-cells = <2>;
187 /* Defines pin muxing groups according to
188 * BCM2835-ARM-Peripherals.pdf page 102.
190 * While each pin can have its mux selected
191 * for various functions individually, some
192 * groups only make sense to switch to a
193 * particular function together.
195 dpi_gpio0: dpi_gpio0 {
196 brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
197 12 13 14 15 16 17 18 19
198 20 21 22 23 24 25 26 27>;
199 brcm,function = <BCM2835_FSEL_ALT2>;
201 emmc_gpio22: emmc_gpio22 {
202 brcm,pins = <22 23 24 25 26 27>;
203 brcm,function = <BCM2835_FSEL_ALT3>;
205 emmc_gpio34: emmc_gpio34 {
206 brcm,pins = <34 35 36 37 38 39>;
207 brcm,function = <BCM2835_FSEL_ALT3>;
208 brcm,pull = <BCM2835_PUD_OFF
215 emmc_gpio48: emmc_gpio48 {
216 brcm,pins = <48 49 50 51 52 53>;
217 brcm,function = <BCM2835_FSEL_ALT3>;
220 gpclk0_gpio4: gpclk0_gpio4 {
222 brcm,function = <BCM2835_FSEL_ALT0>;
224 gpclk1_gpio5: gpclk1_gpio5 {
226 brcm,function = <BCM2835_FSEL_ALT0>;
228 gpclk1_gpio42: gpclk1_gpio42 {
230 brcm,function = <BCM2835_FSEL_ALT0>;
232 gpclk1_gpio44: gpclk1_gpio44 {
234 brcm,function = <BCM2835_FSEL_ALT0>;
236 gpclk2_gpio6: gpclk2_gpio6 {
238 brcm,function = <BCM2835_FSEL_ALT0>;
240 gpclk2_gpio43: gpclk2_gpio43 {
242 brcm,function = <BCM2835_FSEL_ALT0>;
243 brcm,pull = <BCM2835_PUD_OFF>;
246 i2c0_gpio0: i2c0_gpio0 {
248 brcm,function = <BCM2835_FSEL_ALT0>;
250 i2c0_gpio28: i2c0_gpio28 {
252 brcm,function = <BCM2835_FSEL_ALT0>;
254 i2c0_gpio44: i2c0_gpio44 {
256 brcm,function = <BCM2835_FSEL_ALT1>;
258 i2c1_gpio2: i2c1_gpio2 {
260 brcm,function = <BCM2835_FSEL_ALT0>;
262 i2c1_gpio44: i2c1_gpio44 {
264 brcm,function = <BCM2835_FSEL_ALT2>;
266 i2c_slave_gpio18: i2c_slave_gpio18 {
267 brcm,pins = <18 19 20 21>;
268 brcm,function = <BCM2835_FSEL_ALT3>;
271 jtag_gpio4: jtag_gpio4 {
272 brcm,pins = <4 5 6 12 13>;
273 brcm,function = <BCM2835_FSEL_ALT5>;
275 jtag_gpio22: jtag_gpio22 {
276 brcm,pins = <22 23 24 25 26 27>;
277 brcm,function = <BCM2835_FSEL_ALT4>;
280 pcm_gpio18: pcm_gpio18 {
281 brcm,pins = <18 19 20 21>;
282 brcm,function = <BCM2835_FSEL_ALT0>;
284 pcm_gpio28: pcm_gpio28 {
285 brcm,pins = <28 29 30 31>;
286 brcm,function = <BCM2835_FSEL_ALT2>;
289 pwm0_gpio12: pwm0_gpio12 {
291 brcm,function = <BCM2835_FSEL_ALT0>;
293 pwm0_gpio18: pwm0_gpio18 {
295 brcm,function = <BCM2835_FSEL_ALT5>;
297 pwm0_gpio40: pwm0_gpio40 {
299 brcm,function = <BCM2835_FSEL_ALT0>;
301 pwm1_gpio13: pwm1_gpio13 {
303 brcm,function = <BCM2835_FSEL_ALT0>;
305 pwm1_gpio19: pwm1_gpio19 {
307 brcm,function = <BCM2835_FSEL_ALT5>;
309 pwm1_gpio41: pwm1_gpio41 {
311 brcm,function = <BCM2835_FSEL_ALT0>;
313 pwm1_gpio45: pwm1_gpio45 {
315 brcm,function = <BCM2835_FSEL_ALT0>;
318 sdhost_gpio48: sdhost_gpio48 {
319 brcm,pins = <48 49 50 51 52 53>;
320 brcm,function = <BCM2835_FSEL_ALT0>;
323 spi0_gpio7: spi0_gpio7 {
324 brcm,pins = <7 8 9 10 11>;
325 brcm,function = <BCM2835_FSEL_ALT0>;
327 spi0_gpio35: spi0_gpio35 {
328 brcm,pins = <35 36 37 38 39>;
329 brcm,function = <BCM2835_FSEL_ALT0>;
331 spi1_gpio16: spi1_gpio16 {
332 brcm,pins = <16 17 18 19 20 21>;
333 brcm,function = <BCM2835_FSEL_ALT4>;
335 spi2_gpio40: spi2_gpio40 {
336 brcm,pins = <40 41 42 43 44 45>;
337 brcm,function = <BCM2835_FSEL_ALT4>;
340 uart0_gpio14: uart0_gpio14 {
342 brcm,function = <BCM2835_FSEL_ALT0>;
344 /* Separate from the uart0_gpio14 group
345 * because it conflicts with spi1_gpio16, and
346 * people often run uart0 on the two pins
347 * without flow control.
349 uart0_ctsrts_gpio16: uart0_ctsrts_gpio16 {
351 brcm,function = <BCM2835_FSEL_ALT3>;
353 uart0_ctsrts_gpio30: uart0_ctsrts_gpio30 {
355 brcm,function = <BCM2835_FSEL_ALT3>;
356 brcm,pull = <BCM2835_PUD_UP BCM2835_PUD_OFF>;
358 uart0_gpio32: uart0_gpio32 {
360 brcm,function = <BCM2835_FSEL_ALT3>;
361 brcm,pull = <BCM2835_PUD_OFF BCM2835_PUD_UP>;
363 uart0_gpio36: uart0_gpio36 {
365 brcm,function = <BCM2835_FSEL_ALT2>;
367 uart0_ctsrts_gpio38: uart0_ctsrts_gpio38 {
369 brcm,function = <BCM2835_FSEL_ALT2>;
372 uart1_gpio14: uart1_gpio14 {
374 brcm,function = <BCM2835_FSEL_ALT5>;
376 uart1_ctsrts_gpio16: uart1_ctsrts_gpio16 {
378 brcm,function = <BCM2835_FSEL_ALT5>;
380 uart1_gpio32: uart1_gpio32 {
382 brcm,function = <BCM2835_FSEL_ALT5>;
384 uart1_ctsrts_gpio30: uart1_ctsrts_gpio30 {
386 brcm,function = <BCM2835_FSEL_ALT5>;
388 uart1_gpio40: uart1_gpio40 {
390 brcm,function = <BCM2835_FSEL_ALT5>;
392 uart1_ctsrts_gpio42: uart1_ctsrts_gpio42 {
394 brcm,function = <BCM2835_FSEL_ALT5>;
398 uart0: serial@7e201000 {
399 compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
400 reg = <0x7e201000 0x1000>;
402 clocks = <&clocks BCM2835_CLOCK_UART>,
403 <&clocks BCM2835_CLOCK_VPU>;
404 clock-names = "uartclk", "apb_pclk";
405 arm,primecell-periphid = <0x00241011>;
408 sdhost: mmc@7e202000 {
409 compatible = "brcm,bcm2835-sdhost";
410 reg = <0x7e202000 0x100>;
412 clocks = <&clocks BCM2835_CLOCK_VPU>;
419 compatible = "brcm,bcm2835-i2s";
420 reg = <0x7e203000 0x24>;
421 clocks = <&clocks BCM2835_CLOCK_PCM>;
425 dma-names = "tx", "rx";
430 compatible = "brcm,bcm2835-spi";
431 reg = <0x7e204000 0x1000>;
433 clocks = <&clocks BCM2835_CLOCK_VPU>;
434 #address-cells = <1>;
440 compatible = "brcm,bcm2835-i2c";
441 reg = <0x7e205000 0x1000>;
443 clocks = <&clocks BCM2835_CLOCK_VPU>;
444 #address-cells = <1>;
449 pixelvalve@7e206000 {
450 compatible = "brcm,bcm2835-pixelvalve0";
451 reg = <0x7e206000 0x100>;
452 interrupts = <2 13>; /* pwa0 */
455 pixelvalve@7e207000 {
456 compatible = "brcm,bcm2835-pixelvalve1";
457 reg = <0x7e207000 0x100>;
458 interrupts = <2 14>; /* pwa1 */
462 compatible = "brcm,bcm2835-dpi";
463 reg = <0x7e208000 0x8c>;
464 clocks = <&clocks BCM2835_CLOCK_VPU>,
465 <&clocks BCM2835_CLOCK_DPI>;
466 clock-names = "core", "pixel";
467 #address-cells = <1>;
473 compatible = "brcm,bcm2835-dsi0";
474 reg = <0x7e209000 0x78>;
476 #address-cells = <1>;
480 clocks = <&clocks BCM2835_PLLA_DSI0>,
481 <&clocks BCM2835_CLOCK_DSI0E>,
482 <&clocks BCM2835_CLOCK_DSI0P>;
483 clock-names = "phy", "escape", "pixel";
485 clock-output-names = "dsi0_byte",
491 thermal: thermal@7e212000 {
492 compatible = "brcm,bcm2835-thermal";
493 reg = <0x7e212000 0x8>;
494 clocks = <&clocks BCM2835_CLOCK_TSENS>;
495 #thermal-sensor-cells = <0>;
500 compatible = "brcm,bcm2835-aux";
502 reg = <0x7e215000 0x8>;
503 clocks = <&clocks BCM2835_CLOCK_VPU>;
506 uart1: serial@7e215040 {
507 compatible = "brcm,bcm2835-aux-uart";
508 reg = <0x7e215040 0x40>;
510 clocks = <&aux BCM2835_AUX_CLOCK_UART>;
515 compatible = "brcm,bcm2835-aux-spi";
516 reg = <0x7e215080 0x40>;
518 clocks = <&aux BCM2835_AUX_CLOCK_SPI1>;
519 #address-cells = <1>;
525 compatible = "brcm,bcm2835-aux-spi";
526 reg = <0x7e2150c0 0x40>;
528 clocks = <&aux BCM2835_AUX_CLOCK_SPI2>;
529 #address-cells = <1>;
535 compatible = "brcm,bcm2835-pwm";
536 reg = <0x7e20c000 0x28>;
537 clocks = <&clocks BCM2835_CLOCK_PWM>;
538 assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
539 assigned-clock-rates = <10000000>;
544 sdhci: sdhci@7e300000 {
545 compatible = "brcm,bcm2835-sdhci";
546 reg = <0x7e300000 0x100>;
548 clocks = <&clocks BCM2835_CLOCK_EMMC>;
553 compatible = "brcm,bcm2835-hvs";
554 reg = <0x7e400000 0x6000>;
559 compatible = "brcm,bcm2835-dsi1";
560 reg = <0x7e700000 0x8c>;
562 #address-cells = <1>;
566 clocks = <&clocks BCM2835_PLLD_DSI1>,
567 <&clocks BCM2835_CLOCK_DSI1E>,
568 <&clocks BCM2835_CLOCK_DSI1P>;
569 clock-names = "phy", "escape", "pixel";
571 clock-output-names = "dsi1_byte",
579 compatible = "brcm,bcm2835-i2c";
580 reg = <0x7e804000 0x1000>;
582 clocks = <&clocks BCM2835_CLOCK_VPU>;
583 #address-cells = <1>;
589 compatible = "brcm,bcm2835-i2c";
590 reg = <0x7e805000 0x1000>;
592 clocks = <&clocks BCM2835_CLOCK_VPU>;
593 #address-cells = <1>;
599 compatible = "brcm,bcm2835-vec";
600 reg = <0x7e806000 0x1000>;
601 clocks = <&clocks BCM2835_CLOCK_VEC>;
606 pixelvalve@7e807000 {
607 compatible = "brcm,bcm2835-pixelvalve2";
608 reg = <0x7e807000 0x100>;
609 interrupts = <2 10>; /* pixelvalve */
612 hdmi: hdmi@7e902000 {
613 compatible = "brcm,bcm2835-hdmi";
614 reg = <0x7e902000 0x600>,
616 interrupts = <2 8>, <2 9>;
618 clocks = <&clocks BCM2835_PLLH_PIX>,
619 <&clocks BCM2835_CLOCK_HSM>;
620 clock-names = "pixel", "hdmi";
622 dma-names = "audio-rx";
627 compatible = "brcm,bcm2835-usb";
628 reg = <0x7e980000 0x10000>;
630 #address-cells = <1>;
635 phy-names = "usb2-phy";
639 compatible = "brcm,bcm2835-v3d";
640 reg = <0x7ec00000 0x1000>;
642 power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>;
646 compatible = "brcm,bcm2835-vc4";
651 compatible = "simple-bus";
652 #address-cells = <1>;
655 /* The oscillator is the root of the clock tree. */
657 compatible = "fixed-clock";
660 clock-output-names = "osc";
661 clock-frequency = <19200000>;
665 compatible = "fixed-clock";
668 clock-output-names = "otg";
669 clock-frequency = <480000000>;
674 compatible = "usb-nop-xceiv";