1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2019 MediaTek Inc.
4 * Author: Mars.C <mars.cheng@mediatek.com>
8 #include <dt-bindings/clock/mt6779-clk.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/pinctrl/mt6779-pinfunc.h>
14 compatible = "mediatek,mt6779";
15 interrupt-parent = <&sysirq>;
20 compatible = "arm,psci-0.2";
30 compatible = "arm,cortex-a55";
31 enable-method = "psci";
37 compatible = "arm,cortex-a55";
38 enable-method = "psci";
44 compatible = "arm,cortex-a55";
45 enable-method = "psci";
51 compatible = "arm,cortex-a55";
52 enable-method = "psci";
58 compatible = "arm,cortex-a55";
59 enable-method = "psci";
65 compatible = "arm,cortex-a55";
66 enable-method = "psci";
72 compatible = "arm,cortex-a75";
73 enable-method = "psci";
79 compatible = "arm,cortex-a75";
80 enable-method = "psci";
86 compatible = "arm,armv8-pmuv3";
87 interrupt-parent = <&gic>;
88 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW 0>;
91 clk26m: oscillator@0 {
92 compatible = "fixed-clock";
94 clock-frequency = <26000000>;
95 clock-output-names = "clk26m";
98 clk32k: oscillator@1 {
99 compatible = "fixed-clock";
101 clock-frequency = <32768>;
102 clock-output-names = "clk32k";
106 compatible = "arm,armv8-timer";
107 interrupt-parent = <&gic>;
108 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>,
109 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>,
110 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>,
111 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>;
115 #address-cells = <2>;
117 compatible = "simple-bus";
120 gic: interrupt-controller@0c000000 {
121 compatible = "arm,gic-v3";
122 #interrupt-cells = <4>;
123 interrupt-parent = <&gic>;
124 interrupt-controller;
125 reg = <0 0x0c000000 0 0x40000>, /* GICD */
126 <0 0x0c040000 0 0x200000>; /* GICR */
127 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
130 ppi_cluster0: interrupt-partition-0 {
131 affinity = <&cpu0 &cpu1 \
132 &cpu2 &cpu3 &cpu4 &cpu5>;
134 ppi_cluster1: interrupt-partition-1 {
135 affinity = <&cpu6 &cpu7>;
141 sysirq: intpol-controller@0c53a650 {
142 compatible = "mediatek,mt6779-sysirq",
143 "mediatek,mt6577-sysirq";
144 interrupt-controller;
145 #interrupt-cells = <3>;
146 interrupt-parent = <&gic>;
147 reg = <0 0x0c53a650 0 0x50>;
150 topckgen: clock-controller@10000000 {
151 compatible = "mediatek,mt6779-topckgen", "syscon";
152 reg = <0 0x10000000 0 0x1000>;
156 infracfg_ao: clock-controller@10001000 {
157 compatible = "mediatek,mt6779-infracfg_ao", "syscon";
158 reg = <0 0x10001000 0 0x1000>;
162 pio: pinctrl@10005000 {
163 compatible = "mediatek,mt6779-pinctrl", "syscon";
164 reg = <0 0x10005000 0 0x1000>,
165 <0 0x11c20000 0 0x1000>,
166 <0 0x11d10000 0 0x1000>,
167 <0 0x11e20000 0 0x1000>,
168 <0 0x11e70000 0 0x1000>,
169 <0 0x11ea0000 0 0x1000>,
170 <0 0x11f20000 0 0x1000>,
171 <0 0x11f30000 0 0x1000>,
172 <0 0x1000b000 0 0x1000>;
173 reg-names = "gpio", "iocfg_rm",
174 "iocfg_br", "iocfg_lm",
175 "iocfg_lb", "iocfg_rt",
176 "iocfg_lt", "iocfg_tl",
180 gpio-ranges = <&pio 0 0 210>;
181 interrupt-controller;
182 #interrupt-cells = <2>;
183 interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>;
186 apmixed: clock-controller@1000c000 {
187 compatible = "mediatek,mt6779-apmixed", "syscon";
188 reg = <0 0x1000c000 0 0xe00>;
192 uart0: serial@11002000 {
193 compatible = "mediatek,mt6779-uart",
194 "mediatek,mt6577-uart";
195 reg = <0 0x11002000 0 0x400>;
196 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_LOW>;
197 clocks = <&clk26m>, <&infracfg_ao CLK_INFRA_UART0>;
198 clock-names = "baud", "bus";
202 uart1: serial@11003000 {
203 compatible = "mediatek,mt6779-uart",
204 "mediatek,mt6577-uart";
205 reg = <0 0x11003000 0 0x400>;
206 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_LOW>;
207 clocks = <&clk26m>, <&infracfg_ao CLK_INFRA_UART1>;
208 clock-names = "baud", "bus";
212 uart2: serial@11004000 {
213 compatible = "mediatek,mt6779-uart",
214 "mediatek,mt6577-uart";
215 reg = <0 0x11004000 0 0x400>;
216 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_LOW>;
217 clocks = <&clk26m>, <&infracfg_ao CLK_INFRA_UART2>;
218 clock-names = "baud", "bus";
222 audio: clock-controller@11210000 {
223 compatible = "mediatek,mt6779-audio", "syscon";
224 reg = <0 0x11210000 0 0x1000>;
228 mfgcfg: clock-controller@13fbf000 {
229 compatible = "mediatek,mt6779-mfgcfg", "syscon";
230 reg = <0 0x13fbf000 0 0x1000>;
234 mmsys: syscon@14000000 {
235 compatible = "mediatek,mt6779-mmsys", "syscon";
236 reg = <0 0x14000000 0 0x1000>;
240 imgsys: clock-controller@15020000 {
241 compatible = "mediatek,mt6779-imgsys", "syscon";
242 reg = <0 0x15020000 0 0x1000>;
246 vdecsys: clock-controller@16000000 {
247 compatible = "mediatek,mt6779-vdecsys", "syscon";
248 reg = <0 0x16000000 0 0x1000>;
252 vencsys: clock-controller@17000000 {
253 compatible = "mediatek,mt6779-vencsys", "syscon";
254 reg = <0 0x17000000 0 0x1000>;
258 camsys: clock-controller@1a000000 {
259 compatible = "mediatek,mt6779-camsys", "syscon";
260 reg = <0 0x1a000000 0 0x10000>;
264 ipesys: clock-controller@1b000000 {
265 compatible = "mediatek,mt6779-ipesys", "syscon";
266 reg = <0 0x1b000000 0 0x1000>;