2 * Copyright (c) 2014 MediaTek Inc.
3 * Author: Joe.C <yingjoe.chen@mediatek.com>
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.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #include <dt-bindings/clock/mt8135-clk.h>
16 #include <dt-bindings/interrupt-controller/irq.h>
17 #include <dt-bindings/interrupt-controller/arm-gic.h>
18 #include <dt-bindings/reset/mt8135-resets.h>
19 #include "skeleton64.dtsi"
20 #include "mt8135-pinfunc.h"
23 compatible = "mediatek,mt8135";
24 interrupt-parent = <&sysirq>;
49 enable-method = "mediatek,mt81xx-tz-smp";
53 compatible = "arm,cortex-a7";
59 compatible = "arm,cortex-a7";
65 compatible = "arm,cortex-a15";
71 compatible = "arm,cortex-a15";
81 trustzone-bootinfo@80002000 {
82 compatible = "mediatek,trustzone-bootinfo";
83 reg = <0 0x80002000 0 0x1000>;
90 compatible = "simple-bus";
93 system_clk: dummy13m {
94 compatible = "fixed-clock";
95 clock-frequency = <13000000>;
100 compatible = "fixed-clock";
101 clock-frequency = <32000>;
106 compatible = "fixed-clock";
108 clock-frequency = <26000000>;
113 compatible = "arm,armv7-timer";
114 interrupt-parent = <&gic>;
115 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
116 IRQ_TYPE_LEVEL_LOW)>,
117 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) |
118 IRQ_TYPE_LEVEL_LOW)>,
119 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) |
120 IRQ_TYPE_LEVEL_LOW)>,
121 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) |
122 IRQ_TYPE_LEVEL_LOW)>;
123 clock-frequency = <13000000>;
124 arm,cpu-registers-not-fw-configured;
128 #address-cells = <2>;
130 compatible = "simple-bus";
133 topckgen: topckgen@10000000 {
134 compatible = "mediatek,mt8135-topckgen";
135 reg = <0 0x10000000 0 0x1000>;
139 infracfg: infracfg@10001000 {
142 compatible = "mediatek,mt8135-infracfg", "syscon";
143 reg = <0 0x10001000 0 0x1000>;
146 pericfg: pericfg@10003000 {
149 compatible = "mediatek,mt8135-pericfg", "syscon";
150 reg = <0 0x10003000 0 0x1000>;
154 * Pinctrl access register at 0x10005000 and 0x1020c000 through
155 * regmap. Register 0x1000b000 is used by EINT.
157 pio: pinctrl@10005000 {
158 compatible = "mediatek,mt8135-pinctrl";
159 reg = <0 0x1000b000 0 0x1000>;
160 mediatek,pctl-regmap = <&syscfg_pctl_a &syscfg_pctl_b>;
164 interrupt-controller;
165 #interrupt-cells = <2>;
166 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
167 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
168 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
171 syscfg_pctl_a: syscfg_pctl_a@10005000 {
172 compatible = "mediatek,mt8135-pctl-a-syscfg", "syscon";
173 reg = <0 0x10005000 0 0x1000>;
176 timer: timer@10008000 {
177 compatible = "mediatek,mt8135-timer",
178 "mediatek,mt6577-timer";
179 reg = <0 0x10008000 0 0x80>;
180 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
181 clocks = <&system_clk>, <&rtc_clk>;
182 clock-names = "system-clk", "rtc-clk";
185 pwrap: pwrap@1000f000 {
186 compatible = "mediatek,mt8135-pwrap";
187 reg = <0 0x1000f000 0 0x1000>,
188 <0 0x11017000 0 0x1000>;
189 reg-names = "pwrap", "pwrap-bridge";
190 interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
191 resets = <&infracfg MT8135_INFRA_PMIC_WRAP_RST>,
192 <&pericfg MT8135_PERI_PWRAP_BRIDGE_SW_RST>;
193 reset-names = "pwrap", "pwrap-bridge";
194 clocks = <&clk26m>, <&clk26m>;
195 clock-names = "spi", "wrap";
198 sysirq: interrupt-controller@10200030 {
199 compatible = "mediatek,mt8135-sysirq",
200 "mediatek,mt6577-sysirq";
201 interrupt-controller;
202 #interrupt-cells = <3>;
203 interrupt-parent = <&gic>;
204 reg = <0 0x10200030 0 0x1c>;
207 apmixedsys: apmixedsys@10209000 {
208 compatible = "mediatek,mt8135-apmixedsys";
209 reg = <0 0x10209000 0 0x1000>;
213 syscfg_pctl_b: syscfg_pctl_b@1020c000 {
214 compatible = "mediatek,mt8135-pctl-b-syscfg", "syscon";
215 reg = <0 0x1020c000 0 0x1000>;
218 gic: interrupt-controller@10211000 {
219 compatible = "arm,cortex-a15-gic";
220 interrupt-controller;
221 #interrupt-cells = <3>;
222 interrupt-parent = <&gic>;
223 reg = <0 0x10211000 0 0x1000>,
224 <0 0x10212000 0 0x2000>,
225 <0 0x10214000 0 0x2000>,
226 <0 0x10216000 0 0x2000>;
229 uart0: serial@11006000 {
230 compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
231 reg = <0 0x11006000 0 0x400>;
232 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
233 clocks = <&pericfg CLK_PERI_UART0_SEL>, <&pericfg CLK_PERI_UART0>;
234 clock-names = "baud", "bus";
238 uart1: serial@11007000 {
239 compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
240 reg = <0 0x11007000 0 0x400>;
241 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
242 clocks = <&pericfg CLK_PERI_UART1_SEL>, <&pericfg CLK_PERI_UART1>;
243 clock-names = "baud", "bus";
247 uart2: serial@11008000 {
248 compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
249 reg = <0 0x11008000 0 0x400>;
250 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
251 clocks = <&pericfg CLK_PERI_UART2_SEL>, <&pericfg CLK_PERI_UART2>;
252 clock-names = "baud", "bus";
256 uart3: serial@11009000 {
257 compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
258 reg = <0 0x11009000 0 0x400>;
259 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
260 clocks = <&pericfg CLK_PERI_UART3_SEL>, <&pericfg CLK_PERI_UART3>;
261 clock-names = "baud", "bus";