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>
6 /* firmware-provided startup stubs live here, where the secondary CPUs are
9 /memreserve/ 0x00000000 0x00001000;
11 /* This include file covers the common peripherals and configuration between
12 * bcm2835 and bcm2836 implementations, leaving the CPU configuration to
13 * bcm2835.dtsi and bcm2836.dtsi.
17 compatible = "brcm,bcm2835";
19 interrupt-parent = <&intc>;
24 bootargs = "earlyprintk console=ttyAMA0";
28 cpu_thermal: cpu-thermal {
29 polling-delay-passive = <0>;
30 polling-delay = <1000>;
32 thermal-sensors = <&thermal>;
36 temperature = <80000>;
48 compatible = "simple-bus";
53 compatible = "brcm,bcm2835-system-timer";
54 reg = <0x7e003000 0x1000>;
55 interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
56 /* This could be a reference to BCM2835_CLOCK_TIMER,
57 * but we don't have the driver using the common clock
60 clock-frequency = <1000000>;
64 compatible = "brcm,bcm2835-dma";
65 reg = <0x7e007000 0xf00>;
77 /* dma channel 11-14 share one irq */
82 /* unused shared irq for all channels */
84 interrupt-names = "dma0",
101 brcm,dma-channel-mask = <0x7f35>;
104 intc: interrupt-controller@7e00b200 {
105 compatible = "brcm,bcm2835-armctrl-ic";
106 reg = <0x7e00b200 0x200>;
107 interrupt-controller;
108 #interrupt-cells = <2>;
112 compatible = "brcm,bcm2835-pm-wdt";
113 reg = <0x7e100000 0x28>;
116 clocks: cprman@7e101000 {
117 compatible = "brcm,bcm2835-cprman";
119 reg = <0x7e101000 0x2000>;
121 /* CPRMAN derives almost everything from the
122 * platform's oscillator. However, the DSI
123 * pixel clocks come from the DSI analog PHY.
126 <&dsi0 0>, <&dsi0 1>, <&dsi0 2>,
127 <&dsi1 0>, <&dsi1 1>, <&dsi1 2>;
131 compatible = "brcm,bcm2835-rng";
132 reg = <0x7e104000 0x10>;
135 mailbox: mailbox@7e00b880 {
136 compatible = "brcm,bcm2835-mbox";
137 reg = <0x7e00b880 0x40>;
142 gpio: gpio@7e200000 {
143 compatible = "brcm,bcm2835-gpio";
144 reg = <0x7e200000 0xb4>;
146 * The GPIO IP block is designed for 3 banks of GPIOs.
147 * Each bank has a GPIO interrupt for itself.
148 * There is an overall "any bank" interrupt.
149 * In order, these are GIC interrupts 17, 18, 19, 20.
150 * Since the BCM2835 only has 2 banks, the 2nd bank
151 * interrupt output appears to be mirrored onto the
152 * 3rd bank's interrupt signal.
153 * So, a bank0 interrupt shows up on 17, 20, and
154 * a bank1 interrupt shows up on 18, 19, 20!
156 interrupts = <2 17>, <2 18>, <2 19>, <2 20>;
161 interrupt-controller;
162 #interrupt-cells = <2>;
164 /* Defines pin muxing groups according to
165 * BCM2835-ARM-Peripherals.pdf page 102.
167 * While each pin can have its mux selected
168 * for various functions individually, some
169 * groups only make sense to switch to a
170 * particular function together.
172 dpi_gpio0: dpi_gpio0 {
173 brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
174 12 13 14 15 16 17 18 19
175 20 21 22 23 24 25 26 27>;
176 brcm,function = <BCM2835_FSEL_ALT2>;
178 emmc_gpio22: emmc_gpio22 {
179 brcm,pins = <22 23 24 25 26 27>;
180 brcm,function = <BCM2835_FSEL_ALT3>;
182 emmc_gpio34: emmc_gpio34 {
183 brcm,pins = <34 35 36 37 38 39>;
184 brcm,function = <BCM2835_FSEL_ALT3>;
185 brcm,pull = <BCM2835_PUD_OFF
192 emmc_gpio48: emmc_gpio48 {
193 brcm,pins = <48 49 50 51 52 53>;
194 brcm,function = <BCM2835_FSEL_ALT3>;
197 gpclk0_gpio4: gpclk0_gpio4 {
199 brcm,function = <BCM2835_FSEL_ALT0>;
201 gpclk1_gpio5: gpclk1_gpio5 {
203 brcm,function = <BCM2835_FSEL_ALT0>;
205 gpclk1_gpio42: gpclk1_gpio42 {
207 brcm,function = <BCM2835_FSEL_ALT0>;
209 gpclk1_gpio44: gpclk1_gpio44 {
211 brcm,function = <BCM2835_FSEL_ALT0>;
213 gpclk2_gpio6: gpclk2_gpio6 {
215 brcm,function = <BCM2835_FSEL_ALT0>;
217 gpclk2_gpio43: gpclk2_gpio43 {
219 brcm,function = <BCM2835_FSEL_ALT0>;
222 i2c0_gpio0: i2c0_gpio0 {
224 brcm,function = <BCM2835_FSEL_ALT0>;
226 i2c0_gpio28: i2c0_gpio28 {
228 brcm,function = <BCM2835_FSEL_ALT0>;
230 i2c0_gpio44: i2c0_gpio44 {
232 brcm,function = <BCM2835_FSEL_ALT1>;
234 i2c1_gpio2: i2c1_gpio2 {
236 brcm,function = <BCM2835_FSEL_ALT0>;
238 i2c1_gpio44: i2c1_gpio44 {
240 brcm,function = <BCM2835_FSEL_ALT2>;
242 i2c_slave_gpio18: i2c_slave_gpio18 {
243 brcm,pins = <18 19 20 21>;
244 brcm,function = <BCM2835_FSEL_ALT3>;
247 jtag_gpio4: jtag_gpio4 {
248 brcm,pins = <4 5 6 12 13>;
249 brcm,function = <BCM2835_FSEL_ALT4>;
251 jtag_gpio22: jtag_gpio22 {
252 brcm,pins = <22 23 24 25 26 27>;
253 brcm,function = <BCM2835_FSEL_ALT4>;
256 pcm_gpio18: pcm_gpio18 {
257 brcm,pins = <18 19 20 21>;
258 brcm,function = <BCM2835_FSEL_ALT0>;
260 pcm_gpio28: pcm_gpio28 {
261 brcm,pins = <28 29 30 31>;
262 brcm,function = <BCM2835_FSEL_ALT2>;
265 pwm0_gpio12: pwm0_gpio12 {
267 brcm,function = <BCM2835_FSEL_ALT0>;
269 pwm0_gpio18: pwm0_gpio18 {
271 brcm,function = <BCM2835_FSEL_ALT5>;
273 pwm0_gpio40: pwm0_gpio40 {
275 brcm,function = <BCM2835_FSEL_ALT0>;
277 pwm1_gpio13: pwm1_gpio13 {
279 brcm,function = <BCM2835_FSEL_ALT0>;
281 pwm1_gpio19: pwm1_gpio19 {
283 brcm,function = <BCM2835_FSEL_ALT5>;
285 pwm1_gpio41: pwm1_gpio41 {
287 brcm,function = <BCM2835_FSEL_ALT0>;
289 pwm1_gpio45: pwm1_gpio45 {
291 brcm,function = <BCM2835_FSEL_ALT0>;
294 sdhost_gpio48: sdhost_gpio48 {
295 brcm,pins = <48 49 50 51 52 53>;
296 brcm,function = <BCM2835_FSEL_ALT0>;
299 spi0_gpio7: spi0_gpio7 {
300 brcm,pins = <7 8 9 10 11>;
301 brcm,function = <BCM2835_FSEL_ALT0>;
303 spi0_gpio35: spi0_gpio35 {
304 brcm,pins = <35 36 37 38 39>;
305 brcm,function = <BCM2835_FSEL_ALT0>;
307 spi1_gpio16: spi1_gpio16 {
308 brcm,pins = <16 17 18 19 20 21>;
309 brcm,function = <BCM2835_FSEL_ALT4>;
311 spi2_gpio40: spi2_gpio40 {
312 brcm,pins = <40 41 42 43 44 45>;
313 brcm,function = <BCM2835_FSEL_ALT4>;
316 uart0_gpio14: uart0_gpio14 {
318 brcm,function = <BCM2835_FSEL_ALT0>;
320 /* Separate from the uart0_gpio14 group
321 * because it conflicts with spi1_gpio16, and
322 * people often run uart0 on the two pins
323 * without flow control.
325 uart0_ctsrts_gpio16: uart0_ctsrts_gpio16 {
327 brcm,function = <BCM2835_FSEL_ALT3>;
329 uart0_ctsrts_gpio30: uart0_ctsrts_gpio30 {
331 brcm,function = <BCM2835_FSEL_ALT3>;
333 uart0_gpio32: uart0_gpio32 {
335 brcm,function = <BCM2835_FSEL_ALT3>;
337 uart0_gpio36: uart0_gpio36 {
339 brcm,function = <BCM2835_FSEL_ALT2>;
341 uart0_ctsrts_gpio38: uart0_ctsrts_gpio38 {
343 brcm,function = <BCM2835_FSEL_ALT2>;
346 uart1_gpio14: uart1_gpio14 {
348 brcm,function = <BCM2835_FSEL_ALT5>;
350 uart1_ctsrts_gpio16: uart1_ctsrts_gpio16 {
352 brcm,function = <BCM2835_FSEL_ALT5>;
354 uart1_gpio32: uart1_gpio32 {
356 brcm,function = <BCM2835_FSEL_ALT5>;
358 uart1_ctsrts_gpio30: uart1_ctsrts_gpio30 {
360 brcm,function = <BCM2835_FSEL_ALT5>;
362 uart1_gpio40: uart1_gpio40 {
364 brcm,function = <BCM2835_FSEL_ALT5>;
366 uart1_ctsrts_gpio42: uart1_ctsrts_gpio42 {
368 brcm,function = <BCM2835_FSEL_ALT5>;
372 uart0: serial@7e201000 {
373 compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
374 reg = <0x7e201000 0x1000>;
376 clocks = <&clocks BCM2835_CLOCK_UART>,
377 <&clocks BCM2835_CLOCK_VPU>;
378 clock-names = "uartclk", "apb_pclk";
379 arm,primecell-periphid = <0x00241011>;
382 sdhost: mmc@7e202000 {
383 compatible = "brcm,bcm2835-sdhost";
384 reg = <0x7e202000 0x100>;
386 clocks = <&clocks BCM2835_CLOCK_VPU>;
393 compatible = "brcm,bcm2835-i2s";
394 reg = <0x7e203000 0x20>,
399 dma-names = "tx", "rx";
404 compatible = "brcm,bcm2835-spi";
405 reg = <0x7e204000 0x1000>;
407 clocks = <&clocks BCM2835_CLOCK_VPU>;
408 #address-cells = <1>;
414 compatible = "brcm,bcm2835-i2c";
415 reg = <0x7e205000 0x1000>;
417 clocks = <&clocks BCM2835_CLOCK_VPU>;
418 #address-cells = <1>;
423 pixelvalve@7e206000 {
424 compatible = "brcm,bcm2835-pixelvalve0";
425 reg = <0x7e206000 0x100>;
426 interrupts = <2 13>; /* pwa0 */
429 pixelvalve@7e207000 {
430 compatible = "brcm,bcm2835-pixelvalve1";
431 reg = <0x7e207000 0x100>;
432 interrupts = <2 14>; /* pwa1 */
436 compatible = "brcm,bcm2835-dsi0";
437 reg = <0x7e209000 0x78>;
439 #address-cells = <1>;
443 clocks = <&clocks BCM2835_PLLA_DSI0>,
444 <&clocks BCM2835_CLOCK_DSI0E>,
445 <&clocks BCM2835_CLOCK_DSI0P>;
446 clock-names = "phy", "escape", "pixel";
448 clock-output-names = "dsi0_byte",
454 thermal: thermal@7e212000 {
455 compatible = "brcm,bcm2835-thermal";
456 reg = <0x7e212000 0x8>;
457 clocks = <&clocks BCM2835_CLOCK_TSENS>;
458 #thermal-sensor-cells = <0>;
462 aux: aux@0x7e215000 {
463 compatible = "brcm,bcm2835-aux";
465 reg = <0x7e215000 0x8>;
466 clocks = <&clocks BCM2835_CLOCK_VPU>;
469 uart1: serial@7e215040 {
470 compatible = "brcm,bcm2835-aux-uart";
471 reg = <0x7e215040 0x40>;
473 clocks = <&aux BCM2835_AUX_CLOCK_UART>;
478 compatible = "brcm,bcm2835-aux-spi";
479 reg = <0x7e215080 0x40>;
481 clocks = <&aux BCM2835_AUX_CLOCK_SPI1>;
482 #address-cells = <1>;
488 compatible = "brcm,bcm2835-aux-spi";
489 reg = <0x7e2150c0 0x40>;
491 clocks = <&aux BCM2835_AUX_CLOCK_SPI2>;
492 #address-cells = <1>;
498 compatible = "brcm,bcm2835-pwm";
499 reg = <0x7e20c000 0x28>;
500 clocks = <&clocks BCM2835_CLOCK_PWM>;
501 assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
502 assigned-clock-rates = <10000000>;
507 sdhci: sdhci@7e300000 {
508 compatible = "brcm,bcm2835-sdhci";
509 reg = <0x7e300000 0x100>;
511 clocks = <&clocks BCM2835_CLOCK_EMMC>;
516 compatible = "brcm,bcm2835-hvs";
517 reg = <0x7e400000 0x6000>;
522 compatible = "brcm,bcm2835-dsi1";
523 reg = <0x7e700000 0x8c>;
525 #address-cells = <1>;
529 clocks = <&clocks BCM2835_PLLD_DSI1>,
530 <&clocks BCM2835_CLOCK_DSI1E>,
531 <&clocks BCM2835_CLOCK_DSI1P>;
532 clock-names = "phy", "escape", "pixel";
534 clock-output-names = "dsi1_byte",
542 compatible = "brcm,bcm2835-i2c";
543 reg = <0x7e804000 0x1000>;
545 clocks = <&clocks BCM2835_CLOCK_VPU>;
546 #address-cells = <1>;
552 compatible = "brcm,bcm2835-i2c";
553 reg = <0x7e805000 0x1000>;
555 clocks = <&clocks BCM2835_CLOCK_VPU>;
556 #address-cells = <1>;
562 compatible = "brcm,bcm2835-vec";
563 reg = <0x7e806000 0x1000>;
564 clocks = <&clocks BCM2835_CLOCK_VEC>;
569 pixelvalve@7e807000 {
570 compatible = "brcm,bcm2835-pixelvalve2";
571 reg = <0x7e807000 0x100>;
572 interrupts = <2 10>; /* pixelvalve */
575 hdmi: hdmi@7e902000 {
576 compatible = "brcm,bcm2835-hdmi";
577 reg = <0x7e902000 0x600>,
579 interrupts = <2 8>, <2 9>;
581 clocks = <&clocks BCM2835_PLLH_PIX>,
582 <&clocks BCM2835_CLOCK_HSM>;
583 clock-names = "pixel", "hdmi";
585 dma-names = "audio-rx";
590 compatible = "brcm,bcm2835-usb";
591 reg = <0x7e980000 0x10000>;
593 #address-cells = <1>;
598 phy-names = "usb2-phy";
602 compatible = "brcm,bcm2835-v3d";
603 reg = <0x7ec00000 0x1000>;
608 compatible = "brcm,bcm2835-vc4";
613 compatible = "simple-bus";
614 #address-cells = <1>;
617 /* The oscillator is the root of the clock tree. */
619 compatible = "fixed-clock";
622 clock-output-names = "osc";
623 clock-frequency = <19200000>;
627 compatible = "fixed-clock";
630 clock-output-names = "otg";
631 clock-frequency = <480000000>;
636 compatible = "usb-nop-xceiv";
640 #include "bcm283x-uboot.dtsi"