Kristian Amlie | 8f8a299 | 2021-09-07 08:37:51 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * ARM Ltd. Versatile Express |
| 4 | * |
| 5 | * CoreTile Express A9x4 |
| 6 | * Cortex-A9 MPCore (V2P-CA9) |
| 7 | * |
| 8 | * HBI-0191B |
| 9 | */ |
| 10 | |
| 11 | /dts-v1/; |
| 12 | #include "vexpress-v2m.dtsi" |
| 13 | |
| 14 | / { |
| 15 | model = "V2P-CA9"; |
| 16 | arm,hbi = <0x191>; |
| 17 | arm,vexpress,site = <0xf>; |
| 18 | compatible = "arm,vexpress,v2p-ca9", "arm,vexpress"; |
| 19 | interrupt-parent = <&gic>; |
| 20 | #address-cells = <1>; |
| 21 | #size-cells = <1>; |
| 22 | |
| 23 | chosen { }; |
| 24 | |
| 25 | aliases { |
| 26 | serial0 = &v2m_serial0; |
| 27 | serial1 = &v2m_serial1; |
| 28 | serial2 = &v2m_serial2; |
| 29 | serial3 = &v2m_serial3; |
| 30 | i2c0 = &v2m_i2c_dvi; |
| 31 | i2c1 = &v2m_i2c_pcie; |
| 32 | mmc0 = &mmc0; |
| 33 | }; |
| 34 | |
| 35 | cpus { |
| 36 | #address-cells = <1>; |
| 37 | #size-cells = <0>; |
| 38 | |
| 39 | A9_0: cpu@0 { |
| 40 | device_type = "cpu"; |
| 41 | compatible = "arm,cortex-a9"; |
| 42 | reg = <0>; |
| 43 | next-level-cache = <&L2>; |
| 44 | }; |
| 45 | |
| 46 | A9_1: cpu@1 { |
| 47 | device_type = "cpu"; |
| 48 | compatible = "arm,cortex-a9"; |
| 49 | reg = <1>; |
| 50 | next-level-cache = <&L2>; |
| 51 | }; |
| 52 | |
| 53 | A9_2: cpu@2 { |
| 54 | device_type = "cpu"; |
| 55 | compatible = "arm,cortex-a9"; |
| 56 | reg = <2>; |
| 57 | next-level-cache = <&L2>; |
| 58 | }; |
| 59 | |
| 60 | A9_3: cpu@3 { |
| 61 | device_type = "cpu"; |
| 62 | compatible = "arm,cortex-a9"; |
| 63 | reg = <3>; |
| 64 | next-level-cache = <&L2>; |
| 65 | }; |
| 66 | }; |
| 67 | |
| 68 | memory@60000000 { |
| 69 | device_type = "memory"; |
| 70 | reg = <0x60000000 0x40000000>; |
| 71 | }; |
| 72 | |
| 73 | reserved-memory { |
| 74 | #address-cells = <1>; |
| 75 | #size-cells = <1>; |
| 76 | ranges; |
| 77 | |
| 78 | /* Chipselect 3 is physically at 0x4c000000 */ |
| 79 | vram: vram@4c000000 { |
| 80 | /* 8 MB of designated video RAM */ |
| 81 | compatible = "shared-dma-pool"; |
| 82 | reg = <0x4c000000 0x00800000>; |
| 83 | no-map; |
| 84 | }; |
| 85 | }; |
| 86 | |
| 87 | clcd@10020000 { |
| 88 | compatible = "arm,pl111", "arm,primecell"; |
| 89 | reg = <0x10020000 0x1000>; |
| 90 | interrupt-names = "combined"; |
| 91 | interrupts = <0 44 4>; |
| 92 | clocks = <&oscclk1>, <&oscclk2>; |
| 93 | clock-names = "clcdclk", "apb_pclk"; |
| 94 | /* 1024x768 16bpp @65MHz */ |
| 95 | max-memory-bandwidth = <95000000>; |
| 96 | |
| 97 | port { |
| 98 | clcd_pads_ct: endpoint { |
| 99 | remote-endpoint = <&dvi_bridge_in_ct>; |
| 100 | arm,pl11x,tft-r0g0b0-pads = <0 8 16>; |
| 101 | }; |
| 102 | }; |
| 103 | }; |
| 104 | |
| 105 | memory-controller@100e0000 { |
| 106 | compatible = "arm,pl341", "arm,primecell"; |
| 107 | reg = <0x100e0000 0x1000>; |
| 108 | clocks = <&oscclk2>; |
| 109 | clock-names = "apb_pclk"; |
| 110 | }; |
| 111 | |
| 112 | memory-controller@100e1000 { |
| 113 | compatible = "arm,pl354", "arm,primecell"; |
| 114 | reg = <0x100e1000 0x1000>; |
| 115 | interrupts = <0 45 4>, |
| 116 | <0 46 4>; |
| 117 | clocks = <&oscclk2>; |
| 118 | clock-names = "apb_pclk"; |
| 119 | }; |
| 120 | |
| 121 | timer@100e4000 { |
| 122 | compatible = "arm,sp804", "arm,primecell"; |
| 123 | reg = <0x100e4000 0x1000>; |
| 124 | interrupts = <0 48 4>, |
| 125 | <0 49 4>; |
| 126 | clocks = <&oscclk2>, <&oscclk2>; |
| 127 | clock-names = "timclk", "apb_pclk"; |
| 128 | status = "disabled"; |
| 129 | }; |
| 130 | |
| 131 | watchdog@100e5000 { |
| 132 | compatible = "arm,sp805", "arm,primecell"; |
| 133 | reg = <0x100e5000 0x1000>; |
| 134 | interrupts = <0 51 4>; |
| 135 | clocks = <&oscclk2>, <&oscclk2>; |
| 136 | clock-names = "wdogclk", "apb_pclk"; |
| 137 | }; |
| 138 | |
| 139 | scu@1e000000 { |
| 140 | compatible = "arm,cortex-a9-scu"; |
| 141 | reg = <0x1e000000 0x58>; |
| 142 | }; |
| 143 | |
| 144 | timer@1e000600 { |
| 145 | compatible = "arm,cortex-a9-twd-timer"; |
| 146 | reg = <0x1e000600 0x20>; |
| 147 | interrupts = <1 13 0xf04>; |
| 148 | }; |
| 149 | |
| 150 | watchdog@1e000620 { |
| 151 | compatible = "arm,cortex-a9-twd-wdt"; |
| 152 | reg = <0x1e000620 0x20>; |
| 153 | interrupts = <1 14 0xf04>; |
| 154 | }; |
| 155 | |
| 156 | gic: interrupt-controller@1e001000 { |
| 157 | compatible = "arm,cortex-a9-gic"; |
| 158 | #interrupt-cells = <3>; |
| 159 | #address-cells = <0>; |
| 160 | interrupt-controller; |
| 161 | reg = <0x1e001000 0x1000>, |
| 162 | <0x1e000100 0x100>; |
| 163 | }; |
| 164 | |
| 165 | L2: cache-controller@1e00a000 { |
| 166 | compatible = "arm,pl310-cache"; |
| 167 | reg = <0x1e00a000 0x1000>; |
| 168 | interrupts = <0 43 4>; |
| 169 | cache-unified; |
| 170 | cache-level = <2>; |
| 171 | arm,data-latency = <1 1 1>; |
| 172 | arm,tag-latency = <1 1 1>; |
| 173 | }; |
| 174 | |
| 175 | pmu { |
| 176 | compatible = "arm,cortex-a9-pmu"; |
| 177 | interrupts = <0 60 4>, |
| 178 | <0 61 4>, |
| 179 | <0 62 4>, |
| 180 | <0 63 4>; |
| 181 | interrupt-affinity = <&A9_0>, <&A9_1>, <&A9_2>, <&A9_3>; |
| 182 | |
| 183 | }; |
| 184 | |
| 185 | dcc { |
| 186 | compatible = "arm,vexpress,config-bus"; |
| 187 | arm,vexpress,config-bridge = <&v2m_sysreg>; |
| 188 | |
| 189 | oscclk0: extsaxiclk { |
| 190 | /* ACLK clock to the AXI master port on the test chip */ |
| 191 | compatible = "arm,vexpress-osc"; |
| 192 | arm,vexpress-sysreg,func = <1 0>; |
| 193 | freq-range = <30000000 50000000>; |
| 194 | #clock-cells = <0>; |
| 195 | clock-output-names = "extsaxiclk"; |
| 196 | }; |
| 197 | |
| 198 | oscclk1: clcdclk { |
| 199 | /* Reference clock for the CLCD */ |
| 200 | compatible = "arm,vexpress-osc"; |
| 201 | arm,vexpress-sysreg,func = <1 1>; |
| 202 | freq-range = <10000000 80000000>; |
| 203 | #clock-cells = <0>; |
| 204 | clock-output-names = "clcdclk"; |
| 205 | }; |
| 206 | |
| 207 | smbclk: oscclk2: tcrefclk { |
| 208 | /* Reference clock for the test chip internal PLLs */ |
| 209 | compatible = "arm,vexpress-osc"; |
| 210 | arm,vexpress-sysreg,func = <1 2>; |
| 211 | freq-range = <33000000 100000000>; |
| 212 | #clock-cells = <0>; |
| 213 | clock-output-names = "tcrefclk"; |
| 214 | }; |
| 215 | |
| 216 | volt-vd10 { |
| 217 | /* Test Chip internal logic voltage */ |
| 218 | compatible = "arm,vexpress-volt"; |
| 219 | arm,vexpress-sysreg,func = <2 0>; |
| 220 | regulator-name = "VD10"; |
| 221 | regulator-always-on; |
| 222 | label = "VD10"; |
| 223 | }; |
| 224 | |
| 225 | volt-vd10-s2 { |
| 226 | /* PL310, L2 cache, RAM cell supply (not PL310 logic) */ |
| 227 | compatible = "arm,vexpress-volt"; |
| 228 | arm,vexpress-sysreg,func = <2 1>; |
| 229 | regulator-name = "VD10_S2"; |
| 230 | regulator-always-on; |
| 231 | label = "VD10_S2"; |
| 232 | }; |
| 233 | |
| 234 | volt-vd10-s3 { |
| 235 | /* Cortex-A9 system supply, Cores, MPEs, SCU and PL310 logic */ |
| 236 | compatible = "arm,vexpress-volt"; |
| 237 | arm,vexpress-sysreg,func = <2 2>; |
| 238 | regulator-name = "VD10_S3"; |
| 239 | regulator-always-on; |
| 240 | label = "VD10_S3"; |
| 241 | }; |
| 242 | |
| 243 | volt-vcc1v8 { |
| 244 | /* DDR2 SDRAM and Test Chip DDR2 I/O supply */ |
| 245 | compatible = "arm,vexpress-volt"; |
| 246 | arm,vexpress-sysreg,func = <2 3>; |
| 247 | regulator-name = "VCC1V8"; |
| 248 | regulator-always-on; |
| 249 | label = "VCC1V8"; |
| 250 | }; |
| 251 | |
| 252 | volt-ddr2vtt { |
| 253 | /* DDR2 SDRAM VTT termination voltage */ |
| 254 | compatible = "arm,vexpress-volt"; |
| 255 | arm,vexpress-sysreg,func = <2 4>; |
| 256 | regulator-name = "DDR2VTT"; |
| 257 | regulator-always-on; |
| 258 | label = "DDR2VTT"; |
| 259 | }; |
| 260 | |
| 261 | volt-vcc3v3 { |
| 262 | /* Local board supply for miscellaneous logic external to the Test Chip */ |
| 263 | arm,vexpress-sysreg,func = <2 5>; |
| 264 | compatible = "arm,vexpress-volt"; |
| 265 | regulator-name = "VCC3V3"; |
| 266 | regulator-always-on; |
| 267 | label = "VCC3V3"; |
| 268 | }; |
| 269 | |
| 270 | amp-vd10-s2 { |
| 271 | /* PL310, L2 cache, RAM cell supply (not PL310 logic) */ |
| 272 | compatible = "arm,vexpress-amp"; |
| 273 | arm,vexpress-sysreg,func = <3 0>; |
| 274 | label = "VD10_S2"; |
| 275 | }; |
| 276 | |
| 277 | amp-vd10-s3 { |
| 278 | /* Cortex-A9 system supply, Cores, MPEs, SCU and PL310 logic */ |
| 279 | compatible = "arm,vexpress-amp"; |
| 280 | arm,vexpress-sysreg,func = <3 1>; |
| 281 | label = "VD10_S3"; |
| 282 | }; |
| 283 | |
| 284 | power-vd10-s2 { |
| 285 | /* PL310, L2 cache, RAM cell supply (not PL310 logic) */ |
| 286 | compatible = "arm,vexpress-power"; |
| 287 | arm,vexpress-sysreg,func = <12 0>; |
| 288 | label = "PVD10_S2"; |
| 289 | }; |
| 290 | |
| 291 | power-vd10-s3 { |
| 292 | /* Cortex-A9 system supply, Cores, MPEs, SCU and PL310 logic */ |
| 293 | compatible = "arm,vexpress-power"; |
| 294 | arm,vexpress-sysreg,func = <12 1>; |
| 295 | label = "PVD10_S3"; |
| 296 | }; |
| 297 | }; |
| 298 | |
| 299 | smb: smb@4000000 { |
| 300 | compatible = "simple-bus"; |
| 301 | |
| 302 | #address-cells = <2>; |
| 303 | #size-cells = <1>; |
| 304 | ranges = <0 0 0x40000000 0x04000000>, |
| 305 | <1 0 0x44000000 0x04000000>, |
| 306 | <2 0 0x48000000 0x04000000>, |
| 307 | <3 0 0x4c000000 0x04000000>, |
| 308 | <7 0 0x10000000 0x00020000>; |
| 309 | |
| 310 | #interrupt-cells = <1>; |
| 311 | interrupt-map-mask = <0 0 63>; |
| 312 | interrupt-map = <0 0 0 &gic 0 0 4>, |
| 313 | <0 0 1 &gic 0 1 4>, |
| 314 | <0 0 2 &gic 0 2 4>, |
| 315 | <0 0 3 &gic 0 3 4>, |
| 316 | <0 0 4 &gic 0 4 4>, |
| 317 | <0 0 5 &gic 0 5 4>, |
| 318 | <0 0 6 &gic 0 6 4>, |
| 319 | <0 0 7 &gic 0 7 4>, |
| 320 | <0 0 8 &gic 0 8 4>, |
| 321 | <0 0 9 &gic 0 9 4>, |
| 322 | <0 0 10 &gic 0 10 4>, |
| 323 | <0 0 11 &gic 0 11 4>, |
| 324 | <0 0 12 &gic 0 12 4>, |
| 325 | <0 0 13 &gic 0 13 4>, |
| 326 | <0 0 14 &gic 0 14 4>, |
| 327 | <0 0 15 &gic 0 15 4>, |
| 328 | <0 0 16 &gic 0 16 4>, |
| 329 | <0 0 17 &gic 0 17 4>, |
| 330 | <0 0 18 &gic 0 18 4>, |
| 331 | <0 0 19 &gic 0 19 4>, |
| 332 | <0 0 20 &gic 0 20 4>, |
| 333 | <0 0 21 &gic 0 21 4>, |
| 334 | <0 0 22 &gic 0 22 4>, |
| 335 | <0 0 23 &gic 0 23 4>, |
| 336 | <0 0 24 &gic 0 24 4>, |
| 337 | <0 0 25 &gic 0 25 4>, |
| 338 | <0 0 26 &gic 0 26 4>, |
| 339 | <0 0 27 &gic 0 27 4>, |
| 340 | <0 0 28 &gic 0 28 4>, |
| 341 | <0 0 29 &gic 0 29 4>, |
| 342 | <0 0 30 &gic 0 30 4>, |
| 343 | <0 0 31 &gic 0 31 4>, |
| 344 | <0 0 32 &gic 0 32 4>, |
| 345 | <0 0 33 &gic 0 33 4>, |
| 346 | <0 0 34 &gic 0 34 4>, |
| 347 | <0 0 35 &gic 0 35 4>, |
| 348 | <0 0 36 &gic 0 36 4>, |
| 349 | <0 0 37 &gic 0 37 4>, |
| 350 | <0 0 38 &gic 0 38 4>, |
| 351 | <0 0 39 &gic 0 39 4>, |
| 352 | <0 0 40 &gic 0 40 4>, |
| 353 | <0 0 41 &gic 0 41 4>, |
| 354 | <0 0 42 &gic 0 42 4>; |
| 355 | }; |
| 356 | |
| 357 | site2: hsb@e0000000 { |
| 358 | compatible = "simple-bus"; |
| 359 | #address-cells = <1>; |
| 360 | #size-cells = <1>; |
| 361 | ranges = <0 0xe0000000 0x20000000>; |
| 362 | #interrupt-cells = <1>; |
| 363 | interrupt-map-mask = <0 3>; |
| 364 | interrupt-map = <0 0 &gic 0 36 4>, |
| 365 | <0 1 &gic 0 37 4>, |
| 366 | <0 2 &gic 0 38 4>, |
| 367 | <0 3 &gic 0 39 4>; |
| 368 | }; |
| 369 | }; |