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>
7 /* firmware-provided startup stubs live here, where the secondary CPUs are
10 /memreserve/ 0x00000000 0x00001000;
12 /* This include file covers the common peripherals and configuration between
13 * bcm2835 and bcm2836 implementations, leaving the CPU configuration to
14 * bcm2835.dtsi and bcm2836.dtsi.
18 compatible = "brcm,bcm2835";
20 interrupt-parent = <&intc>;
30 stdout-path = "serial0:115200n8";
34 cpu_thermal: cpu-thermal {
35 polling-delay-passive = <0>;
36 polling-delay = <1000>;
38 thermal-sensors = <&thermal>;
42 temperature = <90000>;
54 compatible = "simple-bus";
59 compatible = "brcm,bcm2835-system-timer";
60 reg = <0x7e003000 0x1000>;
61 interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
62 /* This could be a reference to BCM2835_CLOCK_TIMER,
63 * but we don't have the driver using the common clock
66 clock-frequency = <1000000>;
70 compatible = "brcm,bcm2835-txp";
71 reg = <0x7e004000 0x20>;
76 compatible = "brcm,bcm2835-dma";
77 reg = <0x7e007000 0xf00>;
89 /* dma channel 11-14 share one irq */
94 /* unused shared irq for all channels */
96 interrupt-names = "dma0",
113 brcm,dma-channel-mask = <0x7f35>;
116 intc: interrupt-controller@7e00b200 {
117 compatible = "brcm,bcm2835-armctrl-ic";
118 reg = <0x7e00b200 0x200>;
119 interrupt-controller;
120 #interrupt-cells = <2>;
124 compatible = "brcm,bcm2835-pm-wdt";
125 reg = <0x7e100000 0x28>;
128 clocks: cprman@7e101000 {
129 compatible = "brcm,bcm2835-cprman";
131 reg = <0x7e101000 0x2000>;
133 /* CPRMAN derives almost everything from the
134 * platform's oscillator. However, the DSI
135 * pixel clocks come from the DSI analog PHY.
138 <&dsi0 0>, <&dsi0 1>, <&dsi0 2>,
139 <&dsi1 0>, <&dsi1 1>, <&dsi1 2>;
143 compatible = "brcm,bcm2835-rng";
144 reg = <0x7e104000 0x10>;
148 mailbox: mailbox@7e00b880 {
149 compatible = "brcm,bcm2835-mbox";
150 reg = <0x7e00b880 0x40>;
155 gpio: gpio@7e200000 {
156 compatible = "brcm,bcm2835-gpio";
157 reg = <0x7e200000 0xb4>;
159 * The GPIO IP block is designed for 3 banks of GPIOs.
160 * Each bank has a GPIO interrupt for itself.
161 * There is an overall "any bank" interrupt.
162 * In order, these are GIC interrupts 17, 18, 19, 20.
163 * Since the BCM2835 only has 2 banks, the 2nd bank
164 * interrupt output appears to be mirrored onto the
165 * 3rd bank's interrupt signal.
166 * So, a bank0 interrupt shows up on 17, 20, and
167 * a bank1 interrupt shows up on 18, 19, 20!
169 interrupts = <2 17>, <2 18>, <2 19>, <2 20>;
174 interrupt-controller;
175 #interrupt-cells = <2>;
177 /* Defines pin muxing groups according to
178 * BCM2835-ARM-Peripherals.pdf page 102.
180 * While each pin can have its mux selected
181 * for various functions individually, some
182 * groups only make sense to switch to a
183 * particular function together.
185 dpi_gpio0: dpi_gpio0 {
186 brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
187 12 13 14 15 16 17 18 19
188 20 21 22 23 24 25 26 27>;
189 brcm,function = <BCM2835_FSEL_ALT2>;
191 emmc_gpio22: emmc_gpio22 {
192 brcm,pins = <22 23 24 25 26 27>;
193 brcm,function = <BCM2835_FSEL_ALT3>;
195 emmc_gpio34: emmc_gpio34 {
196 brcm,pins = <34 35 36 37 38 39>;
197 brcm,function = <BCM2835_FSEL_ALT3>;
198 brcm,pull = <BCM2835_PUD_OFF
205 emmc_gpio48: emmc_gpio48 {
206 brcm,pins = <48 49 50 51 52 53>;
207 brcm,function = <BCM2835_FSEL_ALT3>;
210 gpclk0_gpio4: gpclk0_gpio4 {
212 brcm,function = <BCM2835_FSEL_ALT0>;
214 gpclk1_gpio5: gpclk1_gpio5 {
216 brcm,function = <BCM2835_FSEL_ALT0>;
218 gpclk1_gpio42: gpclk1_gpio42 {
220 brcm,function = <BCM2835_FSEL_ALT0>;
222 gpclk1_gpio44: gpclk1_gpio44 {
224 brcm,function = <BCM2835_FSEL_ALT0>;
226 gpclk2_gpio6: gpclk2_gpio6 {
228 brcm,function = <BCM2835_FSEL_ALT0>;
230 gpclk2_gpio43: gpclk2_gpio43 {
232 brcm,function = <BCM2835_FSEL_ALT0>;
233 brcm,pull = <BCM2835_PUD_OFF>;
236 i2c0_gpio0: i2c0_gpio0 {
238 brcm,function = <BCM2835_FSEL_ALT0>;
240 i2c0_gpio28: i2c0_gpio28 {
242 brcm,function = <BCM2835_FSEL_ALT0>;
244 i2c0_gpio44: i2c0_gpio44 {
246 brcm,function = <BCM2835_FSEL_ALT1>;
248 i2c1_gpio2: i2c1_gpio2 {
250 brcm,function = <BCM2835_FSEL_ALT0>;
252 i2c1_gpio44: i2c1_gpio44 {
254 brcm,function = <BCM2835_FSEL_ALT2>;
256 i2c_slave_gpio18: i2c_slave_gpio18 {
257 brcm,pins = <18 19 20 21>;
258 brcm,function = <BCM2835_FSEL_ALT3>;
261 jtag_gpio4: jtag_gpio4 {
262 brcm,pins = <4 5 6 12 13>;
263 brcm,function = <BCM2835_FSEL_ALT5>;
265 jtag_gpio22: jtag_gpio22 {
266 brcm,pins = <22 23 24 25 26 27>;
267 brcm,function = <BCM2835_FSEL_ALT4>;
270 pcm_gpio18: pcm_gpio18 {
271 brcm,pins = <18 19 20 21>;
272 brcm,function = <BCM2835_FSEL_ALT0>;
274 pcm_gpio28: pcm_gpio28 {
275 brcm,pins = <28 29 30 31>;
276 brcm,function = <BCM2835_FSEL_ALT2>;
279 pwm0_gpio12: pwm0_gpio12 {
281 brcm,function = <BCM2835_FSEL_ALT0>;
283 pwm0_gpio18: pwm0_gpio18 {
285 brcm,function = <BCM2835_FSEL_ALT5>;
287 pwm0_gpio40: pwm0_gpio40 {
289 brcm,function = <BCM2835_FSEL_ALT0>;
291 pwm1_gpio13: pwm1_gpio13 {
293 brcm,function = <BCM2835_FSEL_ALT0>;
295 pwm1_gpio19: pwm1_gpio19 {
297 brcm,function = <BCM2835_FSEL_ALT5>;
299 pwm1_gpio41: pwm1_gpio41 {
301 brcm,function = <BCM2835_FSEL_ALT0>;
303 pwm1_gpio45: pwm1_gpio45 {
305 brcm,function = <BCM2835_FSEL_ALT0>;
308 sdhost_gpio48: sdhost_gpio48 {
309 brcm,pins = <48 49 50 51 52 53>;
310 brcm,function = <BCM2835_FSEL_ALT0>;
313 spi0_gpio7: spi0_gpio7 {
314 brcm,pins = <7 8 9 10 11>;
315 brcm,function = <BCM2835_FSEL_ALT0>;
317 spi0_gpio35: spi0_gpio35 {
318 brcm,pins = <35 36 37 38 39>;
319 brcm,function = <BCM2835_FSEL_ALT0>;
321 spi1_gpio16: spi1_gpio16 {
322 brcm,pins = <16 17 18 19 20 21>;
323 brcm,function = <BCM2835_FSEL_ALT4>;
325 spi2_gpio40: spi2_gpio40 {
326 brcm,pins = <40 41 42 43 44 45>;
327 brcm,function = <BCM2835_FSEL_ALT4>;
330 uart0_gpio14: uart0_gpio14 {
332 brcm,function = <BCM2835_FSEL_ALT0>;
334 /* Separate from the uart0_gpio14 group
335 * because it conflicts with spi1_gpio16, and
336 * people often run uart0 on the two pins
337 * without flow control.
339 uart0_ctsrts_gpio16: uart0_ctsrts_gpio16 {
341 brcm,function = <BCM2835_FSEL_ALT3>;
343 uart0_ctsrts_gpio30: uart0_ctsrts_gpio30 {
345 brcm,function = <BCM2835_FSEL_ALT3>;
346 brcm,pull = <BCM2835_PUD_UP BCM2835_PUD_OFF>;
348 uart0_gpio32: uart0_gpio32 {
350 brcm,function = <BCM2835_FSEL_ALT3>;
351 brcm,pull = <BCM2835_PUD_OFF BCM2835_PUD_UP>;
353 uart0_gpio36: uart0_gpio36 {
355 brcm,function = <BCM2835_FSEL_ALT2>;
357 uart0_ctsrts_gpio38: uart0_ctsrts_gpio38 {
359 brcm,function = <BCM2835_FSEL_ALT2>;
362 uart1_gpio14: uart1_gpio14 {
364 brcm,function = <BCM2835_FSEL_ALT5>;
366 uart1_ctsrts_gpio16: uart1_ctsrts_gpio16 {
368 brcm,function = <BCM2835_FSEL_ALT5>;
370 uart1_gpio32: uart1_gpio32 {
372 brcm,function = <BCM2835_FSEL_ALT5>;
374 uart1_ctsrts_gpio30: uart1_ctsrts_gpio30 {
376 brcm,function = <BCM2835_FSEL_ALT5>;
378 uart1_gpio40: uart1_gpio40 {
380 brcm,function = <BCM2835_FSEL_ALT5>;
382 uart1_ctsrts_gpio42: uart1_ctsrts_gpio42 {
384 brcm,function = <BCM2835_FSEL_ALT5>;
388 uart0: serial@7e201000 {
389 compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
390 reg = <0x7e201000 0x1000>;
392 clocks = <&clocks BCM2835_CLOCK_UART>,
393 <&clocks BCM2835_CLOCK_VPU>;
394 clock-names = "uartclk", "apb_pclk";
395 arm,primecell-periphid = <0x00241011>;
398 sdhost: mmc@7e202000 {
399 compatible = "brcm,bcm2835-sdhost";
400 reg = <0x7e202000 0x100>;
402 clocks = <&clocks BCM2835_CLOCK_VPU>;
409 compatible = "brcm,bcm2835-i2s";
410 reg = <0x7e203000 0x24>;
411 clocks = <&clocks BCM2835_CLOCK_PCM>;
415 dma-names = "tx", "rx";
420 compatible = "brcm,bcm2835-spi";
421 reg = <0x7e204000 0x1000>;
423 clocks = <&clocks BCM2835_CLOCK_VPU>;
424 #address-cells = <1>;
430 compatible = "brcm,bcm2835-i2c";
431 reg = <0x7e205000 0x1000>;
433 clocks = <&clocks BCM2835_CLOCK_VPU>;
434 #address-cells = <1>;
439 pixelvalve@7e206000 {
440 compatible = "brcm,bcm2835-pixelvalve0";
441 reg = <0x7e206000 0x100>;
442 interrupts = <2 13>; /* pwa0 */
445 pixelvalve@7e207000 {
446 compatible = "brcm,bcm2835-pixelvalve1";
447 reg = <0x7e207000 0x100>;
448 interrupts = <2 14>; /* pwa1 */
452 compatible = "brcm,bcm2835-dpi";
453 reg = <0x7e208000 0x8c>;
454 clocks = <&clocks BCM2835_CLOCK_VPU>,
455 <&clocks BCM2835_CLOCK_DPI>;
456 clock-names = "core", "pixel";
457 #address-cells = <1>;
463 compatible = "brcm,bcm2835-dsi0";
464 reg = <0x7e209000 0x78>;
466 #address-cells = <1>;
470 clocks = <&clocks BCM2835_PLLA_DSI0>,
471 <&clocks BCM2835_CLOCK_DSI0E>,
472 <&clocks BCM2835_CLOCK_DSI0P>;
473 clock-names = "phy", "escape", "pixel";
475 clock-output-names = "dsi0_byte",
482 thermal: thermal@7e212000 {
483 compatible = "brcm,bcm2835-thermal";
484 reg = <0x7e212000 0x8>;
485 clocks = <&clocks BCM2835_CLOCK_TSENS>;
486 #thermal-sensor-cells = <0>;
491 compatible = "brcm,bcm2835-aux";
493 reg = <0x7e215000 0x8>;
494 clocks = <&clocks BCM2835_CLOCK_VPU>;
497 uart1: serial@7e215040 {
498 compatible = "brcm,bcm2835-aux-uart";
499 reg = <0x7e215040 0x40>;
501 clocks = <&aux BCM2835_AUX_CLOCK_UART>;
506 compatible = "brcm,bcm2835-aux-spi";
507 reg = <0x7e215080 0x40>;
509 clocks = <&aux BCM2835_AUX_CLOCK_SPI1>;
510 #address-cells = <1>;
516 compatible = "brcm,bcm2835-aux-spi";
517 reg = <0x7e2150c0 0x40>;
519 clocks = <&aux BCM2835_AUX_CLOCK_SPI2>;
520 #address-cells = <1>;
526 compatible = "brcm,bcm2835-pwm";
527 reg = <0x7e20c000 0x28>;
528 clocks = <&clocks BCM2835_CLOCK_PWM>;
529 assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
530 assigned-clock-rates = <10000000>;
535 sdhci: sdhci@7e300000 {
536 compatible = "brcm,bcm2835-sdhci";
537 reg = <0x7e300000 0x100>;
539 clocks = <&clocks BCM2835_CLOCK_EMMC>;
544 compatible = "brcm,bcm2835-hvs";
545 reg = <0x7e400000 0x6000>;
550 compatible = "brcm,bcm2835-dsi1";
551 reg = <0x7e700000 0x8c>;
553 #address-cells = <1>;
557 clocks = <&clocks BCM2835_PLLD_DSI1>,
558 <&clocks BCM2835_CLOCK_DSI1E>,
559 <&clocks BCM2835_CLOCK_DSI1P>;
560 clock-names = "phy", "escape", "pixel";
562 clock-output-names = "dsi1_byte",
570 compatible = "brcm,bcm2835-i2c";
571 reg = <0x7e804000 0x1000>;
573 clocks = <&clocks BCM2835_CLOCK_VPU>;
574 #address-cells = <1>;
580 compatible = "brcm,bcm2835-i2c";
581 reg = <0x7e805000 0x1000>;
583 clocks = <&clocks BCM2835_CLOCK_VPU>;
584 #address-cells = <1>;
590 compatible = "brcm,bcm2835-vec";
591 reg = <0x7e806000 0x1000>;
592 clocks = <&clocks BCM2835_CLOCK_VEC>;
597 pixelvalve@7e807000 {
598 compatible = "brcm,bcm2835-pixelvalve2";
599 reg = <0x7e807000 0x100>;
600 interrupts = <2 10>; /* pixelvalve */
603 hdmi: hdmi@7e902000 {
604 compatible = "brcm,bcm2835-hdmi";
605 reg = <0x7e902000 0x600>,
607 interrupts = <2 8>, <2 9>;
609 clocks = <&clocks BCM2835_PLLH_PIX>,
610 <&clocks BCM2835_CLOCK_HSM>;
611 clock-names = "pixel", "hdmi";
613 dma-names = "audio-rx";
618 compatible = "brcm,bcm2835-usb";
619 reg = <0x7e980000 0x10000>;
621 #address-cells = <1>;
626 phy-names = "usb2-phy";
630 compatible = "brcm,bcm2835-v3d";
631 reg = <0x7ec00000 0x1000>;
636 compatible = "brcm,bcm2835-vc4";
641 compatible = "simple-bus";
642 #address-cells = <1>;
645 /* The oscillator is the root of the clock tree. */
647 compatible = "fixed-clock";
650 clock-output-names = "osc";
651 clock-frequency = <19200000>;
655 compatible = "fixed-clock";
658 clock-output-names = "otg";
659 clock-frequency = <480000000>;
664 compatible = "usb-nop-xceiv";