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 /* This include file covers the common peripherals and configuration between
7 * bcm2835 and bcm2836 implementations, leaving the CPU configuration to
8 * bcm2835.dtsi and bcm2836.dtsi.
12 compatible = "brcm,bcm2835";
14 interrupt-parent = <&intc>;
19 bootargs = "earlyprintk console=ttyAMA0";
23 compatible = "simple-bus";
28 compatible = "brcm,bcm2835-system-timer";
29 reg = <0x7e003000 0x1000>;
30 interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
31 /* This could be a reference to BCM2835_CLOCK_TIMER,
32 * but we don't have the driver using the common clock
35 clock-frequency = <1000000>;
39 compatible = "brcm,bcm2835-dma";
40 reg = <0x7e007000 0xf00>;
52 /* dma channel 11-14 share one irq */
57 /* unused shared irq for all channels */
59 interrupt-names = "dma0",
76 brcm,dma-channel-mask = <0x7f35>;
79 intc: interrupt-controller@7e00b200 {
80 compatible = "brcm,bcm2835-armctrl-ic";
81 reg = <0x7e00b200 0x200>;
83 #interrupt-cells = <2>;
87 compatible = "brcm,bcm2835-pm-wdt";
88 reg = <0x7e100000 0x28>;
91 clocks: cprman@7e101000 {
92 compatible = "brcm,bcm2835-cprman";
94 reg = <0x7e101000 0x2000>;
96 /* CPRMAN derives everything from the platform's
103 compatible = "brcm,bcm2835-rng";
104 reg = <0x7e104000 0x10>;
107 mailbox: mailbox@7e00b880 {
108 compatible = "brcm,bcm2835-mbox";
109 reg = <0x7e00b880 0x40>;
114 gpio: gpio@7e200000 {
115 compatible = "brcm,bcm2835-gpio";
116 reg = <0x7e200000 0xb4>;
118 * The GPIO IP block is designed for 3 banks of GPIOs.
119 * Each bank has a GPIO interrupt for itself.
120 * There is an overall "any bank" interrupt.
121 * In order, these are GIC interrupts 17, 18, 19, 20.
122 * Since the BCM2835 only has 2 banks, the 2nd bank
123 * interrupt output appears to be mirrored onto the
124 * 3rd bank's interrupt signal.
125 * So, a bank0 interrupt shows up on 17, 20, and
126 * a bank1 interrupt shows up on 18, 19, 20!
128 interrupts = <2 17>, <2 18>, <2 19>, <2 20>;
133 interrupt-controller;
134 #interrupt-cells = <2>;
136 /* Defines pin muxing groups according to
137 * BCM2835-ARM-Peripherals.pdf page 102.
139 * While each pin can have its mux selected
140 * for various functions individually, some
141 * groups only make sense to switch to a
142 * particular function together.
144 dpi_gpio0: dpi_gpio0 {
145 brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
146 12 13 14 15 16 17 18 19
147 20 21 22 23 24 25 26 27>;
148 brcm,function = <BCM2835_FSEL_ALT2>;
150 emmc_gpio22: emmc_gpio22 {
151 brcm,pins = <22 23 24 25 26 27>;
152 brcm,function = <BCM2835_FSEL_ALT3>;
154 emmc_gpio34: emmc_gpio34 {
155 brcm,pins = <34 35 36 37 38 39>;
156 brcm,function = <BCM2835_FSEL_ALT3>;
157 brcm,pull = <BCM2835_PUD_OFF
164 emmc_gpio48: emmc_gpio48 {
165 brcm,pins = <48 49 50 51 52 53>;
166 brcm,function = <BCM2835_FSEL_ALT3>;
169 gpclk0_gpio4: gpclk0_gpio4 {
171 brcm,function = <BCM2835_FSEL_ALT0>;
173 gpclk1_gpio5: gpclk1_gpio5 {
175 brcm,function = <BCM2835_FSEL_ALT0>;
177 gpclk1_gpio42: gpclk1_gpio42 {
179 brcm,function = <BCM2835_FSEL_ALT0>;
181 gpclk1_gpio44: gpclk1_gpio44 {
183 brcm,function = <BCM2835_FSEL_ALT0>;
185 gpclk2_gpio6: gpclk2_gpio6 {
187 brcm,function = <BCM2835_FSEL_ALT0>;
189 gpclk2_gpio43: gpclk2_gpio43 {
191 brcm,function = <BCM2835_FSEL_ALT0>;
194 i2c0_gpio0: i2c0_gpio0 {
196 brcm,function = <BCM2835_FSEL_ALT0>;
198 i2c0_gpio32: i2c0_gpio32 {
200 brcm,function = <BCM2835_FSEL_ALT0>;
202 i2c0_gpio44: i2c0_gpio44 {
204 brcm,function = <BCM2835_FSEL_ALT1>;
206 i2c1_gpio2: i2c1_gpio2 {
208 brcm,function = <BCM2835_FSEL_ALT0>;
210 i2c1_gpio44: i2c1_gpio44 {
212 brcm,function = <BCM2835_FSEL_ALT2>;
214 i2c_slave_gpio18: i2c_slave_gpio18 {
215 brcm,pins = <18 19 20 21>;
216 brcm,function = <BCM2835_FSEL_ALT3>;
219 jtag_gpio4: jtag_gpio4 {
220 brcm,pins = <4 5 6 12 13>;
221 brcm,function = <BCM2835_FSEL_ALT4>;
223 jtag_gpio22: jtag_gpio22 {
224 brcm,pins = <22 23 24 25 26 27>;
225 brcm,function = <BCM2835_FSEL_ALT4>;
228 pcm_gpio18: pcm_gpio18 {
229 brcm,pins = <18 19 20 21>;
230 brcm,function = <BCM2835_FSEL_ALT0>;
232 pcm_gpio28: pcm_gpio28 {
233 brcm,pins = <28 29 30 31>;
234 brcm,function = <BCM2835_FSEL_ALT2>;
237 pwm0_gpio12: pwm0_gpio12 {
239 brcm,function = <BCM2835_FSEL_ALT0>;
241 pwm0_gpio18: pwm0_gpio18 {
243 brcm,function = <BCM2835_FSEL_ALT5>;
245 pwm0_gpio40: pwm0_gpio40 {
247 brcm,function = <BCM2835_FSEL_ALT0>;
249 pwm1_gpio13: pwm1_gpio13 {
251 brcm,function = <BCM2835_FSEL_ALT0>;
253 pwm1_gpio19: pwm1_gpio19 {
255 brcm,function = <BCM2835_FSEL_ALT5>;
257 pwm1_gpio41: pwm1_gpio41 {
259 brcm,function = <BCM2835_FSEL_ALT0>;
261 pwm1_gpio45: pwm1_gpio45 {
263 brcm,function = <BCM2835_FSEL_ALT0>;
266 sdhost_gpio48: sdhost_gpio48 {
267 brcm,pins = <48 49 50 51 52 53>;
268 brcm,function = <BCM2835_FSEL_ALT0>;
271 spi0_gpio7: spi0_gpio7 {
272 brcm,pins = <7 8 9 10 11>;
273 brcm,function = <BCM2835_FSEL_ALT0>;
275 spi0_gpio35: spi0_gpio35 {
276 brcm,pins = <35 36 37 38 39>;
277 brcm,function = <BCM2835_FSEL_ALT0>;
279 spi1_gpio16: spi1_gpio16 {
280 brcm,pins = <16 17 18 19 20 21>;
281 brcm,function = <BCM2835_FSEL_ALT4>;
283 spi2_gpio40: spi2_gpio40 {
284 brcm,pins = <40 41 42 43 44 45>;
285 brcm,function = <BCM2835_FSEL_ALT4>;
288 uart0_gpio14: uart0_gpio14 {
290 brcm,function = <BCM2835_FSEL_ALT0>;
292 /* Separate from the uart0_gpio14 group
293 * because it conflicts with spi1_gpio16, and
294 * people often run uart0 on the two pins
295 * without flow contrl.
297 uart0_ctsrts_gpio16: uart0_ctsrts_gpio16 {
299 brcm,function = <BCM2835_FSEL_ALT3>;
301 uart0_gpio30: uart0_gpio30 {
303 brcm,function = <BCM2835_FSEL_ALT3>;
305 uart0_ctsrts_gpio32: uart0_ctsrts_gpio32 {
307 brcm,function = <BCM2835_FSEL_ALT3>;
310 uart1_gpio14: uart1_gpio14 {
312 brcm,function = <BCM2835_FSEL_ALT5>;
314 uart1_ctsrts_gpio16: uart1_ctsrts_gpio16 {
316 brcm,function = <BCM2835_FSEL_ALT5>;
318 uart1_gpio32: uart1_gpio32 {
320 brcm,function = <BCM2835_FSEL_ALT5>;
322 uart1_ctsrts_gpio30: uart1_ctsrts_gpio30 {
324 brcm,function = <BCM2835_FSEL_ALT5>;
326 uart1_gpio36: uart1_gpio36 {
327 brcm,pins = <36 37 38 39>;
328 brcm,function = <BCM2835_FSEL_ALT2>;
330 uart1_gpio40: uart1_gpio40 {
332 brcm,function = <BCM2835_FSEL_ALT5>;
334 uart1_ctsrts_gpio42: uart1_ctsrts_gpio42 {
336 brcm,function = <BCM2835_FSEL_ALT5>;
340 uart0: serial@7e201000 {
341 compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
342 reg = <0x7e201000 0x1000>;
344 clocks = <&clocks BCM2835_CLOCK_UART>,
345 <&clocks BCM2835_CLOCK_VPU>;
346 clock-names = "uartclk", "apb_pclk";
347 arm,primecell-periphid = <0x00241011>;
351 compatible = "brcm,bcm2835-i2s";
352 reg = <0x7e203000 0x20>,
357 dma-names = "tx", "rx";
362 compatible = "brcm,bcm2835-spi";
363 reg = <0x7e204000 0x1000>;
365 clocks = <&clocks BCM2835_CLOCK_VPU>;
366 #address-cells = <1>;
372 compatible = "brcm,bcm2835-i2c";
373 reg = <0x7e205000 0x1000>;
375 clocks = <&clocks BCM2835_CLOCK_VPU>;
376 #address-cells = <1>;
381 pixelvalve@7e206000 {
382 compatible = "brcm,bcm2835-pixelvalve0";
383 reg = <0x7e206000 0x100>;
384 interrupts = <2 13>; /* pwa0 */
387 pixelvalve@7e207000 {
388 compatible = "brcm,bcm2835-pixelvalve1";
389 reg = <0x7e207000 0x100>;
390 interrupts = <2 14>; /* pwa1 */
393 thermal: thermal@7e212000 {
394 compatible = "brcm,bcm2835-thermal";
395 reg = <0x7e212000 0x8>;
396 clocks = <&clocks BCM2835_CLOCK_TSENS>;
400 aux: aux@0x7e215000 {
401 compatible = "brcm,bcm2835-aux";
403 reg = <0x7e215000 0x8>;
404 clocks = <&clocks BCM2835_CLOCK_VPU>;
407 uart1: serial@7e215040 {
408 compatible = "brcm,bcm2835-aux-uart";
409 reg = <0x7e215040 0x40>;
411 clocks = <&aux BCM2835_AUX_CLOCK_UART>;
416 compatible = "brcm,bcm2835-aux-spi";
417 reg = <0x7e215080 0x40>;
419 clocks = <&aux BCM2835_AUX_CLOCK_SPI1>;
420 #address-cells = <1>;
426 compatible = "brcm,bcm2835-aux-spi";
427 reg = <0x7e2150c0 0x40>;
429 clocks = <&aux BCM2835_AUX_CLOCK_SPI2>;
430 #address-cells = <1>;
436 compatible = "brcm,bcm2835-pwm";
437 reg = <0x7e20c000 0x28>;
438 clocks = <&clocks BCM2835_CLOCK_PWM>;
439 assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
440 assigned-clock-rates = <10000000>;
445 sdhci: sdhci@7e300000 {
446 compatible = "brcm,bcm2835-sdhci";
447 reg = <0x7e300000 0x100>;
449 clocks = <&clocks BCM2835_CLOCK_EMMC>;
454 compatible = "brcm,bcm2835-hvs";
455 reg = <0x7e400000 0x6000>;
460 compatible = "brcm,bcm2835-i2c";
461 reg = <0x7e804000 0x1000>;
463 clocks = <&clocks BCM2835_CLOCK_VPU>;
464 #address-cells = <1>;
470 compatible = "brcm,bcm2835-i2c";
471 reg = <0x7e805000 0x1000>;
473 clocks = <&clocks BCM2835_CLOCK_VPU>;
474 #address-cells = <1>;
480 compatible = "brcm,bcm2835-vec";
481 reg = <0x7e806000 0x1000>;
482 clocks = <&clocks BCM2835_CLOCK_VEC>;
487 pixelvalve@7e807000 {
488 compatible = "brcm,bcm2835-pixelvalve2";
489 reg = <0x7e807000 0x100>;
490 interrupts = <2 10>; /* pixelvalve */
493 hdmi: hdmi@7e902000 {
494 compatible = "brcm,bcm2835-hdmi";
495 reg = <0x7e902000 0x600>,
497 interrupts = <2 8>, <2 9>;
499 clocks = <&clocks BCM2835_PLLH_PIX>,
500 <&clocks BCM2835_CLOCK_HSM>;
501 clock-names = "pixel", "hdmi";
506 compatible = "brcm,bcm2835-usb";
507 reg = <0x7e980000 0x10000>;
509 #address-cells = <1>;
516 compatible = "brcm,bcm2835-v3d";
517 reg = <0x7ec00000 0x1000>;
522 compatible = "brcm,bcm2835-vc4";
527 compatible = "simple-bus";
528 #address-cells = <1>;
531 /* The oscillator is the root of the clock tree. */
533 compatible = "fixed-clock";
536 clock-output-names = "osc";
537 clock-frequency = <19200000>;
541 compatible = "fixed-clock";
544 clock-output-names = "otg";
545 clock-frequency = <480000000>;