Kristian Amlie | 15e3010 | 2021-09-07 08:37:51 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * ARM Ltd. Versatile Express |
| 4 | * |
| 5 | * Motherboard Express uATX |
| 6 | * V2M-P1 |
| 7 | * |
| 8 | * HBI-0190D |
| 9 | * |
| 10 | * Original memory map ("Legacy memory map" in the board's |
| 11 | * Technical Reference Manual) |
| 12 | * |
| 13 | * WARNING! The hardware described in this file is independent from the |
| 14 | * RS1 variant (vexpress-v2m-rs1.dtsi), but there is a strong |
| 15 | * correspondence between the two configurations. |
| 16 | * |
| 17 | * TAKE CARE WHEN MAINTAINING THIS FILE TO PROPAGATE ANY RELEVANT |
| 18 | * CHANGES TO vexpress-v2m-rs1.dtsi! |
| 19 | */ |
| 20 | |
| 21 | / { |
| 22 | smb@4000000 { |
| 23 | motherboard { |
| 24 | model = "V2M-P1"; |
| 25 | arm,hbi = <0x190>; |
| 26 | arm,vexpress,site = <0>; |
| 27 | compatible = "arm,vexpress,v2m-p1", "simple-bus"; |
| 28 | #address-cells = <2>; /* SMB chipselect number and offset */ |
| 29 | #size-cells = <1>; |
| 30 | #interrupt-cells = <1>; |
| 31 | ranges; |
| 32 | |
| 33 | flash@0,00000000 { |
| 34 | compatible = "arm,vexpress-flash", "cfi-flash"; |
| 35 | reg = <0 0x00000000 0x04000000>, |
| 36 | <1 0x00000000 0x04000000>; |
| 37 | bank-width = <4>; |
| 38 | }; |
| 39 | |
| 40 | psram@2,00000000 { |
| 41 | compatible = "arm,vexpress-psram", "mtd-ram"; |
| 42 | reg = <2 0x00000000 0x02000000>; |
| 43 | bank-width = <4>; |
| 44 | }; |
| 45 | |
| 46 | ethernet@3,02000000 { |
| 47 | compatible = "smsc,lan9118", "smsc,lan9115"; |
| 48 | reg = <3 0x02000000 0x10000>; |
| 49 | interrupts = <15>; |
| 50 | phy-mode = "mii"; |
| 51 | reg-io-width = <4>; |
| 52 | smsc,irq-active-high; |
| 53 | smsc,irq-push-pull; |
| 54 | vdd33a-supply = <&v2m_fixed_3v3>; |
| 55 | vddvario-supply = <&v2m_fixed_3v3>; |
| 56 | }; |
| 57 | |
| 58 | usb@3,03000000 { |
| 59 | compatible = "nxp,usb-isp1761"; |
| 60 | reg = <3 0x03000000 0x20000>; |
| 61 | interrupts = <16>; |
| 62 | port1-otg; |
| 63 | }; |
| 64 | |
| 65 | iofpga@7,00000000 { |
| 66 | compatible = "simple-bus"; |
| 67 | #address-cells = <1>; |
| 68 | #size-cells = <1>; |
| 69 | ranges = <0 7 0 0x20000>; |
| 70 | |
| 71 | v2m_sysreg: sysreg@0 { |
| 72 | compatible = "arm,vexpress-sysreg"; |
| 73 | reg = <0x00000 0x1000>; |
| 74 | #address-cells = <1>; |
| 75 | #size-cells = <1>; |
| 76 | ranges = <0 0 0x1000>; |
| 77 | |
| 78 | v2m_led_gpios: gpio@8 { |
| 79 | compatible = "arm,vexpress-sysreg,sys_led"; |
| 80 | reg = <0x008 4>; |
| 81 | gpio-controller; |
| 82 | #gpio-cells = <2>; |
| 83 | }; |
| 84 | |
| 85 | v2m_mmc_gpios: gpio@48 { |
| 86 | compatible = "arm,vexpress-sysreg,sys_mci"; |
| 87 | reg = <0x048 4>; |
| 88 | gpio-controller; |
| 89 | #gpio-cells = <2>; |
| 90 | }; |
| 91 | |
| 92 | v2m_flash_gpios: gpio@4c { |
| 93 | compatible = "arm,vexpress-sysreg,sys_flash"; |
| 94 | reg = <0x04c 4>; |
| 95 | gpio-controller; |
| 96 | #gpio-cells = <2>; |
| 97 | }; |
| 98 | }; |
| 99 | |
| 100 | v2m_sysctl: sysctl@1000 { |
| 101 | compatible = "arm,sp810", "arm,primecell"; |
| 102 | reg = <0x01000 0x1000>; |
| 103 | clocks = <&v2m_refclk32khz>, <&v2m_refclk1mhz>, <&smbclk>; |
| 104 | clock-names = "refclk", "timclk", "apb_pclk"; |
| 105 | #clock-cells = <1>; |
| 106 | clock-output-names = "timerclken0", "timerclken1", "timerclken2", "timerclken3"; |
| 107 | assigned-clocks = <&v2m_sysctl 0>, <&v2m_sysctl 1>, <&v2m_sysctl 3>, <&v2m_sysctl 3>; |
| 108 | assigned-clock-parents = <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>; |
| 109 | }; |
| 110 | |
| 111 | /* PCI-E I2C bus */ |
| 112 | v2m_i2c_pcie: i2c@2000 { |
| 113 | compatible = "arm,versatile-i2c"; |
| 114 | reg = <0x02000 0x1000>; |
| 115 | |
| 116 | #address-cells = <1>; |
| 117 | #size-cells = <0>; |
| 118 | |
| 119 | pcie-switch@60 { |
| 120 | compatible = "idt,89hpes32h8"; |
| 121 | reg = <0x60>; |
| 122 | }; |
| 123 | }; |
| 124 | |
| 125 | aaci@4000 { |
| 126 | compatible = "arm,pl041", "arm,primecell"; |
| 127 | reg = <0x04000 0x1000>; |
| 128 | interrupts = <11>; |
| 129 | clocks = <&smbclk>; |
| 130 | clock-names = "apb_pclk"; |
| 131 | }; |
| 132 | |
| 133 | mmc0: mmci@5000 { |
| 134 | compatible = "arm,pl180", "arm,primecell"; |
| 135 | reg = <0x05000 0x1000>; |
| 136 | interrupts = <9>, <10>; |
| 137 | cd-gpios = <&v2m_mmc_gpios 0 0>; |
| 138 | wp-gpios = <&v2m_mmc_gpios 1 0>; |
| 139 | max-frequency = <12000000>; |
| 140 | vmmc-supply = <&v2m_fixed_3v3>; |
| 141 | clocks = <&v2m_clk24mhz>, <&smbclk>; |
| 142 | clock-names = "mclk", "apb_pclk"; |
| 143 | }; |
| 144 | |
| 145 | v2m_serial0: uart@9000 { |
| 146 | compatible = "arm,pl011", "arm,primecell"; |
| 147 | reg = <0x09000 0x1000>; |
| 148 | interrupts = <5>; |
| 149 | clocks = <&v2m_oscclk2>, <&smbclk>; |
| 150 | clock-names = "uartclk", "apb_pclk"; |
| 151 | }; |
| 152 | |
| 153 | v2m_serial1: uart@a000 { |
| 154 | compatible = "arm,pl011", "arm,primecell"; |
| 155 | reg = <0x0a000 0x1000>; |
| 156 | interrupts = <6>; |
| 157 | clocks = <&v2m_oscclk2>, <&smbclk>; |
| 158 | clock-names = "uartclk", "apb_pclk"; |
| 159 | }; |
| 160 | |
| 161 | v2m_serial2: uart@b000 { |
| 162 | compatible = "arm,pl011", "arm,primecell"; |
| 163 | reg = <0x0b000 0x1000>; |
| 164 | interrupts = <7>; |
| 165 | clocks = <&v2m_oscclk2>, <&smbclk>; |
| 166 | clock-names = "uartclk", "apb_pclk"; |
| 167 | }; |
| 168 | |
| 169 | v2m_serial3: uart@c000 { |
| 170 | compatible = "arm,pl011", "arm,primecell"; |
| 171 | reg = <0x0c000 0x1000>; |
| 172 | interrupts = <8>; |
| 173 | clocks = <&v2m_oscclk2>, <&smbclk>; |
| 174 | clock-names = "uartclk", "apb_pclk"; |
| 175 | }; |
| 176 | |
| 177 | v2m_timer01: timer@11000 { |
| 178 | compatible = "arm,sp804", "arm,primecell"; |
| 179 | reg = <0x11000 0x1000>; |
| 180 | interrupts = <2>; |
| 181 | clocks = <&v2m_sysctl 0>, <&v2m_sysctl 1>, <&smbclk>; |
| 182 | clock-names = "timclken1", "timclken2", "apb_pclk"; |
| 183 | }; |
| 184 | |
| 185 | v2m_timer23: timer@12000 { |
| 186 | compatible = "arm,sp804", "arm,primecell"; |
| 187 | reg = <0x12000 0x1000>; |
| 188 | interrupts = <3>; |
| 189 | clocks = <&v2m_sysctl 2>, <&v2m_sysctl 3>, <&smbclk>; |
| 190 | clock-names = "timclken1", "timclken2", "apb_pclk"; |
| 191 | }; |
| 192 | |
| 193 | /* DVI I2C bus */ |
| 194 | v2m_i2c_dvi: i2c@16000 { |
| 195 | compatible = "arm,versatile-i2c"; |
| 196 | reg = <0x16000 0x1000>; |
| 197 | #address-cells = <1>; |
| 198 | #size-cells = <0>; |
| 199 | |
| 200 | dvi-transmitter@39 { |
| 201 | compatible = "sil,sii9022-tpi", "sil,sii9022"; |
| 202 | reg = <0x39>; |
| 203 | |
| 204 | ports { |
| 205 | #address-cells = <1>; |
| 206 | #size-cells = <0>; |
| 207 | |
| 208 | /* |
| 209 | * Both the core tile and the motherboard routes their output |
| 210 | * pads to this transmitter. The motherboard system controller |
| 211 | * can select one of them as input using a mux register in |
| 212 | * "arm,vexpress-muxfpga". The Vexpress with the CA9 core tile is |
| 213 | * the only platform with this specific set-up. |
| 214 | */ |
| 215 | port@0 { |
| 216 | reg = <0>; |
| 217 | dvi_bridge_in_ct: endpoint { |
| 218 | remote-endpoint = <&clcd_pads_ct>; |
| 219 | }; |
| 220 | }; |
| 221 | port@1 { |
| 222 | reg = <1>; |
| 223 | dvi_bridge_in_mb: endpoint { |
| 224 | remote-endpoint = <&clcd_pads_mb>; |
| 225 | }; |
| 226 | }; |
| 227 | }; |
| 228 | }; |
| 229 | |
| 230 | dvi-transmitter@60 { |
| 231 | compatible = "sil,sii9022-cpi", "sil,sii9022"; |
| 232 | reg = <0x60>; |
| 233 | }; |
| 234 | }; |
| 235 | |
| 236 | rtc@17000 { |
| 237 | compatible = "arm,pl031", "arm,primecell"; |
| 238 | reg = <0x17000 0x1000>; |
| 239 | interrupts = <4>; |
| 240 | clocks = <&smbclk>; |
| 241 | clock-names = "apb_pclk"; |
| 242 | }; |
| 243 | |
| 244 | compact-flash@1a000 { |
| 245 | compatible = "arm,vexpress-cf", "ata-generic"; |
| 246 | reg = <0x1a000 0x100 |
| 247 | 0x1a100 0xf00>; |
| 248 | reg-shift = <2>; |
| 249 | }; |
| 250 | |
| 251 | |
| 252 | clcd@1f000 { |
| 253 | compatible = "arm,pl111", "arm,primecell"; |
| 254 | reg = <0x1f000 0x1000>; |
| 255 | interrupt-names = "combined"; |
| 256 | interrupts = <14>; |
| 257 | clocks = <&v2m_oscclk1>, <&smbclk>; |
| 258 | clock-names = "clcdclk", "apb_pclk"; |
| 259 | /* 800x600 16bpp @36MHz works fine */ |
| 260 | max-memory-bandwidth = <54000000>; |
| 261 | memory-region = <&vram>; |
| 262 | |
| 263 | port { |
| 264 | clcd_pads_mb: endpoint { |
| 265 | remote-endpoint = <&dvi_bridge_in_mb>; |
| 266 | arm,pl11x,tft-r0g0b0-pads = <0 8 16>; |
| 267 | }; |
| 268 | }; |
| 269 | }; |
| 270 | }; |
| 271 | |
| 272 | v2m_fixed_3v3: fixed-regulator-0 { |
| 273 | compatible = "regulator-fixed"; |
| 274 | regulator-name = "3V3"; |
| 275 | regulator-min-microvolt = <3300000>; |
| 276 | regulator-max-microvolt = <3300000>; |
| 277 | regulator-always-on; |
| 278 | }; |
| 279 | |
| 280 | v2m_clk24mhz: clk24mhz { |
| 281 | compatible = "fixed-clock"; |
| 282 | #clock-cells = <0>; |
| 283 | clock-frequency = <24000000>; |
| 284 | clock-output-names = "v2m:clk24mhz"; |
| 285 | }; |
| 286 | |
| 287 | v2m_refclk1mhz: refclk1mhz { |
| 288 | compatible = "fixed-clock"; |
| 289 | #clock-cells = <0>; |
| 290 | clock-frequency = <1000000>; |
| 291 | clock-output-names = "v2m:refclk1mhz"; |
| 292 | }; |
| 293 | |
| 294 | v2m_refclk32khz: refclk32khz { |
| 295 | compatible = "fixed-clock"; |
| 296 | #clock-cells = <0>; |
| 297 | clock-frequency = <32768>; |
| 298 | clock-output-names = "v2m:refclk32khz"; |
| 299 | }; |
| 300 | |
| 301 | leds { |
| 302 | compatible = "gpio-leds"; |
| 303 | |
| 304 | user1 { |
| 305 | label = "v2m:green:user1"; |
| 306 | gpios = <&v2m_led_gpios 0 0>; |
| 307 | linux,default-trigger = "heartbeat"; |
| 308 | }; |
| 309 | |
| 310 | user2 { |
| 311 | label = "v2m:green:user2"; |
| 312 | gpios = <&v2m_led_gpios 1 0>; |
| 313 | linux,default-trigger = "mmc0"; |
| 314 | }; |
| 315 | |
| 316 | user3 { |
| 317 | label = "v2m:green:user3"; |
| 318 | gpios = <&v2m_led_gpios 2 0>; |
| 319 | linux,default-trigger = "cpu0"; |
| 320 | }; |
| 321 | |
| 322 | user4 { |
| 323 | label = "v2m:green:user4"; |
| 324 | gpios = <&v2m_led_gpios 3 0>; |
| 325 | linux,default-trigger = "cpu1"; |
| 326 | }; |
| 327 | |
| 328 | user5 { |
| 329 | label = "v2m:green:user5"; |
| 330 | gpios = <&v2m_led_gpios 4 0>; |
| 331 | linux,default-trigger = "cpu2"; |
| 332 | }; |
| 333 | |
| 334 | user6 { |
| 335 | label = "v2m:green:user6"; |
| 336 | gpios = <&v2m_led_gpios 5 0>; |
| 337 | linux,default-trigger = "cpu3"; |
| 338 | }; |
| 339 | |
| 340 | user7 { |
| 341 | label = "v2m:green:user7"; |
| 342 | gpios = <&v2m_led_gpios 6 0>; |
| 343 | linux,default-trigger = "cpu4"; |
| 344 | }; |
| 345 | |
| 346 | user8 { |
| 347 | label = "v2m:green:user8"; |
| 348 | gpios = <&v2m_led_gpios 7 0>; |
| 349 | linux,default-trigger = "cpu5"; |
| 350 | }; |
| 351 | }; |
| 352 | |
| 353 | mcc { |
| 354 | compatible = "arm,vexpress,config-bus"; |
| 355 | arm,vexpress,config-bridge = <&v2m_sysreg>; |
| 356 | |
| 357 | oscclk0 { |
| 358 | /* MCC static memory clock */ |
| 359 | compatible = "arm,vexpress-osc"; |
| 360 | arm,vexpress-sysreg,func = <1 0>; |
| 361 | freq-range = <25000000 60000000>; |
| 362 | #clock-cells = <0>; |
| 363 | clock-output-names = "v2m:oscclk0"; |
| 364 | }; |
| 365 | |
| 366 | v2m_oscclk1: oscclk1 { |
| 367 | /* CLCD clock */ |
| 368 | compatible = "arm,vexpress-osc"; |
| 369 | arm,vexpress-sysreg,func = <1 1>; |
| 370 | freq-range = <23750000 65000000>; |
| 371 | #clock-cells = <0>; |
| 372 | clock-output-names = "v2m:oscclk1"; |
| 373 | }; |
| 374 | |
| 375 | v2m_oscclk2: oscclk2 { |
| 376 | /* IO FPGA peripheral clock */ |
| 377 | compatible = "arm,vexpress-osc"; |
| 378 | arm,vexpress-sysreg,func = <1 2>; |
| 379 | freq-range = <24000000 24000000>; |
| 380 | #clock-cells = <0>; |
| 381 | clock-output-names = "v2m:oscclk2"; |
| 382 | }; |
| 383 | |
| 384 | volt-vio { |
| 385 | /* Logic level voltage */ |
| 386 | compatible = "arm,vexpress-volt"; |
| 387 | arm,vexpress-sysreg,func = <2 0>; |
| 388 | regulator-name = "VIO"; |
| 389 | regulator-always-on; |
| 390 | label = "VIO"; |
| 391 | }; |
| 392 | |
| 393 | temp-mcc { |
| 394 | /* MCC internal operating temperature */ |
| 395 | compatible = "arm,vexpress-temp"; |
| 396 | arm,vexpress-sysreg,func = <4 0>; |
| 397 | label = "MCC"; |
| 398 | }; |
| 399 | |
| 400 | reset { |
| 401 | compatible = "arm,vexpress-reset"; |
| 402 | arm,vexpress-sysreg,func = <5 0>; |
| 403 | }; |
| 404 | |
| 405 | muxfpga { |
| 406 | compatible = "arm,vexpress-muxfpga"; |
| 407 | arm,vexpress-sysreg,func = <7 0>; |
| 408 | }; |
| 409 | |
| 410 | shutdown { |
| 411 | compatible = "arm,vexpress-shutdown"; |
| 412 | arm,vexpress-sysreg,func = <8 0>; |
| 413 | }; |
| 414 | |
| 415 | reboot { |
| 416 | compatible = "arm,vexpress-reboot"; |
| 417 | arm,vexpress-sysreg,func = <9 0>; |
| 418 | }; |
| 419 | |
| 420 | dvimode { |
| 421 | compatible = "arm,vexpress-dvimode"; |
| 422 | arm,vexpress-sysreg,func = <11 0>; |
| 423 | }; |
| 424 | }; |
| 425 | }; |
| 426 | }; |
| 427 | }; |