blob: 4322cc3e11b8692f3ff02c62fab5b756d9139a40 [file] [log] [blame]
Peng Fan86a17972022-07-26 16:41:10 +08001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
Peng Fan596b9c42023-04-28 12:08:37 +08003 * Copyright 2022 NXP
Peng Fan86a17972022-07-26 16:41:10 +08004 */
5
6/dts-v1/;
7
8#include "imx93.dtsi"
9
Peng Fan596b9c42023-04-28 12:08:37 +080010/ {
11 model = "NXP i.MX93 11X11 EVK board";
12 compatible = "fsl,imx93-11x11-evk", "fsl,imx93";
13
Peng Fan86a17972022-07-26 16:41:10 +080014 chosen {
15 stdout-path = &lpuart1;
16 };
17
Peng Fan596b9c42023-04-28 12:08:37 +080018 reg_vref_1v8: regulator-adc-vref {
Peng Fan86a17972022-07-26 16:41:10 +080019 compatible = "regulator-fixed";
Peng Fan596b9c42023-04-28 12:08:37 +080020 regulator-name = "vref_1v8";
21 regulator-min-microvolt = <1800000>;
22 regulator-max-microvolt = <1800000>;
Peng Fan86a17972022-07-26 16:41:10 +080023 };
24
25 reg_usdhc2_vmmc: regulator-usdhc2 {
26 compatible = "regulator-fixed";
27 pinctrl-names = "default";
28 pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
29 regulator-name = "VSD_3V3";
30 regulator-min-microvolt = <3300000>;
31 regulator-max-microvolt = <3300000>;
32 gpio = <&gpio3 7 GPIO_ACTIVE_HIGH>;
33 enable-active-high;
34 };
Peng Fan86a17972022-07-26 16:41:10 +080035};
36
Peng Fan596b9c42023-04-28 12:08:37 +080037&adc1 {
38 vref-supply = <&reg_vref_1v8>;
39 status = "okay";
40};
41
42&mu1 {
43 status = "okay";
44};
45
46&mu2 {
47 status = "okay";
48};
49
50&eqos {
51 pinctrl-names = "default";
52 pinctrl-0 = <&pinctrl_eqos>;
53 phy-mode = "rgmii-id";
54 phy-handle = <&ethphy1>;
Peng Fan86a17972022-07-26 16:41:10 +080055 status = "okay";
56
Peng Fan596b9c42023-04-28 12:08:37 +080057 mdio {
58 compatible = "snps,dwmac-mdio";
59 #address-cells = <1>;
60 #size-cells = <0>;
61 clock-frequency = <5000000>;
Peng Fan86a17972022-07-26 16:41:10 +080062
Peng Fan596b9c42023-04-28 12:08:37 +080063 ethphy1: ethernet-phy@1 {
64 reg = <1>;
65 eee-broken-1000t;
Peng Fan86a17972022-07-26 16:41:10 +080066 };
67 };
Peng Fan596b9c42023-04-28 12:08:37 +080068};
Peng Fan86a17972022-07-26 16:41:10 +080069
Peng Fan596b9c42023-04-28 12:08:37 +080070&fec {
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_fec>;
73 phy-mode = "rgmii-id";
74 phy-handle = <&ethphy2>;
75 fsl,magic-packet;
76 status = "okay";
Peng Fan86a17972022-07-26 16:41:10 +080077
Peng Fan596b9c42023-04-28 12:08:37 +080078 mdio {
79 #address-cells = <1>;
80 #size-cells = <0>;
81 clock-frequency = <5000000>;
Peng Fan86a17972022-07-26 16:41:10 +080082
Peng Fan596b9c42023-04-28 12:08:37 +080083 ethphy2: ethernet-phy@2 {
84 reg = <2>;
85 eee-broken-1000t;
Peng Fan86a17972022-07-26 16:41:10 +080086 };
87 };
88};
89
90&lpi2c2 {
91 #address-cells = <1>;
92 #size-cells = <0>;
93 clock-frequency = <400000>;
94 pinctrl-names = "default", "sleep";
95 pinctrl-0 = <&pinctrl_lpi2c2>;
96 pinctrl-1 = <&pinctrl_lpi2c2>;
97 status = "okay";
98
99 pmic@25 {
100 compatible = "nxp,pca9451a";
101 reg = <0x25>;
Peng Fan86a17972022-07-26 16:41:10 +0800102 interrupt-parent = <&pcal6524>;
Peng Fan596b9c42023-04-28 12:08:37 +0800103 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
Peng Fan86a17972022-07-26 16:41:10 +0800104
105 regulators {
106 buck1: BUCK1 {
107 regulator-name = "BUCK1";
Peng Fan596b9c42023-04-28 12:08:37 +0800108 regulator-min-microvolt = <650000>;
109 regulator-max-microvolt = <2237500>;
Peng Fan86a17972022-07-26 16:41:10 +0800110 regulator-boot-on;
111 regulator-always-on;
112 regulator-ramp-delay = <3125>;
113 };
114
115 buck2: BUCK2 {
116 regulator-name = "BUCK2";
117 regulator-min-microvolt = <600000>;
118 regulator-max-microvolt = <2187500>;
119 regulator-boot-on;
120 regulator-always-on;
121 regulator-ramp-delay = <3125>;
122 };
123
124 buck4: BUCK4{
125 regulator-name = "BUCK4";
126 regulator-min-microvolt = <600000>;
127 regulator-max-microvolt = <3400000>;
128 regulator-boot-on;
129 regulator-always-on;
130 };
131
132 buck5: BUCK5{
133 regulator-name = "BUCK5";
134 regulator-min-microvolt = <600000>;
135 regulator-max-microvolt = <3400000>;
136 regulator-boot-on;
137 regulator-always-on;
138 };
139
140 buck6: BUCK6 {
141 regulator-name = "BUCK6";
142 regulator-min-microvolt = <600000>;
143 regulator-max-microvolt = <3400000>;
144 regulator-boot-on;
145 regulator-always-on;
146 };
147
148 ldo1: LDO1 {
149 regulator-name = "LDO1";
150 regulator-min-microvolt = <1600000>;
151 regulator-max-microvolt = <3300000>;
152 regulator-boot-on;
153 regulator-always-on;
154 };
155
Peng Fan86a17972022-07-26 16:41:10 +0800156 ldo4: LDO4 {
157 regulator-name = "LDO4";
158 regulator-min-microvolt = <800000>;
159 regulator-max-microvolt = <3300000>;
160 regulator-boot-on;
161 regulator-always-on;
162 };
163
164 ldo5: LDO5 {
165 regulator-name = "LDO5";
166 regulator-min-microvolt = <1800000>;
167 regulator-max-microvolt = <3300000>;
168 regulator-boot-on;
169 regulator-always-on;
170 };
171 };
172 };
173
174 pcal6524: gpio@22 {
175 compatible = "nxp,pcal6524";
176 pinctrl-names = "default";
177 pinctrl-0 = <&pinctrl_pcal6524>;
178 reg = <0x22>;
179 gpio-controller;
180 #gpio-cells = <2>;
181 interrupt-controller;
182 #interrupt-cells = <2>;
183 interrupt-parent = <&gpio3>;
184 interrupts = <27 IRQ_TYPE_LEVEL_LOW>;
185 };
186
187 adp5585gpio: gpio@34 {
188 compatible = "adp5585";
189 reg = <0x34>;
190 gpio-controller;
191 #gpio-cells = <2>;
192 };
193};
194
195&lpuart1 { /* console */
196 pinctrl-names = "default";
197 pinctrl-0 = <&pinctrl_uart1>;
198 status = "okay";
199};
200
Peng Fan86a17972022-07-26 16:41:10 +0800201&usdhc1 {
202 pinctrl-names = "default", "state_100mhz", "state_200mhz";
203 pinctrl-0 = <&pinctrl_usdhc1>;
204 pinctrl-1 = <&pinctrl_usdhc1>;
205 pinctrl-2 = <&pinctrl_usdhc1>;
206 bus-width = <8>;
207 non-removable;
208 status = "okay";
209};
210
211&usdhc2 {
212 pinctrl-names = "default", "state_100mhz", "state_200mhz";
213 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
214 pinctrl-1 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
215 pinctrl-2 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
216 cd-gpios = <&gpio3 00 GPIO_ACTIVE_LOW>;
217 vmmc-supply = <&reg_usdhc2_vmmc>;
218 bus-width = <4>;
219 status = "okay";
220 no-sdio;
221 no-mmc;
222};
223
Peng Fan86a17972022-07-26 16:41:10 +0800224&iomuxc {
Peng Fan596b9c42023-04-28 12:08:37 +0800225 pinctrl_lpi2c2: lpi2c2grp {
Peng Fan86a17972022-07-26 16:41:10 +0800226 fsl,pins = <
Peng Fan596b9c42023-04-28 12:08:37 +0800227 MX93_PAD_I2C2_SCL__LPI2C2_SCL 0x40000b9e
228 MX93_PAD_I2C2_SDA__LPI2C2_SDA 0x40000b9e
Peng Fan86a17972022-07-26 16:41:10 +0800229 >;
230 };
231
Peng Fan596b9c42023-04-28 12:08:37 +0800232 pinctrl_pcal6524: pcal6524grp {
Peng Fan86a17972022-07-26 16:41:10 +0800233 fsl,pins = <
Peng Fan596b9c42023-04-28 12:08:37 +0800234 MX93_PAD_CCM_CLKO2__GPIO3_IO27 0x31e
Peng Fan86a17972022-07-26 16:41:10 +0800235 >;
236 };
237
238 pinctrl_eqos: eqosgrp {
239 fsl,pins = <
240 MX93_PAD_ENET1_MDC__ENET_QOS_MDC 0x57e
241 MX93_PAD_ENET1_MDIO__ENET_QOS_MDIO 0x57e
242 MX93_PAD_ENET1_RD0__ENET_QOS_RGMII_RD0 0x57e
243 MX93_PAD_ENET1_RD1__ENET_QOS_RGMII_RD1 0x57e
244 MX93_PAD_ENET1_RD2__ENET_QOS_RGMII_RD2 0x57e
245 MX93_PAD_ENET1_RD3__ENET_QOS_RGMII_RD3 0x57e
246 MX93_PAD_ENET1_RXC__CCM_ENET_QOS_CLOCK_GENERATE_RX_CLK 0x5fe
247 MX93_PAD_ENET1_RX_CTL__ENET_QOS_RGMII_RX_CTL 0x57e
248 MX93_PAD_ENET1_TD0__ENET_QOS_RGMII_TD0 0x57e
249 MX93_PAD_ENET1_TD1__ENET_QOS_RGMII_TD1 0x57e
250 MX93_PAD_ENET1_TD2__ENET_QOS_RGMII_TD2 0x57e
251 MX93_PAD_ENET1_TD3__ENET_QOS_RGMII_TD3 0x57e
252 MX93_PAD_ENET1_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK 0x5fe
253 MX93_PAD_ENET1_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x57e
254 >;
255 };
256
Peng Fan596b9c42023-04-28 12:08:37 +0800257 pinctrl_fec: fecgrp {
Peng Fan86a17972022-07-26 16:41:10 +0800258 fsl,pins = <
Peng Fan596b9c42023-04-28 12:08:37 +0800259 MX93_PAD_ENET2_MDC__ENET1_MDC 0x57e
260 MX93_PAD_ENET2_MDIO__ENET1_MDIO 0x57e
261 MX93_PAD_ENET2_RD0__ENET1_RGMII_RD0 0x57e
262 MX93_PAD_ENET2_RD1__ENET1_RGMII_RD1 0x57e
263 MX93_PAD_ENET2_RD2__ENET1_RGMII_RD2 0x57e
264 MX93_PAD_ENET2_RD3__ENET1_RGMII_RD3 0x57e
265 MX93_PAD_ENET2_RXC__ENET1_RGMII_RXC 0x5fe
266 MX93_PAD_ENET2_RX_CTL__ENET1_RGMII_RX_CTL 0x57e
267 MX93_PAD_ENET2_TD0__ENET1_RGMII_TD0 0x57e
268 MX93_PAD_ENET2_TD1__ENET1_RGMII_TD1 0x57e
269 MX93_PAD_ENET2_TD2__ENET1_RGMII_TD2 0x57e
270 MX93_PAD_ENET2_TD3__ENET1_RGMII_TD3 0x57e
271 MX93_PAD_ENET2_TXC__ENET1_RGMII_TXC 0x5fe
272 MX93_PAD_ENET2_TX_CTL__ENET1_RGMII_TX_CTL 0x57e
Peng Fan86a17972022-07-26 16:41:10 +0800273 >;
274 };
275
276 pinctrl_uart1: uart1grp {
277 fsl,pins = <
278 MX93_PAD_UART1_RXD__LPUART1_RX 0x31e
279 MX93_PAD_UART1_TXD__LPUART1_TX 0x31e
280 >;
281 };
282
Peng Fan86a17972022-07-26 16:41:10 +0800283 pinctrl_usdhc1: usdhc1grp {
284 fsl,pins = <
Peng Fan596b9c42023-04-28 12:08:37 +0800285 MX93_PAD_SD1_CLK__USDHC1_CLK 0x15fe
286 MX93_PAD_SD1_CMD__USDHC1_CMD 0x13fe
287 MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x13fe
288 MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x13fe
289 MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x13fe
290 MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x13fe
291 MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x13fe
292 MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x13fe
293 MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x13fe
294 MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x13fe
295 MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x15fe
Peng Fan86a17972022-07-26 16:41:10 +0800296 >;
297 };
298
299 pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
300 fsl,pins = <
Peng Fan596b9c42023-04-28 12:08:37 +0800301 MX93_PAD_SD2_RESET_B__GPIO3_IO07 0x31e
Peng Fan86a17972022-07-26 16:41:10 +0800302 >;
303 };
304
305 pinctrl_usdhc2_gpio: usdhc2gpiogrp {
306 fsl,pins = <
Peng Fan596b9c42023-04-28 12:08:37 +0800307 MX93_PAD_SD2_CD_B__GPIO3_IO00 0x31e
Peng Fan86a17972022-07-26 16:41:10 +0800308 >;
309 };
310
311 pinctrl_usdhc2: usdhc2grp {
312 fsl,pins = <
Peng Fan596b9c42023-04-28 12:08:37 +0800313 MX93_PAD_SD2_CLK__USDHC2_CLK 0x15fe
314 MX93_PAD_SD2_CMD__USDHC2_CMD 0x13fe
315 MX93_PAD_SD2_DATA0__USDHC2_DATA0 0x13fe
316 MX93_PAD_SD2_DATA1__USDHC2_DATA1 0x13fe
317 MX93_PAD_SD2_DATA2__USDHC2_DATA2 0x13fe
318 MX93_PAD_SD2_DATA3__USDHC2_DATA3 0x13fe
319 MX93_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e
Peng Fan86a17972022-07-26 16:41:10 +0800320 >;
321 };
322};