1/* SPDX-License-Identifier: Apache-2.0 */
2
3#include <arm/armv7-m.dtsi>
4
5/ {
6	cpus {
7		#address-cells = <1>;
8		#size-cells = <0>;
9
10		cpu@0 {
11			device_type = "cpu";
12			compatible = "arm,cortex-m3";
13			reg = <0>;
14		};
15	};
16
17	sram0: memory@20000000 {
18		compatible = "mmio-sram";
19		reg = <0x20000000 (64*1024)>;
20	};
21
22	sysclk: system-clock {
23		compatible = "fixed-clock";
24		clock-frequency = <12000000>;
25		#clock-cells = <0>;
26	};
27
28	soc {
29
30		flash-controller@400fd000 {
31			compatible = "ti,stellaris-flash-controller";
32			reg = <0x400fd000 0x1000>;
33			#address-cells = <1>;
34			#size-cells = <1>;
35
36			flash0: flash@0 {
37				compatible = "soc-nv-flash";
38				reg = <0x00000000 (256*1024)>;
39			};
40		};
41
42		uart0: uart@4000c000 {
43			compatible = "ti,stellaris-uart";
44			reg = <0x4000c000 0x4c>;
45			clocks = <&sysclk>;
46			interrupts = <5 3>;
47			status = "disabled";
48		};
49
50		uart1: uart@4000d000 {
51			compatible = "ti,stellaris-uart";
52			reg = <0x4000d000 0x4c>;
53			clocks = <&sysclk>;
54			interrupts = <6 3>;
55			status = "disabled";
56		};
57
58		uart2: uart@4000e000 {
59			compatible = "ti,stellaris-uart";
60			reg = <0x4000e000 0x4c>;
61			clocks = <&sysclk>;
62			interrupts = <33 3>;
63			status = "disabled";
64		};
65
66		eth: ethernet@40048000 {
67			compatible = "ti,stellaris-ethernet";
68			reg = <0x40048000 0x3c>;
69			interrupts = <42 0>;
70			status = "disabled";
71			local-mac-address = [00 00 94 00 83 00];
72		};
73
74		gpio0: gpio@40004000 {
75			compatible = "ti,stellaris-gpio";
76			reg = <0x40004000 0x1000>;
77			interrupts = <0 3>;
78			gpio-controller;
79			#gpio-cells = <2>;
80			ngpios = <8>;
81		};
82
83		gpio1: gpio@40005000 {
84			compatible = "ti,stellaris-gpio";
85			reg = <0x40005000 0x1000>;
86			interrupts = <1 3>;
87			gpio-controller;
88			#gpio-cells = <2>;
89			ngpios = <8>;
90		};
91
92		gpio2: gpio@40006000 {
93			compatible = "ti,stellaris-gpio";
94			reg = <0x40006000 0x1000>;
95			interrupts = <2 3>;
96			gpio-controller;
97			#gpio-cells = <2>;
98			ngpios = <8>;
99		};
100
101		gpio3: gpio@40007000 {
102			compatible = "ti,stellaris-gpio";
103			reg = <0x40007000 0x1000>;
104			interrupts = <3 3>;
105			gpio-controller;
106			#gpio-cells = <2>;
107			ngpios = <8>;
108		};
109
110		gpio4: gpio@40024000 {
111			compatible = "ti,stellaris-gpio";
112			reg = <0x40024000 0x1000>;
113			interrupts = <4 3>;
114			gpio-controller;
115			#gpio-cells = <2>;
116			ngpios = <4>;
117		};
118
119		gpio5: gpio@40025000 {
120			compatible = "ti,stellaris-gpio";
121			reg = <0x40025000 0x1000>;
122			interrupts = <30 3>;
123			gpio-controller;
124			#gpio-cells = <2>;
125			ngpios = <4>;
126		};
127
128		gpio6: gpio@40026000 {
129			compatible = "ti,stellaris-gpio";
130			reg = <0x40026000 0x1000>;
131			interrupts = <31 3>;
132			gpio-controller;
133			#gpio-cells = <2>;
134			ngpios = <2>;
135		};
136	};
137};
138
139&nvic {
140	arm,num-irq-priority-bits = <3>;
141};
142