Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | /include/ "skeleton.dtsi" |
| 3 | |
| 4 | / { |
| 5 | model = "ARM Versatile AB"; |
| 6 | compatible = "arm,versatile-ab"; |
| 7 | #address-cells = <1>; |
| 8 | #size-cells = <1>; |
| 9 | interrupt-parent = <&vic>; |
| 10 | |
| 11 | aliases { |
| 12 | serial0 = &uart0; |
| 13 | serial1 = &uart1; |
| 14 | serial2 = &uart2; |
| 15 | i2c0 = &i2c0; |
| 16 | }; |
| 17 | |
Grant Likely | 0038821 | 2014-03-27 18:35:32 -0700 | [diff] [blame] | 18 | chosen { |
| 19 | stdout-path = &uart0; |
| 20 | }; |
| 21 | |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 22 | memory { |
| 23 | reg = <0x0 0x08000000>; |
| 24 | }; |
| 25 | |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 26 | xtal24mhz: xtal24mhz@24M { |
| 27 | #clock-cells = <0>; |
| 28 | compatible = "fixed-clock"; |
| 29 | clock-frequency = <24000000>; |
| 30 | }; |
| 31 | |
| 32 | core-module@10000000 { |
Linus Walleij | 07ebfa5 | 2016-01-05 15:02:08 +0100 | [diff] [blame] | 33 | compatible = "arm,core-module-versatile", "syscon", "simple-mfd"; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 34 | reg = <0x10000000 0x200>; |
| 35 | |
Linus Walleij | 07ebfa5 | 2016-01-05 15:02:08 +0100 | [diff] [blame] | 36 | led@08.0 { |
| 37 | compatible = "register-bit-led"; |
| 38 | offset = <0x08>; |
| 39 | mask = <0x01>; |
| 40 | label = "versatile:0"; |
| 41 | linux,default-trigger = "heartbeat"; |
| 42 | default-state = "on"; |
| 43 | }; |
| 44 | led@08.1 { |
| 45 | compatible = "register-bit-led"; |
| 46 | offset = <0x08>; |
| 47 | mask = <0x02>; |
| 48 | label = "versatile:1"; |
| 49 | linux,default-trigger = "mmc0"; |
| 50 | default-state = "off"; |
| 51 | }; |
| 52 | led@08.2 { |
| 53 | compatible = "register-bit-led"; |
| 54 | offset = <0x08>; |
| 55 | mask = <0x04>; |
| 56 | label = "versatile:2"; |
| 57 | linux,default-trigger = "cpu0"; |
| 58 | default-state = "off"; |
| 59 | }; |
| 60 | led@08.3 { |
| 61 | compatible = "register-bit-led"; |
| 62 | offset = <0x08>; |
| 63 | mask = <0x08>; |
| 64 | label = "versatile:3"; |
| 65 | default-state = "off"; |
| 66 | }; |
| 67 | led@08.4 { |
| 68 | compatible = "register-bit-led"; |
| 69 | offset = <0x08>; |
| 70 | mask = <0x10>; |
| 71 | label = "versatile:4"; |
| 72 | default-state = "off"; |
| 73 | }; |
| 74 | led@08.5 { |
| 75 | compatible = "register-bit-led"; |
| 76 | offset = <0x08>; |
| 77 | mask = <0x20>; |
| 78 | label = "versatile:5"; |
| 79 | default-state = "off"; |
| 80 | }; |
| 81 | led@08.6 { |
| 82 | compatible = "register-bit-led"; |
| 83 | offset = <0x08>; |
| 84 | mask = <0x40>; |
| 85 | label = "versatile:6"; |
| 86 | default-state = "off"; |
| 87 | }; |
| 88 | led@08.7 { |
| 89 | compatible = "register-bit-led"; |
| 90 | offset = <0x08>; |
| 91 | mask = <0x80>; |
| 92 | label = "versatile:7"; |
| 93 | default-state = "off"; |
| 94 | }; |
| 95 | |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 96 | /* OSC1 on AB, OSC4 on PB */ |
| 97 | osc1: cm_aux_osc@24M { |
| 98 | #clock-cells = <0>; |
| 99 | compatible = "arm,versatile-cm-auxosc"; |
| 100 | clocks = <&xtal24mhz>; |
| 101 | }; |
| 102 | |
| 103 | /* The timer clock is the 24 MHz oscillator divided to 1MHz */ |
| 104 | timclk: timclk@1M { |
| 105 | #clock-cells = <0>; |
| 106 | compatible = "fixed-factor-clock"; |
| 107 | clock-div = <24>; |
| 108 | clock-mult = <1>; |
| 109 | clocks = <&xtal24mhz>; |
| 110 | }; |
| 111 | |
| 112 | pclk: pclk@24M { |
| 113 | #clock-cells = <0>; |
| 114 | compatible = "fixed-factor-clock"; |
| 115 | clock-div = <1>; |
| 116 | clock-mult = <1>; |
| 117 | clocks = <&xtal24mhz>; |
| 118 | }; |
| 119 | }; |
| 120 | |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 121 | flash@34000000 { |
| 122 | compatible = "arm,versatile-flash"; |
| 123 | reg = <0x34000000 0x4000000>; |
| 124 | bank-width = <4>; |
| 125 | }; |
| 126 | |
| 127 | i2c0: i2c@10002000 { |
| 128 | #address-cells = <1>; |
| 129 | #size-cells = <0>; |
| 130 | compatible = "arm,versatile-i2c"; |
| 131 | reg = <0x10002000 0x1000>; |
| 132 | |
| 133 | rtc@68 { |
| 134 | compatible = "dallas,ds1338"; |
| 135 | reg = <0x68>; |
| 136 | }; |
| 137 | }; |
| 138 | |
| 139 | net@10010000 { |
| 140 | compatible = "smsc,lan91c111"; |
| 141 | reg = <0x10010000 0x10000>; |
| 142 | interrupts = <25>; |
| 143 | }; |
| 144 | |
| 145 | lcd@10008000 { |
| 146 | compatible = "arm,versatile-lcd"; |
| 147 | reg = <0x10008000 0x1000>; |
| 148 | }; |
| 149 | |
| 150 | amba { |
Masahiro Yamada | 2ef7d5f | 2016-03-09 13:26:45 +0900 | [diff] [blame] | 151 | compatible = "simple-bus"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 152 | #address-cells = <1>; |
| 153 | #size-cells = <1>; |
| 154 | ranges; |
| 155 | |
| 156 | vic: intc@10140000 { |
| 157 | compatible = "arm,versatile-vic"; |
| 158 | interrupt-controller; |
| 159 | #interrupt-cells = <1>; |
| 160 | reg = <0x10140000 0x1000>; |
Rob Herring | 0ba6c5d | 2014-03-01 22:22:21 -0600 | [diff] [blame] | 161 | clear-mask = <0xffffffff>; |
| 162 | valid-mask = <0xffffffff>; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 163 | }; |
| 164 | |
| 165 | sic: intc@10003000 { |
| 166 | compatible = "arm,versatile-sic"; |
| 167 | interrupt-controller; |
| 168 | #interrupt-cells = <1>; |
| 169 | reg = <0x10003000 0x1000>; |
| 170 | interrupt-parent = <&vic>; |
| 171 | interrupts = <31>; /* Cascaded to vic */ |
Rob Herring | 0ba6c5d | 2014-03-01 22:22:21 -0600 | [diff] [blame] | 172 | clear-mask = <0xffffffff>; |
Linus Walleij | 20f1275 | 2016-01-05 09:59:30 +0100 | [diff] [blame] | 173 | /* |
| 174 | * Valid interrupt lines mask according to |
| 175 | * table 4-36 page 4-50 of ARM DUI 0225D |
| 176 | */ |
| 177 | valid-mask = <0x0760031b>; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 178 | }; |
| 179 | |
| 180 | dma@10130000 { |
| 181 | compatible = "arm,pl081", "arm,primecell"; |
| 182 | reg = <0x10130000 0x1000>; |
| 183 | interrupts = <17>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 184 | clocks = <&pclk>; |
| 185 | clock-names = "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 186 | }; |
| 187 | |
| 188 | uart0: uart@101f1000 { |
| 189 | compatible = "arm,pl011", "arm,primecell"; |
| 190 | reg = <0x101f1000 0x1000>; |
| 191 | interrupts = <12>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 192 | clocks = <&xtal24mhz>, <&pclk>; |
| 193 | clock-names = "uartclk", "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 194 | }; |
| 195 | |
| 196 | uart1: uart@101f2000 { |
| 197 | compatible = "arm,pl011", "arm,primecell"; |
| 198 | reg = <0x101f2000 0x1000>; |
| 199 | interrupts = <13>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 200 | clocks = <&xtal24mhz>, <&pclk>; |
| 201 | clock-names = "uartclk", "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 202 | }; |
| 203 | |
| 204 | uart2: uart@101f3000 { |
| 205 | compatible = "arm,pl011", "arm,primecell"; |
| 206 | reg = <0x101f3000 0x1000>; |
| 207 | interrupts = <14>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 208 | clocks = <&xtal24mhz>, <&pclk>; |
| 209 | clock-names = "uartclk", "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 210 | }; |
| 211 | |
| 212 | smc@10100000 { |
| 213 | compatible = "arm,primecell"; |
| 214 | reg = <0x10100000 0x1000>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 215 | clocks = <&pclk>; |
| 216 | clock-names = "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 217 | }; |
| 218 | |
| 219 | mpmc@10110000 { |
| 220 | compatible = "arm,primecell"; |
| 221 | reg = <0x10110000 0x1000>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 222 | clocks = <&pclk>; |
| 223 | clock-names = "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 224 | }; |
| 225 | |
| 226 | display@10120000 { |
| 227 | compatible = "arm,pl110", "arm,primecell"; |
| 228 | reg = <0x10120000 0x1000>; |
| 229 | interrupts = <16>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 230 | clocks = <&osc1>, <&pclk>; |
| 231 | clock-names = "clcd", "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 232 | }; |
| 233 | |
| 234 | sctl@101e0000 { |
| 235 | compatible = "arm,primecell"; |
| 236 | reg = <0x101e0000 0x1000>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 237 | clocks = <&pclk>; |
| 238 | clock-names = "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 239 | }; |
| 240 | |
| 241 | watchdog@101e1000 { |
| 242 | compatible = "arm,primecell"; |
| 243 | reg = <0x101e1000 0x1000>; |
| 244 | interrupts = <0>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 245 | clocks = <&pclk>; |
| 246 | clock-names = "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 247 | }; |
| 248 | |
Rob Herring | 818270d | 2013-03-13 17:07:44 -0500 | [diff] [blame] | 249 | timer@101e2000 { |
| 250 | compatible = "arm,sp804", "arm,primecell"; |
| 251 | reg = <0x101e2000 0x1000>; |
| 252 | interrupts = <4>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 253 | clocks = <&timclk>, <&timclk>, <&pclk>; |
| 254 | clock-names = "timer0", "timer1", "apb_pclk"; |
Rob Herring | 818270d | 2013-03-13 17:07:44 -0500 | [diff] [blame] | 255 | }; |
| 256 | |
| 257 | timer@101e3000 { |
| 258 | compatible = "arm,sp804", "arm,primecell"; |
| 259 | reg = <0x101e3000 0x1000>; |
| 260 | interrupts = <5>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 261 | clocks = <&timclk>, <&timclk>, <&pclk>; |
| 262 | clock-names = "timer0", "timer1", "apb_pclk"; |
Rob Herring | 818270d | 2013-03-13 17:07:44 -0500 | [diff] [blame] | 263 | }; |
| 264 | |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 265 | gpio0: gpio@101e4000 { |
| 266 | compatible = "arm,pl061", "arm,primecell"; |
| 267 | reg = <0x101e4000 0x1000>; |
| 268 | gpio-controller; |
| 269 | interrupts = <6>; |
| 270 | #gpio-cells = <2>; |
| 271 | interrupt-controller; |
| 272 | #interrupt-cells = <2>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 273 | clocks = <&pclk>; |
| 274 | clock-names = "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 275 | }; |
| 276 | |
| 277 | gpio1: gpio@101e5000 { |
| 278 | compatible = "arm,pl061", "arm,primecell"; |
| 279 | reg = <0x101e5000 0x1000>; |
| 280 | interrupts = <7>; |
| 281 | gpio-controller; |
| 282 | #gpio-cells = <2>; |
| 283 | interrupt-controller; |
| 284 | #interrupt-cells = <2>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 285 | clocks = <&pclk>; |
| 286 | clock-names = "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 287 | }; |
| 288 | |
| 289 | rtc@101e8000 { |
| 290 | compatible = "arm,pl030", "arm,primecell"; |
| 291 | reg = <0x101e8000 0x1000>; |
| 292 | interrupts = <10>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 293 | clocks = <&pclk>; |
| 294 | clock-names = "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 295 | }; |
| 296 | |
| 297 | sci@101f0000 { |
| 298 | compatible = "arm,primecell"; |
| 299 | reg = <0x101f0000 0x1000>; |
| 300 | interrupts = <15>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 301 | clocks = <&pclk>; |
| 302 | clock-names = "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 303 | }; |
| 304 | |
| 305 | ssp@101f4000 { |
| 306 | compatible = "arm,pl022", "arm,primecell"; |
| 307 | reg = <0x101f4000 0x1000>; |
| 308 | interrupts = <11>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 309 | clocks = <&xtal24mhz>, <&pclk>; |
| 310 | clock-names = "SSPCLK", "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 311 | }; |
| 312 | |
| 313 | fpga { |
| 314 | compatible = "arm,versatile-fpga", "simple-bus"; |
| 315 | #address-cells = <1>; |
| 316 | #size-cells = <1>; |
| 317 | ranges = <0 0x10000000 0x10000>; |
| 318 | |
Rob Herring | 35a8578 | 2015-01-28 11:56:32 -0600 | [diff] [blame] | 319 | sysreg@0 { |
| 320 | compatible = "arm,versatile-sysreg", "syscon"; |
| 321 | reg = <0x00000 0x1000>; |
| 322 | }; |
| 323 | |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 324 | aaci@4000 { |
| 325 | compatible = "arm,primecell"; |
| 326 | reg = <0x4000 0x1000>; |
| 327 | interrupts = <24>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 328 | clocks = <&pclk>; |
| 329 | clock-names = "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 330 | }; |
| 331 | mmc@5000 { |
Rob Herring | 04aa49f | 2014-03-03 02:28:38 -0600 | [diff] [blame] | 332 | compatible = "arm,pl180", "arm,primecell"; |
Linus Walleij | 20f1275 | 2016-01-05 09:59:30 +0100 | [diff] [blame] | 333 | reg = <0x5000 0x1000>; |
| 334 | interrupts-extended = <&vic 22 &sic 1>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 335 | clocks = <&xtal24mhz>, <&pclk>; |
| 336 | clock-names = "mclk", "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 337 | }; |
| 338 | kmi@6000 { |
| 339 | compatible = "arm,pl050", "arm,primecell"; |
| 340 | reg = <0x6000 0x1000>; |
| 341 | interrupt-parent = <&sic>; |
| 342 | interrupts = <3>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 343 | clocks = <&xtal24mhz>, <&pclk>; |
| 344 | clock-names = "KMIREFCLK", "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 345 | }; |
| 346 | kmi@7000 { |
| 347 | compatible = "arm,pl050", "arm,primecell"; |
| 348 | reg = <0x7000 0x1000>; |
| 349 | interrupt-parent = <&sic>; |
| 350 | interrupts = <4>; |
Rob Herring | 2e45278 | 2014-03-01 22:22:53 -0600 | [diff] [blame] | 351 | clocks = <&xtal24mhz>, <&pclk>; |
| 352 | clock-names = "KMIREFCLK", "apb_pclk"; |
Grant Likely | 3ba7222 | 2011-07-26 03:19:06 -0600 | [diff] [blame] | 353 | }; |
| 354 | }; |
| 355 | }; |
| 356 | }; |