Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 | /* * Copyright 2016 ZTE Corporation. * Copyright 2016 Linaro Ltd. * * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual * licensing only applies to this file, and not this project as a * whole. * * a) This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * Or, alternatively, * * b) Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ #include <dt-bindings/input/input.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/clock/zx296718-clock.h> / { compatible = "zte,zx296718"; #address-cells = <1>; #size-cells = <1>; interrupt-parent = <&gic>; aliases { gpio0 = &bgpio0; gpio1 = &bgpio1; gpio2 = &bgpio2; gpio3 = &bgpio3; gpio4 = &bgpio4; gpio5 = &bgpio5; gpio6 = &bgpio6; serial0 = &uart0; }; cpus { #address-cells = <2>; #size-cells = <0>; cpu-map { cluster0 { core0 { cpu = <&cpu0>; }; core1 { cpu = <&cpu1>; }; core2 { cpu = <&cpu2>; }; core3 { cpu = <&cpu3>; }; }; }; cpu0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a53","arm,armv8"; reg = <0x0 0x0>; enable-method = "psci"; clocks = <&topcrm A53_GATE>; operating-points-v2 = <&cluster0_opp>; }; cpu1: cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a53","arm,armv8"; reg = <0x0 0x1>; enable-method = "psci"; clocks = <&topcrm A53_GATE>; operating-points-v2 = <&cluster0_opp>; }; cpu2: cpu@2 { device_type = "cpu"; compatible = "arm,cortex-a53","arm,armv8"; reg = <0x0 0x2>; enable-method = "psci"; clocks = <&topcrm A53_GATE>; operating-points-v2 = <&cluster0_opp>; }; cpu3: cpu@3 { device_type = "cpu"; compatible = "arm,cortex-a53","arm,armv8"; reg = <0x0 0x3>; enable-method = "psci"; clocks = <&topcrm A53_GATE>; operating-points-v2 = <&cluster0_opp>; }; }; cluster0_opp: opp-table0 { compatible = "operating-points-v2"; opp-shared; opp-500000000 { opp-hz = /bits/ 64 <500000000>; opp-microvolt = <866000>; clock-latency-ns = <500000>; }; opp-648000000 { opp-hz = /bits/ 64 <648000000>; opp-microvolt = <866000>; clock-latency-ns = <500000>; }; opp-800000000 { opp-hz = /bits/ 64 <800000000>; opp-microvolt = <888000>; clock-latency-ns = <500000>; }; opp-1000000000 { opp-hz = /bits/ 64 <1000000000>; opp-microvolt = <898000>; clock-latency-ns = <500000>; }; opp-1188000000 { opp-hz = /bits/ 64 <1188000000>; opp-microvolt = <1015000>; clock-latency-ns = <500000>; }; }; clk24k: clk-24k { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <24000>; clock-output-names = "rtcclk"; }; osc32k: clk-osc32k { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <32000>; clock-output-names = "osc32k"; }; osc12m: clk-osc12m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <12000000>; clock-output-names = "osc12m"; }; osc24m: clk-osc24m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <24000000>; clock-output-names = "osc24m"; }; osc25m: clk-osc25m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <25000000>; clock-output-names = "osc25m"; }; osc60m: clk-osc60m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <60000000>; clock-output-names = "osc60m"; }; osc99m: clk-osc99m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <99000000>; clock-output-names = "osc99m"; }; osc125m: clk-osc125m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <125000000>; clock-output-names = "osc125m"; }; osc198m: clk-osc198m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <198000000>; clock-output-names = "osc198m"; }; pll_audio: clk-pll-884m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <884000000>; clock-output-names = "pll_audio"; }; pll_ddr: clk-pll-932m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <932000000>; clock-output-names = "pll_ddr"; }; pll_hsic: clk-pll-960m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <960000000>; clock-output-names = "pll_hsic"; }; pll_mac: clk-pll-1000m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <1000000000>; clock-output-names = "pll_mac"; }; pll_mm0: clk-pll-1188m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <1188000000>; clock-output-names = "pll_mm0"; }; pll_mm1: clk-pll-1296m { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <1296000000>; clock-output-names = "pll_mm1"; }; psci { compatible = "arm,psci-1.0"; method = "smc"; }; timer { compatible = "arm,armv8-timer"; interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; }; pmu { compatible = "arm,cortex-a53-pmu"; interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; }; gic: interrupt-controller@2a00000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>; #address-cells = <0>; interrupt-controller; reg = <0x02a00000 0x10000>, <0x02b00000 0xc0000>; interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; }; soc { #address-cells = <1>; #size-cells = <1>; compatible = "simple-bus"; ranges; irdec: ir-decoder@111000 { compatible = "zte,zx296718-irdec"; reg = <0x111000 0x1000>; interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; aon_sysctrl: aon-sysctrl@116000 { compatible = "zte,zx296718-aon-sysctrl", "syscon"; reg = <0x116000 0x1000>; }; iocfg: pin-controller@119000 { compatible = "zte,zx296718-iocfg"; reg = <0x119000 0x1000>; }; uart0: uart@11f000 { compatible = "arm,pl011", "arm,primecell"; arm,primecell-periphid = <0x001feffe>; reg = <0x11f000 0x1000>; interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; clocks = <&osc24m>; clock-names = "apb_pclk"; status = "disabled"; }; sd0: mmc@1110000 { compatible = "zte,zx296718-dw-mshc"; #address-cells = <1>; #size-cells = <0>; reg = <0x01110000 0x1000>; interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; fifo-depth = <32>; data-addr = <0x200>; fifo-watermark-aligned; bus-width = <4>; clock-frequency = <50000000>; clocks = <&topcrm SD0_AHB>, <&topcrm SD0_WCLK>; clock-names = "biu", "ciu"; max-frequency = <50000000>; cap-sdio-irq; cap-sd-highspeed; sd-uhs-sdr12; sd-uhs-sdr25; sd-uhs-sdr50; sd-uhs-sdr104; sd-uhs-ddr50; status = "disabled"; }; sd1: mmc@1111000 { compatible = "zte,zx296718-dw-mshc"; #address-cells = <1>; #size-cells = <0>; reg = <0x01111000 0x1000>; interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; fifo-depth = <32>; data-addr = <0x200>; fifo-watermark-aligned; bus-width = <4>; clock-frequency = <167000000>; clocks = <&topcrm SD1_AHB>, <&topcrm SD1_WCLK>; clock-names = "biu", "ciu"; max-frequency = <167000000>; cap-sdio-irq; cap-sd-highspeed; status = "disabled"; }; dma: dma-controller@1460000 { compatible = "zte,zx296702-dma"; reg = <0x01460000 0x1000>; interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; clocks = <&osc24m>; clock-names = "dmaclk"; #dma-cells = <1>; dma-channels = <32>; dma-requests = <32>; }; lsp0crm: clock-controller@1420000 { compatible = "zte,zx296718-lsp0crm"; reg = <0x01420000 0x1000>; #clock-cells = <1>; }; bgpio0: gpio@142d000 { compatible = "zte,zx296718-gpio", "zte,zx296702-gpio"; reg = <0x142d000 0x40>; gpio-controller; #gpio-cells = <2>; gpio-ranges = <&pmm 0 48 16>; interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; interrupt-controller; #interrupt-cells = <2>; }; bgpio1: gpio@142d040 { compatible = "zte,zx296718-gpio", "zte,zx296702-gpio"; reg = <0x142d040 0x40>; gpio-controller; #gpio-cells = <2>; gpio-ranges = <&pmm 0 80 16>; interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; interrupt-controller; #interrupt-cells = <2>; }; bgpio2: gpio@142d080 { compatible = "zte,zx296718-gpio", "zte,zx296702-gpio"; reg = <0x142d080 0x40>; gpio-controller; #gpio-cells = <2>; gpio-ranges = <&pmm 0 80 3 &pmm 3 32 4 &pmm 7 83 9>; interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; interrupt-controller; #interrupt-cells = <2>; }; bgpio3: gpio@142d0c0 { compatible = "zte,zx296718-gpio", "zte,zx296702-gpio"; reg = <0x142d0c0 0x40>; gpio-controller; #gpio-cells = <2>; gpio-ranges = <&pmm 0 92 16>; interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; interrupt-controller; #interrupt-cells = <2>; }; bgpio4: gpio@142d100 { compatible = "zte,zx296718-gpio", "zte,zx296702-gpio"; reg = <0x142d100 0x40>; gpio-controller; #gpio-cells = <2>; gpio-ranges = <&pmm 0 108 12 &pmm 12 121 4>; interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; interrupt-controller; #interrupt-cells = <2>; }; bgpio5: gpio@142d140 { compatible = "zte,zx296718-gpio", "zte,zx296702-gpio"; reg = <0x142d140 0x40>; gpio-controller; #gpio-cells = <2>; gpio-ranges = <&pmm 0 125 16>; interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; interrupt-controller; #interrupt-cells = <2>; }; bgpio6: gpio@142d180 { compatible = "zte,zx296718-gpio", "zte,zx296702-gpio"; reg = <0x142d180 0x40>; gpio-controller; #gpio-cells = <2>; gpio-ranges = <&pmm 0 141 2>; interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; interrupt-controller; #interrupt-cells = <2>; }; lsp1crm: clock-controller@1430000 { compatible = "zte,zx296718-lsp1crm"; reg = <0x01430000 0x1000>; #clock-cells = <1>; }; pwm: pwm@1439000 { compatible = "zte,zx296718-pwm"; reg = <0x1439000 0x1000>; clocks = <&lsp1crm LSP1_PWM_PCLK>, <&lsp1crm LSP1_PWM_WCLK>; clock-names = "pclk", "wclk"; #pwm-cells = <3>; status = "disabled"; }; vou: vou@1440000 { compatible = "zte,zx296718-vou"; #address-cells = <1>; #size-cells = <1>; ranges = <0 0x1440000 0x10000>; dpc: dpc@0 { compatible = "zte,zx296718-dpc"; reg = <0x0000 0x1000>, <0x1000 0x1000>, <0x5000 0x1000>, <0x6000 0x1000>, <0xa000 0x1000>; reg-names = "osd", "timing_ctrl", "dtrc", "vou_ctrl", "otfppu"; interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; clocks = <&topcrm VOU_ACLK>, <&topcrm VOU_PPU_WCLK>, <&topcrm VOU_MAIN_WCLK>, <&topcrm VOU_AUX_WCLK>; clock-names = "aclk", "ppu_wclk", "main_wclk", "aux_wclk"; }; vga: vga@8000 { compatible = "zte,zx296718-vga"; reg = <0x8000 0x1000>; interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; clocks = <&topcrm VGA_I2C_WCLK>; clock-names = "i2c_wclk"; zte,vga-power-control = <&sysctrl 0x170 0xe0>; status = "disabled"; }; hdmi: hdmi@c000 { compatible = "zte,zx296718-hdmi"; reg = <0xc000 0x4000>; interrupts = <GIC_SPI 82 IRQ_TYPE_EDGE_RISING>; clocks = <&topcrm HDMI_OSC_CEC>, <&topcrm HDMI_OSC_CLK>, <&topcrm HDMI_XCLK>; clock-names = "osc_cec", "osc_clk", "xclk"; #sound-dai-cells = <0>; status = "disabled"; }; tvenc: tvenc@2000 { compatible = "zte,zx296718-tvenc"; reg = <0x2000 0x1000>; zte,tvenc-power-control = <&sysctrl 0x170 0x10>; status = "disabled"; }; }; topcrm: clock-controller@1461000 { compatible = "zte,zx296718-topcrm"; reg = <0x01461000 0x1000>; #clock-cells = <1>; }; pmm: pin-controller@1462000 { compatible = "zte,zx296718-pmm"; reg = <0x1462000 0x1000>; zte,auxiliary-controller = <&iocfg>; }; sysctrl: sysctrl@1463000 { compatible = "zte,zx296718-sysctrl", "syscon"; reg = <0x1463000 0x1000>; }; emmc: mmc@1470000{ compatible = "zte,zx296718-dw-mshc"; reg = <0x01470000 0x1000>; interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; zte,aon-syscon = <&aon_sysctrl>; bus-width = <8>; fifo-depth = <128>; data-addr = <0x200>; fifo-watermark-aligned; clock-frequency = <167000000>; clocks = <&topcrm EMMC_NAND_AHB>, <&topcrm EMMC_WCLK>; clock-names = "biu", "ciu"; max-frequency = <167000000>; cap-mmc-highspeed; mmc-ddr-1_8v; mmc-hs200-1_8v; non-removable; disable-wp; status = "disabled"; }; audiocrm: clock-controller@1480000 { compatible = "zte,zx296718-audiocrm"; reg = <0x01480000 0x1000>; #clock-cells = <1>; }; i2s0: i2s@1482000 { compatible = "zte,zx296718-i2s", "zte,zx296702-i2s"; reg = <0x01482000 0x1000>; clocks = <&audiocrm AUDIO_I2S0_WCLK>, <&audiocrm AUDIO_I2S0_PCLK>; clock-names = "wclk", "pclk"; assigned-clocks = <&audiocrm I2S0_WCLK_MUX>; assigned-clock-parents = <&topcrm AUDIO_99M>; interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; dmas = <&dma 22>, <&dma 23>; dma-names = "tx", "rx"; #sound-dai-cells = <0>; status = "disabled"; }; i2c0: i2c@1486000 { compatible = "zte,zx296718-i2c"; reg = <0x01486000 0x1000>; interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; #address-cells = <1>; #size-cells = <0>; clocks = <&audiocrm AUDIO_I2C0_WCLK>; clock-frequency = <1600000>; status = "disabled"; aud96p22: codec@22 { compatible = "zte,zx-aud96p22"; #sound-dai-cells = <0>; reg = <0x22>; }; }; spdif0: spdif@1488000 { compatible = "zte,zx296702-spdif"; reg = <0x1488000 0x1000>; clocks = <&audiocrm AUDIO_SPDIF0_WCLK>; clock-names = "tx"; interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; #sound-dai-cells = <0>; dmas = <&dma 30>; dma-names = "tx"; status = "disabled"; }; }; }; |