1/*
2 * Copyright (c) 2022, NXP
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Note: File generated by gen_board_pinctrl.py
6 * from mimxrt1024_evk.mex
7 */
8
9#include <nxp/nxp_imx/rt/mimxrt1024dag5a-pinctrl.dtsi>
10
11&pinctrl {
12	/* ADC1 inputs 10 and 11 */
13	pinmux_adc1: pinmux_adc1 {
14		group0 {
15			pinmux = <&iomuxc_gpio_ad_b1_10_adc1_in10>,
16				<&iomuxc_gpio_ad_b1_11_adc1_in11>;
17			drive-strength = "r0-6";
18			slew-rate = "slow";
19			nxp,speed = "100-mhz";
20		};
21	};
22
23	pinmux_enet: pinmux_enet {
24		group0 {
25			pinmux = <&iomuxc_gpio_ad_b0_08_enet_ref_clk>;
26			bias-disable;
27			drive-strength = "r0-6";
28			slew-rate = "fast";
29			nxp,speed = "50-mhz";
30			input-enable;
31		};
32		group1 {
33			pinmux = <&iomuxc_gpio_ad_b0_09_enet_rx_data1>,
34				<&iomuxc_gpio_ad_b0_11_enet_rx_en>,
35				<&iomuxc_gpio_ad_b0_14_enet_tx_data0>,
36				<&iomuxc_gpio_ad_b0_15_enet_tx_data1>,
37				<&iomuxc_gpio_ad_b0_13_enet_tx_en>,
38				<&iomuxc_gpio_ad_b0_12_enet_rx_er>;
39			drive-strength = "r0-5";
40			bias-pull-up;
41			bias-pull-up-value = "100k";
42			slew-rate = "fast";
43			nxp,speed = "200-mhz";
44		};
45		group2 {
46			pinmux = <&iomuxc_gpio_ad_b0_10_enet_rx_data0>;
47			drive-strength = "r0-6";
48			slew-rate = "slow";
49			nxp,speed = "100-mhz";
50		};
51	};
52
53	pinmux_enet_mdio: pinmux_enet_mdio {
54		group0 {
55			pinmux = <&iomuxc_gpio_emc_40_enet_mdio>,
56				<&iomuxc_gpio_emc_41_enet_mdc>;
57			drive-strength = "r0-5";
58			bias-pull-up;
59			bias-pull-up-value = "100k";
60			slew-rate = "fast";
61			nxp,speed = "200-mhz";
62		};
63		group1 {
64			pinmux = <&iomuxc_gpio_ad_b1_06_gpio1_io22>;
65			drive-strength = "r0-5";
66			bias-pull-up;
67			bias-pull-up-value = "100k";
68			slew-rate = "slow";
69			nxp,speed = "100-mhz";
70		};
71		group2 {
72			pinmux = <&iomuxc_gpio_ad_b0_04_gpio1_io04>;
73			drive-strength = "r0-5";
74			bias-pull-up;
75			bias-pull-up-value = "100k";
76			slew-rate = "fast";
77			nxp,speed = "100-mhz";
78		};
79	};
80
81	pinmux_ptp: pinmux_ptp {
82		/* Intentionally empty */
83	};
84
85	pinmux_flexcan1: pinmux_flexcan1 {
86		group0 {
87			pinmux = <&iomuxc_gpio_sd_b1_00_flexcan1_tx>,
88				<&iomuxc_gpio_sd_b1_01_flexcan1_rx>;
89			drive-strength = "r0-6";
90			slew-rate = "slow";
91			nxp,speed = "100-mhz";
92			input-enable;
93		};
94	};
95
96	pinmux_lpi2c1: pinmux_lpi2c1 {
97		group0 {
98			pinmux = <&iomuxc_gpio_ad_b1_14_lpi2c1_scl>,
99				<&iomuxc_gpio_ad_b1_15_lpi2c1_sda>;
100			drive-strength = "r0-6";
101			drive-open-drain;
102			slew-rate = "slow";
103			nxp,speed = "100-mhz";
104			input-enable;
105		};
106	};
107
108	pinmux_lpi2c4: pinmux_lpi2c4 {
109		group0 {
110			pinmux = <&iomuxc_gpio_sd_b1_03_lpi2c4_sda>,
111				<&iomuxc_gpio_sd_b1_02_lpi2c4_scl>;
112			drive-strength = "r0-6";
113			drive-open-drain;
114			slew-rate = "slow";
115			nxp,speed = "100-mhz";
116			input-enable;
117		};
118	};
119
120	/* conflicts with enet pinmux */
121	pinmux_lpspi1: pinmux_lpspi1 {
122		group0 {
123			pinmux = <&iomuxc_gpio_ad_b0_10_lpspi1_sck>,
124				<&iomuxc_gpio_ad_b0_11_lpspi1_pcs0>,
125				<&iomuxc_gpio_ad_b0_12_lpspi1_sdo>,
126				<&iomuxc_gpio_ad_b0_13_lpspi1_sdi>;
127			drive-strength = "r0-6";
128			slew-rate = "slow";
129			nxp,speed = "100-mhz";
130		};
131	};
132
133	pinmux_lpuart1: pinmux_lpuart1 {
134		group0 {
135			pinmux = <&iomuxc_gpio_ad_b0_07_lpuart1_rx>,
136				<&iomuxc_gpio_ad_b0_06_lpuart1_tx>;
137			drive-strength = "r0-6";
138			slew-rate = "slow";
139			nxp,speed = "100-mhz";
140		};
141	};
142
143	pinmux_lpuart1_sleep: pinmux_lpuart1_sleep {
144		group0 {
145			pinmux = <&iomuxc_gpio_ad_b0_07_gpio1_io07>;
146			drive-strength = "r0-6";
147			bias-pull-up;
148			bias-pull-up-value = "100k";
149			slew-rate = "slow";
150			nxp,speed = "100-mhz";
151		};
152		group1 {
153			pinmux = <&iomuxc_gpio_ad_b0_06_lpuart1_tx>;
154			drive-strength = "r0-6";
155			slew-rate = "slow";
156			nxp,speed = "100-mhz";
157		};
158	};
159
160	/* conflicts with user led */
161	pinmux_lpuart2: pinmux_lpuart2 {
162		group0 {
163			pinmux = <&iomuxc_gpio_ad_b1_09_lpuart2_rx>,
164				<&iomuxc_gpio_ad_b1_08_lpuart2_tx>;
165			drive-strength = "r0-6";
166			slew-rate = "slow";
167			nxp,speed = "100-mhz";
168		};
169	};
170
171	/* conflicts with user led */
172	pinmux_lpuart2_sleep: pinmux_lpuart2_sleep {
173		group0 {
174			pinmux = <&iomuxc_gpio_ad_b1_09_gpio1_io25>;
175			drive-strength = "r0-6";
176			bias-pull-up;
177			bias-pull-up-value = "100k";
178			slew-rate = "slow";
179			nxp,speed = "100-mhz";
180		};
181		group1 {
182			pinmux = <&iomuxc_gpio_ad_b1_08_lpuart2_tx>;
183			drive-strength = "r0-6";
184			slew-rate = "slow";
185			nxp,speed = "100-mhz";
186		};
187	};
188
189	pinmux_sai3: pinmux_sai3 {
190		group0 {
191			pinmux = <&iomuxc_gpio_sd_b1_06_sai3_tx_bclk>,
192				<&iomuxc_gpio_sd_b1_07_sai3_tx_sync>,
193				<&iomuxc_gpio_sd_b1_08_sai3_tx_data>,
194				<&iomuxc_gpio_sd_b1_11_sai3_rx_data>,
195				<&iomuxc_gpio_emc_28_sai3_mclk>;
196			drive-strength = "r0-6";
197			slew-rate = "slow";
198			nxp,speed = "100-mhz";
199		};
200	};
201
202	pinmux_usdhc1: pinmux_usdhc1 {
203		group0 {
204			pinmux = <&iomuxc_gpio_sd_b0_03_usdhc1_clk>;
205			bias-disable;
206			drive-strength = "r0";
207			input-schmitt-enable;
208			slew-rate = "fast";
209			nxp,speed = "100-mhz";
210		};
211		group1 {
212			pinmux = <&iomuxc_gpio_sd_b0_02_usdhc1_cmd>,
213				<&iomuxc_gpio_sd_b0_04_usdhc1_data0>,
214				<&iomuxc_gpio_sd_b0_05_usdhc1_data1>,
215				<&iomuxc_gpio_sd_b0_00_usdhc1_data2>,
216				<&iomuxc_gpio_sd_b0_01_usdhc1_data3>,
217				<&iomuxc_gpio_sd_b0_06_gpio3_io19>;
218			drive-strength = "r0";
219			input-schmitt-enable;
220			bias-pull-up;
221			bias-pull-up-value = "47k";
222			slew-rate = "fast";
223			nxp,speed = "100-mhz";
224		};
225		group2 {
226			pinmux = <&iomuxc_gpio_ad_b1_07_usdhc1_vselect>;
227			drive-strength = "r0-4";
228			input-schmitt-enable;
229			bias-pull-up;
230			bias-pull-up-value = "47k";
231			slew-rate = "fast";
232			nxp,speed = "100-mhz";
233		};
234		group3 {
235			pinmux = <&iomuxc_gpio_sd_b1_10_gpio3_io30>;
236			drive-strength = "r0-6";
237			slew-rate = "slow";
238			nxp,speed = "100-mhz";
239		};
240	};
241
242	/* fast pinmux settings for USDHC (over 100 Mhz) */
243	pinmux_usdhc1_fast: pinmux_usdhc1_fast {
244		group0 {
245			pinmux = <&iomuxc_gpio_sd_b0_03_usdhc1_clk>;
246			bias-disable;
247			drive-strength = "r0-7";
248			input-schmitt-enable;
249			slew-rate = "fast";
250			nxp,speed = "200-mhz";
251		};
252		group1 {
253			pinmux = <&iomuxc_gpio_sd_b0_02_usdhc1_cmd>,
254				<&iomuxc_gpio_sd_b0_04_usdhc1_data0>,
255				<&iomuxc_gpio_sd_b0_05_usdhc1_data1>,
256				<&iomuxc_gpio_sd_b0_00_usdhc1_data2>,
257				<&iomuxc_gpio_sd_b0_01_usdhc1_data3>;
258			drive-strength = "r0-7";
259			input-schmitt-enable;
260			bias-pull-up;
261			bias-pull-up-value = "47k";
262			slew-rate = "fast";
263			nxp,speed = "200-mhz";
264		};
265	};
266
267	/* medium pinmux settings for USDHC (under 100 Mhz) */
268	pinmux_usdhc1_med: pinmux_usdhc1_med {
269		group0 {
270			pinmux = <&iomuxc_gpio_sd_b0_03_usdhc1_clk>;
271			bias-disable;
272			drive-strength = "r0-7";
273			input-schmitt-enable;
274			slew-rate = "fast";
275			nxp,speed = "100-mhz";
276		};
277		group1 {
278			pinmux = <&iomuxc_gpio_sd_b0_02_usdhc1_cmd>,
279				<&iomuxc_gpio_sd_b0_04_usdhc1_data0>,
280				<&iomuxc_gpio_sd_b0_05_usdhc1_data1>,
281				<&iomuxc_gpio_sd_b0_00_usdhc1_data2>,
282				<&iomuxc_gpio_sd_b0_01_usdhc1_data3>;
283			drive-strength = "r0-7";
284			input-schmitt-enable;
285			bias-pull-up;
286			bias-pull-up-value = "47k";
287			slew-rate = "fast";
288			nxp,speed = "100-mhz";
289		};
290	};
291
292	/* slow pinmux settings for USDHC (under 50 Mhz) */
293	pinmux_usdhc1_slow: pinmux_usdhc1_slow {
294		group0 {
295			pinmux = <&iomuxc_gpio_sd_b0_03_usdhc1_clk>;
296			bias-disable;
297			drive-strength = "r0-7";
298			input-schmitt-enable;
299			slew-rate = "fast";
300			nxp,speed = "50-mhz";
301		};
302		group1 {
303			pinmux = <&iomuxc_gpio_sd_b0_02_usdhc1_cmd>,
304				<&iomuxc_gpio_sd_b0_04_usdhc1_data0>,
305				<&iomuxc_gpio_sd_b0_05_usdhc1_data1>,
306				<&iomuxc_gpio_sd_b0_00_usdhc1_data2>,
307				<&iomuxc_gpio_sd_b0_01_usdhc1_data3>;
308			drive-strength = "r0-7";
309			input-schmitt-enable;
310			bias-pull-up;
311			bias-pull-up-value = "47k";
312			slew-rate = "fast";
313			nxp,speed = "50-mhz";
314		};
315	};
316
317	pinmux_flexpwm1: pinmux_flexpwm1 {
318		group0 {
319			pinmux = <&iomuxc_gpio_ad_b1_10_flexpwm1_pwma2>;
320			drive-strength = "r0-4";
321			bias-pull-up;
322			bias-pull-up-value = "47k";
323			slew-rate = "slow";
324			nxp,speed = "100-mhz";
325		};
326	};
327};
328
329