1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Device Tree file for Cortina systems Gemini 4 */ 5 6 #include <dt-bindings/interrupt-controller/irq 7 #include <dt-bindings/clock/cortina,gemini-clo 8 #include <dt-bindings/reset/cortina,gemini-res 9 #include <dt-bindings/gpio/gpio.h> 10 11 / { 12 soc { 13 #address-cells = <1>; 14 #size-cells = <1>; 15 ranges; 16 compatible = "simple-bus"; 17 interrupt-parent = <&intcon>; 18 19 flash: flash@30000000 { 20 compatible = "cortina, 21 syscon = <&syscon>; 22 pinctrl-names = "defau 23 pinctrl-0 = <&pflash_d 24 bank-width = <2>; 25 status = "disabled"; 26 }; 27 28 syscon: syscon@40000000 { 29 compatible = "cortina, 30 "syscon", 31 reg = <0x40000000 0x10 32 #clock-cells = <1>; 33 #reset-cells = <1>; 34 35 syscon-reboot { 36 compatible = " 37 regmap = <&sys 38 /* GLOBAL_RESE 39 offset = <0x0c 40 /* RESET_GLOBA 41 mask = <0xC000 42 }; 43 44 pinctrl { 45 compatible = " 46 regmap = <&sys 47 /* Hog the DRA 48 pinctrl-names 49 pinctrl-0 = <& 50 <& 51 52 dram_default_p 53 mux { 54 55 56 }; 57 }; 58 rtc_default_pi 59 mux { 60 61 62 }; 63 }; 64 power_default_ 65 mux { 66 67 68 }; 69 }; 70 cir_default_pi 71 mux { 72 73 74 }; 75 }; 76 system_default 77 mux { 78 79 80 }; 81 }; 82 vcontrol_defau 83 mux { 84 85 86 }; 87 }; 88 ice_default_pi 89 mux { 90 91 92 }; 93 }; 94 uart_default_p 95 mux { 96 97 98 }; 99 }; 100 pflash_default 101 mux { 102 103 104 }; 105 }; 106 usb_default_pi 107 mux { 108 109 110 }; 111 }; 112 gmii_default_p 113 /* 114 * Onl 115 * GMA 116 * gpi 117 * "gm 118 * bot 119 */ 120 mux { 121 122 123 }; 124 }; 125 pci_default_pi 126 mux { 127 128 129 }; 130 }; 131 sata_default_p 132 mux { 133 134 135 }; 136 }; 137 /* Activate bo 138 sata_and_ide_p 139 mux0 { 140 141 142 }; 143 mux1 { 144 145 146 }; 147 }; 148 tvc_default_pi 149 mux { 150 151 152 }; 153 }; 154 }; 155 }; 156 157 watchdog@41000000 { 158 compatible = "cortina, 159 reg = <0x41000000 0x10 160 interrupts = <3 IRQ_TY 161 resets = <&syscon GEMI 162 clocks = <&syscon GEMI 163 clock-names = "PCLK"; 164 }; 165 166 uart0: serial@42000000 { 167 compatible = "ns16550a 168 reg = <0x42000000 0x10 169 resets = <&syscon GEMI 170 clocks = <&syscon GEMI 171 interrupts = <18 IRQ_T 172 pinctrl-names = "defau 173 pinctrl-0 = <&uart_def 174 reg-shift = <2>; 175 }; 176 177 timer@43000000 { 178 compatible = "faraday, 179 reg = <0x43000000 0x10 180 interrupt-parent = <&i 181 interrupts = <14 IRQ_T 182 <15 IRQ_T 183 <16 IRQ_T 184 resets = <&syscon GEMI 185 /* APB clock or RTC cl 186 clocks = <&syscon GEMI 187 clock-names = "PCLK", 188 syscon = <&syscon>; 189 }; 190 191 rtc@45000000 { 192 compatible = "cortina, 193 reg = <0x45000000 0x10 194 interrupts = <17 IRQ_T 195 resets = <&syscon GEMI 196 clocks = <&syscon GEMI 197 clock-names = "PCLK", 198 pinctrl-names = "defau 199 pinctrl-0 = <&rtc_defa 200 }; 201 202 sata: sata@46000000 { 203 compatible = "cortina, 204 reg = <0x46000000 0x10 205 resets = <&syscon GEMI 206 <&syscon GEMI 207 reset-names = "sata0", 208 clocks = <&syscon GEMI 209 <&syscon GEMI 210 clock-names = "SATA0_P 211 /* 212 * This defines the sp 213 * to be explicitly en 214 * as these pins are n 215 */ 216 pinctrl-names = "defau 217 pinctrl-0 = <&sata_def 218 pinctrl-1 = <&sata_and 219 syscon = <&syscon>; 220 status = "disabled"; 221 }; 222 223 intcon: interrupt-controller@4 224 compatible = "faraday, 225 reg = <0x48000000 0x10 226 resets = <&syscon GEMI 227 interrupt-controller; 228 #interrupt-cells = <2> 229 }; 230 231 power-controller@4b000000 { 232 compatible = "cortina, 233 reg = <0x4b000000 0x10 234 interrupts = <26 IRQ_T 235 pinctrl-names = "defau 236 pinctrl-0 = <&power_de 237 }; 238 239 gpio0: gpio@4d000000 { 240 compatible = "cortina, 241 reg = <0x4d000000 0x10 242 interrupts = <22 IRQ_T 243 resets = <&syscon GEMI 244 clocks = <&syscon GEMI 245 gpio-controller; 246 #gpio-cells = <2>; 247 interrupt-controller; 248 #interrupt-cells = <2> 249 }; 250 251 gpio1: gpio@4e000000 { 252 compatible = "cortina, 253 reg = <0x4e000000 0x10 254 interrupts = <23 IRQ_T 255 resets = <&syscon GEMI 256 clocks = <&syscon GEMI 257 gpio-controller; 258 #gpio-cells = <2>; 259 interrupt-controller; 260 #interrupt-cells = <2> 261 }; 262 263 gpio2: gpio@4f000000 { 264 compatible = "cortina, 265 reg = <0x4f000000 0x10 266 interrupts = <24 IRQ_T 267 resets = <&syscon GEMI 268 clocks = <&syscon GEMI 269 gpio-controller; 270 #gpio-cells = <2>; 271 interrupt-controller; 272 #interrupt-cells = <2> 273 }; 274 275 pci@50000000 { 276 compatible = "cortina, 277 /* 278 * The first 256 bytes 279 * to configure the ho 280 */ 281 reg = <0x50000000 0x10 282 resets = <&syscon GEMI 283 clocks = <&syscon GEMI 284 clock-names = "PCLK", 285 pinctrl-names = "defau 286 pinctrl-0 = <&pci_defa 287 device_type = "pci"; 288 #address-cells = <3>; 289 #size-cells = <2>; 290 status = "disabled"; 291 292 #interrupt-cells = <1> 293 interrupt-map-mask = < 294 interrupt-map = 295 <0x4800 0 0 1 296 <0x4800 0 0 2 297 <0x4800 0 0 3 298 <0x4800 0 0 4 299 <0x5000 0 0 1 300 <0x5000 0 0 2 301 <0x5000 0 0 3 302 <0x5000 0 0 4 303 <0x5800 0 0 1 304 <0x5800 0 0 2 305 <0x5800 0 0 3 306 <0x5800 0 0 4 307 <0x6000 0 0 1 308 <0x6000 0 0 2 309 <0x6000 0 0 3 310 <0x6000 0 0 4 311 312 bus-range = <0x00 0xff 313 /* PCI ranges mappings 314 ranges = 315 /* 1MiB I/O space 0x50 316 <0x01000000 0 0 317 /* 128MiB non-prefetch 318 <0x02000000 0 0x580000 319 320 /* DMA ranges */ 321 dma-ranges = 322 /* 128MiB at 0x0000000 323 <0x02000000 0 0x000000 324 /* 64MiB at 0x00000000 325 <0x02000000 0 0x000000 326 /* 64MiB at 0x00000000 327 <0x02000000 0 0x000000 328 329 /* 330 * This PCI host bridg 331 * controller embedded 332 */ 333 pci_intc: interrupt-co 334 interrupt-pare 335 interrupts = < 336 interrupt-cont 337 #address-cells 338 #interrupt-cel 339 }; 340 }; 341 342 ethernet: ethernet@60000000 { 343 compatible = "cortina, 344 reg = <0x60000000 0x40 345 <0x60004000 0x20 346 <0x60006000 0x20 347 pinctrl-names = "defau 348 pinctrl-0 = <&gmii_def 349 status = "disabled"; 350 #address-cells = <1>; 351 #size-cells = <1>; 352 ranges; 353 354 gmac0: ethernet-port@0 355 compatible = " 356 reg = <0x60008 357 <0x6000a 358 interrupt-pare 359 interrupts = < 360 resets = <&sys 361 clocks = <&sys 362 clock-names = 363 }; 364 365 gmac1: ethernet-port@1 366 compatible = " 367 reg = <0x6000c 368 <0x6000e 369 interrupt-pare 370 interrupts = < 371 resets = <&sys 372 clocks = <&sys 373 clock-names = 374 }; 375 }; 376 377 crypto: crypto@62000000 { 378 compatible = "cortina, 379 reg = <0x62000000 0x10 380 interrupts = <7 IRQ_TY 381 resets = <&syscon GEMI 382 clocks = <&syscon GEMI 383 }; 384 385 ide0: ide@63000000 { 386 compatible = "cortina, 387 reg = <0x63000000 0x10 388 interrupts = <4 IRQ_TY 389 resets = <&syscon GEMI 390 clocks = <&syscon GEMI 391 clock-names = "PCLK"; 392 sata = <&sata>; 393 status = "disabled"; 394 #address-cells = <1>; 395 #size-cells = <0>; 396 }; 397 398 ide1: ide@63400000 { 399 compatible = "cortina, 400 reg = <0x63400000 0x10 401 interrupts = <5 IRQ_TY 402 resets = <&syscon GEMI 403 clocks = <&syscon GEMI 404 clock-names = "PCLK"; 405 sata = <&sata>; 406 status = "disabled"; 407 #address-cells = <1>; 408 #size-cells = <0>; 409 }; 410 411 dma-controller@67000000 { 412 compatible = "faraday, 413 /* Faraday Technology 414 arm,primecell-periphid 415 reg = <0x67000000 0x10 416 interrupts = <9 IRQ_TY 417 resets = <&syscon GEMI 418 clocks = <&syscon GEMI 419 clock-names = "apb_pcl 420 /* Bus interface AHB1 421 lli-bus-interface-ahb2 422 mem-bus-interface-ahb2 423 memcpy-burst-size = <2 424 memcpy-bus-width = <32 425 #dma-cells = <2>; 426 }; 427 428 display-controller@6a000000 { 429 compatible = "cortina, 430 reg = <0x6a000000 0x10 431 interrupts = <13 IRQ_T 432 resets = <&syscon GEMI 433 clocks = <&syscon GEMI 434 <&syscon GEMI 435 clock-names = "PCLK", 436 pinctrl-names = "defau 437 pinctrl-0 = <&tvc_defa 438 status = "disabled"; 439 }; 440 441 usb0: usb@68000000 { 442 compatible = "cortina, 443 reg = <0x68000000 0x10 444 interrupts = <10 IRQ_T 445 resets = <&syscon GEMI 446 clocks = <&syscon GEMI 447 clock-names = "PCLK"; 448 /* 449 * This will claim pin 450 * time as they are us 451 * some reason have a 452 * NOT using USB0 at 6 453 * usb_default_pins to 454 * in your .dts for th 455 */ 456 pinctrl-names = "defau 457 pinctrl-0 = <&usb_defa 458 /* Default to host mod 459 dr_mode = "host"; 460 syscon = <&syscon>; 461 status = "disabled"; 462 }; 463 464 usb1: usb@69000000 { 465 compatible = "cortina, 466 reg = <0x69000000 0x10 467 interrupts = <11 IRQ_T 468 resets = <&syscon GEMI 469 clocks = <&syscon GEMI 470 clock-names = "PCLK"; 471 syscon = <&syscon>; 472 status = "disabled"; 473 }; 474 }; 475 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.