1/* SPDX-License-Identifier: Apache-2.0 */
2
3/dts-v1/;
4
5#include <arm/armv7-m.dtsi>
6/ {
7	compatible = "arm,beetle";
8	#address-cells = <1>;
9	#size-cells = <1>;
10
11	aliases {
12		watchdog0 = &wdog0;
13	};
14
15	chosen {
16		zephyr,console = &uart1;
17		zephyr,shell-uart = &uart1;
18		zephyr,sram = &sram0;
19		zephyr,flash = &flash0;
20	};
21
22	cpus {
23		#address-cells = <1>;
24		#size-cells = <0>;
25
26		cpu@0 {
27			compatible = "arm,cortex-m3";
28			clock-frequency = <24000000>;
29			reg = <0>;
30		};
31	};
32
33	sram0: memory@20000000 {
34		compatible = "mmio-sram";
35		reg = <0x20000000 0x20000>;
36	};
37
38	flash0: flash@0 {
39		compatible = "soc-nv-flash";
40		reg = <0 0x40000>;
41	};
42
43	sysclk: system-clock {
44		compatible = "fixed-clock";
45		clock-frequency = <24000000>;
46		#clock-cells = <0>;
47	};
48
49	soc {
50		timer0: timer@40000000 {
51			compatible = "arm,cmsdk-timer";
52			reg = <0x40000000 0x1000>;
53			interrupts = <8 3>;
54			clocks = <&syscon>;
55		};
56
57		timer1: timer@40001000 {
58			compatible = "arm,cmsdk-timer";
59			reg = <0x40001000 0x1000>;
60			interrupts = <9 3>;
61			clocks = <&syscon>;
62		};
63
64		dtimer0: dtimer@40002000 {
65			compatible = "arm,cmsdk-dtimer";
66			reg = <0x40002000 0x1000>;
67			interrupts = <10 3>;
68			clocks = <&syscon>;
69		};
70
71		uart0: uart@40004000 {
72			compatible = "arm,cmsdk-uart";
73			reg = <0x40004000 0x1000>;
74			interrupts = <0 3>;
75			clocks = <&sysclk &syscon>;
76			current-speed = <115200>;
77		};
78
79		uart1: uart@40005000 {
80			compatible = "arm,cmsdk-uart";
81			reg = <0x40005000 0x1000>;
82			interrupts = <2 3>;
83			clocks = <&sysclk &syscon>;
84			current-speed = <115200>;
85		};
86
87		wdog0: wdog@40008000 {
88			compatible = "arm,cmsdk-watchdog";
89			clocks = <&sysclk>;
90			reg = <0x40008000 0x1000>;
91		};
92
93		gpio0: gpio@40010000 {
94			compatible = "arm,cmsdk-gpio";
95			reg = <0x40010000 0x1000>;
96			interrupts = <6 3>;
97			gpio-controller;
98			#gpio-cells = <2>;
99			clocks = <&syscon>;
100		};
101
102		gpio1: gpio@40011000 {
103			compatible = "arm,cmsdk-gpio";
104			reg = <0x40011000 0x1000>;
105			interrupts = <7 3>;
106			gpio-controller;
107			#gpio-cells = <2>;
108			clocks = <&syscon>;
109		};
110
111		gpio2: gpio@40012000 {
112			compatible = "arm,cmsdk-gpio";
113			reg = <0x40012000 0x1000>;
114			interrupts = <42 3>;
115			gpio-controller;
116			#gpio-cells = <2>;
117			clocks = <&syscon>;
118		};
119
120		gpio3: gpio@40013000 {
121			compatible = "arm,cmsdk-gpio";
122			reg = <0x40013000 0x1000>;
123			interrupts = <43 3>;
124			gpio-controller;
125			#gpio-cells = <2>;
126			clocks = <&syscon>;
127		};
128
129		syscon: syscon@4001f000 {
130			compatible = "arm,beetle-syscon";
131			reg = <0x4001f000 0x1000>;
132			#clock-cells = <0>;
133		};
134	};
135};
136
137&nvic {
138	arm,num-irq-priority-bits = <3>;
139};
140