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 = <80000>;
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-dma";
71 reg = <0x7e007000 0xf00>;
83 /* dma channel 11-14 share one irq */
88 /* unused shared irq for all channels */
90 interrupt-names = "dma0",
107 brcm,dma-channel-mask = <0x7f35>;
110 intc: interrupt-controller@7e00b200 {
111 compatible = "brcm,bcm2835-armctrl-ic";
112 reg = <0x7e00b200 0x200>;
113 interrupt-controller;
114 #interrupt-cells = <2>;
118 compatible = "brcm,bcm2835-pm-wdt";
119 reg = <0x7e100000 0x28>;
122 clocks: cprman@7e101000 {
123 compatible = "brcm,bcm2835-cprman";
125 reg = <0x7e101000 0x2000>;
127 /* CPRMAN derives almost everything from the
128 * platform's oscillator. However, the DSI
129 * pixel clocks come from the DSI analog PHY.
132 <&dsi0 0>, <&dsi0 1>, <&dsi0 2>,
133 <&dsi1 0>, <&dsi1 1>, <&dsi1 2>;
137 compatible = "brcm,bcm2835-rng";
138 reg = <0x7e104000 0x10>;
141 mailbox: mailbox@7e00b880 {
142 compatible = "brcm,bcm2835-mbox";
143 reg = <0x7e00b880 0x40>;
148 gpio: gpio@7e200000 {
149 compatible = "brcm,bcm2835-gpio";
150 reg = <0x7e200000 0xb4>;
152 * The GPIO IP block is designed for 3 banks of GPIOs.
153 * Each bank has a GPIO interrupt for itself.
154 * There is an overall "any bank" interrupt.
155 * In order, these are GIC interrupts 17, 18, 19, 20.
156 * Since the BCM2835 only has 2 banks, the 2nd bank
157 * interrupt output appears to be mirrored onto the
158 * 3rd bank's interrupt signal.
159 * So, a bank0 interrupt shows up on 17, 20, and
160 * a bank1 interrupt shows up on 18, 19, 20!
162 interrupts = <2 17>, <2 18>, <2 19>, <2 20>;
167 interrupt-controller;
168 #interrupt-cells = <2>;
170 /* Defines pin muxing groups according to
171 * BCM2835-ARM-Peripherals.pdf page 102.
173 * While each pin can have its mux selected
174 * for various functions individually, some
175 * groups only make sense to switch to a
176 * particular function together.
178 dpi_gpio0: dpi_gpio0 {
179 brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
180 12 13 14 15 16 17 18 19
181 20 21 22 23 24 25 26 27>;
182 brcm,function = <BCM2835_FSEL_ALT2>;
184 emmc_gpio22: emmc_gpio22 {
185 brcm,pins = <22 23 24 25 26 27>;
186 brcm,function = <BCM2835_FSEL_ALT3>;
188 emmc_gpio34: emmc_gpio34 {
189 brcm,pins = <34 35 36 37 38 39>;
190 brcm,function = <BCM2835_FSEL_ALT3>;
191 brcm,pull = <BCM2835_PUD_OFF
198 emmc_gpio48: emmc_gpio48 {
199 brcm,pins = <48 49 50 51 52 53>;
200 brcm,function = <BCM2835_FSEL_ALT3>;
203 gpclk0_gpio4: gpclk0_gpio4 {
205 brcm,function = <BCM2835_FSEL_ALT0>;
207 gpclk1_gpio5: gpclk1_gpio5 {
209 brcm,function = <BCM2835_FSEL_ALT0>;
211 gpclk1_gpio42: gpclk1_gpio42 {
213 brcm,function = <BCM2835_FSEL_ALT0>;
215 gpclk1_gpio44: gpclk1_gpio44 {
217 brcm,function = <BCM2835_FSEL_ALT0>;
219 gpclk2_gpio6: gpclk2_gpio6 {
221 brcm,function = <BCM2835_FSEL_ALT0>;
223 gpclk2_gpio43: gpclk2_gpio43 {
225 brcm,function = <BCM2835_FSEL_ALT0>;
228 i2c0_gpio0: i2c0_gpio0 {
230 brcm,function = <BCM2835_FSEL_ALT0>;
232 i2c0_gpio28: i2c0_gpio28 {
234 brcm,function = <BCM2835_FSEL_ALT0>;
236 i2c0_gpio44: i2c0_gpio44 {
238 brcm,function = <BCM2835_FSEL_ALT1>;
240 i2c1_gpio2: i2c1_gpio2 {
242 brcm,function = <BCM2835_FSEL_ALT0>;
244 i2c1_gpio44: i2c1_gpio44 {
246 brcm,function = <BCM2835_FSEL_ALT2>;
248 i2c_slave_gpio18: i2c_slave_gpio18 {
249 brcm,pins = <18 19 20 21>;
250 brcm,function = <BCM2835_FSEL_ALT3>;
253 jtag_gpio4: jtag_gpio4 {
254 brcm,pins = <4 5 6 12 13>;
255 brcm,function = <BCM2835_FSEL_ALT4>;
257 jtag_gpio22: jtag_gpio22 {
258 brcm,pins = <22 23 24 25 26 27>;
259 brcm,function = <BCM2835_FSEL_ALT4>;
262 pcm_gpio18: pcm_gpio18 {
263 brcm,pins = <18 19 20 21>;
264 brcm,function = <BCM2835_FSEL_ALT0>;
266 pcm_gpio28: pcm_gpio28 {
267 brcm,pins = <28 29 30 31>;
268 brcm,function = <BCM2835_FSEL_ALT2>;
271 pwm0_gpio12: pwm0_gpio12 {
273 brcm,function = <BCM2835_FSEL_ALT0>;
275 pwm0_gpio18: pwm0_gpio18 {
277 brcm,function = <BCM2835_FSEL_ALT5>;
279 pwm0_gpio40: pwm0_gpio40 {
281 brcm,function = <BCM2835_FSEL_ALT0>;
283 pwm1_gpio13: pwm1_gpio13 {
285 brcm,function = <BCM2835_FSEL_ALT0>;
287 pwm1_gpio19: pwm1_gpio19 {
289 brcm,function = <BCM2835_FSEL_ALT5>;
291 pwm1_gpio41: pwm1_gpio41 {
293 brcm,function = <BCM2835_FSEL_ALT0>;
295 pwm1_gpio45: pwm1_gpio45 {
297 brcm,function = <BCM2835_FSEL_ALT0>;
300 sdhost_gpio48: sdhost_gpio48 {
301 brcm,pins = <48 49 50 51 52 53>;
302 brcm,function = <BCM2835_FSEL_ALT0>;
305 spi0_gpio7: spi0_gpio7 {
306 brcm,pins = <7 8 9 10 11>;
307 brcm,function = <BCM2835_FSEL_ALT0>;
309 spi0_gpio35: spi0_gpio35 {
310 brcm,pins = <35 36 37 38 39>;
311 brcm,function = <BCM2835_FSEL_ALT0>;
313 spi1_gpio16: spi1_gpio16 {
314 brcm,pins = <16 17 18 19 20 21>;
315 brcm,function = <BCM2835_FSEL_ALT4>;
317 spi2_gpio40: spi2_gpio40 {
318 brcm,pins = <40 41 42 43 44 45>;
319 brcm,function = <BCM2835_FSEL_ALT4>;
322 uart0_gpio14: uart0_gpio14 {
324 brcm,function = <BCM2835_FSEL_ALT0>;
326 /* Separate from the uart0_gpio14 group
327 * because it conflicts with spi1_gpio16, and
328 * people often run uart0 on the two pins
329 * without flow control.
331 uart0_ctsrts_gpio16: uart0_ctsrts_gpio16 {
333 brcm,function = <BCM2835_FSEL_ALT3>;
335 uart0_ctsrts_gpio30: uart0_ctsrts_gpio30 {
337 brcm,function = <BCM2835_FSEL_ALT3>;
339 uart0_gpio32: uart0_gpio32 {
341 brcm,function = <BCM2835_FSEL_ALT3>;
343 uart0_gpio36: uart0_gpio36 {
345 brcm,function = <BCM2835_FSEL_ALT2>;
347 uart0_ctsrts_gpio38: uart0_ctsrts_gpio38 {
349 brcm,function = <BCM2835_FSEL_ALT2>;
352 uart1_gpio14: uart1_gpio14 {
354 brcm,function = <BCM2835_FSEL_ALT5>;
356 uart1_ctsrts_gpio16: uart1_ctsrts_gpio16 {
358 brcm,function = <BCM2835_FSEL_ALT5>;
360 uart1_gpio32: uart1_gpio32 {
362 brcm,function = <BCM2835_FSEL_ALT5>;
364 uart1_ctsrts_gpio30: uart1_ctsrts_gpio30 {
366 brcm,function = <BCM2835_FSEL_ALT5>;
368 uart1_gpio40: uart1_gpio40 {
370 brcm,function = <BCM2835_FSEL_ALT5>;
372 uart1_ctsrts_gpio42: uart1_ctsrts_gpio42 {
374 brcm,function = <BCM2835_FSEL_ALT5>;
378 uart0: serial@7e201000 {
379 compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
380 reg = <0x7e201000 0x1000>;
382 clocks = <&clocks BCM2835_CLOCK_UART>,
383 <&clocks BCM2835_CLOCK_VPU>;
384 clock-names = "uartclk", "apb_pclk";
385 arm,primecell-periphid = <0x00241011>;
388 sdhost: mmc@7e202000 {
389 compatible = "brcm,bcm2835-sdhost";
390 reg = <0x7e202000 0x100>;
392 clocks = <&clocks BCM2835_CLOCK_VPU>;
399 compatible = "brcm,bcm2835-i2s";
400 reg = <0x7e203000 0x20>,
405 dma-names = "tx", "rx";
410 compatible = "brcm,bcm2835-spi";
411 reg = <0x7e204000 0x1000>;
413 clocks = <&clocks BCM2835_CLOCK_VPU>;
414 #address-cells = <1>;
420 compatible = "brcm,bcm2835-i2c";
421 reg = <0x7e205000 0x1000>;
423 clocks = <&clocks BCM2835_CLOCK_VPU>;
424 #address-cells = <1>;
429 pixelvalve@7e206000 {
430 compatible = "brcm,bcm2835-pixelvalve0";
431 reg = <0x7e206000 0x100>;
432 interrupts = <2 13>; /* pwa0 */
435 pixelvalve@7e207000 {
436 compatible = "brcm,bcm2835-pixelvalve1";
437 reg = <0x7e207000 0x100>;
438 interrupts = <2 14>; /* pwa1 */
442 compatible = "brcm,bcm2835-dsi0";
443 reg = <0x7e209000 0x78>;
445 #address-cells = <1>;
449 clocks = <&clocks BCM2835_PLLA_DSI0>,
450 <&clocks BCM2835_CLOCK_DSI0E>,
451 <&clocks BCM2835_CLOCK_DSI0P>;
452 clock-names = "phy", "escape", "pixel";
454 clock-output-names = "dsi0_byte",
460 thermal: thermal@7e212000 {
461 compatible = "brcm,bcm2835-thermal";
462 reg = <0x7e212000 0x8>;
463 clocks = <&clocks BCM2835_CLOCK_TSENS>;
464 #thermal-sensor-cells = <0>;
468 aux: aux@0x7e215000 {
469 compatible = "brcm,bcm2835-aux";
471 reg = <0x7e215000 0x8>;
472 clocks = <&clocks BCM2835_CLOCK_VPU>;
475 uart1: serial@7e215040 {
476 compatible = "brcm,bcm2835-aux-uart";
477 reg = <0x7e215040 0x40>;
479 clocks = <&aux BCM2835_AUX_CLOCK_UART>;
484 compatible = "brcm,bcm2835-aux-spi";
485 reg = <0x7e215080 0x40>;
487 clocks = <&aux BCM2835_AUX_CLOCK_SPI1>;
488 #address-cells = <1>;
494 compatible = "brcm,bcm2835-aux-spi";
495 reg = <0x7e2150c0 0x40>;
497 clocks = <&aux BCM2835_AUX_CLOCK_SPI2>;
498 #address-cells = <1>;
504 compatible = "brcm,bcm2835-pwm";
505 reg = <0x7e20c000 0x28>;
506 clocks = <&clocks BCM2835_CLOCK_PWM>;
507 assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
508 assigned-clock-rates = <10000000>;
513 sdhci: sdhci@7e300000 {
514 compatible = "brcm,bcm2835-sdhci";
515 reg = <0x7e300000 0x100>;
517 clocks = <&clocks BCM2835_CLOCK_EMMC>;
522 compatible = "brcm,bcm2835-hvs";
523 reg = <0x7e400000 0x6000>;
528 compatible = "brcm,bcm2835-dsi1";
529 reg = <0x7e700000 0x8c>;
531 #address-cells = <1>;
535 clocks = <&clocks BCM2835_PLLD_DSI1>,
536 <&clocks BCM2835_CLOCK_DSI1E>,
537 <&clocks BCM2835_CLOCK_DSI1P>;
538 clock-names = "phy", "escape", "pixel";
540 clock-output-names = "dsi1_byte",
548 compatible = "brcm,bcm2835-i2c";
549 reg = <0x7e804000 0x1000>;
551 clocks = <&clocks BCM2835_CLOCK_VPU>;
552 #address-cells = <1>;
558 compatible = "brcm,bcm2835-i2c";
559 reg = <0x7e805000 0x1000>;
561 clocks = <&clocks BCM2835_CLOCK_VPU>;
562 #address-cells = <1>;
568 compatible = "brcm,bcm2835-vec";
569 reg = <0x7e806000 0x1000>;
570 clocks = <&clocks BCM2835_CLOCK_VEC>;
575 pixelvalve@7e807000 {
576 compatible = "brcm,bcm2835-pixelvalve2";
577 reg = <0x7e807000 0x100>;
578 interrupts = <2 10>; /* pixelvalve */
581 hdmi: hdmi@7e902000 {
582 compatible = "brcm,bcm2835-hdmi";
583 reg = <0x7e902000 0x600>,
585 interrupts = <2 8>, <2 9>;
587 clocks = <&clocks BCM2835_PLLH_PIX>,
588 <&clocks BCM2835_CLOCK_HSM>;
589 clock-names = "pixel", "hdmi";
591 dma-names = "audio-rx";
596 compatible = "brcm,bcm2835-usb";
597 reg = <0x7e980000 0x10000>;
599 #address-cells = <1>;
604 phy-names = "usb2-phy";
608 compatible = "brcm,bcm2835-v3d";
609 reg = <0x7ec00000 0x1000>;
614 compatible = "brcm,bcm2835-vc4";
619 compatible = "simple-bus";
620 #address-cells = <1>;
623 /* The oscillator is the root of the clock tree. */
625 compatible = "fixed-clock";
628 clock-output-names = "osc";
629 clock-frequency = <19200000>;
633 compatible = "fixed-clock";
636 clock-output-names = "otg";
637 clock-frequency = <480000000>;
642 compatible = "usb-nop-xceiv";