1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Copyright (c) 2018 MediaTek Inc.
4 * Author: Ben Ho <ben.ho@mediatek.com>
5 * Erin Lo <erin.lo@mediatek.com>
8 #include <dt-bindings/clock/mt8183-clk.h>
9 #include <dt-bindings/interrupt-controller/arm-gic.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/reset-controller/mt8183-resets.h>
12 #include "mt8183-pinfunc.h"
15 compatible = "mediatek,mt8183";
16 interrupt-parent = <&sysirq>;
73 compatible = "arm,cortex-a53";
75 enable-method = "psci";
76 capacity-dmips-mhz = <741>;
77 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
78 dynamic-power-coefficient = <84>;
84 compatible = "arm,cortex-a53";
86 enable-method = "psci";
87 capacity-dmips-mhz = <741>;
88 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
89 dynamic-power-coefficient = <84>;
95 compatible = "arm,cortex-a53";
97 enable-method = "psci";
98 capacity-dmips-mhz = <741>;
99 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
100 dynamic-power-coefficient = <84>;
101 #cooling-cells = <2>;
106 compatible = "arm,cortex-a53";
108 enable-method = "psci";
109 capacity-dmips-mhz = <741>;
110 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
111 dynamic-power-coefficient = <84>;
112 #cooling-cells = <2>;
117 compatible = "arm,cortex-a73";
119 enable-method = "psci";
120 capacity-dmips-mhz = <1024>;
121 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
122 dynamic-power-coefficient = <211>;
123 #cooling-cells = <2>;
128 compatible = "arm,cortex-a73";
130 enable-method = "psci";
131 capacity-dmips-mhz = <1024>;
132 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
133 dynamic-power-coefficient = <211>;
134 #cooling-cells = <2>;
139 compatible = "arm,cortex-a73";
141 enable-method = "psci";
142 capacity-dmips-mhz = <1024>;
143 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
144 dynamic-power-coefficient = <211>;
145 #cooling-cells = <2>;
150 compatible = "arm,cortex-a73";
152 enable-method = "psci";
153 capacity-dmips-mhz = <1024>;
154 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
155 dynamic-power-coefficient = <211>;
156 #cooling-cells = <2>;
160 entry-method = "psci";
162 CPU_SLEEP: cpu-sleep {
163 compatible = "arm,idle-state";
165 arm,psci-suspend-param = <0x00010001>;
166 entry-latency-us = <200>;
167 exit-latency-us = <200>;
168 min-residency-us = <800>;
171 CLUSTER_SLEEP: cluster-sleep {
172 compatible = "arm,idle-state";
174 arm,psci-suspend-param = <0x01010001>;
175 entry-latency-us = <250>;
176 exit-latency-us = <400>;
177 min-residency-us = <1300>;
183 compatible = "arm,cortex-a53-pmu";
184 interrupt-parent = <&gic>;
185 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster0>;
189 compatible = "arm,cortex-a73-pmu";
190 interrupt-parent = <&gic>;
191 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster1>;
195 compatible = "arm,psci-1.0";
200 compatible = "fixed-clock";
202 clock-frequency = <26000000>;
203 clock-output-names = "clk26m";
207 compatible = "arm,armv8-timer";
208 interrupt-parent = <&gic>;
209 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>,
210 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>,
211 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>,
212 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>;
216 #address-cells = <2>;
218 compatible = "simple-bus";
221 soc_data: soc_data@8000000 {
222 compatible = "mediatek,mt8183-efuse",
224 reg = <0 0x08000000 0 0x0010>;
225 #address-cells = <1>;
230 gic: interrupt-controller@c000000 {
231 compatible = "arm,gic-v3";
232 #interrupt-cells = <4>;
233 interrupt-parent = <&gic>;
234 interrupt-controller;
235 reg = <0 0x0c000000 0 0x40000>, /* GICD */
236 <0 0x0c100000 0 0x200000>, /* GICR */
237 <0 0x0c400000 0 0x2000>, /* GICC */
238 <0 0x0c410000 0 0x1000>, /* GICH */
239 <0 0x0c420000 0 0x2000>; /* GICV */
241 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
243 ppi_cluster0: interrupt-partition-0 {
244 affinity = <&cpu0 &cpu1 &cpu2 &cpu3>;
246 ppi_cluster1: interrupt-partition-1 {
247 affinity = <&cpu4 &cpu5 &cpu6 &cpu7>;
252 mcucfg: syscon@c530000 {
253 compatible = "mediatek,mt8183-mcucfg", "syscon";
254 reg = <0 0x0c530000 0 0x1000>;
258 sysirq: interrupt-controller@c530a80 {
259 compatible = "mediatek,mt8183-sysirq",
260 "mediatek,mt6577-sysirq";
261 interrupt-controller;
262 #interrupt-cells = <3>;
263 interrupt-parent = <&gic>;
264 reg = <0 0x0c530a80 0 0x50>;
267 topckgen: syscon@10000000 {
268 compatible = "mediatek,mt8183-topckgen", "syscon";
269 reg = <0 0x10000000 0 0x1000>;
273 infracfg: syscon@10001000 {
274 compatible = "mediatek,mt8183-infracfg", "syscon";
275 reg = <0 0x10001000 0 0x1000>;
280 pio: pinctrl@10005000 {
281 compatible = "mediatek,mt8183-pinctrl";
282 reg = <0 0x10005000 0 0x1000>,
283 <0 0x11f20000 0 0x1000>,
284 <0 0x11e80000 0 0x1000>,
285 <0 0x11e70000 0 0x1000>,
286 <0 0x11e90000 0 0x1000>,
287 <0 0x11d30000 0 0x1000>,
288 <0 0x11d20000 0 0x1000>,
289 <0 0x11c50000 0 0x1000>,
290 <0 0x11f30000 0 0x1000>,
291 <0 0x1000b000 0 0x1000>;
292 reg-names = "iocfg0", "iocfg1", "iocfg2",
293 "iocfg3", "iocfg4", "iocfg5",
294 "iocfg6", "iocfg7", "iocfg8",
298 gpio-ranges = <&pio 0 0 192>;
299 interrupt-controller;
300 interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
301 #interrupt-cells = <2>;
304 watchdog: watchdog@10007000 {
305 compatible = "mediatek,mt8183-wdt",
306 "mediatek,mt6589-wdt";
307 reg = <0 0x10007000 0 0x100>;
311 apmixedsys: syscon@1000c000 {
312 compatible = "mediatek,mt8183-apmixedsys", "syscon";
313 reg = <0 0x1000c000 0 0x1000>;
317 pwrap: pwrap@1000d000 {
318 compatible = "mediatek,mt8183-pwrap";
319 reg = <0 0x1000d000 0 0x1000>;
321 interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>;
322 clocks = <&topckgen CLK_TOP_MUX_PMICSPI>,
323 <&infracfg CLK_INFRA_PMIC_AP>;
324 clock-names = "spi", "wrap";
327 systimer: timer@10017000 {
328 compatible = "mediatek,mt8183-timer",
329 "mediatek,mt6765-timer";
330 reg = <0 0x10017000 0 0x1000>;
331 interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
332 clocks = <&topckgen CLK_TOP_CLK13M>;
333 clock-names = "clk13m";
336 gce: mailbox@10238000 {
337 compatible = "mediatek,mt8183-gce";
338 reg = <0 0x10238000 0 0x4000>;
339 interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_LOW>;
341 clocks = <&infracfg CLK_INFRA_GCE>;
345 auxadc: auxadc@11001000 {
346 compatible = "mediatek,mt8183-auxadc",
347 "mediatek,mt8173-auxadc";
348 reg = <0 0x11001000 0 0x1000>;
349 clocks = <&infracfg CLK_INFRA_AUXADC>;
350 clock-names = "main";
351 #io-channel-cells = <1>;
355 uart0: serial@11002000 {
356 compatible = "mediatek,mt8183-uart",
357 "mediatek,mt6577-uart";
358 reg = <0 0x11002000 0 0x1000>;
359 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
360 clocks = <&clk26m>, <&infracfg CLK_INFRA_UART0>;
361 clock-names = "baud", "bus";
365 uart1: serial@11003000 {
366 compatible = "mediatek,mt8183-uart",
367 "mediatek,mt6577-uart";
368 reg = <0 0x11003000 0 0x1000>;
369 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
370 clocks = <&clk26m>, <&infracfg CLK_INFRA_UART1>;
371 clock-names = "baud", "bus";
375 uart2: serial@11004000 {
376 compatible = "mediatek,mt8183-uart",
377 "mediatek,mt6577-uart";
378 reg = <0 0x11004000 0 0x1000>;
379 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>;
380 clocks = <&clk26m>, <&infracfg CLK_INFRA_UART2>;
381 clock-names = "baud", "bus";
386 compatible = "mediatek,mt8183-i2c";
387 reg = <0 0x11005000 0 0x1000>,
388 <0 0x11000600 0 0x80>;
389 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_LOW>;
390 clocks = <&infracfg CLK_INFRA_I2C6>,
391 <&infracfg CLK_INFRA_AP_DMA>;
392 clock-names = "main", "dma";
394 #address-cells = <1>;
400 compatible = "mediatek,mt8183-i2c";
401 reg = <0 0x11007000 0 0x1000>,
402 <0 0x11000080 0 0x80>;
403 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_LOW>;
404 clocks = <&infracfg CLK_INFRA_I2C0>,
405 <&infracfg CLK_INFRA_AP_DMA>;
406 clock-names = "main", "dma";
408 #address-cells = <1>;
414 compatible = "mediatek,mt8183-i2c";
415 reg = <0 0x11008000 0 0x1000>,
416 <0 0x11000100 0 0x80>;
417 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>;
418 clocks = <&infracfg CLK_INFRA_I2C1>,
419 <&infracfg CLK_INFRA_AP_DMA>,
420 <&infracfg CLK_INFRA_I2C1_ARBITER>;
421 clock-names = "main", "dma","arb";
423 #address-cells = <1>;
429 compatible = "mediatek,mt8183-i2c";
430 reg = <0 0x11009000 0 0x1000>,
431 <0 0x11000280 0 0x80>;
432 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_LOW>;
433 clocks = <&infracfg CLK_INFRA_I2C2>,
434 <&infracfg CLK_INFRA_AP_DMA>,
435 <&infracfg CLK_INFRA_I2C2_ARBITER>;
436 clock-names = "main", "dma", "arb";
438 #address-cells = <1>;
444 compatible = "mediatek,mt8183-spi";
445 #address-cells = <1>;
447 reg = <0 0x1100a000 0 0x1000>;
448 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_LOW>;
449 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
450 <&topckgen CLK_TOP_MUX_SPI>,
451 <&infracfg CLK_INFRA_SPI0>;
452 clock-names = "parent-clk", "sel-clk", "spi-clk";
457 compatible = "mediatek,mt8183-i2c";
458 reg = <0 0x1100f000 0 0x1000>,
459 <0 0x11000400 0 0x80>;
460 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>;
461 clocks = <&infracfg CLK_INFRA_I2C3>,
462 <&infracfg CLK_INFRA_AP_DMA>;
463 clock-names = "main", "dma";
465 #address-cells = <1>;
471 compatible = "mediatek,mt8183-spi";
472 #address-cells = <1>;
474 reg = <0 0x11010000 0 0x1000>;
475 interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_LOW>;
476 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
477 <&topckgen CLK_TOP_MUX_SPI>,
478 <&infracfg CLK_INFRA_SPI1>;
479 clock-names = "parent-clk", "sel-clk", "spi-clk";
484 compatible = "mediatek,mt8183-i2c";
485 reg = <0 0x11011000 0 0x1000>,
486 <0 0x11000480 0 0x80>;
487 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>;
488 clocks = <&infracfg CLK_INFRA_I2C4>,
489 <&infracfg CLK_INFRA_AP_DMA>;
490 clock-names = "main", "dma";
492 #address-cells = <1>;
498 compatible = "mediatek,mt8183-spi";
499 #address-cells = <1>;
501 reg = <0 0x11012000 0 0x1000>;
502 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
503 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
504 <&topckgen CLK_TOP_MUX_SPI>,
505 <&infracfg CLK_INFRA_SPI2>;
506 clock-names = "parent-clk", "sel-clk", "spi-clk";
511 compatible = "mediatek,mt8183-spi";
512 #address-cells = <1>;
514 reg = <0 0x11013000 0 0x1000>;
515 interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_LOW>;
516 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
517 <&topckgen CLK_TOP_MUX_SPI>,
518 <&infracfg CLK_INFRA_SPI3>;
519 clock-names = "parent-clk", "sel-clk", "spi-clk";
524 compatible = "mediatek,mt8183-i2c";
525 reg = <0 0x11014000 0 0x1000>,
526 <0 0x11000180 0 0x80>;
527 interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_LOW>;
528 clocks = <&infracfg CLK_INFRA_I2C1_IMM>,
529 <&infracfg CLK_INFRA_AP_DMA>,
530 <&infracfg CLK_INFRA_I2C1_ARBITER>;
531 clock-names = "main", "dma", "arb";
533 #address-cells = <1>;
538 i2c10: i2c@11015000 {
539 compatible = "mediatek,mt8183-i2c";
540 reg = <0 0x11015000 0 0x1000>,
541 <0 0x11000300 0 0x80>;
542 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_LOW>;
543 clocks = <&infracfg CLK_INFRA_I2C2_IMM>,
544 <&infracfg CLK_INFRA_AP_DMA>,
545 <&infracfg CLK_INFRA_I2C2_ARBITER>;
546 clock-names = "main", "dma", "arb";
548 #address-cells = <1>;
554 compatible = "mediatek,mt8183-i2c";
555 reg = <0 0x11016000 0 0x1000>,
556 <0 0x11000500 0 0x80>;
557 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>;
558 clocks = <&infracfg CLK_INFRA_I2C5>,
559 <&infracfg CLK_INFRA_AP_DMA>,
560 <&infracfg CLK_INFRA_I2C5_ARBITER>;
561 clock-names = "main", "dma", "arb";
563 #address-cells = <1>;
568 i2c11: i2c@11017000 {
569 compatible = "mediatek,mt8183-i2c";
570 reg = <0 0x11017000 0 0x1000>,
571 <0 0x11000580 0 0x80>;
572 interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_LOW>;
573 clocks = <&infracfg CLK_INFRA_I2C5_IMM>,
574 <&infracfg CLK_INFRA_AP_DMA>,
575 <&infracfg CLK_INFRA_I2C5_ARBITER>;
576 clock-names = "main", "dma", "arb";
578 #address-cells = <1>;
584 compatible = "mediatek,mt8183-spi";
585 #address-cells = <1>;
587 reg = <0 0x11018000 0 0x1000>;
588 interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_LOW>;
589 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
590 <&topckgen CLK_TOP_MUX_SPI>,
591 <&infracfg CLK_INFRA_SPI4>;
592 clock-names = "parent-clk", "sel-clk", "spi-clk";
597 compatible = "mediatek,mt8183-spi";
598 #address-cells = <1>;
600 reg = <0 0x11019000 0 0x1000>;
601 interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_LOW>;
602 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
603 <&topckgen CLK_TOP_MUX_SPI>,
604 <&infracfg CLK_INFRA_SPI5>;
605 clock-names = "parent-clk", "sel-clk", "spi-clk";
610 compatible = "mediatek,mt8183-i2c";
611 reg = <0 0x1101a000 0 0x1000>,
612 <0 0x11000680 0 0x80>;
613 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_LOW>;
614 clocks = <&infracfg CLK_INFRA_I2C7>,
615 <&infracfg CLK_INFRA_AP_DMA>;
616 clock-names = "main", "dma";
618 #address-cells = <1>;
624 compatible = "mediatek,mt8183-i2c";
625 reg = <0 0x1101b000 0 0x1000>,
626 <0 0x11000700 0 0x80>;
627 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_LOW>;
628 clocks = <&infracfg CLK_INFRA_I2C8>,
629 <&infracfg CLK_INFRA_AP_DMA>;
630 clock-names = "main", "dma";
632 #address-cells = <1>;
637 audiosys: syscon@11220000 {
638 compatible = "mediatek,mt8183-audiosys", "syscon";
639 reg = <0 0x11220000 0 0x1000>;
643 efuse: efuse@11f10000 {
644 compatible = "mediatek,mt8183-efuse",
646 reg = <0 0x11f10000 0 0x1000>;
649 mfgcfg: syscon@13000000 {
650 compatible = "mediatek,mt8183-mfgcfg", "syscon";
651 reg = <0 0x13000000 0 0x1000>;
655 mmsys: syscon@14000000 {
656 compatible = "mediatek,mt8183-mmsys", "syscon";
657 reg = <0 0x14000000 0 0x1000>;
661 imgsys: syscon@15020000 {
662 compatible = "mediatek,mt8183-imgsys", "syscon";
663 reg = <0 0x15020000 0 0x1000>;
667 vdecsys: syscon@16000000 {
668 compatible = "mediatek,mt8183-vdecsys", "syscon";
669 reg = <0 0x16000000 0 0x1000>;
673 vencsys: syscon@17000000 {
674 compatible = "mediatek,mt8183-vencsys", "syscon";
675 reg = <0 0x17000000 0 0x1000>;
679 ipu_conn: syscon@19000000 {
680 compatible = "mediatek,mt8183-ipu_conn", "syscon";
681 reg = <0 0x19000000 0 0x1000>;
685 ipu_adl: syscon@19010000 {
686 compatible = "mediatek,mt8183-ipu_adl", "syscon";
687 reg = <0 0x19010000 0 0x1000>;
691 ipu_core0: syscon@19180000 {
692 compatible = "mediatek,mt8183-ipu_core0", "syscon";
693 reg = <0 0x19180000 0 0x1000>;
697 ipu_core1: syscon@19280000 {
698 compatible = "mediatek,mt8183-ipu_core1", "syscon";
699 reg = <0 0x19280000 0 0x1000>;
703 camsys: syscon@1a000000 {
704 compatible = "mediatek,mt8183-camsys", "syscon";
705 reg = <0 0x1a000000 0 0x1000>;