xref: /linux/arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2016 Freescale Semiconductor, Inc.
4 * Copyright 2017-2018 NXP
5 *   Dong Aisheng <aisheng.dong@nxp.com>
6 */
7
8#include <dt-bindings/clock/imx7ulp-clock.h>
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/interrupt-controller/arm-gic.h>
11
12#include "imx7ulp-pinfunc.h"
13
14/ {
15	interrupt-parent = <&intc>;
16
17	#address-cells = <1>;
18	#size-cells = <1>;
19
20	aliases {
21		gpio0 = &gpio_ptc;
22		gpio1 = &gpio_ptd;
23		gpio2 = &gpio_pte;
24		gpio3 = &gpio_ptf;
25		i2c0 = &lpi2c6;
26		i2c1 = &lpi2c7;
27		mmc0 = &usdhc0;
28		mmc1 = &usdhc1;
29		serial0 = &lpuart4;
30		serial1 = &lpuart5;
31		serial2 = &lpuart6;
32		serial3 = &lpuart7;
33		usbphy0 = &usbphy1;
34	};
35
36	cpus {
37		#address-cells = <1>;
38		#size-cells = <0>;
39
40		cpu0: cpu@f00 {
41			compatible = "arm,cortex-a7";
42			device_type = "cpu";
43			reg = <0xf00>;
44		};
45	};
46
47	intc: interrupt-controller@40021000 {
48		compatible = "arm,cortex-a7-gic";
49		#interrupt-cells = <3>;
50		interrupt-controller;
51		reg = <0x40021000 0x1000>,
52		      <0x40022000 0x1000>;
53	};
54
55	rosc: clock-rosc {
56		compatible = "fixed-clock";
57		clock-frequency = <32768>;
58		clock-output-names = "rosc";
59		#clock-cells = <0>;
60	};
61
62	sosc: clock-sosc {
63		compatible = "fixed-clock";
64		clock-frequency = <24000000>;
65		clock-output-names = "sosc";
66		#clock-cells = <0>;
67	};
68
69	sirc: clock-sirc {
70		compatible = "fixed-clock";
71		clock-frequency = <16000000>;
72		clock-output-names = "sirc";
73		#clock-cells = <0>;
74	};
75
76	firc: clock-firc {
77		compatible = "fixed-clock";
78		clock-frequency = <48000000>;
79		clock-output-names = "firc";
80		#clock-cells = <0>;
81	};
82
83	upll: clock-upll {
84		compatible = "fixed-clock";
85		clock-frequency = <480000000>;
86		clock-output-names = "upll";
87		#clock-cells = <0>;
88	};
89
90	ahbbridge0: bus@40000000 {
91		compatible = "simple-bus";
92		#address-cells = <1>;
93		#size-cells = <1>;
94		reg = <0x40000000 0x800000>;
95		ranges;
96
97		edma1: dma-controller@40080000 {
98			#dma-cells = <2>;
99			compatible = "fsl,imx7ulp-edma";
100			reg = <0x40080000 0x2000>,
101				<0x40210000 0x1000>;
102			dma-channels = <32>;
103			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
104				     <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
105				     <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
106				     <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
107				     <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
108				     <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
109				     <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
110				     <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
111				     <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
112				     <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
113				     <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
114				     <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
115				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
116				     <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
117				     <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
118				     <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
119				     <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
120			clock-names = "dma", "dmamux0";
121			clocks = <&pcc2 IMX7ULP_CLK_DMA1>,
122				 <&pcc2 IMX7ULP_CLK_DMA_MUX1>;
123		};
124
125		crypto: crypto@40240000 {
126			compatible = "fsl,sec-v4.0";
127			#address-cells = <1>;
128			#size-cells = <1>;
129			reg = <0x40240000 0x10000>;
130			ranges = <0 0x40240000 0x10000>;
131			clocks = <&pcc2 IMX7ULP_CLK_CAAM>,
132				 <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>;
133			clock-names = "aclk", "ipg";
134
135			sec_jr0: jr@1000 {
136				compatible = "fsl,sec-v4.0-job-ring";
137				reg = <0x1000 0x1000>;
138				interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
139			};
140
141			sec_jr1: jr@2000 {
142				compatible = "fsl,sec-v4.0-job-ring";
143				reg = <0x2000 0x1000>;
144				interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
145			};
146		};
147
148		lpuart4: serial@402d0000 {
149			compatible = "fsl,imx7ulp-lpuart";
150			reg = <0x402d0000 0x1000>;
151			interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
152			clocks = <&pcc2 IMX7ULP_CLK_LPUART4>;
153			clock-names = "ipg";
154			assigned-clocks = <&pcc2 IMX7ULP_CLK_LPUART4>;
155			assigned-clock-parents = <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>;
156			assigned-clock-rates = <24000000>;
157			status = "disabled";
158		};
159
160		lpuart5: serial@402e0000 {
161			compatible = "fsl,imx7ulp-lpuart";
162			reg = <0x402e0000 0x1000>;
163			interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
164			clocks = <&pcc2 IMX7ULP_CLK_LPUART5>;
165			clock-names = "ipg";
166			assigned-clocks = <&pcc2 IMX7ULP_CLK_LPUART5>;
167			assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>;
168			assigned-clock-rates = <48000000>;
169			status = "disabled";
170		};
171
172		tpm4: pwm@40250000 {
173			compatible = "fsl,imx7ulp-pwm";
174			reg = <0x40250000 0x1000>;
175			assigned-clocks = <&pcc2 IMX7ULP_CLK_LPTPM4>;
176			assigned-clock-parents = <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>;
177			clocks = <&pcc2 IMX7ULP_CLK_LPTPM4>;
178			#pwm-cells = <3>;
179			status = "disabled";
180		};
181
182		tpm5: tpm@40260000 {
183			compatible = "fsl,imx7ulp-tpm";
184			reg = <0x40260000 0x1000>;
185			interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
186			clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>,
187				 <&pcc2 IMX7ULP_CLK_LPTPM5>;
188			clock-names = "ipg", "per";
189		};
190
191		usbotg1: usb@40330000 {
192			compatible = "fsl,imx7ulp-usb", "fsl,imx6ul-usb", "fsl,imx27-usb";
193			reg = <0x40330000 0x200>;
194			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
195			clocks = <&pcc2 IMX7ULP_CLK_USB0>;
196			phys = <&usbphy1>;
197			fsl,usbmisc = <&usbmisc1 0>;
198			ahb-burst-config = <0x0>;
199			tx-burst-size-dword = <0x8>;
200			rx-burst-size-dword = <0x8>;
201			status = "disabled";
202		};
203
204		usbmisc1: usbmisc@40330200 {
205			compatible = "fsl,imx7ulp-usbmisc", "fsl,imx7d-usbmisc",
206				     "fsl,imx6q-usbmisc";
207			#index-cells = <1>;
208			reg = <0x40330200 0x200>;
209		};
210
211		usbphy1: usb-phy@40350000 {
212			compatible = "fsl,imx7ulp-usbphy";
213			reg = <0x40350000 0x1000>;
214			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
215			clocks = <&pcc2 IMX7ULP_CLK_USB_PHY>;
216			#phy-cells = <0>;
217			nxp,sim = <&sim>;
218		};
219
220		usdhc0: mmc@40370000 {
221			compatible = "fsl,imx7ulp-usdhc";
222			reg = <0x40370000 0x10000>;
223			interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
224			clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>,
225				 <&scg1 IMX7ULP_CLK_NIC1_DIV>,
226				 <&pcc2 IMX7ULP_CLK_USDHC0>;
227			clock-names = "ipg", "ahb", "per";
228			bus-width = <4>;
229			fsl,tuning-start-tap = <20>;
230			fsl,tuning-step = <2>;
231			status = "disabled";
232		};
233
234		usdhc1: mmc@40380000 {
235			compatible = "fsl,imx7ulp-usdhc";
236			reg = <0x40380000 0x10000>;
237			interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
238			clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>,
239				 <&scg1 IMX7ULP_CLK_NIC1_DIV>,
240				 <&pcc2 IMX7ULP_CLK_USDHC1>;
241			clock-names = "ipg", "ahb", "per";
242			bus-width = <4>;
243			fsl,tuning-start-tap = <20>;
244			fsl,tuning-step = <2>;
245			status = "disabled";
246		};
247
248		scg1: clock-controller@403e0000 {
249			compatible = "fsl,imx7ulp-scg1";
250			reg = <0x403e0000 0x10000>;
251			clocks = <&rosc>, <&sosc>, <&sirc>,
252				 <&firc>, <&upll>;
253			clock-names = "rosc", "sosc", "sirc",
254				      "firc", "upll";
255			#clock-cells = <1>;
256		};
257
258		wdog1: watchdog@403d0000 {
259			compatible = "fsl,imx7ulp-wdt";
260			reg = <0x403d0000 0x10000>;
261			interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
262			clocks = <&pcc2 IMX7ULP_CLK_WDG1>;
263			assigned-clocks = <&pcc2 IMX7ULP_CLK_WDG1>;
264			assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>;
265			timeout-sec = <40>;
266		};
267
268		pcc2: clock-controller@403f0000 {
269			compatible = "fsl,imx7ulp-pcc2";
270			reg = <0x403f0000 0x10000>;
271			#clock-cells = <1>;
272			clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>,
273				 <&scg1 IMX7ULP_CLK_NIC1_DIV>,
274				 <&scg1 IMX7ULP_CLK_DDR_DIV>,
275				 <&scg1 IMX7ULP_CLK_APLL_PFD2>,
276				 <&scg1 IMX7ULP_CLK_APLL_PFD1>,
277				 <&scg1 IMX7ULP_CLK_APLL_PFD0>,
278				 <&scg1 IMX7ULP_CLK_UPLL>,
279				 <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>,
280				 <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>,
281				 <&scg1 IMX7ULP_CLK_ROSC>,
282				 <&scg1 IMX7ULP_CLK_SPLL_BUS_CLK>;
283			clock-names = "nic1_bus_clk", "nic1_clk", "ddr_clk",
284				      "apll_pfd2", "apll_pfd1", "apll_pfd0",
285				      "upll", "sosc_bus_clk",
286				      "firc_bus_clk", "rosc", "spll_bus_clk";
287			assigned-clocks = <&pcc2 IMX7ULP_CLK_LPTPM5>;
288			assigned-clock-parents = <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>;
289		};
290
291		smc1: clock-controller@40410000 {
292			compatible = "fsl,imx7ulp-smc1";
293			reg = <0x40410000 0x1000>;
294			#clock-cells = <1>;
295			clocks = <&scg1 IMX7ULP_CLK_CORE_DIV>,
296				 <&scg1 IMX7ULP_CLK_HSRUN_CORE_DIV>;
297			clock-names = "divcore", "hsrun_divcore";
298		};
299
300		pcc3: clock-controller@40b30000 {
301			compatible = "fsl,imx7ulp-pcc3";
302			reg = <0x40b30000 0x10000>;
303			#clock-cells = <1>;
304			clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>,
305				 <&scg1 IMX7ULP_CLK_NIC1_DIV>,
306				 <&scg1 IMX7ULP_CLK_DDR_DIV>,
307				 <&scg1 IMX7ULP_CLK_APLL_PFD2>,
308				 <&scg1 IMX7ULP_CLK_APLL_PFD1>,
309				 <&scg1 IMX7ULP_CLK_APLL_PFD0>,
310				 <&scg1 IMX7ULP_CLK_UPLL>,
311				 <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>,
312				 <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>,
313				 <&scg1 IMX7ULP_CLK_ROSC>,
314				 <&scg1 IMX7ULP_CLK_SPLL_BUS_CLK>;
315			clock-names = "nic1_bus_clk", "nic1_clk", "ddr_clk",
316				      "apll_pfd2", "apll_pfd1", "apll_pfd0",
317				      "upll", "sosc_bus_clk",
318				      "firc_bus_clk", "rosc", "spll_bus_clk";
319		};
320	};
321
322	ahbbridge1: bus@40800000 {
323		compatible = "simple-bus";
324		#address-cells = <1>;
325		#size-cells = <1>;
326		reg = <0x40800000 0x800000>;
327		ranges;
328
329		lpi2c6: i2c@40a40000 {
330			compatible = "fsl,imx7ulp-lpi2c";
331			reg = <0x40a40000 0x10000>;
332			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
333			clocks = <&pcc3 IMX7ULP_CLK_LPI2C6>,
334				 <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>;
335			clock-names = "per", "ipg";
336			assigned-clocks = <&pcc3 IMX7ULP_CLK_LPI2C6>;
337			assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>;
338			assigned-clock-rates = <48000000>;
339			status = "disabled";
340		};
341
342		lpi2c7: i2c@40a50000 {
343			compatible = "fsl,imx7ulp-lpi2c";
344			reg = <0x40a50000 0x10000>;
345			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
346			clocks = <&pcc3 IMX7ULP_CLK_LPI2C7>,
347				 <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>;
348			clock-names = "per", "ipg";
349			assigned-clocks = <&pcc3 IMX7ULP_CLK_LPI2C7>;
350			assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>;
351			assigned-clock-rates = <48000000>;
352			status = "disabled";
353		};
354
355		lpuart6: serial@40a60000 {
356			compatible = "fsl,imx7ulp-lpuart";
357			reg = <0x40a60000 0x1000>;
358			interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
359			clocks = <&pcc3 IMX7ULP_CLK_LPUART6>;
360			clock-names = "ipg";
361			assigned-clocks = <&pcc3 IMX7ULP_CLK_LPUART6>;
362			assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>;
363			assigned-clock-rates = <48000000>;
364			status = "disabled";
365		};
366
367		lpuart7: serial@40a70000 {
368			compatible = "fsl,imx7ulp-lpuart";
369			reg = <0x40a70000 0x1000>;
370			interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
371			clocks = <&pcc3  IMX7ULP_CLK_LPUART7>;
372			clock-names = "ipg";
373			assigned-clocks = <&pcc3 IMX7ULP_CLK_LPUART7>;
374			assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>;
375			assigned-clock-rates = <48000000>;
376			status = "disabled";
377		};
378
379		memory-controller@40ab0000 {
380			compatible = "fsl,imx7ulp-mmdc", "fsl,imx6q-mmdc";
381			reg = <0x40ab0000 0x1000>;
382			clocks = <&pcc3 IMX7ULP_CLK_MMDC>;
383		};
384
385		iomuxc1: pinctrl@40ac0000 {
386			compatible = "fsl,imx7ulp-iomuxc1";
387			reg = <0x40ac0000 0x1000>;
388		};
389
390		gpio_ptc: gpio@40ae0000 {
391			compatible = "fsl,imx7ulp-gpio", "fsl,vf610-gpio";
392			reg = <0x40ae0000 0x1000 0x400f0000 0x40>;
393			gpio-controller;
394			#gpio-cells = <2>;
395			interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
396			interrupt-controller;
397			#interrupt-cells = <2>;
398			clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>,
399				 <&pcc3 IMX7ULP_CLK_PCTLC>;
400			clock-names = "gpio", "port";
401			gpio-ranges = <&iomuxc1 0 0 20>;
402		};
403
404		gpio_ptd: gpio@40af0000 {
405			compatible = "fsl,imx7ulp-gpio", "fsl,vf610-gpio";
406			reg = <0x40af0000 0x1000 0x400f0040 0x40>;
407			gpio-controller;
408			#gpio-cells = <2>;
409			interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
410			interrupt-controller;
411			#interrupt-cells = <2>;
412			clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>,
413				 <&pcc3 IMX7ULP_CLK_PCTLD>;
414			clock-names = "gpio", "port";
415			gpio-ranges = <&iomuxc1 0 32 12>;
416		};
417
418		gpio_pte: gpio@40b00000 {
419			compatible = "fsl,imx7ulp-gpio", "fsl,vf610-gpio";
420			reg = <0x40b00000 0x1000 0x400f0080 0x40>;
421			gpio-controller;
422			#gpio-cells = <2>;
423			interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
424			interrupt-controller;
425			#interrupt-cells = <2>;
426			clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>,
427				 <&pcc3 IMX7ULP_CLK_PCTLE>;
428			clock-names = "gpio", "port";
429			gpio-ranges = <&iomuxc1 0 64 16>;
430		};
431
432		gpio_ptf: gpio@40b10000 {
433			compatible = "fsl,imx7ulp-gpio", "fsl,vf610-gpio";
434			reg = <0x40b10000 0x1000 0x400f00c0 0x40>;
435			gpio-controller;
436			#gpio-cells = <2>;
437			interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
438			interrupt-controller;
439			#interrupt-cells = <2>;
440			clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>,
441				 <&pcc3 IMX7ULP_CLK_PCTLF>;
442			clock-names = "gpio", "port";
443			gpio-ranges = <&iomuxc1 0 96 20>;
444		};
445	};
446
447	m4aips1: bus@41080000 {
448		compatible = "simple-bus";
449		#address-cells = <1>;
450		#size-cells = <1>;
451		reg = <0x41080000 0x80000>;
452		ranges;
453
454		sim: sim@410a3000 {
455			compatible = "fsl,imx7ulp-sim", "syscon";
456			reg = <0x410a3000 0x1000>;
457		};
458
459		ocotp: efuse@410a6000 {
460			compatible = "fsl,imx7ulp-ocotp", "syscon";
461			reg = <0x410a6000 0x4000>;
462			clocks = <&scg1 IMX7ULP_CLK_DUMMY>;
463			#address-cells = <1>;
464			#size-cells = <1>;
465		};
466	};
467};
468