1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/clock/ingenic,jz4780-cgu 3 #include <dt-bindings/clock/ingenic,tcu.h> 4 #include <dt-bindings/dma/jz4780-dma.h> 5 6 / { 7 #address-cells = <1>; 8 #size-cells = <1>; 9 compatible = "ingenic,jz4780"; 10 11 cpus { 12 #address-cells = <1>; 13 #size-cells = <0>; 14 15 cpu0: cpu@0 { 16 device_type = "cpu"; 17 compatible = "ingenic, 18 reg = <0>; 19 20 clocks = <&cgu JZ4780_ 21 clock-names = "cpu"; 22 }; 23 24 cpu1: cpu@1 { 25 device_type = "cpu"; 26 compatible = "ingenic, 27 reg = <1>; 28 29 clocks = <&cgu JZ4780_ 30 clock-names = "cpu"; 31 }; 32 }; 33 34 cpuintc: interrupt-controller { 35 #address-cells = <0>; 36 #interrupt-cells = <1>; 37 interrupt-controller; 38 compatible = "mti,cpu-interrup 39 }; 40 41 intc: interrupt-controller@10001000 { 42 compatible = "ingenic,jz4780-i 43 reg = <0x10001000 0x50>; 44 45 interrupt-controller; 46 #interrupt-cells = <1>; 47 48 interrupt-parent = <&cpuintc>; 49 interrupts = <2>; 50 }; 51 52 ext: ext { 53 compatible = "fixed-clock"; 54 #clock-cells = <0>; 55 }; 56 57 rtc: rtc { 58 compatible = "fixed-clock"; 59 #clock-cells = <0>; 60 clock-frequency = <32768>; 61 }; 62 63 cgu: jz4780-cgu@10000000 { 64 compatible = "ingenic,jz4780-c 65 reg = <0x10000000 0x100>; 66 #address-cells = <1>; 67 #size-cells = <1>; 68 ranges = <0x0 0x10000000 0x100 69 70 #clock-cells = <1>; 71 72 clocks = <&ext>, <&rtc>; 73 clock-names = "ext", "rtc"; 74 75 otg_phy: usb-phy@3c { 76 compatible = "ingenic, 77 reg = <0x3c 0x10>; 78 79 clocks = <&cgu JZ4780_ 80 81 #phy-cells = <0>; 82 83 status = "disabled"; 84 }; 85 86 rng: rng@d8 { 87 compatible = "ingenic, 88 reg = <0xd8 0x8>; 89 90 status = "disabled"; 91 }; 92 }; 93 94 tcu: timer@10002000 { 95 compatible = "ingenic,jz4780-t 96 "ingenic,jz4770-t 97 "simple-mfd"; 98 reg = <0x10002000 0x1000>; 99 #address-cells = <1>; 100 #size-cells = <1>; 101 ranges = <0x0 0x10002000 0x100 102 103 #clock-cells = <1>; 104 105 clocks = <&cgu JZ4780_CLK_RTCL 106 <&cgu JZ4780_CLK_EXCL 107 <&cgu JZ4780_CLK_PCLK 108 clock-names = "rtc", "ext", "p 109 110 interrupt-controller; 111 #interrupt-cells = <1>; 112 113 interrupt-parent = <&intc>; 114 interrupts = <27 26 25>; 115 116 watchdog: watchdog@0 { 117 compatible = "ingenic, 118 reg = <0x0 0xc>; 119 120 clocks = <&tcu TCU_CLK 121 clock-names = "wdt"; 122 }; 123 124 pwm: pwm@40 { 125 compatible = "ingenic, 126 reg = <0x40 0x80>; 127 128 #pwm-cells = <3>; 129 130 clocks = <&tcu TCU_CLK 131 <&tcu TCU_CLK 132 <&tcu TCU_CLK 133 <&tcu TCU_CLK 134 clock-names = "timer0" 135 "timer4" 136 }; 137 138 ost: timer@e0 { 139 compatible = "ingenic, 140 reg = <0xe0 0x20>; 141 142 clocks = <&tcu TCU_CLK 143 clock-names = "ost"; 144 145 interrupts = <15>; 146 }; 147 }; 148 149 rtc_dev: rtc@10003000 { 150 compatible = "ingenic,jz4780-r 151 reg = <0x10003000 0x4c>; 152 153 interrupt-parent = <&intc>; 154 interrupts = <32>; 155 156 clocks = <&cgu JZ4780_CLK_RTCL 157 clock-names = "rtc"; 158 159 #clock-cells = <0>; 160 }; 161 162 pinctrl: pin-controller@10010000 { 163 compatible = "ingenic,jz4780-p 164 reg = <0x10010000 0x600>; 165 166 #address-cells = <1>; 167 #size-cells = <0>; 168 169 gpa: gpio@0 { 170 compatible = "ingenic, 171 reg = <0>; 172 173 gpio-controller; 174 gpio-ranges = <&pinctr 175 #gpio-cells = <2>; 176 177 interrupt-controller; 178 #interrupt-cells = <2> 179 180 interrupt-parent = <&i 181 interrupts = <17>; 182 }; 183 184 gpb: gpio@1 { 185 compatible = "ingenic, 186 reg = <1>; 187 188 gpio-controller; 189 gpio-ranges = <&pinctr 190 #gpio-cells = <2>; 191 192 interrupt-controller; 193 #interrupt-cells = <2> 194 195 interrupt-parent = <&i 196 interrupts = <16>; 197 }; 198 199 gpc: gpio@2 { 200 compatible = "ingenic, 201 reg = <2>; 202 203 gpio-controller; 204 gpio-ranges = <&pinctr 205 #gpio-cells = <2>; 206 207 interrupt-controller; 208 #interrupt-cells = <2> 209 210 interrupt-parent = <&i 211 interrupts = <15>; 212 }; 213 214 gpd: gpio@3 { 215 compatible = "ingenic, 216 reg = <3>; 217 218 gpio-controller; 219 gpio-ranges = <&pinctr 220 #gpio-cells = <2>; 221 222 interrupt-controller; 223 #interrupt-cells = <2> 224 225 interrupt-parent = <&i 226 interrupts = <14>; 227 }; 228 229 gpe: gpio@4 { 230 compatible = "ingenic, 231 reg = <4>; 232 233 gpio-controller; 234 gpio-ranges = <&pinctr 235 #gpio-cells = <2>; 236 237 interrupt-controller; 238 #interrupt-cells = <2> 239 240 interrupt-parent = <&i 241 interrupts = <13>; 242 }; 243 244 gpf: gpio@5 { 245 compatible = "ingenic, 246 reg = <5>; 247 248 gpio-controller; 249 gpio-ranges = <&pinctr 250 #gpio-cells = <2>; 251 252 interrupt-controller; 253 #interrupt-cells = <2> 254 255 interrupt-parent = <&i 256 interrupts = <12>; 257 }; 258 }; 259 260 spi0: spi@10043000 { 261 compatible = "ingenic,jz4780-s 262 reg = <0x10043000 0x1c>; 263 #address-cells = <1>; 264 #size-cells = <0>; 265 266 interrupt-parent = <&intc>; 267 interrupts = <8>; 268 269 clocks = <&cgu JZ4780_CLK_SSI0 270 clock-names = "spi"; 271 272 dmas = <&dma JZ4780_DMA_SSI0_R 273 <&dma JZ4780_DMA_SSI0_T 274 dma-names = "rx", "tx"; 275 276 status = "disabled"; 277 }; 278 279 uart0: serial@10030000 { 280 compatible = "ingenic,jz4780-u 281 reg = <0x10030000 0x100>; 282 283 interrupt-parent = <&intc>; 284 interrupts = <51>; 285 286 clocks = <&ext>, <&cgu JZ4780_ 287 clock-names = "baud", "module" 288 289 status = "disabled"; 290 }; 291 292 uart1: serial@10031000 { 293 compatible = "ingenic,jz4780-u 294 reg = <0x10031000 0x100>; 295 296 interrupt-parent = <&intc>; 297 interrupts = <50>; 298 299 clocks = <&ext>, <&cgu JZ4780_ 300 clock-names = "baud", "module" 301 302 status = "disabled"; 303 }; 304 305 uart2: serial@10032000 { 306 compatible = "ingenic,jz4780-u 307 reg = <0x10032000 0x100>; 308 309 interrupt-parent = <&intc>; 310 interrupts = <49>; 311 312 clocks = <&ext>, <&cgu JZ4780_ 313 clock-names = "baud", "module" 314 315 status = "disabled"; 316 }; 317 318 uart3: serial@10033000 { 319 compatible = "ingenic,jz4780-u 320 reg = <0x10033000 0x100>; 321 322 interrupt-parent = <&intc>; 323 interrupts = <48>; 324 325 clocks = <&ext>, <&cgu JZ4780_ 326 clock-names = "baud", "module" 327 328 status = "disabled"; 329 }; 330 331 uart4: serial@10034000 { 332 compatible = "ingenic,jz4780-u 333 reg = <0x10034000 0x100>; 334 335 interrupt-parent = <&intc>; 336 interrupts = <34>; 337 338 clocks = <&ext>, <&cgu JZ4780_ 339 clock-names = "baud", "module" 340 341 status = "disabled"; 342 }; 343 344 spi1: spi@10044000 { 345 compatible = "ingenic,jz4780-s 346 reg = <0x10044000 0x1c>; 347 #address-cells = <1>; 348 #size-sells = <0>; 349 350 interrupt-parent = <&intc>; 351 interrupts = <7>; 352 353 clocks = <&cgu JZ4780_CLK_SSI1 354 clock-names = "spi"; 355 356 dmas = <&dma JZ4780_DMA_SSI1_R 357 <&dma JZ4780_DMA_SSI1_T 358 dma-names = "rx", "tx"; 359 360 status = "disabled"; 361 }; 362 363 i2c0: i2c@10050000 { 364 compatible = "ingenic,jz4780-i 365 #address-cells = <1>; 366 #size-cells = <0>; 367 368 reg = <0x10050000 0x1000>; 369 370 interrupt-parent = <&intc>; 371 interrupts = <60>; 372 373 clocks = <&cgu JZ4780_CLK_SMB0 374 clock-frequency = <100000>; 375 pinctrl-names = "default"; 376 pinctrl-0 = <&pins_i2c0_data>; 377 378 status = "disabled"; 379 }; 380 381 i2c1: i2c@10051000 { 382 compatible = "ingenic,jz4780-i 383 #address-cells = <1>; 384 #size-cells = <0>; 385 reg = <0x10051000 0x1000>; 386 387 interrupt-parent = <&intc>; 388 interrupts = <59>; 389 390 clocks = <&cgu JZ4780_CLK_SMB1 391 clock-frequency = <100000>; 392 pinctrl-names = "default"; 393 pinctrl-0 = <&pins_i2c1_data>; 394 395 status = "disabled"; 396 }; 397 398 i2c2: i2c@10052000 { 399 compatible = "ingenic,jz4780-i 400 #address-cells = <1>; 401 #size-cells = <0>; 402 reg = <0x10052000 0x1000>; 403 404 interrupt-parent = <&intc>; 405 interrupts = <58>; 406 407 clocks = <&cgu JZ4780_CLK_SMB2 408 clock-frequency = <100000>; 409 pinctrl-names = "default"; 410 pinctrl-0 = <&pins_i2c2_data>; 411 412 status = "disabled"; 413 }; 414 415 i2c3: i2c@10053000 { 416 compatible = "ingenic,jz4780-i 417 #address-cells = <1>; 418 #size-cells = <0>; 419 reg = <0x10053000 0x1000>; 420 421 interrupt-parent = <&intc>; 422 interrupts = <57>; 423 424 clocks = <&cgu JZ4780_CLK_SMB3 425 clock-frequency = <100000>; 426 pinctrl-names = "default"; 427 pinctrl-0 = <&pins_i2c3_data>; 428 429 status = "disabled"; 430 }; 431 432 i2c4: i2c@10054000 { 433 compatible = "ingenic,jz4780-i 434 #address-cells = <1>; 435 #size-cells = <0>; 436 reg = <0x10054000 0x1000>; 437 438 interrupt-parent = <&intc>; 439 interrupts = <56>; 440 441 clocks = <&cgu JZ4780_CLK_SMB4 442 clock-frequency = <100000>; 443 pinctrl-names = "default"; 444 pinctrl-0 = <&pins_i2c4_data>; 445 446 status = "disabled"; 447 }; 448 449 hdmi: hdmi@10180000 { 450 compatible = "ingenic,jz4780-d 451 reg = <0x10180000 0x8000>; 452 reg-io-width = <4>; 453 454 clocks = <&cgu JZ4780_CLK_AHB0 455 clock-names = "iahb", "isfr"; 456 457 interrupt-parent = <&intc>; 458 interrupts = <3>; 459 460 status = "disabled"; 461 }; 462 463 lcdc0: lcdc0@13050000 { 464 compatible = "ingenic,jz4780-l 465 reg = <0x13050000 0x1800>; 466 467 clocks = <&cgu JZ4780_CLK_TVE> 468 clock-names = "lcd", "lcd_pclk 469 470 interrupt-parent = <&intc>; 471 interrupts = <31>; 472 473 status = "disabled"; 474 }; 475 476 lcdc1: lcdc1@130a0000 { 477 compatible = "ingenic,jz4780-l 478 reg = <0x130a0000 0x1800>; 479 480 clocks = <&cgu JZ4780_CLK_TVE> 481 clock-names = "lcd", "lcd_pclk 482 483 interrupt-parent = <&intc>; 484 interrupts = <23>; 485 486 status = "disabled"; 487 }; 488 489 nemc: nemc@13410000 { 490 compatible = "ingenic,jz4780-n 491 reg = <0x13410000 0x10000>; 492 #address-cells = <2>; 493 #size-cells = <1>; 494 ranges = <0 0 0x13410000 0x100 495 <1 0 0x1b000000 0x100 496 <2 0 0x1a000000 0x100 497 <3 0 0x19000000 0x100 498 <4 0 0x18000000 0x100 499 <5 0 0x17000000 0x100 500 <6 0 0x16000000 0x100 501 502 clocks = <&cgu JZ4780_CLK_NEMC 503 504 status = "disabled"; 505 506 efuse: efuse@d0 { 507 reg = <0 0xd0 0x30>; 508 compatible = "ingenic, 509 510 clocks = <&cgu JZ4780_ 511 512 #address-cells = <1>; 513 #size-cells = <1>; 514 515 eth0_addr: eth-mac-add 516 reg = <0x22 0x 517 }; 518 }; 519 }; 520 521 dma: dma@13420000 { 522 compatible = "ingenic,jz4780-d 523 reg = <0x13420000 0x400>, <0x1 524 #dma-cells = <2>; 525 526 interrupt-parent = <&intc>; 527 interrupts = <10>; 528 529 clocks = <&cgu JZ4780_CLK_PDMA 530 }; 531 532 mmc0: mmc@13450000 { 533 compatible = "ingenic,jz4780-m 534 reg = <0x13450000 0x1000>; 535 536 interrupt-parent = <&intc>; 537 interrupts = <37>; 538 539 clocks = <&cgu JZ4780_CLK_MSC0 540 clock-names = "mmc"; 541 542 cap-sd-highspeed; 543 cap-mmc-highspeed; 544 cap-sdio-irq; 545 dmas = <&dma JZ4780_DMA_MSC0_R 546 <&dma JZ4780_DMA_MSC0_T 547 dma-names = "rx", "tx"; 548 549 status = "disabled"; 550 }; 551 552 mmc1: mmc@13460000 { 553 compatible = "ingenic,jz4780-m 554 reg = <0x13460000 0x1000>; 555 556 interrupt-parent = <&intc>; 557 interrupts = <36>; 558 559 clocks = <&cgu JZ4780_CLK_MSC1 560 clock-names = "mmc"; 561 562 cap-sd-highspeed; 563 cap-mmc-highspeed; 564 cap-sdio-irq; 565 dmas = <&dma JZ4780_DMA_MSC1_R 566 <&dma JZ4780_DMA_MSC1_T 567 dma-names = "rx", "tx"; 568 569 status = "disabled"; 570 }; 571 572 bch: bch@134d0000 { 573 compatible = "ingenic,jz4780-b 574 reg = <0x134d0000 0x10000>; 575 576 clocks = <&cgu JZ4780_CLK_BCH> 577 578 status = "disabled"; 579 }; 580 581 otg: usb@13500000 { 582 compatible = "ingenic,jz4780-o 583 reg = <0x13500000 0x40000>; 584 585 interrupt-parent = <&intc>; 586 interrupts = <21>; 587 588 clocks = <&cgu JZ4780_CLK_UHC> 589 clock-names = "otg"; 590 591 phys = <&otg_phy>; 592 phy-names = "usb2-phy"; 593 594 g-rx-fifo-size = <768>; 595 g-np-tx-fifo-size = <256>; 596 g-tx-fifo-size = <256 256 256 597 598 status = "disabled"; 599 }; 600 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.