1/*
2 * Copyright (c) 2018, Cypress
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <arm/armv6-m.dtsi>
8#include <infineon/cat1a/legacy/psoc6.dtsi>
9
10/ {
11	cpus {
12		cpu@0 {
13			compatible = "arm,cortex-m0+";
14		};
15
16		/delete-node/ cpu@1;
17	};
18
19	soc {
20		intmux: intmux@40210020 {
21			/* see cypress,psoc6-int-mux.yaml */
22			compatible = "cypress,psoc6-intmux";
23			reg = <0x40210020 0x20>;
24			ranges = <0x0 0x40210020 0x20>;
25			status = "okay";
26			#address-cells = <1>;
27			#size-cells = <1>;
28
29			intmux_ch0: interrupt-controller@0 {
30				compatible = "cypress,psoc6-intmux-ch";
31				reg = <0x0 1>;
32				#interrupt-cells = <2>;
33				interrupt-controller;
34				interrupts = <0 3>;
35				status = "okay";
36			};
37			intmux_ch1: interrupt-controller@1 {
38				compatible = "cypress,psoc6-intmux-ch";
39				reg = <0x1 1>;
40				#interrupt-cells = <2>;
41				interrupt-controller;
42				interrupts = <1 3>;
43				status = "okay";
44			};
45			intmux_ch2: interrupt-controller@2 {
46				compatible = "cypress,psoc6-intmux-ch";
47				reg = <0x2 1>;
48				#interrupt-cells = <2>;
49				interrupt-controller;
50				interrupts = <2 3>;
51				status = "okay";
52			};
53			intmux_ch3: interrupt-controller@3 {
54				compatible = "cypress,psoc6-intmux-ch";
55				reg = <0x3 1>;
56				#interrupt-cells = <2>;
57				interrupt-controller;
58				interrupts = <3 3>;
59				status = "okay";
60			};
61			intmux_ch4: interrupt-controller@4 {
62				compatible = "cypress,psoc6-intmux-ch";
63				reg = <0x4 1>;
64				#interrupt-cells = <2>;
65				interrupt-controller;
66				interrupts = <4 3>;
67				status = "okay";
68			};
69			intmux_ch5: interrupt-controller@5 {
70				compatible = "cypress,psoc6-intmux-ch";
71				reg = <0x5 1>;
72				#interrupt-cells = <2>;
73				interrupt-controller;
74				interrupts = <5 3>;
75				status = "okay";
76			};
77			intmux_ch6: interrupt-controller@6 {
78				compatible = "cypress,psoc6-intmux-ch";
79				reg = <0x6 1>;
80				#interrupt-cells = <2>;
81				interrupt-controller;
82				interrupts = <6 3>;
83				status = "okay";
84			};
85			intmux_ch7: interrupt-controller@7 {
86				compatible = "cypress,psoc6-intmux-ch";
87				reg = <0x7 1>;
88				#interrupt-cells = <2>;
89				interrupt-controller;
90				interrupts = <7 3>;
91				status = "okay";
92			};
93			intmux_ch8: interrupt-controller@8 {
94				compatible = "cypress,psoc6-intmux-ch";
95				reg = <0x8 1>;
96				#interrupt-cells = <2>;
97				interrupt-controller;
98				interrupts = <8 3>;
99				status = "okay";
100			};
101			intmux_ch9: interrupt-controller@9 {
102				compatible = "cypress,psoc6-intmux-ch";
103				reg = <0x9 1>;
104				#interrupt-cells = <2>;
105				interrupt-controller;
106				interrupts = <9 3>;
107				status = "okay";
108			};
109			intmux_ch10: interrupt-controller@a {
110				compatible = "cypress,psoc6-intmux-ch";
111				reg = <0xa 1>;
112				#interrupt-cells = <2>;
113				interrupt-controller;
114				interrupts = <10 3>;
115				status = "okay";
116			};
117			intmux_ch11: interrupt-controller@b {
118				compatible = "cypress,psoc6-intmux-ch";
119				reg = <0xb 1>;
120				#interrupt-cells = <2>;
121				interrupt-controller;
122				interrupts = <11 3>;
123				status = "okay";
124			};
125			intmux_ch12: interrupt-controller@c {
126				compatible = "cypress,psoc6-intmux-ch";
127				reg = <0xc 1>;
128				#interrupt-cells = <2>;
129				interrupt-controller;
130				interrupts = <12 3>;
131				status = "okay";
132			};
133			intmux_ch13: interrupt-controller@d {
134				compatible = "cypress,psoc6-intmux-ch";
135				reg = <0xd 1>;
136				#interrupt-cells = <2>;
137				interrupt-controller;
138				interrupts = <13 3>;
139				status = "okay";
140			};
141			intmux_ch14: interrupt-controller@e {
142				compatible = "cypress,psoc6-intmux-ch";
143				reg = <0xe 1>;
144				#interrupt-cells = <2>;
145				interrupt-controller;
146				interrupts = <14 3>;
147				status = "okay";
148			};
149			intmux_ch15: interrupt-controller@f {
150				compatible = "cypress,psoc6-intmux-ch";
151				reg = <0xf 1>;
152				#interrupt-cells = <2>;
153				interrupt-controller;
154				interrupts = <15 3>;
155				status = "okay";
156			};
157			intmux_ch16: interrupt-controller@10 {
158				compatible = "cypress,psoc6-intmux-ch";
159				reg = <0x10 1>;
160				#interrupt-cells = <2>;
161				interrupt-controller;
162				interrupts = <16 3>;
163				status = "okay";
164			};
165			intmux_ch17: interrupt-controller@11 {
166				compatible = "cypress,psoc6-intmux-ch";
167				reg = <0x11 1>;
168				#interrupt-cells = <2>;
169				interrupt-controller;
170				interrupts = <17 3>;
171				status = "okay";
172			};
173			intmux_ch18: interrupt-controller@12 {
174				compatible = "cypress,psoc6-intmux-ch";
175				reg = <0x12 1>;
176				#interrupt-cells = <2>;
177				interrupt-controller;
178				interrupts = <18 3>;
179				status = "okay";
180			};
181			intmux_ch19: interrupt-controller@13 {
182				compatible = "cypress,psoc6-intmux-ch";
183				reg = <0x13 1>;
184				#interrupt-cells = <2>;
185				interrupt-controller;
186				interrupts = <19 3>;
187				status = "okay";
188			};
189			intmux_ch20: interrupt-controller@14 {
190				compatible = "cypress,psoc6-intmux-ch";
191				reg = <0x14 1>;
192				#interrupt-cells = <2>;
193				interrupt-controller;
194				interrupts = <20 3>;
195				status = "okay";
196			};
197			intmux_ch21: interrupt-controller@15 {
198				compatible = "cypress,psoc6-intmux-ch";
199				reg = <0x15 1>;
200				#interrupt-cells = <2>;
201				interrupt-controller;
202				interrupts = <21 3>;
203				status = "okay";
204			};
205			intmux_ch22: interrupt-controller@16 {
206				compatible = "cypress,psoc6-intmux-ch";
207				reg = <0x16 1>;
208				#interrupt-cells = <2>;
209				interrupt-controller;
210				interrupts = <22 3>;
211				status = "okay";
212			};
213			intmux_ch23: interrupt-controller@17 {
214				compatible = "cypress,psoc6-intmux-ch";
215				reg = <0x17 1>;
216				#interrupt-cells = <2>;
217				interrupt-controller;
218				interrupts = <23 3>;
219				status = "okay";
220			};
221			intmux_ch24: interrupt-controller@18 {
222				compatible = "cypress,psoc6-intmux-ch";
223				reg = <0x18 1>;
224				#interrupt-cells = <2>;
225				interrupt-controller;
226				interrupts = <24 3>;
227				status = "okay";
228			};
229			intmux_ch25: interrupt-controller@19 {
230				compatible = "cypress,psoc6-intmux-ch";
231				reg = <0x19 1>;
232				#interrupt-cells = <2>;
233				interrupt-controller;
234				interrupts = <25 3>;
235				status = "okay";
236			};
237			intmux_ch26: interrupt-controller@1a {
238				compatible = "cypress,psoc6-intmux-ch";
239				reg = <0x1a 1>;
240				#interrupt-cells = <2>;
241				interrupt-controller;
242				interrupts = <26 3>;
243				status = "okay";
244			};
245			intmux_ch27: interrupt-controller@1b {
246				compatible = "cypress,psoc6-intmux-ch";
247				reg = <0x1b 1>;
248				#interrupt-cells = <2>;
249				interrupt-controller;
250				interrupts = <27 3>;
251				status = "okay";
252			};
253			intmux_ch28: interrupt-controller@1c {
254				compatible = "cypress,psoc6-intmux-ch";
255				reg = <0x1c 1>;
256				#interrupt-cells = <2>;
257				interrupt-controller;
258				interrupts = <28 3>;
259				status = "okay";
260			};
261			intmux_ch29: interrupt-controller@1d {
262				compatible = "cypress,psoc6-intmux-ch";
263				reg = <0x1d 1>;
264				#interrupt-cells = <2>;
265				interrupt-controller;
266				interrupts = <29 3>;
267				status = "okay";
268			};
269			intmux_ch30: interrupt-controller@1e {
270				compatible = "cypress,psoc6-intmux-ch";
271				reg = <0x1e 1>;
272				#interrupt-cells = <2>;
273				interrupt-controller;
274				interrupts = <30 3>;
275				status = "okay";
276			};
277			intmux_ch31: interrupt-controller@1f {
278				compatible = "cypress,psoc6-intmux-ch";
279				reg = <0x1f 1>;
280				#interrupt-cells = <2>;
281				interrupt-controller;
282				interrupts = <31 3>;
283				status = "okay";
284			};
285		};
286	};
287};
288
289&nvic {
290	arm,num-irq-priority-bits = <2>;
291};
292