xref: /openbmc/linux/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts (revision 7adf8410cb0f7f1559baa270c89c2e94b44888ab)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright 2021 NXP
4 */
5
6/dts-v1/;
7
8#include "imx8ulp.dtsi"
9
10/ {
11	model = "NXP i.MX8ULP EVK";
12	compatible = "fsl,imx8ulp-evk", "fsl,imx8ulp";
13
14	chosen {
15		stdout-path = &lpuart5;
16	};
17
18	memory@80000000 {
19		device_type = "memory";
20		reg = <0x0 0x80000000 0 0x80000000>;
21	};
22
23	reserved-memory {
24		#address-cells = <2>;
25		#size-cells = <2>;
26		ranges;
27
28		linux,cma {
29			compatible = "shared-dma-pool";
30			reusable;
31			size = <0 0x28000000>;
32			linux,cma-default;
33		};
34
35		m33_reserved: noncacheable-section@a8600000 {
36			reg = <0 0xa8600000 0 0x1000000>;
37			no-map;
38		};
39
40		rsc_table: rsc-table@1fff8000{
41			reg = <0 0x1fff8000 0 0x1000>;
42			no-map;
43		};
44
45		vdev0vring0: vdev0vring0@aff00000 {
46			reg = <0 0xaff00000 0 0x8000>;
47			no-map;
48		};
49
50		vdev0vring1: vdev0vring1@aff08000 {
51			reg = <0 0xaff08000 0 0x8000>;
52			no-map;
53		};
54
55		vdev1vring0: vdev1vring0@aff10000 {
56			reg = <0 0xaff10000 0 0x8000>;
57			no-map;
58		};
59
60		vdev1vring1: vdev1vring1@aff18000 {
61			reg = <0 0xaff18000 0 0x8000>;
62			no-map;
63		};
64
65		vdevbuffer: vdevbuffer@a8400000 {
66			compatible = "shared-dma-pool";
67			reg = <0 0xa8400000 0 0x100000>;
68			no-map;
69		};
70	};
71
72	clock_ext_rmii: clock-ext-rmii {
73		compatible = "fixed-clock";
74		clock-frequency = <50000000>;
75		clock-output-names = "ext_rmii_clk";
76		#clock-cells = <0>;
77	};
78
79	clock_ext_ts: clock-ext-ts {
80		compatible = "fixed-clock";
81		/* External ts clock is 50MHZ from PHY on EVK board. */
82		clock-frequency = <50000000>;
83		clock-output-names = "ext_ts_clk";
84		#clock-cells = <0>;
85	};
86};
87
88&cm33 {
89	mbox-names = "tx", "rx", "rxdb";
90	mboxes = <&mu 0 1>,
91		 <&mu 1 1>,
92		 <&mu 3 1>;
93	memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>,
94			<&vdev1vring0>, <&vdev1vring1>, <&rsc_table>;
95	status = "okay";
96};
97
98&flexspi2 {
99	pinctrl-names = "default", "sleep";
100	pinctrl-0 = <&pinctrl_flexspi2_ptd>;
101	pinctrl-1 = <&pinctrl_flexspi2_ptd>;
102	status = "okay";
103
104	mx25uw51345gxdi00: flash@0 {
105		compatible = "jedec,spi-nor";
106		reg = <0>;
107		spi-max-frequency = <200000000>;
108		spi-tx-bus-width = <8>;
109		spi-rx-bus-width = <8>;
110	};
111};
112
113&lpuart5 {
114	/* console */
115	pinctrl-names = "default", "sleep";
116	pinctrl-0 = <&pinctrl_lpuart5>;
117	pinctrl-1 = <&pinctrl_lpuart5>;
118	status = "okay";
119};
120
121&usdhc0 {
122	pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep";
123	pinctrl-0 = <&pinctrl_usdhc0>;
124	pinctrl-1 = <&pinctrl_usdhc0>;
125	pinctrl-2 = <&pinctrl_usdhc0>;
126	pinctrl-3 = <&pinctrl_usdhc0>;
127	non-removable;
128	bus-width = <8>;
129	status = "okay";
130};
131
132&fec {
133	pinctrl-names = "default", "sleep";
134	pinctrl-0 = <&pinctrl_enet>;
135	pinctrl-1 = <&pinctrl_enet>;
136	clocks = <&cgc1 IMX8ULP_CLK_XBAR_DIVBUS>,
137		 <&pcc4 IMX8ULP_CLK_ENET>,
138		 <&cgc1 IMX8ULP_CLK_ENET_TS_SEL>,
139		 <&clock_ext_rmii>;
140	clock-names = "ipg", "ahb", "ptp", "enet_clk_ref";
141	assigned-clocks = <&cgc1 IMX8ULP_CLK_ENET_TS_SEL>;
142	assigned-clock-parents = <&clock_ext_ts>;
143	phy-mode = "rmii";
144	phy-handle = <&ethphy>;
145	status = "okay";
146
147	mdio {
148		#address-cells = <1>;
149		#size-cells = <0>;
150
151		ethphy: ethernet-phy@1 {
152			reg = <1>;
153			micrel,led-mode = <1>;
154		};
155	};
156};
157
158&mu {
159	status = "okay";
160};
161
162&iomuxc1 {
163	pinctrl_enet: enetgrp {
164		fsl,pins = <
165			MX8ULP_PAD_PTE15__ENET0_MDC     0x43
166			MX8ULP_PAD_PTE14__ENET0_MDIO    0x43
167			MX8ULP_PAD_PTE17__ENET0_RXER    0x43
168			MX8ULP_PAD_PTE18__ENET0_CRS_DV  0x43
169			MX8ULP_PAD_PTF1__ENET0_RXD0     0x43
170			MX8ULP_PAD_PTE20__ENET0_RXD1    0x43
171			MX8ULP_PAD_PTE16__ENET0_TXEN    0x43
172			MX8ULP_PAD_PTE23__ENET0_TXD0    0x43
173			MX8ULP_PAD_PTE22__ENET0_TXD1    0x43
174			MX8ULP_PAD_PTE19__ENET0_REFCLK  0x43
175			MX8ULP_PAD_PTF10__ENET0_1588_CLKIN 0x43
176		>;
177	};
178
179	pinctrl_flexspi2_ptd: flexspi2ptdgrp {
180		fsl,pins = <
181
182			MX8ULP_PAD_PTD12__FLEXSPI2_A_SS0_B	0x42
183			MX8ULP_PAD_PTD13__FLEXSPI2_A_SCLK	0x42
184			MX8ULP_PAD_PTD14__FLEXSPI2_A_DATA3	0x42
185			MX8ULP_PAD_PTD15__FLEXSPI2_A_DATA2	0x42
186			MX8ULP_PAD_PTD16__FLEXSPI2_A_DATA1	0x42
187			MX8ULP_PAD_PTD17__FLEXSPI2_A_DATA0	0x42
188			MX8ULP_PAD_PTD18__FLEXSPI2_A_DQS	0x42
189			MX8ULP_PAD_PTD19__FLEXSPI2_A_DATA7	0x42
190			MX8ULP_PAD_PTD20__FLEXSPI2_A_DATA6	0x42
191			MX8ULP_PAD_PTD21__FLEXSPI2_A_DATA5	0x42
192			MX8ULP_PAD_PTD22__FLEXSPI2_A_DATA4	0x42
193		>;
194	};
195
196	pinctrl_lpuart5: lpuart5grp {
197		fsl,pins = <
198			MX8ULP_PAD_PTF14__LPUART5_TX	0x3
199			MX8ULP_PAD_PTF15__LPUART5_RX	0x3
200		>;
201	};
202
203	pinctrl_usdhc0: usdhc0grp {
204		fsl,pins = <
205			MX8ULP_PAD_PTD1__SDHC0_CMD	0x3
206			MX8ULP_PAD_PTD2__SDHC0_CLK	0x10002
207			MX8ULP_PAD_PTD10__SDHC0_D0	0x3
208			MX8ULP_PAD_PTD9__SDHC0_D1	0x3
209			MX8ULP_PAD_PTD8__SDHC0_D2	0x3
210			MX8ULP_PAD_PTD7__SDHC0_D3	0x3
211			MX8ULP_PAD_PTD6__SDHC0_D4	0x3
212			MX8ULP_PAD_PTD5__SDHC0_D5	0x3
213			MX8ULP_PAD_PTD4__SDHC0_D6	0x3
214			MX8ULP_PAD_PTD3__SDHC0_D7	0x3
215			MX8ULP_PAD_PTD11__SDHC0_DQS	0x10002
216		>;
217	};
218};
219