2 * Copyright (c) 2014 MediaTek Inc.
3 * Author: Eddie Huang <eddie.huang@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 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include <dt-bindings/interrupt-controller/arm-gic.h>
16 #include "mt8173-pinfunc.h"
19 compatible = "mediatek,mt8173";
20 interrupt-parent = <&sysirq>;
50 compatible = "arm,cortex-a53";
56 compatible = "arm,cortex-a53";
58 enable-method = "psci";
63 compatible = "arm,cortex-a57";
65 enable-method = "psci";
70 compatible = "arm,cortex-a57";
72 enable-method = "psci";
77 compatible = "arm,psci";
79 cpu_suspend = <0x84000001>;
80 cpu_off = <0x84000002>;
81 cpu_on = <0x84000003>;
85 compatible = "fixed-clock";
86 clock-frequency = <26000000>;
91 compatible = "arm,armv8-timer";
92 interrupt-parent = <&gic>;
93 interrupts = <GIC_PPI 13
94 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
96 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
98 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
100 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
104 #address-cells = <2>;
106 compatible = "simple-bus";
109 syscfg_pctl_a: syscfg_pctl_a@10005000 {
110 compatible = "mediatek,mt8173-pctl-a-syscfg", "syscon";
111 reg = <0 0x10005000 0 0x1000>;
114 pio: pinctrl@0x10005000 {
115 compatible = "mediatek,mt8173-pinctrl";
116 reg = <0 0x1000B000 0 0x1000>;
117 mediatek,pctl-regmap = <&syscfg_pctl_a>;
121 interrupt-controller;
122 #interrupt-cells = <2>;
123 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
124 <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
125 <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
128 sysirq: intpol-controller@10200620 {
129 compatible = "mediatek,mt8173-sysirq",
130 "mediatek,mt6577-sysirq";
131 interrupt-controller;
132 #interrupt-cells = <3>;
133 interrupt-parent = <&gic>;
134 reg = <0 0x10200620 0 0x20>;
137 gic: interrupt-controller@10220000 {
138 compatible = "arm,gic-400";
139 #interrupt-cells = <3>;
140 interrupt-parent = <&gic>;
141 interrupt-controller;
142 reg = <0 0x10221000 0 0x1000>,
143 <0 0x10222000 0 0x2000>,
144 <0 0x10224000 0 0x2000>,
145 <0 0x10226000 0 0x2000>;
146 interrupts = <GIC_PPI 9
147 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
150 uart0: serial@11002000 {
151 compatible = "mediatek,mt8173-uart",
152 "mediatek,mt6577-uart";
153 reg = <0 0x11002000 0 0x400>;
154 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_LOW>;
155 clocks = <&uart_clk>;
159 uart1: serial@11003000 {
160 compatible = "mediatek,mt8173-uart",
161 "mediatek,mt6577-uart";
162 reg = <0 0x11003000 0 0x400>;
163 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>;
164 clocks = <&uart_clk>;
168 uart2: serial@11004000 {
169 compatible = "mediatek,mt8173-uart",
170 "mediatek,mt6577-uart";
171 reg = <0 0x11004000 0 0x400>;
172 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>;
173 clocks = <&uart_clk>;
177 uart3: serial@11005000 {
178 compatible = "mediatek,mt8173-uart",
179 "mediatek,mt6577-uart";
180 reg = <0 0x11005000 0 0x400>;
181 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>;
182 clocks = <&uart_clk>;