Stefan Wahren | 1209111 | 2015-01-29 18:10:50 +0000 | [diff] [blame] | 1 | #include <dt-bindings/pinctrl/bcm2835.h> |
| 2 | #include "skeleton.dtsi" |
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 3 | |
| 4 | / { |
| 5 | compatible = "brcm,bcm2835"; |
| 6 | model = "BCM2835"; |
Simon Arlott | 89214f0 | 2012-09-12 19:57:26 -0600 | [diff] [blame] | 7 | interrupt-parent = <&intc>; |
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 8 | |
| 9 | chosen { |
Simon Arlott | 407f9be | 2012-09-10 23:29:17 -0600 | [diff] [blame] | 10 | bootargs = "earlyprintk console=ttyAMA0"; |
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 11 | }; |
| 12 | |
| 13 | soc { |
| 14 | compatible = "simple-bus"; |
| 15 | #address-cells = <1>; |
| 16 | #size-cells = <1>; |
| 17 | ranges = <0x7e000000 0x20000000 0x02000000>; |
Eric Anholt | 1215baa | 2015-05-05 13:10:11 -0700 | [diff] [blame^] | 18 | dma-ranges = <0x40000000 0x00000000 0x20000000>; |
Simon Arlott | 89214f0 | 2012-09-12 19:57:26 -0600 | [diff] [blame] | 19 | |
Stephen Warren | 25b2f1b | 2014-02-11 21:48:47 -0700 | [diff] [blame] | 20 | timer@7e003000 { |
Simon Arlott | ee4af56 | 2012-09-10 22:38:35 -0600 | [diff] [blame] | 21 | compatible = "brcm,bcm2835-system-timer"; |
| 22 | reg = <0x7e003000 0x1000>; |
| 23 | interrupts = <1 0>, <1 1>, <1 2>, <1 3>; |
| 24 | clock-frequency = <1000000>; |
| 25 | }; |
| 26 | |
Florian Meier | 8907233 | 2014-01-13 12:11:43 +0100 | [diff] [blame] | 27 | dma: dma@7e007000 { |
| 28 | compatible = "brcm,bcm2835-dma"; |
| 29 | reg = <0x7e007000 0xf00>; |
| 30 | interrupts = <1 16>, |
| 31 | <1 17>, |
| 32 | <1 18>, |
| 33 | <1 19>, |
| 34 | <1 20>, |
| 35 | <1 21>, |
| 36 | <1 22>, |
| 37 | <1 23>, |
| 38 | <1 24>, |
| 39 | <1 25>, |
| 40 | <1 26>, |
| 41 | <1 27>, |
| 42 | <1 28>; |
| 43 | |
| 44 | #dma-cells = <1>; |
| 45 | brcm,dma-channel-mask = <0x7f35>; |
| 46 | }; |
| 47 | |
Stephen Warren | 25b2f1b | 2014-02-11 21:48:47 -0700 | [diff] [blame] | 48 | intc: interrupt-controller@7e00b200 { |
Simon Arlott | 89214f0 | 2012-09-12 19:57:26 -0600 | [diff] [blame] | 49 | compatible = "brcm,bcm2835-armctrl-ic"; |
| 50 | reg = <0x7e00b200 0x200>; |
| 51 | interrupt-controller; |
| 52 | #interrupt-cells = <2>; |
| 53 | }; |
Simon Arlott | 407f9be | 2012-09-10 23:29:17 -0600 | [diff] [blame] | 54 | |
Stephen Warren | 25b2f1b | 2014-02-11 21:48:47 -0700 | [diff] [blame] | 55 | watchdog@7e100000 { |
Stephen Warren | d0f1c7f | 2012-09-15 22:18:10 -0600 | [diff] [blame] | 56 | compatible = "brcm,bcm2835-pm-wdt"; |
| 57 | reg = <0x7e100000 0x28>; |
| 58 | }; |
| 59 | |
Stephen Warren | 25b2f1b | 2014-02-11 21:48:47 -0700 | [diff] [blame] | 60 | rng@7e104000 { |
Lubomir Rintel | a1bf708 | 2013-03-28 07:12:04 +0100 | [diff] [blame] | 61 | compatible = "brcm,bcm2835-rng"; |
| 62 | reg = <0x7e104000 0x10>; |
| 63 | }; |
| 64 | |
Eric Anholt | 05b682b | 2015-05-05 13:27:46 -0700 | [diff] [blame] | 65 | mailbox: mailbox@7e00b800 { |
| 66 | compatible = "brcm,bcm2835-mbox"; |
| 67 | reg = <0x7e00b880 0x40>; |
| 68 | interrupts = <0 1>; |
| 69 | #mbox-cells = <0>; |
| 70 | }; |
| 71 | |
Stephen Warren | 25b2f1b | 2014-02-11 21:48:47 -0700 | [diff] [blame] | 72 | gpio: gpio@7e200000 { |
Stephen Warren | 805504a | 2012-09-27 21:54:21 -0600 | [diff] [blame] | 73 | compatible = "brcm,bcm2835-gpio"; |
| 74 | reg = <0x7e200000 0xb4>; |
| 75 | /* |
| 76 | * The GPIO IP block is designed for 3 banks of GPIOs. |
| 77 | * Each bank has a GPIO interrupt for itself. |
| 78 | * There is an overall "any bank" interrupt. |
| 79 | * In order, these are GIC interrupts 17, 18, 19, 20. |
| 80 | * Since the BCM2835 only has 2 banks, the 2nd bank |
| 81 | * interrupt output appears to be mirrored onto the |
| 82 | * 3rd bank's interrupt signal. |
| 83 | * So, a bank0 interrupt shows up on 17, 20, and |
| 84 | * a bank1 interrupt shows up on 18, 19, 20! |
| 85 | */ |
| 86 | interrupts = <2 17>, <2 18>, <2 19>, <2 20>; |
| 87 | |
| 88 | gpio-controller; |
| 89 | #gpio-cells = <2>; |
| 90 | |
| 91 | interrupt-controller; |
| 92 | #interrupt-cells = <2>; |
| 93 | }; |
Stephen Warren | 5186bf2 | 2012-12-24 21:58:56 -0700 | [diff] [blame] | 94 | |
Stephen Warren | 25b2f1b | 2014-02-11 21:48:47 -0700 | [diff] [blame] | 95 | uart@7e201000 { |
Stephen Warren | ef3c690 | 2014-02-11 21:44:35 -0700 | [diff] [blame] | 96 | compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell"; |
| 97 | reg = <0x7e201000 0x1000>; |
| 98 | interrupts = <2 25>; |
| 99 | clock-frequency = <3000000>; |
| 100 | arm,primecell-periphid = <0x00241011>; |
| 101 | }; |
| 102 | |
Florian Meier | 9511cc4d | 2014-01-13 12:16:40 +0100 | [diff] [blame] | 103 | i2s: i2s@7e203000 { |
| 104 | compatible = "brcm,bcm2835-i2s"; |
| 105 | reg = <0x7e203000 0x20>, |
| 106 | <0x7e101098 0x02>; |
| 107 | |
| 108 | dmas = <&dma 2>, |
| 109 | <&dma 3>; |
| 110 | dma-names = "tx", "rx"; |
Mark Brown | 667bbd5 | 2014-09-16 19:51:36 -0600 | [diff] [blame] | 111 | status = "disabled"; |
Florian Meier | 9511cc4d | 2014-01-13 12:16:40 +0100 | [diff] [blame] | 112 | }; |
| 113 | |
Stephen Warren | 25b2f1b | 2014-02-11 21:48:47 -0700 | [diff] [blame] | 114 | spi: spi@7e204000 { |
Stephen Warren | 6ce5f02 | 2013-02-19 21:39:58 -0700 | [diff] [blame] | 115 | compatible = "brcm,bcm2835-spi"; |
| 116 | reg = <0x7e204000 0x1000>; |
| 117 | interrupts = <2 22>; |
| 118 | clocks = <&clk_spi>; |
| 119 | #address-cells = <1>; |
| 120 | #size-cells = <0>; |
| 121 | status = "disabled"; |
| 122 | }; |
| 123 | |
Baruch Siach | 64146f2 | 2015-03-18 11:00:22 +0200 | [diff] [blame] | 124 | i2c0: i2c@7e205000 { |
Stephen Warren | 232fed4 | 2012-12-31 23:26:45 -0700 | [diff] [blame] | 125 | compatible = "brcm,bcm2835-i2c"; |
| 126 | reg = <0x7e205000 0x1000>; |
| 127 | interrupts = <2 21>; |
| 128 | clocks = <&clk_i2c>; |
Stephen Warren | a31ab44 | 2013-11-25 20:35:42 -0700 | [diff] [blame] | 129 | #address-cells = <1>; |
| 130 | #size-cells = <0>; |
Stephen Warren | 232fed4 | 2012-12-31 23:26:45 -0700 | [diff] [blame] | 131 | status = "disabled"; |
| 132 | }; |
| 133 | |
Stephen Warren | 25b2f1b | 2014-02-11 21:48:47 -0700 | [diff] [blame] | 134 | sdhci: sdhci@7e300000 { |
Stephen Warren | ef3c690 | 2014-02-11 21:44:35 -0700 | [diff] [blame] | 135 | compatible = "brcm,bcm2835-sdhci"; |
| 136 | reg = <0x7e300000 0x100>; |
| 137 | interrupts = <2 30>; |
| 138 | clocks = <&clk_mmc>; |
| 139 | status = "disabled"; |
| 140 | }; |
| 141 | |
Stephen Warren | 25b2f1b | 2014-02-11 21:48:47 -0700 | [diff] [blame] | 142 | i2c1: i2c@7e804000 { |
Stephen Warren | 232fed4 | 2012-12-31 23:26:45 -0700 | [diff] [blame] | 143 | compatible = "brcm,bcm2835-i2c"; |
| 144 | reg = <0x7e804000 0x1000>; |
| 145 | interrupts = <2 21>; |
| 146 | clocks = <&clk_i2c>; |
Stephen Warren | a31ab44 | 2013-11-25 20:35:42 -0700 | [diff] [blame] | 147 | #address-cells = <1>; |
| 148 | #size-cells = <0>; |
Stephen Warren | 232fed4 | 2012-12-31 23:26:45 -0700 | [diff] [blame] | 149 | status = "disabled"; |
| 150 | }; |
| 151 | |
Stephen Warren | 25b2f1b | 2014-02-11 21:48:47 -0700 | [diff] [blame] | 152 | usb@7e980000 { |
Stephen Warren | 5631e7f | 2013-12-26 19:43:10 -0700 | [diff] [blame] | 153 | compatible = "brcm,bcm2835-usb"; |
| 154 | reg = <0x7e980000 0x10000>; |
| 155 | interrupts = <1 9>; |
| 156 | }; |
Vince Weaver | 14ac652 | 2013-12-31 16:54:16 -0500 | [diff] [blame] | 157 | |
| 158 | arm-pmu { |
| 159 | compatible = "arm,arm1176-pmu"; |
| 160 | }; |
Stephen Warren | 5186bf2 | 2012-12-24 21:58:56 -0700 | [diff] [blame] | 161 | }; |
| 162 | |
Stephen Warren | 9692c19 | 2013-01-14 21:07:20 -0700 | [diff] [blame] | 163 | clocks { |
| 164 | compatible = "simple-bus"; |
| 165 | #address-cells = <1>; |
| 166 | #size-cells = <0>; |
Stephen Warren | 232fed4 | 2012-12-31 23:26:45 -0700 | [diff] [blame] | 167 | |
Stephen Warren | b7c6c17 | 2014-02-13 23:12:39 -0700 | [diff] [blame] | 168 | clk_mmc: clock@0 { |
Stephen Warren | 9692c19 | 2013-01-14 21:07:20 -0700 | [diff] [blame] | 169 | compatible = "fixed-clock"; |
| 170 | reg = <0>; |
| 171 | #clock-cells = <0>; |
Stephen Warren | b7c6c17 | 2014-02-13 23:12:39 -0700 | [diff] [blame] | 172 | clock-output-names = "mmc"; |
Stephen Warren | 9692c19 | 2013-01-14 21:07:20 -0700 | [diff] [blame] | 173 | clock-frequency = <100000000>; |
| 174 | }; |
| 175 | |
Stephen Warren | b7c6c17 | 2014-02-13 23:12:39 -0700 | [diff] [blame] | 176 | clk_i2c: clock@1 { |
Stephen Warren | 9692c19 | 2013-01-14 21:07:20 -0700 | [diff] [blame] | 177 | compatible = "fixed-clock"; |
| 178 | reg = <1>; |
| 179 | #clock-cells = <0>; |
Stephen Warren | b7c6c17 | 2014-02-13 23:12:39 -0700 | [diff] [blame] | 180 | clock-output-names = "i2c"; |
Stephen Warren | 2837a1d | 2013-02-21 22:42:38 -0700 | [diff] [blame] | 181 | clock-frequency = <250000000>; |
Stephen Warren | 9692c19 | 2013-01-14 21:07:20 -0700 | [diff] [blame] | 182 | }; |
Stephen Warren | 6ce5f02 | 2013-02-19 21:39:58 -0700 | [diff] [blame] | 183 | |
Stephen Warren | b7c6c17 | 2014-02-13 23:12:39 -0700 | [diff] [blame] | 184 | clk_spi: clock@2 { |
Stephen Warren | 6ce5f02 | 2013-02-19 21:39:58 -0700 | [diff] [blame] | 185 | compatible = "fixed-clock"; |
| 186 | reg = <2>; |
| 187 | #clock-cells = <0>; |
Stephen Warren | b7c6c17 | 2014-02-13 23:12:39 -0700 | [diff] [blame] | 188 | clock-output-names = "spi"; |
Stephen Warren | 6ce5f02 | 2013-02-19 21:39:58 -0700 | [diff] [blame] | 189 | clock-frequency = <250000000>; |
| 190 | }; |
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 191 | }; |
| 192 | }; |