1/*
2 * Copyright (c) 2020 Linumiz
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <arm/armv7-m.dtsi>
8#include <mem.h>
9
10/ {
11	cpus {
12		#address-cells = <1>;
13		#size-cells = <0>;
14
15		cpu@0 {
16			device_type = "cpu";
17			compatible = "arm,cortex-m4f";
18			reg = <0>;
19		};
20	};
21
22	sram0: memory@20000000 {
23		compatible = "mmio-sram";
24	};
25
26	flash0: flash@0 {
27		compatible = "serial-flash";
28		label = "FLASH_NUMICRO";
29		erase-block-size = <4096>;
30		write-block-size = <1>;
31	};
32
33	sysclk: system-clock {
34		compatible = "fixed-clock";
35		clock-frequency = <192000000>;
36		#clock-cells = <0>;
37	};
38
39	soc {
40		uart0: serial@40070000 {
41			compatible = "nuvoton,numicro-uart";
42			reg = <0x40070000 0x1000>;
43			status = "disabled";
44			label = "UART_0";
45		};
46
47		uart1: serial@40071000 {
48			compatible = "nuvoton,numicro-uart";
49			reg = <0x40071000 0x1000>;
50			status = "disabled";
51			label = "UART_1";
52		};
53
54		uart2: serial@40072000 {
55			compatible = "nuvoton,numicro-uart";
56			reg = <0x40072000 0x1000>;
57			status = "disabled";
58			label = "UART_2";
59		};
60
61		uart3: serial@40073000 {
62			compatible = "nuvoton,numicro-uart";
63			reg = <0x40073000 0x1000>;
64			status = "disabled";
65			label = "UART_3";
66		};
67
68		uart4: serial@40074000 {
69			compatible = "nuvoton,numicro-uart";
70			reg = <0x40074000 0x1000>;
71			status = "disabled";
72			label = "UART_4";
73		};
74
75		uart5: serial@40075000 {
76			compatible = "nuvoton,numicro-uart";
77			reg = <0x40075000 0x1000>;
78			status = "disabled";
79			label = "UART_5";
80		};
81
82		uart6: serial@40076000 {
83			compatible = "nuvoton,numicro-uart";
84			reg = <0x40076000 0x1000>;
85			status = "disabled";
86			label = "UART_6";
87		};
88
89		uart7: serial@40077000 {
90			compatible = "nuvoton,numicro-uart";
91			reg = <0x40077000 0x1000>;
92			status = "disabled";
93			label = "UART_7";
94		};
95
96	};
97};
98
99&nvic {
100	arm,num-irq-priority-bits = <4>;
101};
102