1/*
2 * Copyright (c) 2023 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <xtensa/xtensa.dtsi>
8#include <mem.h>
9#include <zephyr/dt-bindings/clock/imx8ulp_clock.h>
10
11/ {
12	cpus {
13		#address-cells = <1>;
14		#size-cells = <0>;
15
16		cpu0: cpu@0 {
17			device_type = "cpu";
18			compatible = "cdns,tensilica-xtensa-lx7";
19			reg = <0>;
20		};
21
22		#address-cells = <1>;
23		#size-cells = <0>;
24
25		clic: interrupt-controller@0 {
26			compatible = "cdns,xtensa-core-intc";
27			reg = <0>;
28			interrupt-controller;
29			#interrupt-cells = <3>;
30		};
31	};
32
33	sram0: memory@1a000000 {
34		device_type = "memory";
35		compatible = "mmio-sram";
36		reg = <0x1a000000 DT_SIZE_K(512)>;
37	};
38
39	sram1: memory@1a800000 {
40		device_type = "memory";
41		compatible = "mmio-sram";
42		reg = <0x1a800000 DT_SIZE_K(512)>;
43	};
44
45	pcc4: clock-controller@29800000 {
46		compatible = "nxp,kinetis-pcc";
47		reg = <0x29800000 DT_SIZE_K(64)>;
48		#clock-cells = <2>;
49	};
50
51	iomuxc1: pinctrl@298c0000 {
52		compatible = "nxp,imx-iomuxc";
53		reg = <0x298c0000 DT_SIZE_K(64)>;
54		pinctrl: pinctrl {
55			compatible = "nxp,imx8ulp-pinctrl";
56		};
57	};
58
59	/* note: this was intentionally left without an interrupt
60	 * property because HIFI4 DSP doesn't receive interrupts
61	 * from LPUART7.
62	 */
63	lpuart7: serial@29870000 {
64		compatible = "nxp,lpuart";
65		reg = <0x29870000 DT_SIZE_K(4)>;
66		clocks = <&pcc4 IMX8ULP_CLOCK_LPUART7 0x0>;
67		status = "disabled";
68	};
69
70	edma2: dma@2d800000 {
71		compatible = "nxp,edma";
72		reg = <0x2d800000 (DT_SIZE_K(64) * 32)>;
73		valid-channels = <0>, <1>, <2>, <3>;
74		interrupt-parent = <&clic>;
75		interrupts = <6 0 0>, <7 0 0>, <8 0 0>, <9 0 0>;
76		#dma-cells = <2>;
77		status = "disabled";
78	};
79
80	sai5: dai@29890000 {
81		compatible = "nxp,dai-sai";
82		reg = <0x29890000 DT_SIZE_K(4)>;
83		interrupt-parent = <&clic>;
84		interrupts = <23 0 0>;
85		dmas = <&edma2 2 70>, <&edma2 3 69>;
86		dma-names = "tx", "rx";
87		dai-index = <5>;
88		status = "disabled";
89	};
90
91	sai6: dai@2da90000 {
92		compatible = "nxp,dai-sai";
93		reg = <0x2da90000 DT_SIZE_K(4)>;
94		interrupt-parent = <&clic>;
95		interrupts = <24 0 0>;
96		dmas = <&edma2 0 72>, <&edma2 1 71>;
97		dma-names = "tx", "rx";
98		dai-index = <6>;
99		status = "disabled";
100	};
101};
102