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";
30 stdout-path = "serial0:115200n8";
34 cpu_thermal: cpu-thermal {
35 polling-delay-passive = <0>;
36 polling-delay = <1000>;
40 temperature = <90000>;
52 compatible = "simple-bus";
56 system_timer: timer@7e003000 {
57 compatible = "brcm,bcm2835-system-timer";
58 reg = <0x7e003000 0x1000>;
59 interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
60 /* This could be a reference to BCM2835_CLOCK_TIMER,
61 * but we don't have the driver using the common clock
64 clock-frequency = <1000000>;
68 compatible = "brcm,bcm2835-txp";
69 reg = <0x7e004000 0x20>;
73 clocks: cprman@7e101000 {
74 compatible = "brcm,bcm2835-cprman";
76 reg = <0x7e101000 0x2000>;
78 /* CPRMAN derives almost everything from the
79 * platform's oscillator. However, the DSI
80 * pixel clocks come from the DSI analog PHY.
83 <&dsi0 0>, <&dsi0 1>, <&dsi0 2>,
84 <&dsi1 0>, <&dsi1 1>, <&dsi1 2>;
88 compatible = "brcm,bcm2835-rng";
89 reg = <0x7e104000 0x10>;
93 mailbox: mailbox@7e00b880 {
94 compatible = "brcm,bcm2835-mbox";
95 reg = <0x7e00b880 0x40>;
100 gpio: gpio@7e200000 {
101 compatible = "brcm,bcm2835-gpio";
102 reg = <0x7e200000 0xb4>;
104 * The GPIO IP block is designed for 3 banks of GPIOs.
105 * Each bank has a GPIO interrupt for itself.
106 * There is an overall "any bank" interrupt.
107 * In order, these are GIC interrupts 17, 18, 19, 20.
108 * Since the BCM2835 only has 2 banks, the 2nd bank
109 * interrupt output appears to be mirrored onto the
110 * 3rd bank's interrupt signal.
111 * So, a bank0 interrupt shows up on 17, 20, and
112 * a bank1 interrupt shows up on 18, 19, 20!
114 interrupts = <2 17>, <2 18>, <2 19>, <2 20>;
119 interrupt-controller;
120 #interrupt-cells = <2>;
122 /* Defines common pin muxing groups
124 * While each pin can have its mux selected
125 * for various functions individually, some
126 * groups only make sense to switch to a
127 * particular function together.
129 dpi_gpio0: dpi_gpio0 {
130 brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
131 12 13 14 15 16 17 18 19
132 20 21 22 23 24 25 26 27>;
133 brcm,function = <BCM2835_FSEL_ALT2>;
135 emmc_gpio22: emmc_gpio22 {
136 brcm,pins = <22 23 24 25 26 27>;
137 brcm,function = <BCM2835_FSEL_ALT3>;
139 emmc_gpio34: emmc_gpio34 {
140 brcm,pins = <34 35 36 37 38 39>;
141 brcm,function = <BCM2835_FSEL_ALT3>;
142 brcm,pull = <BCM2835_PUD_OFF
149 emmc_gpio48: emmc_gpio48 {
150 brcm,pins = <48 49 50 51 52 53>;
151 brcm,function = <BCM2835_FSEL_ALT3>;
154 gpclk0_gpio4: gpclk0_gpio4 {
156 brcm,function = <BCM2835_FSEL_ALT0>;
158 gpclk1_gpio5: gpclk1_gpio5 {
160 brcm,function = <BCM2835_FSEL_ALT0>;
162 gpclk1_gpio42: gpclk1_gpio42 {
164 brcm,function = <BCM2835_FSEL_ALT0>;
166 gpclk1_gpio44: gpclk1_gpio44 {
168 brcm,function = <BCM2835_FSEL_ALT0>;
170 gpclk2_gpio6: gpclk2_gpio6 {
172 brcm,function = <BCM2835_FSEL_ALT0>;
174 gpclk2_gpio43: gpclk2_gpio43 {
176 brcm,function = <BCM2835_FSEL_ALT0>;
177 brcm,pull = <BCM2835_PUD_OFF>;
180 i2c0_gpio0: i2c0_gpio0 {
182 brcm,function = <BCM2835_FSEL_ALT0>;
184 i2c0_gpio28: i2c0_gpio28 {
186 brcm,function = <BCM2835_FSEL_ALT0>;
188 i2c0_gpio44: i2c0_gpio44 {
190 brcm,function = <BCM2835_FSEL_ALT1>;
192 i2c1_gpio2: i2c1_gpio2 {
194 brcm,function = <BCM2835_FSEL_ALT0>;
196 i2c1_gpio44: i2c1_gpio44 {
198 brcm,function = <BCM2835_FSEL_ALT2>;
201 jtag_gpio22: jtag_gpio22 {
202 brcm,pins = <22 23 24 25 26 27>;
203 brcm,function = <BCM2835_FSEL_ALT4>;
206 pcm_gpio18: pcm_gpio18 {
207 brcm,pins = <18 19 20 21>;
208 brcm,function = <BCM2835_FSEL_ALT0>;
210 pcm_gpio28: pcm_gpio28 {
211 brcm,pins = <28 29 30 31>;
212 brcm,function = <BCM2835_FSEL_ALT2>;
215 sdhost_gpio48: sdhost_gpio48 {
216 brcm,pins = <48 49 50 51 52 53>;
217 brcm,function = <BCM2835_FSEL_ALT0>;
220 spi0_gpio7: spi0_gpio7 {
221 brcm,pins = <7 8 9 10 11>;
222 brcm,function = <BCM2835_FSEL_ALT0>;
224 spi0_gpio35: spi0_gpio35 {
225 brcm,pins = <35 36 37 38 39>;
226 brcm,function = <BCM2835_FSEL_ALT0>;
228 spi1_gpio16: spi1_gpio16 {
229 brcm,pins = <16 17 18 19 20 21>;
230 brcm,function = <BCM2835_FSEL_ALT4>;
232 spi2_gpio40: spi2_gpio40 {
233 brcm,pins = <40 41 42 43 44 45>;
234 brcm,function = <BCM2835_FSEL_ALT4>;
237 uart0_gpio14: uart0_gpio14 {
239 brcm,function = <BCM2835_FSEL_ALT0>;
241 /* Separate from the uart0_gpio14 group
242 * because it conflicts with spi1_gpio16, and
243 * people often run uart0 on the two pins
244 * without flow control.
246 uart0_ctsrts_gpio16: uart0_ctsrts_gpio16 {
248 brcm,function = <BCM2835_FSEL_ALT3>;
250 uart0_ctsrts_gpio30: uart0_ctsrts_gpio30 {
252 brcm,function = <BCM2835_FSEL_ALT3>;
253 brcm,pull = <BCM2835_PUD_UP BCM2835_PUD_OFF>;
255 uart0_gpio32: uart0_gpio32 {
257 brcm,function = <BCM2835_FSEL_ALT3>;
258 brcm,pull = <BCM2835_PUD_OFF BCM2835_PUD_UP>;
260 uart0_gpio36: uart0_gpio36 {
262 brcm,function = <BCM2835_FSEL_ALT2>;
264 uart0_ctsrts_gpio38: uart0_ctsrts_gpio38 {
266 brcm,function = <BCM2835_FSEL_ALT2>;
269 uart1_gpio14: uart1_gpio14 {
271 brcm,function = <BCM2835_FSEL_ALT5>;
273 uart1_ctsrts_gpio16: uart1_ctsrts_gpio16 {
275 brcm,function = <BCM2835_FSEL_ALT5>;
277 uart1_gpio32: uart1_gpio32 {
279 brcm,function = <BCM2835_FSEL_ALT5>;
281 uart1_ctsrts_gpio30: uart1_ctsrts_gpio30 {
283 brcm,function = <BCM2835_FSEL_ALT5>;
285 uart1_gpio40: uart1_gpio40 {
287 brcm,function = <BCM2835_FSEL_ALT5>;
289 uart1_ctsrts_gpio42: uart1_ctsrts_gpio42 {
291 brcm,function = <BCM2835_FSEL_ALT5>;
295 uart0: serial@7e201000 {
296 compatible = "arm,pl011", "arm,primecell";
297 reg = <0x7e201000 0x200>;
299 clocks = <&clocks BCM2835_CLOCK_UART>,
300 <&clocks BCM2835_CLOCK_VPU>;
301 clock-names = "uartclk", "apb_pclk";
302 arm,primecell-periphid = <0x00241011>;
305 sdhost: mmc@7e202000 {
306 compatible = "brcm,bcm2835-sdhost";
307 reg = <0x7e202000 0x100>;
309 clocks = <&clocks BCM2835_CLOCK_VPU>;
314 compatible = "brcm,bcm2835-i2s";
315 reg = <0x7e203000 0x24>;
316 clocks = <&clocks BCM2835_CLOCK_PCM>;
321 compatible = "brcm,bcm2835-spi";
322 reg = <0x7e204000 0x200>;
324 clocks = <&clocks BCM2835_CLOCK_VPU>;
325 #address-cells = <1>;
331 compatible = "brcm,bcm2835-i2c";
332 reg = <0x7e205000 0x200>;
334 clocks = <&clocks BCM2835_CLOCK_VPU>;
335 #address-cells = <1>;
341 compatible = "brcm,bcm2835-dpi";
342 reg = <0x7e208000 0x8c>;
343 clocks = <&clocks BCM2835_CLOCK_VPU>,
344 <&clocks BCM2835_CLOCK_DPI>;
345 clock-names = "core", "pixel";
346 #address-cells = <1>;
352 compatible = "brcm,bcm2835-dsi0";
353 reg = <0x7e209000 0x78>;
355 #address-cells = <1>;
359 clocks = <&clocks BCM2835_PLLA_DSI0>,
360 <&clocks BCM2835_CLOCK_DSI0E>,
361 <&clocks BCM2835_CLOCK_DSI0P>;
362 clock-names = "phy", "escape", "pixel";
364 clock-output-names = "dsi0_byte",
371 compatible = "brcm,bcm2835-aux";
373 reg = <0x7e215000 0x8>;
374 clocks = <&clocks BCM2835_CLOCK_VPU>;
377 uart1: serial@7e215040 {
378 compatible = "brcm,bcm2835-aux-uart";
379 reg = <0x7e215040 0x40>;
381 clocks = <&aux BCM2835_AUX_CLOCK_UART>;
386 compatible = "brcm,bcm2835-aux-spi";
387 reg = <0x7e215080 0x40>;
389 clocks = <&aux BCM2835_AUX_CLOCK_SPI1>;
390 #address-cells = <1>;
396 compatible = "brcm,bcm2835-aux-spi";
397 reg = <0x7e2150c0 0x40>;
399 clocks = <&aux BCM2835_AUX_CLOCK_SPI2>;
400 #address-cells = <1>;
406 compatible = "brcm,bcm2835-pwm";
407 reg = <0x7e20c000 0x28>;
408 clocks = <&clocks BCM2835_CLOCK_PWM>;
409 assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
410 assigned-clock-rates = <10000000>;
415 sdhci: sdhci@7e300000 {
416 compatible = "brcm,bcm2835-sdhci";
417 reg = <0x7e300000 0x100>;
419 clocks = <&clocks BCM2835_CLOCK_EMMC>;
424 compatible = "brcm,bcm2835-hvs";
425 reg = <0x7e400000 0x6000>;
430 compatible = "brcm,bcm2835-dsi1";
431 reg = <0x7e700000 0x8c>;
433 #address-cells = <1>;
437 clocks = <&clocks BCM2835_PLLD_DSI1>,
438 <&clocks BCM2835_CLOCK_DSI1E>,
439 <&clocks BCM2835_CLOCK_DSI1P>;
440 clock-names = "phy", "escape", "pixel";
442 clock-output-names = "dsi1_byte",
450 compatible = "brcm,bcm2835-i2c";
451 reg = <0x7e804000 0x1000>;
453 clocks = <&clocks BCM2835_CLOCK_VPU>;
454 #address-cells = <1>;
460 compatible = "brcm,bcm2835-vec";
461 reg = <0x7e806000 0x1000>;
462 clocks = <&clocks BCM2835_CLOCK_VEC>;
468 compatible = "brcm,bcm2835-usb";
469 reg = <0x7e980000 0x10000>;
471 #address-cells = <1>;
476 phy-names = "usb2-phy";
481 /* The oscillator is the root of the clock tree. */
483 compatible = "fixed-clock";
485 clock-output-names = "osc";
486 clock-frequency = <19200000>;
490 compatible = "fixed-clock";
492 clock-output-names = "otg";
493 clock-frequency = <480000000>;
498 compatible = "usb-nop-xceiv";