1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright © 2017-2020 MediaTek Inc.
4 * Author: Sean Wang <sean.wang@mediatek.com>
5 * Ryder Lee <ryder.lee@mediatek.com>
10 #include <dt-bindings/memory/mt2701-larb-port.h>
18 g3dsys: syscon@13000000 {
19 compatible = "mediatek,mt7623-g3dsys",
20 "mediatek,mt2701-g3dsys",
22 reg = <0 0x13000000 0 0x200>;
28 compatible = "mediatek,mt7623-mali", "arm,mali-450";
29 reg = <0 0x13040000 0 0x30000>;
30 interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_LOW>,
31 <GIC_SPI 171 IRQ_TYPE_LEVEL_LOW>,
32 <GIC_SPI 172 IRQ_TYPE_LEVEL_LOW>,
33 <GIC_SPI 173 IRQ_TYPE_LEVEL_LOW>,
34 <GIC_SPI 174 IRQ_TYPE_LEVEL_LOW>,
35 <GIC_SPI 175 IRQ_TYPE_LEVEL_LOW>,
36 <GIC_SPI 176 IRQ_TYPE_LEVEL_LOW>,
37 <GIC_SPI 177 IRQ_TYPE_LEVEL_LOW>,
38 <GIC_SPI 178 IRQ_TYPE_LEVEL_LOW>,
39 <GIC_SPI 179 IRQ_TYPE_LEVEL_LOW>,
40 <GIC_SPI 180 IRQ_TYPE_LEVEL_LOW>;
41 interrupt-names = "gp", "gpmmu", "pp0", "ppmmu0", "pp1",
42 "ppmmu1", "pp2", "ppmmu2", "pp3", "ppmmu3",
44 clocks = <&topckgen CLK_TOP_MMPLL>,
45 <&g3dsys CLK_G3DSYS_CORE>;
46 clock-names = "bus", "core";
47 power-domains = <&scpsys MT2701_POWER_DOMAIN_MFG>;
48 resets = <&g3dsys MT2701_G3DSYS_CORE_RST>;
51 mmsys: syscon@14000000 {
52 compatible = "mediatek,mt7623-mmsys",
53 "mediatek,mt2701-mmsys",
55 reg = <0 0x14000000 0 0x1000>;
59 larb0: larb@14010000 {
60 compatible = "mediatek,mt7623-smi-larb",
61 "mediatek,mt2701-smi-larb";
62 reg = <0 0x14010000 0 0x1000>;
63 mediatek,smi = <&smi_common>;
64 mediatek,larb-id = <0>;
65 clocks = <&mmsys CLK_MM_SMI_LARB0>,
66 <&mmsys CLK_MM_SMI_LARB0>;
67 clock-names = "apb", "smi";
68 power-domains = <&scpsys MT2701_POWER_DOMAIN_DISP>;
71 larb1: larb@16010000 {
72 compatible = "mediatek,mt7623-smi-larb",
73 "mediatek,mt2701-smi-larb";
74 reg = <0 0x16010000 0 0x1000>;
75 mediatek,smi = <&smi_common>;
76 mediatek,larb-id = <1>;
77 clocks = <&vdecsys CLK_VDEC_CKGEN>,
78 <&vdecsys CLK_VDEC_LARB>;
79 clock-names = "apb", "smi";
80 power-domains = <&scpsys MT2701_POWER_DOMAIN_VDEC>;
83 larb2: larb@15001000 {
84 compatible = "mediatek,mt7623-smi-larb",
85 "mediatek,mt2701-smi-larb";
86 reg = <0 0x15001000 0 0x1000>;
87 mediatek,smi = <&smi_common>;
88 mediatek,larb-id = <2>;
89 clocks = <&imgsys CLK_IMG_SMI_COMM>,
90 <&imgsys CLK_IMG_SMI_COMM>;
91 clock-names = "apb", "smi";
92 power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>;
95 imgsys: syscon@15000000 {
96 compatible = "mediatek,mt7623-imgsys",
97 "mediatek,mt2701-imgsys",
99 reg = <0 0x15000000 0 0x1000>;
103 iommu: mmsys_iommu@10205000 {
104 compatible = "mediatek,mt7623-m4u",
105 "mediatek,mt2701-m4u";
106 reg = <0 0x10205000 0 0x1000>;
107 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_LOW>;
108 clocks = <&infracfg CLK_INFRA_M4U>;
109 clock-names = "bclk";
110 mediatek,larbs = <&larb0 &larb1 &larb2>;
114 jpegdec: jpegdec@15004000 {
115 compatible = "mediatek,mt7623-jpgdec",
116 "mediatek,mt2701-jpgdec";
117 reg = <0 0x15004000 0 0x1000>;
118 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_LOW>;
119 clocks = <&imgsys CLK_IMG_JPGDEC_SMI>,
120 <&imgsys CLK_IMG_JPGDEC>;
121 clock-names = "jpgdec-smi",
123 power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>;
124 mediatek,larb = <&larb2>;
125 iommus = <&iommu MT2701_M4U_PORT_JPGDEC_WDMA>,
126 <&iommu MT2701_M4U_PORT_JPGDEC_BSDMA>;
129 smi_common: smi@1000c000 {
130 compatible = "mediatek,mt7623-smi-common",
131 "mediatek,mt2701-smi-common";
132 reg = <0 0x1000c000 0 0x1000>;
133 clocks = <&infracfg CLK_INFRA_SMI>,
134 <&mmsys CLK_MM_SMI_COMMON>,
135 <&infracfg CLK_INFRA_SMI>;
136 clock-names = "apb", "smi", "async";
137 power-domains = <&scpsys MT2701_POWER_DOMAIN_DISP>;
141 compatible = "mediatek,mt7623-disp-ovl",
142 "mediatek,mt2701-disp-ovl";
143 reg = <0 0x14007000 0 0x1000>;
144 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_LOW>;
145 clocks = <&mmsys CLK_MM_DISP_OVL>;
146 iommus = <&iommu MT2701_M4U_PORT_DISP_OVL_0>;
147 mediatek,larb = <&larb0>;
150 rdma0: rdma@14008000 {
151 compatible = "mediatek,mt7623-disp-rdma",
152 "mediatek,mt2701-disp-rdma";
153 reg = <0 0x14008000 0 0x1000>;
154 interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_LOW>;
155 clocks = <&mmsys CLK_MM_DISP_RDMA>;
156 iommus = <&iommu MT2701_M4U_PORT_DISP_RDMA>;
157 mediatek,larb = <&larb0>;
161 compatible = "mediatek,mt7623-disp-wdma",
162 "mediatek,mt2701-disp-wdma";
163 reg = <0 0x14009000 0 0x1000>;
164 interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_LOW>;
165 clocks = <&mmsys CLK_MM_DISP_WDMA>;
166 iommus = <&iommu MT2701_M4U_PORT_DISP_WDMA>;
167 mediatek,larb = <&larb0>;
171 compatible = "mediatek,mt7623-disp-pwm",
172 "mediatek,mt2701-disp-pwm";
173 reg = <0 0x1400a000 0 0x1000>;
175 clocks = <&mmsys CLK_MM_MDP_BLS_26M>,
176 <&mmsys CLK_MM_DISP_BLS>;
177 clock-names = "main", "mm";
181 color: color@1400b000 {
182 compatible = "mediatek,mt7623-disp-color",
183 "mediatek,mt2701-disp-color";
184 reg = <0 0x1400b000 0 0x1000>;
185 interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_LOW>;
186 clocks = <&mmsys CLK_MM_DISP_COLOR>;
190 compatible = "mediatek,mt7623-dsi",
191 "mediatek,mt2701-dsi";
192 reg = <0 0x1400c000 0 0x1000>;
193 interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_LOW>;
194 clocks = <&mmsys CLK_MM_DSI_ENGINE>,
195 <&mmsys CLK_MM_DSI_DIG>,
197 clock-names = "engine", "digital", "hs";
203 mutex: mutex@1400e000 {
204 compatible = "mediatek,mt7623-disp-mutex",
205 "mediatek,mt2701-disp-mutex";
206 reg = <0 0x1400e000 0 0x1000>;
207 interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_LOW>;
208 clocks = <&mmsys CLK_MM_MUTEX_32K>;
211 rdma1: rdma@14012000 {
212 compatible = "mediatek,mt7623-disp-rdma",
213 "mediatek,mt2701-disp-rdma";
214 reg = <0 0x14012000 0 0x1000>;
215 interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_LOW>;
216 clocks = <&mmsys CLK_MM_DISP_RDMA1>;
217 iommus = <&iommu MT2701_M4U_PORT_DISP_RDMA1>;
218 mediatek,larb = <&larb0>;
222 compatible = "mediatek,mt7623-dpi",
223 "mediatek,mt2701-dpi";
224 reg = <0 0x14014000 0 0x1000>;
225 interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>;
226 clocks = <&mmsys CLK_MM_DPI1_DIGL>,
227 <&mmsys CLK_MM_DPI1_ENGINE>,
228 <&apmixedsys CLK_APMIXED_TVDPLL>;
229 clock-names = "pixel", "engine", "pll";
233 hdmi0: hdmi@14015000 {
234 compatible = "mediatek,mt7623-hdmi",
235 "mediatek,mt2701-hdmi";
236 reg = <0 0x14015000 0 0x400>;
237 clocks = <&mmsys CLK_MM_HDMI_PIXEL>,
238 <&mmsys CLK_MM_HDMI_PLL>,
239 <&mmsys CLK_MM_HDMI_AUDIO>,
240 <&mmsys CLK_MM_HDMI_SPDIF>;
241 clock-names = "pixel", "pll", "bclk", "spdif";
244 mediatek,syscon-hdmi = <&mmsys 0x900>;
249 mipi_tx0: mipi-dphy@10010000 {
250 compatible = "mediatek,mt7623-mipi-tx",
251 "mediatek,mt2701-mipi-tx";
252 reg = <0 0x10010000 0 0x90>;
254 clock-output-names = "mipi_tx0_pll";
260 compatible = "mediatek,mt7623-cec",
261 "mediatek,mt8173-cec";
262 reg = <0 0x10012000 0 0xbc>;
263 interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_LOW>;
264 clocks = <&infracfg CLK_INFRA_CEC>;
268 hdmi_phy: phy@10209100 {
269 compatible = "mediatek,mt7623-hdmi-phy",
270 "mediatek,mt2701-hdmi-phy";
271 reg = <0 0x10209100 0 0x24>;
272 clocks = <&apmixedsys CLK_APMIXED_HDMI_REF>;
273 clock-names = "pll_ref";
274 clock-output-names = "hdmitx_dig_cts";
280 hdmiddc0: i2c@11013000 {
281 compatible = "mediatek,mt7623-hdmi-ddc",
282 "mediatek,mt8173-hdmi-ddc";
283 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_LOW>;
284 reg = <0 0x11013000 0 0x1C>;
285 clocks = <&pericfg CLK_PERI_I2C3>;
286 clock-names = "ddc-i2c";
292 hdmi_pins_a: hdmi-default {
294 pinmux = <MT7623_PIN_123_HTPLG_FUNC_HTPLG>;
300 hdmi_ddc_pins_a: hdmi_ddc-default {
302 pinmux = <MT7623_PIN_124_GPIO124_FUNC_HDMISCK>,
303 <MT7623_PIN_125_GPIO125_FUNC_HDMISD>;