1// SPDX-License-Identifier: GPL-2.0 2#include <dt-bindings/clock/ingenic,jz4780-cgu.h> 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,xburst-fpu1.0-mxu1.1"; 18 reg = <0>; 19 20 clocks = <&cgu JZ4780_CLK_CPU>; 21 clock-names = "cpu"; 22 }; 23 24 cpu1: cpu@1 { 25 device_type = "cpu"; 26 compatible = "ingenic,xburst-fpu1.0-mxu1.1"; 27 reg = <1>; 28 29 clocks = <&cgu JZ4780_CLK_CORE1>; 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-interrupt-controller"; 39 }; 40 41 intc: interrupt-controller@10001000 { 42 compatible = "ingenic,jz4780-intc"; 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-cgu", "simple-mfd"; 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,jz4780-phy"; 77 reg = <0x3c 0x10>; 78 79 clocks = <&cgu JZ4780_CLK_OTG1>; 80 81 #phy-cells = <0>; 82 83 status = "disabled"; 84 }; 85 86 rng: rng@d8 { 87 compatible = "ingenic,jz4780-rng"; 88 reg = <0xd8 0x8>; 89 90 status = "disabled"; 91 }; 92 }; 93 94 tcu: timer@10002000 { 95 compatible = "ingenic,jz4780-tcu", 96 "ingenic,jz4770-tcu", 97 "simple-mfd"; 98 reg = <0x10002000 0x1000>; 99 #address-cells = <1>; 100 #size-cells = <1>; 101 ranges = <0x0 0x10002000 0x1000>; 102 103 #clock-cells = <1>; 104 105 clocks = <&cgu JZ4780_CLK_RTCLK>, 106 <&cgu JZ4780_CLK_EXCLK>, 107 <&cgu JZ4780_CLK_PCLK>; 108 clock-names = "rtc", "ext", "pclk"; 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,jz4780-watchdog"; 118 reg = <0x0 0xc>; 119 120 clocks = <&tcu TCU_CLK_WDT>; 121 clock-names = "wdt"; 122 }; 123 124 pwm: pwm@40 { 125 compatible = "ingenic,jz4780-pwm", "ingenic,jz4740-pwm"; 126 reg = <0x40 0x80>; 127 128 #pwm-cells = <3>; 129 130 clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>, 131 <&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_TIMER3>, 132 <&tcu TCU_CLK_TIMER4>, <&tcu TCU_CLK_TIMER5>, 133 <&tcu TCU_CLK_TIMER6>, <&tcu TCU_CLK_TIMER7>; 134 clock-names = "timer0", "timer1", "timer2", "timer3", 135 "timer4", "timer5", "timer6", "timer7"; 136 }; 137 138 ost: timer@e0 { 139 compatible = "ingenic,jz4780-ost", "ingenic,jz4770-ost"; 140 reg = <0xe0 0x20>; 141 142 clocks = <&tcu TCU_CLK_OST>; 143 clock-names = "ost"; 144 145 interrupts = <15>; 146 }; 147 }; 148 149 rtc_dev: rtc@10003000 { 150 compatible = "ingenic,jz4780-rtc"; 151 reg = <0x10003000 0x4c>; 152 153 interrupt-parent = <&intc>; 154 interrupts = <32>; 155 156 clocks = <&cgu JZ4780_CLK_RTCLK>; 157 clock-names = "rtc"; 158 }; 159 160 pinctrl: pin-controller@10010000 { 161 compatible = "ingenic,jz4780-pinctrl"; 162 reg = <0x10010000 0x600>; 163 164 #address-cells = <1>; 165 #size-cells = <0>; 166 167 gpa: gpio@0 { 168 compatible = "ingenic,jz4780-gpio"; 169 reg = <0>; 170 171 gpio-controller; 172 gpio-ranges = <&pinctrl 0 0 32>; 173 #gpio-cells = <2>; 174 175 interrupt-controller; 176 #interrupt-cells = <2>; 177 178 interrupt-parent = <&intc>; 179 interrupts = <17>; 180 }; 181 182 gpb: gpio@1 { 183 compatible = "ingenic,jz4780-gpio"; 184 reg = <1>; 185 186 gpio-controller; 187 gpio-ranges = <&pinctrl 0 32 32>; 188 #gpio-cells = <2>; 189 190 interrupt-controller; 191 #interrupt-cells = <2>; 192 193 interrupt-parent = <&intc>; 194 interrupts = <16>; 195 }; 196 197 gpc: gpio@2 { 198 compatible = "ingenic,jz4780-gpio"; 199 reg = <2>; 200 201 gpio-controller; 202 gpio-ranges = <&pinctrl 0 64 32>; 203 #gpio-cells = <2>; 204 205 interrupt-controller; 206 #interrupt-cells = <2>; 207 208 interrupt-parent = <&intc>; 209 interrupts = <15>; 210 }; 211 212 gpd: gpio@3 { 213 compatible = "ingenic,jz4780-gpio"; 214 reg = <3>; 215 216 gpio-controller; 217 gpio-ranges = <&pinctrl 0 96 32>; 218 #gpio-cells = <2>; 219 220 interrupt-controller; 221 #interrupt-cells = <2>; 222 223 interrupt-parent = <&intc>; 224 interrupts = <14>; 225 }; 226 227 gpe: gpio@4 { 228 compatible = "ingenic,jz4780-gpio"; 229 reg = <4>; 230 231 gpio-controller; 232 gpio-ranges = <&pinctrl 0 128 32>; 233 #gpio-cells = <2>; 234 235 interrupt-controller; 236 #interrupt-cells = <2>; 237 238 interrupt-parent = <&intc>; 239 interrupts = <13>; 240 }; 241 242 gpf: gpio@5 { 243 compatible = "ingenic,jz4780-gpio"; 244 reg = <5>; 245 246 gpio-controller; 247 gpio-ranges = <&pinctrl 0 160 32>; 248 #gpio-cells = <2>; 249 250 interrupt-controller; 251 #interrupt-cells = <2>; 252 253 interrupt-parent = <&intc>; 254 interrupts = <12>; 255 }; 256 }; 257 258 spi0: spi@10043000 { 259 compatible = "ingenic,jz4780-spi"; 260 reg = <0x10043000 0x1c>; 261 #address-cells = <1>; 262 #size-cells = <0>; 263 264 interrupt-parent = <&intc>; 265 interrupts = <8>; 266 267 clocks = <&cgu JZ4780_CLK_SSI0>; 268 clock-names = "spi"; 269 270 dmas = <&dma JZ4780_DMA_SSI0_RX 0xffffffff>, 271 <&dma JZ4780_DMA_SSI0_TX 0xffffffff>; 272 dma-names = "rx", "tx"; 273 274 status = "disabled"; 275 }; 276 277 uart0: serial@10030000 { 278 compatible = "ingenic,jz4780-uart"; 279 reg = <0x10030000 0x100>; 280 281 interrupt-parent = <&intc>; 282 interrupts = <51>; 283 284 clocks = <&ext>, <&cgu JZ4780_CLK_UART0>; 285 clock-names = "baud", "module"; 286 287 status = "disabled"; 288 }; 289 290 uart1: serial@10031000 { 291 compatible = "ingenic,jz4780-uart"; 292 reg = <0x10031000 0x100>; 293 294 interrupt-parent = <&intc>; 295 interrupts = <50>; 296 297 clocks = <&ext>, <&cgu JZ4780_CLK_UART1>; 298 clock-names = "baud", "module"; 299 300 status = "disabled"; 301 }; 302 303 uart2: serial@10032000 { 304 compatible = "ingenic,jz4780-uart"; 305 reg = <0x10032000 0x100>; 306 307 interrupt-parent = <&intc>; 308 interrupts = <49>; 309 310 clocks = <&ext>, <&cgu JZ4780_CLK_UART2>; 311 clock-names = "baud", "module"; 312 313 status = "disabled"; 314 }; 315 316 uart3: serial@10033000 { 317 compatible = "ingenic,jz4780-uart"; 318 reg = <0x10033000 0x100>; 319 320 interrupt-parent = <&intc>; 321 interrupts = <48>; 322 323 clocks = <&ext>, <&cgu JZ4780_CLK_UART3>; 324 clock-names = "baud", "module"; 325 326 status = "disabled"; 327 }; 328 329 uart4: serial@10034000 { 330 compatible = "ingenic,jz4780-uart"; 331 reg = <0x10034000 0x100>; 332 333 interrupt-parent = <&intc>; 334 interrupts = <34>; 335 336 clocks = <&ext>, <&cgu JZ4780_CLK_UART4>; 337 clock-names = "baud", "module"; 338 339 status = "disabled"; 340 }; 341 342 spi1: spi@10044000 { 343 compatible = "ingenic,jz4780-spi"; 344 reg = <0x10044000 0x1c>; 345 #address-cells = <1>; 346 #size-sells = <0>; 347 348 interrupt-parent = <&intc>; 349 interrupts = <7>; 350 351 clocks = <&cgu JZ4780_CLK_SSI1>; 352 clock-names = "spi"; 353 354 dmas = <&dma JZ4780_DMA_SSI1_RX 0xffffffff>, 355 <&dma JZ4780_DMA_SSI1_TX 0xffffffff>; 356 dma-names = "rx", "tx"; 357 358 status = "disabled"; 359 }; 360 361 i2c0: i2c@10050000 { 362 compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c"; 363 #address-cells = <1>; 364 #size-cells = <0>; 365 366 reg = <0x10050000 0x1000>; 367 368 interrupt-parent = <&intc>; 369 interrupts = <60>; 370 371 clocks = <&cgu JZ4780_CLK_SMB0>; 372 clock-frequency = <100000>; 373 pinctrl-names = "default"; 374 pinctrl-0 = <&pins_i2c0_data>; 375 376 status = "disabled"; 377 }; 378 379 i2c1: i2c@10051000 { 380 compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c"; 381 #address-cells = <1>; 382 #size-cells = <0>; 383 reg = <0x10051000 0x1000>; 384 385 interrupt-parent = <&intc>; 386 interrupts = <59>; 387 388 clocks = <&cgu JZ4780_CLK_SMB1>; 389 clock-frequency = <100000>; 390 pinctrl-names = "default"; 391 pinctrl-0 = <&pins_i2c1_data>; 392 393 status = "disabled"; 394 }; 395 396 i2c2: i2c@10052000 { 397 compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c"; 398 #address-cells = <1>; 399 #size-cells = <0>; 400 reg = <0x10052000 0x1000>; 401 402 interrupt-parent = <&intc>; 403 interrupts = <58>; 404 405 clocks = <&cgu JZ4780_CLK_SMB2>; 406 clock-frequency = <100000>; 407 pinctrl-names = "default"; 408 pinctrl-0 = <&pins_i2c2_data>; 409 410 status = "disabled"; 411 }; 412 413 i2c3: i2c@10053000 { 414 compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c"; 415 #address-cells = <1>; 416 #size-cells = <0>; 417 reg = <0x10053000 0x1000>; 418 419 interrupt-parent = <&intc>; 420 interrupts = <57>; 421 422 clocks = <&cgu JZ4780_CLK_SMB3>; 423 clock-frequency = <100000>; 424 pinctrl-names = "default"; 425 pinctrl-0 = <&pins_i2c3_data>; 426 427 status = "disabled"; 428 }; 429 430 i2c4: i2c@10054000 { 431 compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c"; 432 #address-cells = <1>; 433 #size-cells = <0>; 434 reg = <0x10054000 0x1000>; 435 436 interrupt-parent = <&intc>; 437 interrupts = <56>; 438 439 clocks = <&cgu JZ4780_CLK_SMB4>; 440 clock-frequency = <100000>; 441 pinctrl-names = "default"; 442 pinctrl-0 = <&pins_i2c4_data>; 443 444 status = "disabled"; 445 }; 446 447 nemc: nemc@13410000 { 448 compatible = "ingenic,jz4780-nemc", "simple-mfd"; 449 reg = <0x13410000 0x10000>; 450 #address-cells = <2>; 451 #size-cells = <1>; 452 ranges = <0 0 0x13410000 0x10000>, 453 <1 0 0x1b000000 0x1000000>, 454 <2 0 0x1a000000 0x1000000>, 455 <3 0 0x19000000 0x1000000>, 456 <4 0 0x18000000 0x1000000>, 457 <5 0 0x17000000 0x1000000>, 458 <6 0 0x16000000 0x1000000>; 459 460 clocks = <&cgu JZ4780_CLK_NEMC>; 461 462 status = "disabled"; 463 464 efuse: efuse@d0 { 465 reg = <0 0xd0 0x30>; 466 compatible = "ingenic,jz4780-efuse"; 467 468 clocks = <&cgu JZ4780_CLK_AHB2>; 469 470 #address-cells = <1>; 471 #size-cells = <1>; 472 473 eth0_addr: eth-mac-addr@0x22 { 474 reg = <0x22 0x6>; 475 }; 476 }; 477 }; 478 479 dma: dma@13420000 { 480 compatible = "ingenic,jz4780-dma"; 481 reg = <0x13420000 0x400>, <0x13421000 0x40>; 482 #dma-cells = <2>; 483 484 interrupt-parent = <&intc>; 485 interrupts = <10>; 486 487 clocks = <&cgu JZ4780_CLK_PDMA>; 488 }; 489 490 mmc0: mmc@13450000 { 491 compatible = "ingenic,jz4780-mmc"; 492 reg = <0x13450000 0x1000>; 493 494 interrupt-parent = <&intc>; 495 interrupts = <37>; 496 497 clocks = <&cgu JZ4780_CLK_MSC0>; 498 clock-names = "mmc"; 499 500 cap-sd-highspeed; 501 cap-mmc-highspeed; 502 cap-sdio-irq; 503 dmas = <&dma JZ4780_DMA_MSC0_RX 0xffffffff>, 504 <&dma JZ4780_DMA_MSC0_TX 0xffffffff>; 505 dma-names = "rx", "tx"; 506 507 status = "disabled"; 508 }; 509 510 mmc1: mmc@13460000 { 511 compatible = "ingenic,jz4780-mmc"; 512 reg = <0x13460000 0x1000>; 513 514 interrupt-parent = <&intc>; 515 interrupts = <36>; 516 517 clocks = <&cgu JZ4780_CLK_MSC1>; 518 clock-names = "mmc"; 519 520 cap-sd-highspeed; 521 cap-mmc-highspeed; 522 cap-sdio-irq; 523 dmas = <&dma JZ4780_DMA_MSC1_RX 0xffffffff>, 524 <&dma JZ4780_DMA_MSC1_TX 0xffffffff>; 525 dma-names = "rx", "tx"; 526 527 status = "disabled"; 528 }; 529 530 bch: bch@134d0000 { 531 compatible = "ingenic,jz4780-bch"; 532 reg = <0x134d0000 0x10000>; 533 534 clocks = <&cgu JZ4780_CLK_BCH>; 535 536 status = "disabled"; 537 }; 538 539 otg: usb@13500000 { 540 compatible = "ingenic,jz4780-otg", "snps,dwc2"; 541 reg = <0x13500000 0x40000>; 542 543 interrupt-parent = <&intc>; 544 interrupts = <21>; 545 546 clocks = <&cgu JZ4780_CLK_UHC>; 547 clock-names = "otg"; 548 549 phys = <&otg_phy>; 550 phy-names = "usb2-phy"; 551 552 g-rx-fifo-size = <768>; 553 g-np-tx-fifo-size = <256>; 554 g-tx-fifo-size = <256 256 256 256 256 256 256 512>; 555 556 status = "disabled"; 557 }; 558}; 559