blob: dee66e5f054c1fb9f70786ecbaa55bfb22d75e0c [file] [log] [blame]
Eddie Huangb3a37242015-12-01 10:14:00 +01001/*
2 * Copyright (c) 2014 MediaTek Inc.
3 * Author: Eddie Huang <eddie.huang@mediatek.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
Sascha Hauerf2ce7012015-05-20 15:32:44 +020014#include <dt-bindings/clock/mt8173-clk.h>
Eddie Huangb3a37242015-12-01 10:14:00 +010015#include <dt-bindings/interrupt-controller/irq.h>
16#include <dt-bindings/interrupt-controller/arm-gic.h>
Yong Wu5ff6b3a2016-02-23 01:20:51 +080017#include <dt-bindings/memory/mt8173-larb-port.h>
Chunfeng Yunbfcce472015-11-24 13:09:56 +020018#include <dt-bindings/phy/phy.h>
Koro Chenc02e0e82015-07-09 11:32:05 +080019#include <dt-bindings/power/mt8173-power.h>
Philipp Zabel967313e2015-11-20 12:42:44 +010020#include <dt-bindings/reset/mt8173-resets.h>
Houlong Weic2e66b82018-11-29 11:37:08 +080021#include <dt-bindings/gce/mt8173-gce.h>
Michael Kao26af2882020-04-24 16:23:40 +080022#include <dt-bindings/thermal/thermal.h>
Hongzhou Yang359f9362015-03-09 21:54:39 -070023#include "mt8173-pinfunc.h"
Eddie Huangb3a37242015-12-01 10:14:00 +010024
25/ {
26 compatible = "mediatek,mt8173";
27 interrupt-parent = <&sysirq>;
28 #address-cells = <2>;
29 #size-cells = <2>;
30
CK Hu81ad4db2016-06-03 16:59:29 +020031 aliases {
32 ovl0 = &ovl0;
33 ovl1 = &ovl1;
34 rdma0 = &rdma0;
35 rdma1 = &rdma1;
36 rdma2 = &rdma2;
37 wdma0 = &wdma0;
38 wdma1 = &wdma1;
39 color0 = &color0;
40 color1 = &color1;
41 split0 = &split0;
42 split1 = &split1;
43 dpi0 = &dpi0;
44 dsi0 = &dsi0;
45 dsi1 = &dsi1;
Hsin-Yi Wangfff12572020-04-14 11:08:14 +080046 mdp-rdma0 = &mdp_rdma0;
47 mdp-rdma1 = &mdp_rdma1;
48 mdp-rsz0 = &mdp_rsz0;
49 mdp-rsz1 = &mdp_rsz1;
50 mdp-rsz2 = &mdp_rsz2;
51 mdp-wdma0 = &mdp_wdma0;
52 mdp-wrot0 = &mdp_wrot0;
53 mdp-wrot1 = &mdp_wrot1;
Hsin-Yi Wang0f5da28e2020-02-10 14:35:21 +080054 serial0 = &uart0;
55 serial1 = &uart1;
56 serial2 = &uart2;
57 serial3 = &uart3;
CK Hu81ad4db2016-06-03 16:59:29 +020058 };
59
Andrew-sh Chengda85a3a2017-12-08 14:07:57 +080060 cluster0_opp: opp_table0 {
61 compatible = "operating-points-v2";
62 opp-shared;
63 opp-507000000 {
64 opp-hz = /bits/ 64 <507000000>;
65 opp-microvolt = <859000>;
66 };
67 opp-702000000 {
68 opp-hz = /bits/ 64 <702000000>;
69 opp-microvolt = <908000>;
70 };
71 opp-1001000000 {
72 opp-hz = /bits/ 64 <1001000000>;
73 opp-microvolt = <983000>;
74 };
75 opp-1105000000 {
76 opp-hz = /bits/ 64 <1105000000>;
77 opp-microvolt = <1009000>;
78 };
79 opp-1209000000 {
80 opp-hz = /bits/ 64 <1209000000>;
81 opp-microvolt = <1034000>;
82 };
83 opp-1300000000 {
84 opp-hz = /bits/ 64 <1300000000>;
85 opp-microvolt = <1057000>;
86 };
87 opp-1508000000 {
88 opp-hz = /bits/ 64 <1508000000>;
89 opp-microvolt = <1109000>;
90 };
91 opp-1703000000 {
92 opp-hz = /bits/ 64 <1703000000>;
93 opp-microvolt = <1125000>;
94 };
95 };
96
97 cluster1_opp: opp_table1 {
98 compatible = "operating-points-v2";
99 opp-shared;
100 opp-507000000 {
101 opp-hz = /bits/ 64 <507000000>;
102 opp-microvolt = <828000>;
103 };
104 opp-702000000 {
105 opp-hz = /bits/ 64 <702000000>;
106 opp-microvolt = <867000>;
107 };
108 opp-1001000000 {
109 opp-hz = /bits/ 64 <1001000000>;
110 opp-microvolt = <927000>;
111 };
112 opp-1209000000 {
113 opp-hz = /bits/ 64 <1209000000>;
114 opp-microvolt = <968000>;
115 };
116 opp-1404000000 {
117 opp-hz = /bits/ 64 <1404000000>;
118 opp-microvolt = <1007000>;
119 };
120 opp-1612000000 {
121 opp-hz = /bits/ 64 <1612000000>;
122 opp-microvolt = <1049000>;
123 };
124 opp-1807000000 {
125 opp-hz = /bits/ 64 <1807000000>;
126 opp-microvolt = <1089000>;
127 };
128 opp-2106000000 {
129 opp-hz = /bits/ 64 <2106000000>;
130 opp-microvolt = <1125000>;
131 };
132 };
133
Eddie Huangb3a37242015-12-01 10:14:00 +0100134 cpus {
135 #address-cells = <1>;
136 #size-cells = <0>;
137
138 cpu-map {
139 cluster0 {
140 core0 {
141 cpu = <&cpu0>;
142 };
143 core1 {
144 cpu = <&cpu1>;
145 };
146 };
147
148 cluster1 {
149 core0 {
150 cpu = <&cpu2>;
151 };
152 core1 {
153 cpu = <&cpu3>;
154 };
155 };
156 };
157
158 cpu0: cpu@0 {
159 device_type = "cpu";
160 compatible = "arm,cortex-a53";
161 reg = <0x000>;
Howard Chenad4df7a2015-06-04 15:13:37 +0800162 enable-method = "psci";
163 cpu-idle-states = <&CPU_SLEEP_0>;
Arnd Bergmannacbf76e2018-01-10 22:06:48 +0100164 #cooling-cells = <2>;
michael.kao19f62c72019-11-22 17:06:10 +0800165 dynamic-power-coefficient = <263>;
Andrew-sh Chengda85a3a2017-12-08 14:07:57 +0800166 clocks = <&infracfg CLK_INFRA_CA53SEL>,
167 <&apmixedsys CLK_APMIXED_MAINPLL>;
168 clock-names = "cpu", "intermediate";
169 operating-points-v2 = <&cluster0_opp>;
Hsin-Yi Wang79c528e2020-07-06 16:37:05 +0800170 capacity-dmips-mhz = <740>;
Eddie Huangb3a37242015-12-01 10:14:00 +0100171 };
172
173 cpu1: cpu@1 {
174 device_type = "cpu";
175 compatible = "arm,cortex-a53";
176 reg = <0x001>;
177 enable-method = "psci";
Howard Chenad4df7a2015-06-04 15:13:37 +0800178 cpu-idle-states = <&CPU_SLEEP_0>;
Viresh Kumara06e5c02018-05-25 11:10:04 +0530179 #cooling-cells = <2>;
michael.kao19f62c72019-11-22 17:06:10 +0800180 dynamic-power-coefficient = <263>;
Andrew-sh Chengda85a3a2017-12-08 14:07:57 +0800181 clocks = <&infracfg CLK_INFRA_CA53SEL>,
182 <&apmixedsys CLK_APMIXED_MAINPLL>;
183 clock-names = "cpu", "intermediate";
184 operating-points-v2 = <&cluster0_opp>;
Hsin-Yi Wang79c528e2020-07-06 16:37:05 +0800185 capacity-dmips-mhz = <740>;
Eddie Huangb3a37242015-12-01 10:14:00 +0100186 };
187
188 cpu2: cpu@100 {
189 device_type = "cpu";
Seiya Wang5c6e1162019-02-25 14:51:11 +0800190 compatible = "arm,cortex-a72";
Eddie Huangb3a37242015-12-01 10:14:00 +0100191 reg = <0x100>;
192 enable-method = "psci";
Howard Chenad4df7a2015-06-04 15:13:37 +0800193 cpu-idle-states = <&CPU_SLEEP_0>;
Arnd Bergmannacbf76e2018-01-10 22:06:48 +0100194 #cooling-cells = <2>;
michael.kao19f62c72019-11-22 17:06:10 +0800195 dynamic-power-coefficient = <530>;
Seiya Wang5c6e1162019-02-25 14:51:11 +0800196 clocks = <&infracfg CLK_INFRA_CA72SEL>,
Andrew-sh Chengda85a3a2017-12-08 14:07:57 +0800197 <&apmixedsys CLK_APMIXED_MAINPLL>;
198 clock-names = "cpu", "intermediate";
199 operating-points-v2 = <&cluster1_opp>;
Ulrich Hechtf0e54052019-07-19 11:50:16 +0200200 capacity-dmips-mhz = <1024>;
Eddie Huangb3a37242015-12-01 10:14:00 +0100201 };
202
203 cpu3: cpu@101 {
204 device_type = "cpu";
Seiya Wang5c6e1162019-02-25 14:51:11 +0800205 compatible = "arm,cortex-a72";
Eddie Huangb3a37242015-12-01 10:14:00 +0100206 reg = <0x101>;
207 enable-method = "psci";
Howard Chenad4df7a2015-06-04 15:13:37 +0800208 cpu-idle-states = <&CPU_SLEEP_0>;
Viresh Kumara06e5c02018-05-25 11:10:04 +0530209 #cooling-cells = <2>;
michael.kao19f62c72019-11-22 17:06:10 +0800210 dynamic-power-coefficient = <530>;
Seiya Wang5c6e1162019-02-25 14:51:11 +0800211 clocks = <&infracfg CLK_INFRA_CA72SEL>,
Andrew-sh Chengda85a3a2017-12-08 14:07:57 +0800212 <&apmixedsys CLK_APMIXED_MAINPLL>;
213 clock-names = "cpu", "intermediate";
214 operating-points-v2 = <&cluster1_opp>;
Ulrich Hechtf0e54052019-07-19 11:50:16 +0200215 capacity-dmips-mhz = <1024>;
Howard Chenad4df7a2015-06-04 15:13:37 +0800216 };
217
218 idle-states {
Lorenzo Pieralisia13f18f2015-09-24 15:53:56 +0100219 entry-method = "psci";
Howard Chenad4df7a2015-06-04 15:13:37 +0800220
221 CPU_SLEEP_0: cpu-sleep-0 {
222 compatible = "arm,idle-state";
223 local-timer-stop;
224 entry-latency-us = <639>;
225 exit-latency-us = <680>;
226 min-residency-us = <1088>;
227 arm,psci-suspend-param = <0x0010000>;
228 };
Eddie Huangb3a37242015-12-01 10:14:00 +0100229 };
230 };
231
Seiya Wanga4599f62019-01-09 16:21:43 +0800232 pmu_a53 {
233 compatible = "arm,cortex-a53-pmu";
234 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_LOW>,
235 <GIC_SPI 9 IRQ_TYPE_LEVEL_LOW>;
236 interrupt-affinity = <&cpu0>, <&cpu1>;
237 };
238
239 pmu_a72 {
240 compatible = "arm,cortex-a72-pmu";
241 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_LOW>,
242 <GIC_SPI 13 IRQ_TYPE_LEVEL_LOW>;
243 interrupt-affinity = <&cpu2>, <&cpu3>;
244 };
245
Eddie Huangb3a37242015-12-01 10:14:00 +0100246 psci {
Fan Chen05bdabe2015-08-28 10:11:59 +0800247 compatible = "arm,psci-1.0", "arm,psci-0.2", "arm,psci";
Eddie Huangb3a37242015-12-01 10:14:00 +0100248 method = "smc";
249 cpu_suspend = <0x84000001>;
250 cpu_off = <0x84000002>;
251 cpu_on = <0x84000003>;
252 };
253
Hsin-Yi Wang72b29212020-02-10 14:35:22 +0800254 clk26m: oscillator0 {
Sascha Hauerf2ce7012015-05-20 15:32:44 +0200255 compatible = "fixed-clock";
256 #clock-cells = <0>;
257 clock-frequency = <26000000>;
258 clock-output-names = "clk26m";
259 };
260
Hsin-Yi Wang72b29212020-02-10 14:35:22 +0800261 clk32k: oscillator1 {
Sascha Hauerf2ce7012015-05-20 15:32:44 +0200262 compatible = "fixed-clock";
263 #clock-cells = <0>;
264 clock-frequency = <32000>;
265 clock-output-names = "clk32k";
266 };
267
Hsin-Yi Wang72b29212020-02-10 14:35:22 +0800268 cpum_ck: oscillator2 {
James Liao67e56c52015-08-10 17:50:28 +0800269 compatible = "fixed-clock";
270 #clock-cells = <0>;
271 clock-frequency = <0>;
272 clock-output-names = "cpum_ck";
273 };
274
dawei.chien@mediatek.com962f5142016-03-15 16:10:36 +0800275 thermal-zones {
276 cpu_thermal: cpu_thermal {
277 polling-delay-passive = <1000>; /* milliseconds */
278 polling-delay = <1000>; /* milliseconds */
279
280 thermal-sensors = <&thermal>;
281 sustainable-power = <1500>; /* milliwatts */
282
283 trips {
Hsin-Yi Wang72b29212020-02-10 14:35:22 +0800284 threshold: trip-point0 {
dawei.chien@mediatek.com962f5142016-03-15 16:10:36 +0800285 temperature = <68000>;
286 hysteresis = <2000>;
287 type = "passive";
288 };
289
Hsin-Yi Wang72b29212020-02-10 14:35:22 +0800290 target: trip-point1 {
dawei.chien@mediatek.com962f5142016-03-15 16:10:36 +0800291 temperature = <85000>;
292 hysteresis = <2000>;
293 type = "passive";
294 };
295
Hsin-Yi Wang72b29212020-02-10 14:35:22 +0800296 cpu_crit: cpu_crit0 {
dawei.chien@mediatek.com962f5142016-03-15 16:10:36 +0800297 temperature = <115000>;
298 hysteresis = <2000>;
299 type = "critical";
300 };
301 };
302
303 cooling-maps {
Hsin-Yi Wang72b29212020-02-10 14:35:22 +0800304 map0 {
dawei.chien@mediatek.com962f5142016-03-15 16:10:36 +0800305 trip = <&target>;
Michael Kao26af2882020-04-24 16:23:40 +0800306 cooling-device = <&cpu0 THERMAL_NO_LIMIT
307 THERMAL_NO_LIMIT>,
308 <&cpu1 THERMAL_NO_LIMIT
309 THERMAL_NO_LIMIT>;
Daniel Kurtz7fcef922017-01-13 10:30:05 +0800310 contribution = <3072>;
dawei.chien@mediatek.com962f5142016-03-15 16:10:36 +0800311 };
Hsin-Yi Wang72b29212020-02-10 14:35:22 +0800312 map1 {
dawei.chien@mediatek.com962f5142016-03-15 16:10:36 +0800313 trip = <&target>;
Michael Kao26af2882020-04-24 16:23:40 +0800314 cooling-device = <&cpu2 THERMAL_NO_LIMIT
315 THERMAL_NO_LIMIT>,
316 <&cpu3 THERMAL_NO_LIMIT
317 THERMAL_NO_LIMIT>;
Daniel Kurtz7fcef922017-01-13 10:30:05 +0800318 contribution = <1024>;
dawei.chien@mediatek.com962f5142016-03-15 16:10:36 +0800319 };
320 };
321 };
322 };
323
Andrew-CT Chen404b2812016-05-03 07:11:22 -0300324 reserved-memory {
325 #address-cells = <2>;
326 #size-cells = <2>;
327 ranges;
Hsin-Yi Wang72b29212020-02-10 14:35:22 +0800328 vpu_dma_reserved: vpu_dma_mem_region@b7000000 {
Andrew-CT Chen404b2812016-05-03 07:11:22 -0300329 compatible = "shared-dma-pool";
330 reg = <0 0xb7000000 0 0x500000>;
331 alignment = <0x1000>;
332 no-map;
333 };
334 };
335
Eddie Huangb3a37242015-12-01 10:14:00 +0100336 timer {
337 compatible = "arm,armv8-timer";
338 interrupt-parent = <&gic>;
339 interrupts = <GIC_PPI 13
Daniel Kurtze881ad12015-05-20 18:20:07 +0800340 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
Eddie Huangb3a37242015-12-01 10:14:00 +0100341 <GIC_PPI 14
Daniel Kurtze881ad12015-05-20 18:20:07 +0800342 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
Eddie Huangb3a37242015-12-01 10:14:00 +0100343 <GIC_PPI 11
Daniel Kurtze881ad12015-05-20 18:20:07 +0800344 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
Eddie Huangb3a37242015-12-01 10:14:00 +0100345 <GIC_PPI 10
Daniel Kurtze881ad12015-05-20 18:20:07 +0800346 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Hsin-Yi Wangb5686272020-02-12 14:05:37 +0800347 arm,no-tick-in-suspend;
Eddie Huangb3a37242015-12-01 10:14:00 +0100348 };
349
350 soc {
351 #address-cells = <2>;
352 #size-cells = <2>;
353 compatible = "simple-bus";
354 ranges;
355
Sascha Hauerf2ce7012015-05-20 15:32:44 +0200356 topckgen: clock-controller@10000000 {
357 compatible = "mediatek,mt8173-topckgen";
358 reg = <0 0x10000000 0 0x1000>;
359 #clock-cells = <1>;
360 };
361
362 infracfg: power-controller@10001000 {
363 compatible = "mediatek,mt8173-infracfg", "syscon";
364 reg = <0 0x10001000 0 0x1000>;
365 #clock-cells = <1>;
366 #reset-cells = <1>;
367 };
368
369 pericfg: power-controller@10003000 {
370 compatible = "mediatek,mt8173-pericfg", "syscon";
371 reg = <0 0x10003000 0 0x1000>;
372 #clock-cells = <1>;
373 #reset-cells = <1>;
374 };
375
376 syscfg_pctl_a: syscfg_pctl_a@10005000 {
377 compatible = "mediatek,mt8173-pctl-a-syscfg", "syscon";
378 reg = <0 0x10005000 0 0x1000>;
379 };
380
Hsin-Yi Wang72b29212020-02-10 14:35:22 +0800381 pio: pinctrl@1000b000 {
Hongzhou Yang359f9362015-03-09 21:54:39 -0700382 compatible = "mediatek,mt8173-pinctrl";
Yingjoe Chen6769b932015-05-01 14:49:31 +0800383 reg = <0 0x1000b000 0 0x1000>;
Hongzhou Yang359f9362015-03-09 21:54:39 -0700384 mediatek,pctl-regmap = <&syscfg_pctl_a>;
385 pins-are-numbered;
386 gpio-controller;
387 #gpio-cells = <2>;
388 interrupt-controller;
389 #interrupt-cells = <2>;
390 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
Yingjoe Chen6769b932015-05-01 14:49:31 +0800391 <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
392 <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
Yingjoe Chen6769b932015-05-01 14:49:31 +0800393
CK Hua10b57f2016-08-11 11:59:59 +0200394 hdmi_pin: xxx {
395
396 /*hdmi htplg pin*/
397 pins1 {
398 pinmux = <MT8173_PIN_21_HTPLG__FUNC_HTPLG>;
399 input-enable;
400 bias-pull-down;
401 };
402 };
403
Eddie Huang091cf592015-06-17 23:08:03 +0800404 i2c0_pins_a: i2c0 {
405 pins1 {
406 pinmux = <MT8173_PIN_45_SDA0__FUNC_SDA0>,
407 <MT8173_PIN_46_SCL0__FUNC_SCL0>;
408 bias-disable;
409 };
410 };
411
412 i2c1_pins_a: i2c1 {
413 pins1 {
414 pinmux = <MT8173_PIN_125_SDA1__FUNC_SDA1>,
415 <MT8173_PIN_126_SCL1__FUNC_SCL1>;
416 bias-disable;
417 };
418 };
419
420 i2c2_pins_a: i2c2 {
421 pins1 {
422 pinmux = <MT8173_PIN_43_SDA2__FUNC_SDA2>,
423 <MT8173_PIN_44_SCL2__FUNC_SCL2>;
424 bias-disable;
425 };
426 };
427
428 i2c3_pins_a: i2c3 {
429 pins1 {
430 pinmux = <MT8173_PIN_106_SDA3__FUNC_SDA3>,
431 <MT8173_PIN_107_SCL3__FUNC_SCL3>;
432 bias-disable;
433 };
434 };
435
436 i2c4_pins_a: i2c4 {
437 pins1 {
438 pinmux = <MT8173_PIN_133_SDA4__FUNC_SDA4>,
439 <MT8173_PIN_134_SCL4__FUNC_SCL4>;
440 bias-disable;
441 };
442 };
443
444 i2c6_pins_a: i2c6 {
445 pins1 {
446 pinmux = <MT8173_PIN_100_MSDC2_DAT0__FUNC_SDA5>,
447 <MT8173_PIN_101_MSDC2_DAT1__FUNC_SCL5>;
448 bias-disable;
449 };
450 };
Hongzhou Yang359f9362015-03-09 21:54:39 -0700451 };
452
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +0100453 scpsys: syscon@10006000 {
454 compatible = "syscon", "simple-mfd";
Sascha Hauerc010ff52015-06-24 08:17:05 +0200455 reg = <0 0x10006000 0 0x1000>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +0100456 #power-domain-cells = <1>;
457
458 /* System Power Manager */
459 spm: power-controller {
460 compatible = "mediatek,mt8173-power-controller";
461 #address-cells = <1>;
462 #size-cells = <0>;
463 #power-domain-cells = <1>;
464
465 /* power domains of the SoC */
466 power-domain@MT8173_POWER_DOMAIN_VDEC {
467 reg = <MT8173_POWER_DOMAIN_VDEC>;
468 clocks = <&topckgen CLK_TOP_MM_SEL>;
469 clock-names = "mm";
470 #power-domain-cells = <0>;
471 };
472 power-domain@MT8173_POWER_DOMAIN_VENC {
473 reg = <MT8173_POWER_DOMAIN_VENC>;
474 clocks = <&topckgen CLK_TOP_MM_SEL>,
475 <&topckgen CLK_TOP_VENC_SEL>;
476 clock-names = "mm", "venc";
477 #power-domain-cells = <0>;
478 };
479 power-domain@MT8173_POWER_DOMAIN_ISP {
480 reg = <MT8173_POWER_DOMAIN_ISP>;
481 clocks = <&topckgen CLK_TOP_MM_SEL>;
482 clock-names = "mm";
483 #power-domain-cells = <0>;
484 };
485 power-domain@MT8173_POWER_DOMAIN_MM {
486 reg = <MT8173_POWER_DOMAIN_MM>;
487 clocks = <&topckgen CLK_TOP_MM_SEL>;
488 clock-names = "mm";
489 #power-domain-cells = <0>;
490 mediatek,infracfg = <&infracfg>;
491 };
492 power-domain@MT8173_POWER_DOMAIN_VENC_LT {
493 reg = <MT8173_POWER_DOMAIN_VENC_LT>;
494 clocks = <&topckgen CLK_TOP_MM_SEL>,
495 <&topckgen CLK_TOP_VENC_LT_SEL>;
496 clock-names = "mm", "venclt";
497 #power-domain-cells = <0>;
498 };
499 power-domain@MT8173_POWER_DOMAIN_AUDIO {
500 reg = <MT8173_POWER_DOMAIN_AUDIO>;
501 #power-domain-cells = <0>;
502 };
503 power-domain@MT8173_POWER_DOMAIN_USB {
504 reg = <MT8173_POWER_DOMAIN_USB>;
505 #power-domain-cells = <0>;
506 };
Bilal Wasim109fd202021-07-01 11:40:24 +0200507 mfg_async: power-domain@MT8173_POWER_DOMAIN_MFG_ASYNC {
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +0100508 reg = <MT8173_POWER_DOMAIN_MFG_ASYNC>;
509 clocks = <&clk26m>;
510 clock-names = "mfg";
511 #address-cells = <1>;
512 #size-cells = <0>;
513 #power-domain-cells = <1>;
514
515 power-domain@MT8173_POWER_DOMAIN_MFG_2D {
516 reg = <MT8173_POWER_DOMAIN_MFG_2D>;
517 #address-cells = <1>;
518 #size-cells = <0>;
519 #power-domain-cells = <1>;
520
521 power-domain@MT8173_POWER_DOMAIN_MFG {
522 reg = <MT8173_POWER_DOMAIN_MFG>;
523 #power-domain-cells = <0>;
524 mediatek,infracfg = <&infracfg>;
525 };
526 };
527 };
528 };
Sascha Hauerc010ff52015-06-24 08:17:05 +0200529 };
530
Eddie Huang13421b32015-06-01 21:08:26 +0800531 watchdog: watchdog@10007000 {
532 compatible = "mediatek,mt8173-wdt",
533 "mediatek,mt6589-wdt";
534 reg = <0 0x10007000 0 0x100>;
535 };
536
Daniel Kurtzb2c76e22015-10-02 23:05:19 +0800537 timer: timer@10008000 {
538 compatible = "mediatek,mt8173-timer",
539 "mediatek,mt6577-timer";
540 reg = <0 0x10008000 0 0x1000>;
541 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>;
542 clocks = <&infracfg CLK_INFRA_CLK_13M>,
543 <&topckgen CLK_TOP_RTC_SEL>;
544 };
545
Sascha Hauer6cf15fc2015-05-20 15:32:46 +0200546 pwrap: pwrap@1000d000 {
547 compatible = "mediatek,mt8173-pwrap";
548 reg = <0 0x1000d000 0 0x1000>;
549 reg-names = "pwrap";
550 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
551 resets = <&infracfg MT8173_INFRA_PMIC_WRAP_RST>;
552 reset-names = "pwrap";
553 clocks = <&infracfg CLK_INFRA_PMICSPI>, <&infracfg CLK_INFRA_PMICWRAP>;
554 clock-names = "spi", "wrap";
555 };
556
CK Hua10b57f2016-08-11 11:59:59 +0200557 cec: cec@10013000 {
558 compatible = "mediatek,mt8173-cec";
559 reg = <0 0x10013000 0 0xbc>;
560 interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>;
561 clocks = <&infracfg CLK_INFRA_CEC>;
562 status = "disabled";
563 };
564
Andrew-CT Chen404b2812016-05-03 07:11:22 -0300565 vpu: vpu@10020000 {
566 compatible = "mediatek,mt8173-vpu";
567 reg = <0 0x10020000 0 0x30000>,
568 <0 0x10050000 0 0x100>;
569 reg-names = "tcm", "cfg_reg";
570 interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
571 clocks = <&topckgen CLK_TOP_SCP_SEL>;
572 clock-names = "main";
573 memory-region = <&vpu_dma_reserved>;
574 };
575
Eddie Huangb3a37242015-12-01 10:14:00 +0100576 sysirq: intpol-controller@10200620 {
577 compatible = "mediatek,mt8173-sysirq",
Daniel Kurtze881ad12015-05-20 18:20:07 +0800578 "mediatek,mt6577-sysirq";
Eddie Huangb3a37242015-12-01 10:14:00 +0100579 interrupt-controller;
580 #interrupt-cells = <3>;
581 interrupt-parent = <&gic>;
582 reg = <0 0x10200620 0 0x20>;
583 };
584
Yong Wu5ff6b3a2016-02-23 01:20:51 +0800585 iommu: iommu@10205000 {
586 compatible = "mediatek,mt8173-m4u";
587 reg = <0 0x10205000 0 0x1000>;
588 interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_LOW>;
589 clocks = <&infracfg CLK_INFRA_M4U>;
590 clock-names = "bclk";
591 mediatek,larbs = <&larb0 &larb1 &larb2
592 &larb3 &larb4 &larb5>;
593 #iommu-cells = <1>;
594 };
595
andrew-ct.chen@mediatek.com93e9f5e2015-11-19 18:46:54 +0800596 efuse: efuse@10206000 {
597 compatible = "mediatek,mt8173-efuse";
598 reg = <0 0x10206000 0 0x1000>;
dawei.chien@mediatek.com6de18452017-01-13 13:52:51 +0800599 #address-cells = <1>;
600 #size-cells = <1>;
601 thermal_calibration: calib@528 {
602 reg = <0x528 0xc>;
603 };
andrew-ct.chen@mediatek.com93e9f5e2015-11-19 18:46:54 +0800604 };
605
Sascha Hauerf2ce7012015-05-20 15:32:44 +0200606 apmixedsys: clock-controller@10209000 {
607 compatible = "mediatek,mt8173-apmixedsys";
608 reg = <0 0x10209000 0 0x1000>;
609 #clock-cells = <1>;
610 };
611
CK Hua10b57f2016-08-11 11:59:59 +0200612 hdmi_phy: hdmi-phy@10209100 {
613 compatible = "mediatek,mt8173-hdmi-phy";
614 reg = <0 0x10209100 0 0x24>;
615 clocks = <&apmixedsys CLK_APMIXED_HDMI_REF>;
616 clock-names = "pll_ref";
617 clock-output-names = "hdmitx_dig_cts";
618 mediatek,ibias = <0xa>;
619 mediatek,ibias_up = <0x1c>;
620 #clock-cells = <0>;
621 #phy-cells = <0>;
622 status = "disabled";
623 };
624
Houlong Weic2e66b82018-11-29 11:37:08 +0800625 gce: mailbox@10212000 {
626 compatible = "mediatek,mt8173-gce";
627 reg = <0 0x10212000 0 0x1000>;
628 interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_LOW>;
629 clocks = <&infracfg CLK_INFRA_GCE>;
630 clock-names = "gce";
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +0800631 #mbox-cells = <2>;
Houlong Weic2e66b82018-11-29 11:37:08 +0800632 };
633
Chunfeng Yunc61872d2021-03-16 17:22:25 +0800634 mipi_tx0: dsi-phy@10215000 {
CK Hu81ad4db2016-06-03 16:59:29 +0200635 compatible = "mediatek,mt8173-mipi-tx";
636 reg = <0 0x10215000 0 0x1000>;
637 clocks = <&clk26m>;
638 clock-output-names = "mipi_tx0_pll";
639 #clock-cells = <0>;
640 #phy-cells = <0>;
641 status = "disabled";
642 };
643
Chunfeng Yunc61872d2021-03-16 17:22:25 +0800644 mipi_tx1: dsi-phy@10216000 {
CK Hu81ad4db2016-06-03 16:59:29 +0200645 compatible = "mediatek,mt8173-mipi-tx";
646 reg = <0 0x10216000 0 0x1000>;
647 clocks = <&clk26m>;
648 clock-output-names = "mipi_tx1_pll";
649 #clock-cells = <0>;
650 #phy-cells = <0>;
651 status = "disabled";
652 };
653
Hsin-Yi Wang72b29212020-02-10 14:35:22 +0800654 gic: interrupt-controller@10221000 {
Eddie Huangb3a37242015-12-01 10:14:00 +0100655 compatible = "arm,gic-400";
656 #interrupt-cells = <3>;
657 interrupt-parent = <&gic>;
658 interrupt-controller;
659 reg = <0 0x10221000 0 0x1000>,
660 <0 0x10222000 0 0x2000>,
661 <0 0x10224000 0 0x2000>,
662 <0 0x10226000 0 0x2000>;
663 interrupts = <GIC_PPI 9
664 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
665 };
666
Sascha Hauer748c7d42015-11-30 12:42:33 +0100667 auxadc: auxadc@11001000 {
668 compatible = "mediatek,mt8173-auxadc";
669 reg = <0 0x11001000 0 0x1000>;
Matthias Bruggera3207d62016-10-26 16:15:00 +0200670 clocks = <&pericfg CLK_PERI_AUXADC>;
671 clock-names = "main";
672 #io-channel-cells = <1>;
Sascha Hauer748c7d42015-11-30 12:42:33 +0100673 };
674
Eddie Huangb3a37242015-12-01 10:14:00 +0100675 uart0: serial@11002000 {
676 compatible = "mediatek,mt8173-uart",
Daniel Kurtze881ad12015-05-20 18:20:07 +0800677 "mediatek,mt6577-uart";
Eddie Huangb3a37242015-12-01 10:14:00 +0100678 reg = <0 0x11002000 0 0x400>;
679 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_LOW>;
Sascha Hauer0e84faa2015-05-20 15:32:45 +0200680 clocks = <&pericfg CLK_PERI_UART0_SEL>, <&pericfg CLK_PERI_UART0>;
681 clock-names = "baud", "bus";
Eddie Huangb3a37242015-12-01 10:14:00 +0100682 status = "disabled";
683 };
684
685 uart1: serial@11003000 {
686 compatible = "mediatek,mt8173-uart",
Daniel Kurtze881ad12015-05-20 18:20:07 +0800687 "mediatek,mt6577-uart";
Eddie Huangb3a37242015-12-01 10:14:00 +0100688 reg = <0 0x11003000 0 0x400>;
689 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>;
Sascha Hauer0e84faa2015-05-20 15:32:45 +0200690 clocks = <&pericfg CLK_PERI_UART1_SEL>, <&pericfg CLK_PERI_UART1>;
691 clock-names = "baud", "bus";
Eddie Huangb3a37242015-12-01 10:14:00 +0100692 status = "disabled";
693 };
694
695 uart2: serial@11004000 {
696 compatible = "mediatek,mt8173-uart",
Daniel Kurtze881ad12015-05-20 18:20:07 +0800697 "mediatek,mt6577-uart";
Eddie Huangb3a37242015-12-01 10:14:00 +0100698 reg = <0 0x11004000 0 0x400>;
699 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>;
Sascha Hauer0e84faa2015-05-20 15:32:45 +0200700 clocks = <&pericfg CLK_PERI_UART2_SEL>, <&pericfg CLK_PERI_UART2>;
701 clock-names = "baud", "bus";
Eddie Huangb3a37242015-12-01 10:14:00 +0100702 status = "disabled";
703 };
704
705 uart3: serial@11005000 {
706 compatible = "mediatek,mt8173-uart",
Daniel Kurtze881ad12015-05-20 18:20:07 +0800707 "mediatek,mt6577-uart";
Eddie Huangb3a37242015-12-01 10:14:00 +0100708 reg = <0 0x11005000 0 0x400>;
709 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>;
Sascha Hauer0e84faa2015-05-20 15:32:45 +0200710 clocks = <&pericfg CLK_PERI_UART3_SEL>, <&pericfg CLK_PERI_UART3>;
711 clock-names = "baud", "bus";
Eddie Huangb3a37242015-12-01 10:14:00 +0100712 status = "disabled";
713 };
Eddie Huang091cf592015-06-17 23:08:03 +0800714
715 i2c0: i2c@11007000 {
716 compatible = "mediatek,mt8173-i2c";
717 reg = <0 0x11007000 0 0x70>,
718 <0 0x11000100 0 0x80>;
719 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_LOW>;
720 clock-div = <16>;
721 clocks = <&pericfg CLK_PERI_I2C0>,
722 <&pericfg CLK_PERI_AP_DMA>;
723 clock-names = "main", "dma";
724 pinctrl-names = "default";
725 pinctrl-0 = <&i2c0_pins_a>;
726 #address-cells = <1>;
727 #size-cells = <0>;
728 status = "disabled";
729 };
730
731 i2c1: i2c@11008000 {
732 compatible = "mediatek,mt8173-i2c";
733 reg = <0 0x11008000 0 0x70>,
734 <0 0x11000180 0 0x80>;
735 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>;
736 clock-div = <16>;
737 clocks = <&pericfg CLK_PERI_I2C1>,
738 <&pericfg CLK_PERI_AP_DMA>;
739 clock-names = "main", "dma";
740 pinctrl-names = "default";
741 pinctrl-0 = <&i2c1_pins_a>;
742 #address-cells = <1>;
743 #size-cells = <0>;
744 status = "disabled";
745 };
746
747 i2c2: i2c@11009000 {
748 compatible = "mediatek,mt8173-i2c";
749 reg = <0 0x11009000 0 0x70>,
750 <0 0x11000200 0 0x80>;
751 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_LOW>;
752 clock-div = <16>;
753 clocks = <&pericfg CLK_PERI_I2C2>,
754 <&pericfg CLK_PERI_AP_DMA>;
755 clock-names = "main", "dma";
756 pinctrl-names = "default";
757 pinctrl-0 = <&i2c2_pins_a>;
758 #address-cells = <1>;
759 #size-cells = <0>;
760 status = "disabled";
761 };
762
Leilk Liub0c936f2015-08-31 21:44:19 +0800763 spi: spi@1100a000 {
764 compatible = "mediatek,mt8173-spi";
765 #address-cells = <1>;
766 #size-cells = <0>;
767 reg = <0 0x1100a000 0 0x1000>;
768 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>;
769 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
770 <&topckgen CLK_TOP_SPI_SEL>,
771 <&pericfg CLK_PERI_SPI0>;
772 clock-names = "parent-clk", "sel-clk", "spi-clk";
773 status = "disabled";
774 };
775
Sascha Hauer748c7d42015-11-30 12:42:33 +0100776 thermal: thermal@1100b000 {
777 #thermal-sensor-cells = <0>;
778 compatible = "mediatek,mt8173-thermal";
779 reg = <0 0x1100b000 0 0x1000>;
780 interrupts = <0 70 IRQ_TYPE_LEVEL_LOW>;
781 clocks = <&pericfg CLK_PERI_THERM>, <&pericfg CLK_PERI_AUXADC>;
782 clock-names = "therm", "auxadc";
783 resets = <&pericfg MT8173_PERI_THERM_SW_RST>;
784 mediatek,auxadc = <&auxadc>;
785 mediatek,apmixedsys = <&apmixedsys>;
dawei.chien@mediatek.com6de18452017-01-13 13:52:51 +0800786 nvmem-cells = <&thermal_calibration>;
787 nvmem-cell-names = "calibration-data";
Sascha Hauer748c7d42015-11-30 12:42:33 +0100788 };
789
Bayi Cheng86cb8a82015-12-07 11:53:14 +0800790 nor_flash: spi@1100d000 {
791 compatible = "mediatek,mt8173-nor";
792 reg = <0 0x1100d000 0 0xe0>;
793 clocks = <&pericfg CLK_PERI_SPI>,
794 <&topckgen CLK_TOP_SPINFI_IFR_SEL>;
795 clock-names = "spi", "sf";
796 #address-cells = <1>;
797 #size-cells = <0>;
798 status = "disabled";
799 };
800
Yingjoe Chen1ee35c052015-09-16 09:35:25 +0800801 i2c3: i2c@11010000 {
Eddie Huang091cf592015-06-17 23:08:03 +0800802 compatible = "mediatek,mt8173-i2c";
803 reg = <0 0x11010000 0 0x70>,
804 <0 0x11000280 0 0x80>;
805 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
806 clock-div = <16>;
807 clocks = <&pericfg CLK_PERI_I2C3>,
808 <&pericfg CLK_PERI_AP_DMA>;
809 clock-names = "main", "dma";
810 pinctrl-names = "default";
811 pinctrl-0 = <&i2c3_pins_a>;
812 #address-cells = <1>;
813 #size-cells = <0>;
814 status = "disabled";
815 };
816
Yingjoe Chen1ee35c052015-09-16 09:35:25 +0800817 i2c4: i2c@11011000 {
Eddie Huang091cf592015-06-17 23:08:03 +0800818 compatible = "mediatek,mt8173-i2c";
819 reg = <0 0x11011000 0 0x70>,
820 <0 0x11000300 0 0x80>;
821 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>;
822 clock-div = <16>;
823 clocks = <&pericfg CLK_PERI_I2C4>,
824 <&pericfg CLK_PERI_AP_DMA>;
825 clock-names = "main", "dma";
826 pinctrl-names = "default";
827 pinctrl-0 = <&i2c4_pins_a>;
828 #address-cells = <1>;
829 #size-cells = <0>;
830 status = "disabled";
831 };
832
CK Hua10b57f2016-08-11 11:59:59 +0200833 hdmiddc0: i2c@11012000 {
834 compatible = "mediatek,mt8173-hdmi-ddc";
835 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_LOW>;
836 reg = <0 0x11012000 0 0x1C>;
837 clocks = <&pericfg CLK_PERI_I2C5>;
838 clock-names = "ddc-i2c";
839 };
840
Yingjoe Chen1ee35c052015-09-16 09:35:25 +0800841 i2c6: i2c@11013000 {
Eddie Huang091cf592015-06-17 23:08:03 +0800842 compatible = "mediatek,mt8173-i2c";
843 reg = <0 0x11013000 0 0x70>,
844 <0 0x11000080 0 0x80>;
845 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>;
846 clock-div = <16>;
847 clocks = <&pericfg CLK_PERI_I2C6>,
848 <&pericfg CLK_PERI_AP_DMA>;
849 clock-names = "main", "dma";
850 pinctrl-names = "default";
851 pinctrl-0 = <&i2c6_pins_a>;
852 #address-cells = <1>;
853 #size-cells = <0>;
854 status = "disabled";
855 };
Koro Chenc02e0e82015-07-09 11:32:05 +0800856
857 afe: audio-controller@11220000 {
858 compatible = "mediatek,mt8173-afe-pcm";
859 reg = <0 0x11220000 0 0x1000>;
860 interrupts = <GIC_SPI 134 IRQ_TYPE_EDGE_FALLING>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +0100861 power-domains = <&spm MT8173_POWER_DOMAIN_AUDIO>;
Koro Chenc02e0e82015-07-09 11:32:05 +0800862 clocks = <&infracfg CLK_INFRA_AUDIO>,
863 <&topckgen CLK_TOP_AUDIO_SEL>,
864 <&topckgen CLK_TOP_AUD_INTBUS_SEL>,
865 <&topckgen CLK_TOP_APLL1_DIV0>,
866 <&topckgen CLK_TOP_APLL2_DIV0>,
867 <&topckgen CLK_TOP_I2S0_M_SEL>,
868 <&topckgen CLK_TOP_I2S1_M_SEL>,
869 <&topckgen CLK_TOP_I2S2_M_SEL>,
870 <&topckgen CLK_TOP_I2S3_M_SEL>,
871 <&topckgen CLK_TOP_I2S3_B_SEL>;
872 clock-names = "infra_sys_audio_clk",
873 "top_pdn_audio",
874 "top_pdn_aud_intbus",
875 "bck0",
876 "bck1",
877 "i2s0_m",
878 "i2s1_m",
879 "i2s2_m",
880 "i2s3_m",
881 "i2s3_b";
882 assigned-clocks = <&topckgen CLK_TOP_AUD_1_SEL>,
883 <&topckgen CLK_TOP_AUD_2_SEL>;
884 assigned-clock-parents = <&topckgen CLK_TOP_APLL1>,
885 <&topckgen CLK_TOP_APLL2>;
886 };
Eddie Huang9719fa52015-07-16 19:36:20 +0800887
888 mmc0: mmc@11230000 {
Chaotian Jing689362b2017-10-16 09:46:30 +0800889 compatible = "mediatek,mt8173-mmc";
Eddie Huang9719fa52015-07-16 19:36:20 +0800890 reg = <0 0x11230000 0 0x1000>;
891 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_LOW>;
892 clocks = <&pericfg CLK_PERI_MSDC30_0>,
893 <&topckgen CLK_TOP_MSDC50_0_H_SEL>;
894 clock-names = "source", "hclk";
895 status = "disabled";
896 };
897
898 mmc1: mmc@11240000 {
Chaotian Jing689362b2017-10-16 09:46:30 +0800899 compatible = "mediatek,mt8173-mmc";
Eddie Huang9719fa52015-07-16 19:36:20 +0800900 reg = <0 0x11240000 0 0x1000>;
901 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_LOW>;
902 clocks = <&pericfg CLK_PERI_MSDC30_1>,
903 <&topckgen CLK_TOP_AXI_SEL>;
904 clock-names = "source", "hclk";
905 status = "disabled";
906 };
907
908 mmc2: mmc@11250000 {
Chaotian Jing689362b2017-10-16 09:46:30 +0800909 compatible = "mediatek,mt8173-mmc";
Eddie Huang9719fa52015-07-16 19:36:20 +0800910 reg = <0 0x11250000 0 0x1000>;
911 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_LOW>;
912 clocks = <&pericfg CLK_PERI_MSDC30_2>,
913 <&topckgen CLK_TOP_AXI_SEL>;
914 clock-names = "source", "hclk";
915 status = "disabled";
916 };
917
918 mmc3: mmc@11260000 {
Chaotian Jing689362b2017-10-16 09:46:30 +0800919 compatible = "mediatek,mt8173-mmc";
Eddie Huang9719fa52015-07-16 19:36:20 +0800920 reg = <0 0x11260000 0 0x1000>;
921 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_LOW>;
922 clocks = <&pericfg CLK_PERI_MSDC30_3>,
923 <&topckgen CLK_TOP_MSDC50_2_H_SEL>;
924 clock-names = "source", "hclk";
925 status = "disabled";
926 };
James Liao67e56c52015-08-10 17:50:28 +0800927
Chunfeng Yunc0891282016-10-19 10:28:27 +0800928 ssusb: usb@11271000 {
Chunfeng Yunc61872d2021-03-16 17:22:25 +0800929 compatible = "mediatek,mt8173-mtu3", "mediatek,mtu3";
Chunfeng Yunc0891282016-10-19 10:28:27 +0800930 reg = <0 0x11271000 0 0x3000>,
Chunfeng Yunbfcce472015-11-24 13:09:56 +0200931 <0 0x11280700 0 0x0100>;
Chunfeng Yunc0891282016-10-19 10:28:27 +0800932 reg-names = "mac", "ippc";
933 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_LOW>;
chunfeng.yun@mediatek.comebf61c62017-03-31 15:35:33 +0800934 phys = <&u2port0 PHY_TYPE_USB2>,
935 <&u3port0 PHY_TYPE_USB3>,
936 <&u2port1 PHY_TYPE_USB2>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +0100937 power-domains = <&spm MT8173_POWER_DOMAIN_USB>;
Chunfeng Yuncf1fcd42018-01-03 16:53:22 +0800938 clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
939 clock-names = "sys_ck", "ref_ck";
940 mediatek,syscon-wakeup = <&pericfg 0x400 1>;
Chunfeng Yunc0891282016-10-19 10:28:27 +0800941 #address-cells = <2>;
942 #size-cells = <2>;
943 ranges;
944 status = "disabled";
945
Chunfeng Yunc61872d2021-03-16 17:22:25 +0800946 usb_host: usb@11270000 {
947 compatible = "mediatek,mt8173-xhci",
948 "mediatek,mtk-xhci";
Chunfeng Yunc0891282016-10-19 10:28:27 +0800949 reg = <0 0x11270000 0 0x1000>;
950 reg-names = "mac";
951 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +0100952 power-domains = <&spm MT8173_POWER_DOMAIN_USB>;
Chunfeng Yuncb6efc72017-02-07 14:13:31 +0800953 clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
954 clock-names = "sys_ck", "ref_ck";
Chunfeng Yunc0891282016-10-19 10:28:27 +0800955 status = "disabled";
956 };
Chunfeng Yunbfcce472015-11-24 13:09:56 +0200957 };
958
Chunfeng Yunc61872d2021-03-16 17:22:25 +0800959 u3phy: t-phy@11290000 {
Chunfeng Yunbfcce472015-11-24 13:09:56 +0200960 compatible = "mediatek,mt8173-u3phy";
961 reg = <0 0x11290000 0 0x800>;
Chunfeng Yunbfcce472015-11-24 13:09:56 +0200962 #address-cells = <2>;
963 #size-cells = <2>;
964 ranges;
965 status = "okay";
966
chunfeng.yun@mediatek.comebf61c62017-03-31 15:35:33 +0800967 u2port0: usb-phy@11290800 {
968 reg = <0 0x11290800 0 0x100>;
chunfeng.yun@mediatek.com10f84a72017-03-31 15:35:34 +0800969 clocks = <&apmixedsys CLK_APMIXED_REF2USB_TX>;
970 clock-names = "ref";
Chunfeng Yunbfcce472015-11-24 13:09:56 +0200971 #phy-cells = <1>;
972 status = "okay";
973 };
974
chunfeng.yun@mediatek.comebf61c62017-03-31 15:35:33 +0800975 u3port0: usb-phy@11290900 {
976 reg = <0 0x11290900 0 0x700>;
chunfeng.yun@mediatek.com10f84a72017-03-31 15:35:34 +0800977 clocks = <&clk26m>;
978 clock-names = "ref";
chunfeng.yun@mediatek.comebf61c62017-03-31 15:35:33 +0800979 #phy-cells = <1>;
980 status = "okay";
981 };
982
983 u2port1: usb-phy@11291000 {
984 reg = <0 0x11291000 0 0x100>;
chunfeng.yun@mediatek.com10f84a72017-03-31 15:35:34 +0800985 clocks = <&apmixedsys CLK_APMIXED_REF2USB_TX>;
986 clock-names = "ref";
Chunfeng Yunbfcce472015-11-24 13:09:56 +0200987 #phy-cells = <1>;
988 status = "okay";
989 };
990 };
991
Enric Balletbo i Serraae167ae2020-04-01 22:17:36 +0200992 mmsys: syscon@14000000 {
James Liao67e56c52015-08-10 17:50:28 +0800993 compatible = "mediatek,mt8173-mmsys", "syscon";
994 reg = <0 0x14000000 0 0x1000>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +0100995 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Bibby Hsiehfc6634a2016-08-04 10:57:18 +0800996 assigned-clocks = <&topckgen CLK_TOP_MM_SEL>;
997 assigned-clock-rates = <400000000>;
James Liao67e56c52015-08-10 17:50:28 +0800998 #clock-cells = <1>;
Enric Balletbo i Serra7fdb1bc2021-09-30 10:31:47 +0200999 #reset-cells = <1>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001000 mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>,
1001 <&gce 1 CMDQ_THR_PRIO_HIGHEST>;
1002 mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0 0x1000>;
James Liao67e56c52015-08-10 17:50:28 +08001003 };
1004
Daniel Kurtz81278812017-05-23 11:24:10 +08001005 mdp_rdma0: rdma@14001000 {
1006 compatible = "mediatek,mt8173-mdp-rdma",
1007 "mediatek,mt8173-mdp";
1008 reg = <0 0x14001000 0 0x1000>;
1009 clocks = <&mmsys CLK_MM_MDP_RDMA0>,
1010 <&mmsys CLK_MM_MUTEX_32K>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001011 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Daniel Kurtz81278812017-05-23 11:24:10 +08001012 iommus = <&iommu M4U_PORT_MDP_RDMA0>;
1013 mediatek,larb = <&larb0>;
Minghsiu Tsai989b2922016-09-08 10:09:04 -03001014 mediatek,vpu = <&vpu>;
Daniel Kurtz81278812017-05-23 11:24:10 +08001015 };
Minghsiu Tsai989b2922016-09-08 10:09:04 -03001016
Daniel Kurtz81278812017-05-23 11:24:10 +08001017 mdp_rdma1: rdma@14002000 {
1018 compatible = "mediatek,mt8173-mdp-rdma";
1019 reg = <0 0x14002000 0 0x1000>;
1020 clocks = <&mmsys CLK_MM_MDP_RDMA1>,
1021 <&mmsys CLK_MM_MUTEX_32K>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001022 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Daniel Kurtz81278812017-05-23 11:24:10 +08001023 iommus = <&iommu M4U_PORT_MDP_RDMA1>;
1024 mediatek,larb = <&larb4>;
1025 };
Minghsiu Tsai989b2922016-09-08 10:09:04 -03001026
Daniel Kurtz81278812017-05-23 11:24:10 +08001027 mdp_rsz0: rsz@14003000 {
1028 compatible = "mediatek,mt8173-mdp-rsz";
1029 reg = <0 0x14003000 0 0x1000>;
1030 clocks = <&mmsys CLK_MM_MDP_RSZ0>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001031 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Daniel Kurtz81278812017-05-23 11:24:10 +08001032 };
Minghsiu Tsai989b2922016-09-08 10:09:04 -03001033
Daniel Kurtz81278812017-05-23 11:24:10 +08001034 mdp_rsz1: rsz@14004000 {
1035 compatible = "mediatek,mt8173-mdp-rsz";
1036 reg = <0 0x14004000 0 0x1000>;
1037 clocks = <&mmsys CLK_MM_MDP_RSZ1>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001038 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Daniel Kurtz81278812017-05-23 11:24:10 +08001039 };
Minghsiu Tsai989b2922016-09-08 10:09:04 -03001040
Daniel Kurtz81278812017-05-23 11:24:10 +08001041 mdp_rsz2: rsz@14005000 {
1042 compatible = "mediatek,mt8173-mdp-rsz";
1043 reg = <0 0x14005000 0 0x1000>;
1044 clocks = <&mmsys CLK_MM_MDP_RSZ2>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001045 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Daniel Kurtz81278812017-05-23 11:24:10 +08001046 };
Minghsiu Tsai989b2922016-09-08 10:09:04 -03001047
Daniel Kurtz81278812017-05-23 11:24:10 +08001048 mdp_wdma0: wdma@14006000 {
1049 compatible = "mediatek,mt8173-mdp-wdma";
1050 reg = <0 0x14006000 0 0x1000>;
1051 clocks = <&mmsys CLK_MM_MDP_WDMA>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001052 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Daniel Kurtz81278812017-05-23 11:24:10 +08001053 iommus = <&iommu M4U_PORT_MDP_WDMA>;
1054 mediatek,larb = <&larb0>;
1055 };
Minghsiu Tsai989b2922016-09-08 10:09:04 -03001056
Daniel Kurtz81278812017-05-23 11:24:10 +08001057 mdp_wrot0: wrot@14007000 {
1058 compatible = "mediatek,mt8173-mdp-wrot";
1059 reg = <0 0x14007000 0 0x1000>;
1060 clocks = <&mmsys CLK_MM_MDP_WROT0>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001061 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Daniel Kurtz81278812017-05-23 11:24:10 +08001062 iommus = <&iommu M4U_PORT_MDP_WROT0>;
1063 mediatek,larb = <&larb0>;
1064 };
Minghsiu Tsai989b2922016-09-08 10:09:04 -03001065
Daniel Kurtz81278812017-05-23 11:24:10 +08001066 mdp_wrot1: wrot@14008000 {
1067 compatible = "mediatek,mt8173-mdp-wrot";
1068 reg = <0 0x14008000 0 0x1000>;
1069 clocks = <&mmsys CLK_MM_MDP_WROT1>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001070 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Daniel Kurtz81278812017-05-23 11:24:10 +08001071 iommus = <&iommu M4U_PORT_MDP_WROT1>;
1072 mediatek,larb = <&larb4>;
Minghsiu Tsai989b2922016-09-08 10:09:04 -03001073 };
1074
CK Hu81ad4db2016-06-03 16:59:29 +02001075 ovl0: ovl@1400c000 {
1076 compatible = "mediatek,mt8173-disp-ovl";
1077 reg = <0 0x1400c000 0 0x1000>;
1078 interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001079 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001080 clocks = <&mmsys CLK_MM_DISP_OVL0>;
1081 iommus = <&iommu M4U_PORT_DISP_OVL0>;
1082 mediatek,larb = <&larb0>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001083 mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xc000 0x1000>;
CK Hu81ad4db2016-06-03 16:59:29 +02001084 };
1085
1086 ovl1: ovl@1400d000 {
1087 compatible = "mediatek,mt8173-disp-ovl";
1088 reg = <0 0x1400d000 0 0x1000>;
1089 interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001090 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001091 clocks = <&mmsys CLK_MM_DISP_OVL1>;
1092 iommus = <&iommu M4U_PORT_DISP_OVL1>;
1093 mediatek,larb = <&larb4>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001094 mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xd000 0x1000>;
CK Hu81ad4db2016-06-03 16:59:29 +02001095 };
1096
1097 rdma0: rdma@1400e000 {
1098 compatible = "mediatek,mt8173-disp-rdma";
1099 reg = <0 0x1400e000 0 0x1000>;
1100 interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001101 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001102 clocks = <&mmsys CLK_MM_DISP_RDMA0>;
1103 iommus = <&iommu M4U_PORT_DISP_RDMA0>;
1104 mediatek,larb = <&larb0>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001105 mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xe000 0x1000>;
CK Hu81ad4db2016-06-03 16:59:29 +02001106 };
1107
1108 rdma1: rdma@1400f000 {
1109 compatible = "mediatek,mt8173-disp-rdma";
1110 reg = <0 0x1400f000 0 0x1000>;
1111 interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001112 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001113 clocks = <&mmsys CLK_MM_DISP_RDMA1>;
1114 iommus = <&iommu M4U_PORT_DISP_RDMA1>;
1115 mediatek,larb = <&larb4>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001116 mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xf000 0x1000>;
CK Hu81ad4db2016-06-03 16:59:29 +02001117 };
1118
1119 rdma2: rdma@14010000 {
1120 compatible = "mediatek,mt8173-disp-rdma";
1121 reg = <0 0x14010000 0 0x1000>;
1122 interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001123 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001124 clocks = <&mmsys CLK_MM_DISP_RDMA2>;
1125 iommus = <&iommu M4U_PORT_DISP_RDMA2>;
1126 mediatek,larb = <&larb4>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001127 mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0 0x1000>;
CK Hu81ad4db2016-06-03 16:59:29 +02001128 };
1129
1130 wdma0: wdma@14011000 {
1131 compatible = "mediatek,mt8173-disp-wdma";
1132 reg = <0 0x14011000 0 0x1000>;
1133 interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001134 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001135 clocks = <&mmsys CLK_MM_DISP_WDMA0>;
1136 iommus = <&iommu M4U_PORT_DISP_WDMA0>;
1137 mediatek,larb = <&larb0>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001138 mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x1000 0x1000>;
CK Hu81ad4db2016-06-03 16:59:29 +02001139 };
1140
1141 wdma1: wdma@14012000 {
1142 compatible = "mediatek,mt8173-disp-wdma";
1143 reg = <0 0x14012000 0 0x1000>;
1144 interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001145 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001146 clocks = <&mmsys CLK_MM_DISP_WDMA1>;
1147 iommus = <&iommu M4U_PORT_DISP_WDMA1>;
1148 mediatek,larb = <&larb4>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001149 mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x2000 0x1000>;
CK Hu81ad4db2016-06-03 16:59:29 +02001150 };
1151
1152 color0: color@14013000 {
1153 compatible = "mediatek,mt8173-disp-color";
1154 reg = <0 0x14013000 0 0x1000>;
1155 interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001156 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001157 clocks = <&mmsys CLK_MM_DISP_COLOR0>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001158 mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x3000 0x1000>;
CK Hu81ad4db2016-06-03 16:59:29 +02001159 };
1160
1161 color1: color@14014000 {
1162 compatible = "mediatek,mt8173-disp-color";
1163 reg = <0 0x14014000 0 0x1000>;
1164 interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001165 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001166 clocks = <&mmsys CLK_MM_DISP_COLOR1>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001167 mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x4000 0x1000>;
CK Hu81ad4db2016-06-03 16:59:29 +02001168 };
1169
1170 aal@14015000 {
1171 compatible = "mediatek,mt8173-disp-aal";
1172 reg = <0 0x14015000 0 0x1000>;
1173 interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001174 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001175 clocks = <&mmsys CLK_MM_DISP_AAL>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001176 mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x5000 0x1000>;
CK Hu81ad4db2016-06-03 16:59:29 +02001177 };
1178
1179 gamma@14016000 {
1180 compatible = "mediatek,mt8173-disp-gamma";
1181 reg = <0 0x14016000 0 0x1000>;
1182 interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001183 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001184 clocks = <&mmsys CLK_MM_DISP_GAMMA>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001185 mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x6000 0x1000>;
CK Hu81ad4db2016-06-03 16:59:29 +02001186 };
1187
1188 merge@14017000 {
1189 compatible = "mediatek,mt8173-disp-merge";
1190 reg = <0 0x14017000 0 0x1000>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001191 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001192 clocks = <&mmsys CLK_MM_DISP_MERGE>;
1193 };
1194
1195 split0: split@14018000 {
1196 compatible = "mediatek,mt8173-disp-split";
1197 reg = <0 0x14018000 0 0x1000>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001198 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001199 clocks = <&mmsys CLK_MM_DISP_SPLIT0>;
1200 };
1201
1202 split1: split@14019000 {
1203 compatible = "mediatek,mt8173-disp-split";
1204 reg = <0 0x14019000 0 0x1000>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001205 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001206 clocks = <&mmsys CLK_MM_DISP_SPLIT1>;
1207 };
1208
1209 ufoe@1401a000 {
1210 compatible = "mediatek,mt8173-disp-ufoe";
1211 reg = <0 0x1401a000 0 0x1000>;
1212 interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001213 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001214 clocks = <&mmsys CLK_MM_DISP_UFOE>;
1215 };
1216
1217 dsi0: dsi@1401b000 {
1218 compatible = "mediatek,mt8173-dsi";
1219 reg = <0 0x1401b000 0 0x1000>;
1220 interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001221 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001222 clocks = <&mmsys CLK_MM_DSI0_ENGINE>,
1223 <&mmsys CLK_MM_DSI0_DIGITAL>,
1224 <&mipi_tx0>;
1225 clock-names = "engine", "digital", "hs";
Enric Balletbo i Serra7fdb1bc2021-09-30 10:31:47 +02001226 resets = <&mmsys MT8173_MMSYS_SW0_RST_B_DISP_DSI0>;
CK Hu81ad4db2016-06-03 16:59:29 +02001227 phys = <&mipi_tx0>;
1228 phy-names = "dphy";
1229 status = "disabled";
1230 };
1231
1232 dsi1: dsi@1401c000 {
1233 compatible = "mediatek,mt8173-dsi";
1234 reg = <0 0x1401c000 0 0x1000>;
1235 interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001236 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001237 clocks = <&mmsys CLK_MM_DSI1_ENGINE>,
1238 <&mmsys CLK_MM_DSI1_DIGITAL>,
1239 <&mipi_tx1>;
1240 clock-names = "engine", "digital", "hs";
Chunfeng Yune4e5d032021-03-16 17:22:24 +08001241 phys = <&mipi_tx1>;
CK Hu81ad4db2016-06-03 16:59:29 +02001242 phy-names = "dphy";
1243 status = "disabled";
1244 };
1245
1246 dpi0: dpi@1401d000 {
1247 compatible = "mediatek,mt8173-dpi";
1248 reg = <0 0x1401d000 0 0x1000>;
1249 interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001250 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001251 clocks = <&mmsys CLK_MM_DPI_PIXEL>,
1252 <&mmsys CLK_MM_DPI_ENGINE>,
1253 <&apmixedsys CLK_APMIXED_TVDPLL>;
1254 clock-names = "pixel", "engine", "pll";
1255 status = "disabled";
CK Hua10b57f2016-08-11 11:59:59 +02001256
1257 port {
1258 dpi0_out: endpoint {
1259 remote-endpoint = <&hdmi0_in>;
1260 };
1261 };
CK Hu81ad4db2016-06-03 16:59:29 +02001262 };
1263
YH Huang61aee932015-10-06 15:40:43 +08001264 pwm0: pwm@1401e000 {
1265 compatible = "mediatek,mt8173-disp-pwm",
1266 "mediatek,mt6595-disp-pwm";
1267 reg = <0 0x1401e000 0 0x1000>;
1268 #pwm-cells = <2>;
1269 clocks = <&mmsys CLK_MM_DISP_PWM026M>,
1270 <&mmsys CLK_MM_DISP_PWM0MM>;
1271 clock-names = "main", "mm";
1272 status = "disabled";
1273 };
1274
1275 pwm1: pwm@1401f000 {
1276 compatible = "mediatek,mt8173-disp-pwm",
1277 "mediatek,mt6595-disp-pwm";
1278 reg = <0 0x1401f000 0 0x1000>;
1279 #pwm-cells = <2>;
1280 clocks = <&mmsys CLK_MM_DISP_PWM126M>,
1281 <&mmsys CLK_MM_DISP_PWM1MM>;
1282 clock-names = "main", "mm";
1283 status = "disabled";
1284 };
1285
CK Hu81ad4db2016-06-03 16:59:29 +02001286 mutex: mutex@14020000 {
1287 compatible = "mediatek,mt8173-disp-mutex";
1288 reg = <0 0x14020000 0 0x1000>;
1289 interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_LOW>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001290 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
CK Hu81ad4db2016-06-03 16:59:29 +02001291 clocks = <&mmsys CLK_MM_MUTEX_32K>;
Hsin-Yi Wangeb4a01a2020-04-09 13:50:12 +08001292 mediatek,gce-events = <CMDQ_EVENT_MUTEX0_STREAM_EOF>,
1293 <CMDQ_EVENT_MUTEX1_STREAM_EOF>;
CK Hu81ad4db2016-06-03 16:59:29 +02001294 };
1295
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001296 larb0: larb@14021000 {
1297 compatible = "mediatek,mt8173-smi-larb";
1298 reg = <0 0x14021000 0 0x1000>;
1299 mediatek,smi = <&smi_common>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001300 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001301 clocks = <&mmsys CLK_MM_SMI_LARB0>,
1302 <&mmsys CLK_MM_SMI_LARB0>;
1303 clock-names = "apb", "smi";
1304 };
1305
1306 smi_common: smi@14022000 {
1307 compatible = "mediatek,mt8173-smi-common";
1308 reg = <0 0x14022000 0 0x1000>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001309 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001310 clocks = <&mmsys CLK_MM_SMI_COMMON>,
1311 <&mmsys CLK_MM_SMI_COMMON>;
1312 clock-names = "apb", "smi";
1313 };
1314
CK Hu81ad4db2016-06-03 16:59:29 +02001315 od@14023000 {
1316 compatible = "mediatek,mt8173-disp-od";
1317 reg = <0 0x14023000 0 0x1000>;
1318 clocks = <&mmsys CLK_MM_DISP_OD>;
1319 };
1320
CK Hua10b57f2016-08-11 11:59:59 +02001321 hdmi0: hdmi@14025000 {
1322 compatible = "mediatek,mt8173-hdmi";
1323 reg = <0 0x14025000 0 0x400>;
1324 interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_LOW>;
1325 clocks = <&mmsys CLK_MM_HDMI_PIXEL>,
1326 <&mmsys CLK_MM_HDMI_PLLCK>,
1327 <&mmsys CLK_MM_HDMI_AUDIO>,
1328 <&mmsys CLK_MM_HDMI_SPDIF>;
1329 clock-names = "pixel", "pll", "bclk", "spdif";
1330 pinctrl-names = "default";
1331 pinctrl-0 = <&hdmi_pin>;
1332 phys = <&hdmi_phy>;
1333 phy-names = "hdmi";
1334 mediatek,syscon-hdmi = <&mmsys 0x900>;
1335 assigned-clocks = <&topckgen CLK_TOP_HDMI_SEL>;
1336 assigned-clock-parents = <&hdmi_phy>;
1337 status = "disabled";
1338
1339 ports {
1340 #address-cells = <1>;
1341 #size-cells = <0>;
1342
1343 port@0 {
1344 reg = <0>;
1345
1346 hdmi0_in: endpoint {
1347 remote-endpoint = <&dpi0_out>;
1348 };
1349 };
1350 };
1351 };
1352
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001353 larb4: larb@14027000 {
1354 compatible = "mediatek,mt8173-smi-larb";
1355 reg = <0 0x14027000 0 0x1000>;
1356 mediatek,smi = <&smi_common>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001357 power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001358 clocks = <&mmsys CLK_MM_SMI_LARB4>,
1359 <&mmsys CLK_MM_SMI_LARB4>;
1360 clock-names = "apb", "smi";
1361 };
1362
James Liao67e56c52015-08-10 17:50:28 +08001363 imgsys: clock-controller@15000000 {
1364 compatible = "mediatek,mt8173-imgsys", "syscon";
1365 reg = <0 0x15000000 0 0x1000>;
1366 #clock-cells = <1>;
1367 };
1368
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001369 larb2: larb@15001000 {
1370 compatible = "mediatek,mt8173-smi-larb";
1371 reg = <0 0x15001000 0 0x1000>;
1372 mediatek,smi = <&smi_common>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001373 power-domains = <&spm MT8173_POWER_DOMAIN_ISP>;
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001374 clocks = <&imgsys CLK_IMG_LARB2_SMI>,
1375 <&imgsys CLK_IMG_LARB2_SMI>;
1376 clock-names = "apb", "smi";
1377 };
1378
James Liao67e56c52015-08-10 17:50:28 +08001379 vdecsys: clock-controller@16000000 {
1380 compatible = "mediatek,mt8173-vdecsys", "syscon";
1381 reg = <0 0x16000000 0 0x1000>;
1382 #clock-cells = <1>;
1383 };
1384
Tiffany Lin60eaae22016-09-09 12:48:07 -03001385 vcodec_dec: vcodec@16000000 {
1386 compatible = "mediatek,mt8173-vcodec-dec";
1387 reg = <0 0x16000000 0 0x100>, /* VDEC_SYS */
1388 <0 0x16020000 0 0x1000>, /* VDEC_MISC */
1389 <0 0x16021000 0 0x800>, /* VDEC_LD */
1390 <0 0x16021800 0 0x800>, /* VDEC_TOP */
1391 <0 0x16022000 0 0x1000>, /* VDEC_CM */
1392 <0 0x16023000 0 0x1000>, /* VDEC_AD */
1393 <0 0x16024000 0 0x1000>, /* VDEC_AV */
1394 <0 0x16025000 0 0x1000>, /* VDEC_PP */
1395 <0 0x16026800 0 0x800>, /* VDEC_HWD */
1396 <0 0x16027000 0 0x800>, /* VDEC_HWQ */
1397 <0 0x16027800 0 0x800>, /* VDEC_HWB */
1398 <0 0x16028400 0 0x400>; /* VDEC_HWG */
1399 interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_LOW>;
1400 mediatek,larb = <&larb1>;
1401 iommus = <&iommu M4U_PORT_HW_VDEC_MC_EXT>,
1402 <&iommu M4U_PORT_HW_VDEC_PP_EXT>,
1403 <&iommu M4U_PORT_HW_VDEC_AVC_MV_EXT>,
1404 <&iommu M4U_PORT_HW_VDEC_PRED_RD_EXT>,
1405 <&iommu M4U_PORT_HW_VDEC_PRED_WR_EXT>,
1406 <&iommu M4U_PORT_HW_VDEC_UFO_EXT>,
1407 <&iommu M4U_PORT_HW_VDEC_VLD_EXT>,
1408 <&iommu M4U_PORT_HW_VDEC_VLD2_EXT>;
1409 mediatek,vpu = <&vpu>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001410 power-domains = <&spm MT8173_POWER_DOMAIN_VDEC>;
Tiffany Lin60eaae22016-09-09 12:48:07 -03001411 clocks = <&apmixedsys CLK_APMIXED_VCODECPLL>,
1412 <&topckgen CLK_TOP_UNIVPLL_D2>,
1413 <&topckgen CLK_TOP_CCI400_SEL>,
1414 <&topckgen CLK_TOP_VDEC_SEL>,
1415 <&topckgen CLK_TOP_VCODECPLL>,
1416 <&apmixedsys CLK_APMIXED_VENCPLL>,
1417 <&topckgen CLK_TOP_VENC_LT_SEL>,
1418 <&topckgen CLK_TOP_VCODECPLL_370P5>;
1419 clock-names = "vcodecpll",
1420 "univpll_d2",
1421 "clk_cci400_sel",
1422 "vdec_sel",
1423 "vdecpll",
1424 "vencpll",
1425 "venc_lt_sel",
1426 "vdec_bus_clk_src";
Yunfei Dongfbbad022019-02-14 10:24:52 +08001427 assigned-clocks = <&topckgen CLK_TOP_VENC_LT_SEL>,
1428 <&topckgen CLK_TOP_CCI400_SEL>,
1429 <&topckgen CLK_TOP_VDEC_SEL>,
1430 <&apmixedsys CLK_APMIXED_VCODECPLL>,
1431 <&apmixedsys CLK_APMIXED_VENCPLL>;
1432 assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL_370P5>,
1433 <&topckgen CLK_TOP_UNIVPLL_D2>,
1434 <&topckgen CLK_TOP_VCODECPLL>;
1435 assigned-clock-rates = <0>, <0>, <0>, <1482000000>, <800000000>;
Tiffany Lin60eaae22016-09-09 12:48:07 -03001436 };
1437
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001438 larb1: larb@16010000 {
1439 compatible = "mediatek,mt8173-smi-larb";
1440 reg = <0 0x16010000 0 0x1000>;
1441 mediatek,smi = <&smi_common>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001442 power-domains = <&spm MT8173_POWER_DOMAIN_VDEC>;
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001443 clocks = <&vdecsys CLK_VDEC_CKEN>,
1444 <&vdecsys CLK_VDEC_LARB_CKEN>;
1445 clock-names = "apb", "smi";
1446 };
1447
James Liao67e56c52015-08-10 17:50:28 +08001448 vencsys: clock-controller@18000000 {
1449 compatible = "mediatek,mt8173-vencsys", "syscon";
1450 reg = <0 0x18000000 0 0x1000>;
1451 #clock-cells = <1>;
1452 };
1453
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001454 larb3: larb@18001000 {
1455 compatible = "mediatek,mt8173-smi-larb";
1456 reg = <0 0x18001000 0 0x1000>;
1457 mediatek,smi = <&smi_common>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001458 power-domains = <&spm MT8173_POWER_DOMAIN_VENC>;
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001459 clocks = <&vencsys CLK_VENC_CKE1>,
1460 <&vencsys CLK_VENC_CKE0>;
1461 clock-names = "apb", "smi";
1462 };
1463
Irui Wange6f73022021-03-25 20:26:24 +08001464 vcodec_enc_avc: vcodec@18002000 {
Tiffany Lin8eb80252016-05-03 07:11:27 -03001465 compatible = "mediatek,mt8173-vcodec-enc";
Irui Wange6f73022021-03-25 20:26:24 +08001466 reg = <0 0x18002000 0 0x1000>; /* VENC_SYS */
1467 interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>;
1468 mediatek,larb = <&larb3>;
Tiffany Lin8eb80252016-05-03 07:11:27 -03001469 iommus = <&iommu M4U_PORT_VENC_RCPU>,
1470 <&iommu M4U_PORT_VENC_REC>,
1471 <&iommu M4U_PORT_VENC_BSDMA>,
1472 <&iommu M4U_PORT_VENC_SV_COMV>,
1473 <&iommu M4U_PORT_VENC_RD_COMV>,
1474 <&iommu M4U_PORT_VENC_CUR_LUMA>,
1475 <&iommu M4U_PORT_VENC_CUR_CHROMA>,
1476 <&iommu M4U_PORT_VENC_REF_LUMA>,
1477 <&iommu M4U_PORT_VENC_REF_CHROMA>,
1478 <&iommu M4U_PORT_VENC_NBM_RDMA>,
Irui Wange6f73022021-03-25 20:26:24 +08001479 <&iommu M4U_PORT_VENC_NBM_WDMA>;
Tiffany Lin8eb80252016-05-03 07:11:27 -03001480 mediatek,vpu = <&vpu>;
Irui Wange6f73022021-03-25 20:26:24 +08001481 clocks = <&topckgen CLK_TOP_VENC_SEL>;
1482 clock-names = "venc_sel";
1483 assigned-clocks = <&topckgen CLK_TOP_VENC_SEL>;
1484 assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL>;
Tiffany Lin8eb80252016-05-03 07:11:27 -03001485 };
1486
Hsin-Yi Wang1180beb2019-12-13 12:57:20 +08001487 jpegdec: jpegdec@18004000 {
1488 compatible = "mediatek,mt8173-jpgdec";
1489 reg = <0 0x18004000 0 0x1000>;
1490 interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_LOW>;
1491 clocks = <&vencsys CLK_VENC_CKE0>,
1492 <&vencsys CLK_VENC_CKE3>;
1493 clock-names = "jpgdec-smi",
1494 "jpgdec";
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001495 power-domains = <&spm MT8173_POWER_DOMAIN_VENC>;
Hsin-Yi Wang1180beb2019-12-13 12:57:20 +08001496 mediatek,larb = <&larb3>;
1497 iommus = <&iommu M4U_PORT_JPGDEC_WDMA>,
1498 <&iommu M4U_PORT_JPGDEC_BSDMA>;
1499 };
1500
James Liao67e56c52015-08-10 17:50:28 +08001501 vencltsys: clock-controller@19000000 {
1502 compatible = "mediatek,mt8173-vencltsys", "syscon";
1503 reg = <0 0x19000000 0 0x1000>;
1504 #clock-cells = <1>;
1505 };
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001506
1507 larb5: larb@19001000 {
1508 compatible = "mediatek,mt8173-smi-larb";
1509 reg = <0 0x19001000 0 0x1000>;
1510 mediatek,smi = <&smi_common>;
Enric Balletbo i Serra8b656262020-10-30 12:36:09 +01001511 power-domains = <&spm MT8173_POWER_DOMAIN_VENC_LT>;
Yong Wu5ff6b3a2016-02-23 01:20:51 +08001512 clocks = <&vencltsys CLK_VENCLT_CKE1>,
1513 <&vencltsys CLK_VENCLT_CKE0>;
1514 clock-names = "apb", "smi";
1515 };
Irui Wange6f73022021-03-25 20:26:24 +08001516
1517 vcodec_enc_vp8: vcodec@19002000 {
1518 compatible = "mediatek,mt8173-vcodec-enc-vp8";
1519 reg = <0 0x19002000 0 0x1000>; /* VENC_LT_SYS */
1520 interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_LOW>;
1521 iommus = <&iommu M4U_PORT_VENC_RCPU_SET2>,
1522 <&iommu M4U_PORT_VENC_REC_FRM_SET2>,
1523 <&iommu M4U_PORT_VENC_BSDMA_SET2>,
1524 <&iommu M4U_PORT_VENC_SV_COMA_SET2>,
1525 <&iommu M4U_PORT_VENC_RD_COMA_SET2>,
1526 <&iommu M4U_PORT_VENC_CUR_LUMA_SET2>,
1527 <&iommu M4U_PORT_VENC_CUR_CHROMA_SET2>,
1528 <&iommu M4U_PORT_VENC_REF_LUMA_SET2>,
1529 <&iommu M4U_PORT_VENC_REC_CHROMA_SET2>;
1530 mediatek,larb = <&larb5>;
1531 mediatek,vpu = <&vpu>;
1532 clocks = <&topckgen CLK_TOP_VENC_LT_SEL>;
1533 clock-names = "venc_lt_sel";
1534 assigned-clocks = <&topckgen CLK_TOP_VENC_LT_SEL>;
1535 assigned-clock-parents =
1536 <&topckgen CLK_TOP_VCODECPLL_370P5>;
1537 };
Eddie Huangb3a37242015-12-01 10:14:00 +01001538 };
Eddie Huangb3a37242015-12-01 10:14:00 +01001539};