1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2014 MediaTek Inc.
4 * Author: Joe.C <yingjoe.chen@mediatek.com>
8 #include <dt-bindings/clock/mt8135-clk.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/reset/mt8135-resets.h>
12 #include "mt8135-pinfunc.h"
17 compatible = "mediatek,mt8135";
18 interrupt-parent = <&sysirq>;
43 enable-method = "mediatek,mt81xx-tz-smp";
47 compatible = "arm,cortex-a7";
53 compatible = "arm,cortex-a7";
59 compatible = "arm,cortex-a15";
65 compatible = "arm,cortex-a15";
75 trustzone-bootinfo@80002000 {
76 compatible = "mediatek,trustzone-bootinfo";
77 reg = <0 0x80002000 0 0x1000>;
84 compatible = "simple-bus";
87 system_clk: dummy13m {
88 compatible = "fixed-clock";
89 clock-frequency = <13000000>;
94 compatible = "fixed-clock";
95 clock-frequency = <32000>;
100 compatible = "fixed-clock";
102 clock-frequency = <26000000>;
107 compatible = "arm,armv7-timer";
108 interrupt-parent = <&gic>;
109 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
110 IRQ_TYPE_LEVEL_LOW)>,
111 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) |
112 IRQ_TYPE_LEVEL_LOW)>,
113 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) |
114 IRQ_TYPE_LEVEL_LOW)>,
115 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) |
116 IRQ_TYPE_LEVEL_LOW)>;
117 clock-frequency = <13000000>;
118 arm,cpu-registers-not-fw-configured;
122 #address-cells = <2>;
124 compatible = "simple-bus";
127 topckgen: topckgen@10000000 {
128 compatible = "mediatek,mt8135-topckgen";
129 reg = <0 0x10000000 0 0x1000>;
133 infracfg: infracfg@10001000 {
136 compatible = "mediatek,mt8135-infracfg", "syscon";
137 reg = <0 0x10001000 0 0x1000>;
140 pericfg: pericfg@10003000 {
143 compatible = "mediatek,mt8135-pericfg", "syscon";
144 reg = <0 0x10003000 0 0x1000>;
148 * Pinctrl access register at 0x10005000 and 0x1020c000 through
149 * regmap. Register 0x1000b000 is used by EINT.
151 pio: pinctrl@10005000 {
152 compatible = "mediatek,mt8135-pinctrl";
153 reg = <0 0x1000b000 0 0x1000>;
154 mediatek,pctl-regmap = <&syscfg_pctl_a &syscfg_pctl_b>;
158 interrupt-controller;
159 #interrupt-cells = <2>;
160 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
161 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
162 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
165 syscfg_pctl_a: syscfg_pctl_a@10005000 {
166 compatible = "mediatek,mt8135-pctl-a-syscfg", "syscon";
167 reg = <0 0x10005000 0 0x1000>;
170 timer: timer@10008000 {
171 compatible = "mediatek,mt8135-timer",
172 "mediatek,mt6577-timer";
173 reg = <0 0x10008000 0 0x80>;
174 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
175 clocks = <&system_clk>, <&rtc_clk>;
176 clock-names = "system-clk", "rtc-clk";
179 pwrap: pwrap@1000f000 {
180 compatible = "mediatek,mt8135-pwrap";
181 reg = <0 0x1000f000 0 0x1000>,
182 <0 0x11017000 0 0x1000>;
183 reg-names = "pwrap", "pwrap-bridge";
184 interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
185 resets = <&infracfg MT8135_INFRA_PMIC_WRAP_RST>,
186 <&pericfg MT8135_PERI_PWRAP_BRIDGE_SW_RST>;
187 reset-names = "pwrap", "pwrap-bridge";
188 clocks = <&clk26m>, <&clk26m>;
189 clock-names = "spi", "wrap";
192 sysirq: interrupt-controller@10200030 {
193 compatible = "mediatek,mt8135-sysirq",
194 "mediatek,mt6577-sysirq";
195 interrupt-controller;
196 #interrupt-cells = <3>;
197 interrupt-parent = <&gic>;
198 reg = <0 0x10200030 0 0x1c>;
201 apmixedsys: apmixedsys@10209000 {
202 compatible = "mediatek,mt8135-apmixedsys";
203 reg = <0 0x10209000 0 0x1000>;
207 syscfg_pctl_b: syscfg_pctl_b@1020c000 {
208 compatible = "mediatek,mt8135-pctl-b-syscfg", "syscon";
209 reg = <0 0x1020c000 0 0x1000>;
212 gic: interrupt-controller@10211000 {
213 compatible = "arm,cortex-a15-gic";
214 interrupt-controller;
215 #interrupt-cells = <3>;
216 interrupt-parent = <&gic>;
217 reg = <0 0x10211000 0 0x1000>,
218 <0 0x10212000 0 0x2000>,
219 <0 0x10214000 0 0x2000>,
220 <0 0x10216000 0 0x2000>;
223 uart0: serial@11006000 {
224 compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
225 reg = <0 0x11006000 0 0x400>;
226 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
227 clocks = <&pericfg CLK_PERI_UART0_SEL>, <&pericfg CLK_PERI_UART0>;
228 clock-names = "baud", "bus";
232 uart1: serial@11007000 {
233 compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
234 reg = <0 0x11007000 0 0x400>;
235 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
236 clocks = <&pericfg CLK_PERI_UART1_SEL>, <&pericfg CLK_PERI_UART1>;
237 clock-names = "baud", "bus";
241 uart2: serial@11008000 {
242 compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
243 reg = <0 0x11008000 0 0x400>;
244 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
245 clocks = <&pericfg CLK_PERI_UART2_SEL>, <&pericfg CLK_PERI_UART2>;
246 clock-names = "baud", "bus";
250 uart3: serial@11009000 {
251 compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
252 reg = <0 0x11009000 0 0x400>;
253 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
254 clocks = <&pericfg CLK_PERI_UART3_SEL>, <&pericfg CLK_PERI_UART3>;
255 clock-names = "baud", "bus";