1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2023 Nuvoton Technology Corp.
4 * Author: Shan-Chun Hung <schung@nuvoton.com>
5 * Jacky huang <ychuang3@nuvoton.com>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/clock/nuvoton,ma35d1-clk.h>
12 #include <dt-bindings/reset/nuvoton,ma35d1-reset.h>
15 compatible = "nuvoton,ma35d1";
16 interrupt-parent = <&gic>;
26 compatible = "arm,cortex-a35";
28 enable-method = "psci";
29 next-level-cache = <&L2_0>;
34 compatible = "arm,cortex-a35";
36 enable-method = "psci";
37 next-level-cache = <&L2_0>;
44 cache-size = <0x80000>;
49 compatible = "arm,psci-0.2";
53 gic: interrupt-controller@50801000 {
54 compatible = "arm,gic-400";
55 reg = <0x0 0x50801000 0 0x1000>, /* GICD */
56 <0x0 0x50802000 0 0x2000>, /* GICC */
57 <0x0 0x50804000 0 0x2000>, /* GICH */
58 <0x0 0x50806000 0 0x2000>; /* GICV */
59 #interrupt-cells = <3>;
60 interrupt-parent = <&gic>;
62 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_RAW(0x13) |
63 IRQ_TYPE_LEVEL_HIGH)>;
67 compatible = "arm,armv8-timer";
68 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
69 IRQ_TYPE_LEVEL_LOW)>, /* Physical Secure */
70 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) |
71 IRQ_TYPE_LEVEL_LOW)>, /* Physical Non-Secure */
72 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) |
73 IRQ_TYPE_LEVEL_LOW)>, /* Virtual */
74 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) |
75 IRQ_TYPE_LEVEL_LOW)>; /* Hypervisor */
76 interrupt-parent = <&gic>;
80 compatible = "simple-bus";
85 sys: system-management@40460000 {
86 compatible = "nuvoton,ma35d1-reset";
87 reg = <0x0 0x40460000 0x0 0x200>;
91 clk: clock-controller@40460200 {
92 compatible = "nuvoton,ma35d1-clk";
93 reg = <0x00000000 0x40460200 0x0 0x100>;
98 uart0: serial@40700000 {
99 compatible = "nuvoton,ma35d1-uart";
100 reg = <0x0 0x40700000 0x0 0x100>;
101 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
102 clocks = <&clk UART0_GATE>;
106 uart1: serial@40710000 {
107 compatible = "nuvoton,ma35d1-uart";
108 reg = <0x0 0x40710000 0x0 0x100>;
109 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
110 clocks = <&clk UART1_GATE>;
114 uart2: serial@40720000 {
115 compatible = "nuvoton,ma35d1-uart";
116 reg = <0x0 0x40720000 0x0 0x100>;
117 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
118 clocks = <&clk UART2_GATE>;
122 uart3: serial@40730000 {
123 compatible = "nuvoton,ma35d1-uart";
124 reg = <0x0 0x40730000 0x0 0x100>;
125 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
126 clocks = <&clk UART3_GATE>;
130 uart4: serial@40740000 {
131 compatible = "nuvoton,ma35d1-uart";
132 reg = <0x0 0x40740000 0x0 0x100>;
133 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
134 clocks = <&clk UART4_GATE>;
138 uart5: serial@40750000 {
139 compatible = "nuvoton,ma35d1-uart";
140 reg = <0x0 0x40750000 0x0 0x100>;
141 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
142 clocks = <&clk UART5_GATE>;
146 uart6: serial@40760000 {
147 compatible = "nuvoton,ma35d1-uart";
148 reg = <0x0 0x40760000 0x0 0x100>;
149 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
150 clocks = <&clk UART6_GATE>;
154 uart7: serial@40770000 {
155 compatible = "nuvoton,ma35d1-uart";
156 reg = <0x0 0x40770000 0x0 0x100>;
157 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
158 clocks = <&clk UART7_GATE>;
162 uart8: serial@40780000 {
163 compatible = "nuvoton,ma35d1-uart";
164 reg = <0x0 0x40780000 0x0 0x100>;
165 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
166 clocks = <&clk UART8_GATE>;
170 uart9: serial@40790000 {
171 compatible = "nuvoton,ma35d1-uart";
172 reg = <0x0 0x40790000 0x0 0x100>;
173 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
174 clocks = <&clk UART9_GATE>;
178 uart10: serial@407a0000 {
179 compatible = "nuvoton,ma35d1-uart";
180 reg = <0x0 0x407a0000 0x0 0x100>;
181 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
182 clocks = <&clk UART10_GATE>;
186 uart11: serial@407b0000 {
187 compatible = "nuvoton,ma35d1-uart";
188 reg = <0x0 0x407b0000 0x0 0x100>;
189 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
190 clocks = <&clk UART11_GATE>;
194 uart12: serial@407c0000 {
195 compatible = "nuvoton,ma35d1-uart";
196 reg = <0x0 0x407c0000 0x0 0x100>;
197 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
198 clocks = <&clk UART12_GATE>;
202 uart13: serial@407d0000 {
203 compatible = "nuvoton,ma35d1-uart";
204 reg = <0x0 0x407d0000 0x0 0x100>;
205 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
206 clocks = <&clk UART13_GATE>;
210 uart14: serial@407e0000 {
211 compatible = "nuvoton,ma35d1-uart";
212 reg = <0x0 0x407e0000 0x0 0x100>;
213 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
214 clocks = <&clk UART14_GATE>;
218 uart15: serial@407f0000 {
219 compatible = "nuvoton,ma35d1-uart";
220 reg = <0x0 0x407f0000 0x0 0x100>;
221 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
222 clocks = <&clk UART15_GATE>;
226 uart16: serial@40880000 {
227 compatible = "nuvoton,ma35d1-uart";
228 reg = <0x0 0x40880000 0x0 0x100>;
229 interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
230 clocks = <&clk UART16_GATE>;