1/*
2 * Copyright (c) 2022, NXP
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Note: File generated by rt_cfg_utils.py
6 * from mimxrt1160_evk.mex
7 */
8
9#include <nxp/nxp_imx/rt/mimxrt1166dvm6a-pinctrl.dtsi>
10
11&pinctrl {
12	/* conflicts with fxos8700 sensor */
13	pinmux_csi: pinmux_csi {
14		group0 {
15			pinmux = <&iomuxc_gpio_disp_b2_14_gpio11_io15>;
16			drive-strength = "high";
17			bias-pull-down;
18			slew-rate = "fast";
19		};
20		group1 {
21			pinmux = <&iomuxc_gpio_ad_26_gpio9_io25>;
22			drive-strength = "high";
23			bias-pull-up;
24			slew-rate = "fast";
25		};
26		group2 {
27			pinmux = <&iomuxc_lpsr_gpio_lpsr_07_lpi2c6_scl>,
28				<&iomuxc_lpsr_gpio_lpsr_06_lpi2c6_sda>;
29			drive-strength = "high";
30			slew-rate = "fast";
31			input-enable;
32		};
33	};
34
35	pinmux_enet: pinmux_enet {
36		group0 {
37			pinmux = <&iomuxc_gpio_ad_12_gpio9_io11>,
38				<&iomuxc_gpio_disp_b2_08_enet_rx_en>,
39				<&iomuxc_gpio_disp_b2_09_enet_rx_er>;
40			drive-strength = "high";
41			bias-pull-down;
42			slew-rate = "fast";
43		};
44		group1 {
45			pinmux = <&iomuxc_gpio_disp_b2_06_enet_rdata00>,
46				<&iomuxc_gpio_disp_b2_07_enet_rdata01>;
47			drive-strength = "high";
48			bias-pull-down;
49			slew-rate = "fast";
50			input-enable;
51		};
52		group2 {
53			pinmux = <&iomuxc_lpsr_gpio_lpsr_12_gpio12_io12>;
54			drive-strength = "high";
55			bias-pull-up;
56			slew-rate = "fast";
57		};
58		group3 {
59			pinmux = <&iomuxc_gpio_ad_32_enet_mdc>,
60				<&iomuxc_gpio_ad_33_enet_mdio>,
61				<&iomuxc_gpio_disp_b2_02_enet_tdata00>,
62				<&iomuxc_gpio_disp_b2_03_enet_tdata01>,
63				<&iomuxc_gpio_disp_b2_04_enet_tx_en>;
64			drive-strength = "high";
65			slew-rate = "fast";
66		};
67		group4 {
68			pinmux = <&iomuxc_gpio_disp_b2_05_enet_ref_clk>;
69			drive-strength = "high";
70			slew-rate = "slow";
71			input-enable;
72		};
73	};
74
75	pinmux_flexcan3: pinmux_flexcan3 {
76		group0 {
77			pinmux = <&iomuxc_lpsr_gpio_lpsr_01_can3_rx>,
78				<&iomuxc_lpsr_gpio_lpsr_00_can3_tx>;
79			drive-strength = "high";
80			slew-rate = "fast";
81		};
82	};
83
84	pinmux_flexpwm1: pinmux_flexpwm1 {
85		group0 {
86			pinmux = <&iomuxc_gpio_ad_04_flexpwm1_pwm2_a>;
87			drive-strength = "high";
88			bias-pull-down;
89			slew-rate = "fast";
90		};
91	};
92
93	pinmux_flexspi1: pinmux_flexspi1 {
94		group0 {
95			pinmux = <&iomuxc_gpio_sd_b2_05_flexspi1_a_dqs>,
96				<&iomuxc_gpio_sd_b2_06_flexspi1_a_ss0_b>,
97				<&iomuxc_gpio_sd_b2_07_flexspi1_a_sclk>,
98				<&iomuxc_gpio_sd_b2_08_flexspi1_a_data00>,
99				<&iomuxc_gpio_sd_b2_09_flexspi1_a_data01>,
100				<&iomuxc_gpio_sd_b2_10_flexspi1_a_data02>,
101				<&iomuxc_gpio_sd_b2_11_flexspi1_a_data03>;
102			bias-pull-down;
103			input-enable;
104		};
105	};
106
107	/* interrupt gpios for fxos8700 */
108	pinmux_fxos8700_int: pinmux_fxos8700_int {
109		group0 {
110			pinmux = <&iomuxc_gpio_disp_b2_14_gpio11_io15>,
111				<&iomuxc_gpio_disp_b2_13_gpio11_io14>;
112			drive-strength = "high";
113			slew-rate = "fast";
114		};
115	};
116
117	/* conflicts with lpspi1 */
118	pinmux_lcdif: pinmux_lcdif {
119		group0 {
120			pinmux = <&iomuxc_gpio_ad_30_gpio9_io29>,
121				<&iomuxc_gpio_ad_02_gpio9_io01>;
122			drive-strength = "high";
123			bias-pull-down;
124			slew-rate = "fast";
125		};
126		group1 {
127			pinmux = <&iomuxc_gpio_disp_b2_15_gpio11_io16>;
128			drive-strength = "high";
129			bias-pull-up;
130			slew-rate = "fast";
131		};
132	};
133
134	pinmux_lpadc0: pinmux_lpadc0 {
135		group0 {
136			pinmux = <&iomuxc_gpio_ad_06_adc1_ch0a>;
137			drive-strength = "high";
138			bias-pull-down;
139			slew-rate = "fast";
140		};
141	};
142
143	pinmux_lpi2c1: pinmux_lpi2c1 {
144		group0 {
145			pinmux = <&iomuxc_gpio_ad_08_lpi2c1_scl>,
146				<&iomuxc_gpio_ad_09_lpi2c1_sda>;
147			drive-strength = "normal";
148			drive-open-drain;
149			slew-rate = "fast";
150			input-enable;
151		};
152	};
153
154	/* Connected to FXOS8700 */
155	pinmux_lpi2c5: pinmux_lpi2c5 {
156		group0 {
157			pinmux = <&iomuxc_lpsr_gpio_lpsr_05_lpi2c5_scl>,
158				<&iomuxc_lpsr_gpio_lpsr_04_lpi2c5_sda>;
159			drive-strength = "normal";
160			drive-open-drain;
161			slew-rate = "fast";
162		};
163	};
164
165	pinmux_lpspi1: pinmux_lpspi1 {
166		group0 {
167			pinmux = <&iomuxc_gpio_ad_29_lpspi1_pcs0>,
168				<&iomuxc_gpio_ad_28_lpspi1_sck>,
169				<&iomuxc_gpio_ad_31_lpspi1_sdi>,
170				<&iomuxc_gpio_ad_30_lpspi1_sdo>;
171			drive-strength = "high";
172			slew-rate = "fast";
173		};
174	};
175
176	pinmux_lpuart1: pinmux_lpuart1 {
177		group0 {
178			pinmux = <&iomuxc_gpio_ad_25_lpuart1_rx>,
179				<&iomuxc_gpio_ad_24_lpuart1_tx>;
180			drive-strength = "high";
181			slew-rate = "fast";
182		};
183	};
184
185	pinmux_lpuart1_sleep: pinmux_lpuart1_sleep {
186		group0 {
187			pinmux = <&iomuxc_gpio_ad_25_gpio_mux3_io24>;
188			drive-strength = "high";
189			bias-pull-up;
190			slew-rate = "fast";
191		};
192		group1 {
193			pinmux = <&iomuxc_gpio_ad_24_lpuart1_tx>;
194			drive-strength = "high";
195			slew-rate = "fast";
196		};
197	};
198
199	pinmux_lpuart2: pinmux_lpuart2 {
200		group0 {
201			pinmux = <&iomuxc_gpio_disp_b2_11_lpuart2_rx>,
202				<&iomuxc_gpio_disp_b2_10_lpuart2_tx>;
203			drive-strength = "high";
204			slew-rate = "fast";
205		};
206	};
207
208	pinmux_lpuart2_sleep: pinmux_lpuart2_sleep {
209		group0 {
210			pinmux = <&iomuxc_gpio_disp_b2_11_gpio_mux5_io12>;
211			drive-strength = "high";
212			bias-pull-up;
213			slew-rate = "fast";
214		};
215		group1 {
216			pinmux = <&iomuxc_gpio_disp_b2_10_lpuart2_tx>;
217			drive-strength = "high";
218			slew-rate = "fast";
219		};
220	};
221
222	/* intentionally left empty */
223	pinmux_ptp: pinmux_ptp {
224	};
225
226	pinmux_sai1: pinmux_sai1 {
227		group0 {
228			pinmux = <&iomuxc_gpio_ad_17_sai1_mclk>,
229				<&iomuxc_gpio_ad_20_sai1_rx_data00>,
230				<&iomuxc_gpio_ad_21_sai1_tx_data00>,
231				<&iomuxc_gpio_ad_22_sai1_tx_bclk>,
232				<&iomuxc_gpio_ad_23_sai1_tx_sync>;
233			drive-strength = "high";
234			slew-rate = "fast";
235			input-enable;
236		};
237	};
238
239	/* conflicts with enet pins */
240	pinmux_usdhc1: pinmux_usdhc1 {
241		group0 {
242			pinmux = <&iomuxc_gpio_sd_b1_00_usdhc1_cmd>,
243				<&iomuxc_gpio_sd_b1_01_usdhc1_clk>,
244				<&iomuxc_gpio_sd_b1_02_usdhc1_data0>,
245				<&iomuxc_gpio_sd_b1_03_usdhc1_data1>,
246				<&iomuxc_gpio_sd_b1_04_usdhc1_data2>,
247				<&iomuxc_gpio_sd_b1_05_usdhc1_data3>;
248			bias-pull-up;
249			input-enable;
250		};
251		group1 {
252			pinmux = <&iomuxc_gpio_ad_34_usdhc1_vselect>,
253				<&iomuxc_gpio_ad_32_gpio_mux3_io31_cm7>;
254			drive-strength = "high";
255			bias-pull-down;
256			slew-rate = "fast";
257		};
258		group2 {
259			pinmux = <&iomuxc_gpio_ad_35_gpio10_io02>;
260			drive-strength = "high";
261			bias-pull-up;
262			slew-rate = "fast";
263		};
264	};
265
266	/* removes pull on dat3 for card detect */
267	pinmux_usdhc1_dat3_nopull: pinmux_usdhc1_dat3_nopull {
268		group0 {
269			pinmux = <&iomuxc_gpio_sd_b1_05_usdhc1_data3>;
270			bias-disable;
271			input-enable;
272		};
273		group1 {
274			pinmux = <&iomuxc_gpio_sd_b1_00_usdhc1_cmd>,
275				<&iomuxc_gpio_sd_b1_01_usdhc1_clk>,
276				<&iomuxc_gpio_sd_b1_02_usdhc1_data0>,
277				<&iomuxc_gpio_sd_b1_03_usdhc1_data1>,
278				<&iomuxc_gpio_sd_b1_04_usdhc1_data2>;
279			bias-pull-up;
280			input-enable;
281		};
282		group2 {
283			pinmux = <&iomuxc_gpio_ad_34_usdhc1_vselect>,
284				<&iomuxc_gpio_ad_32_gpio_mux3_io31_cm7>;
285			drive-strength = "high";
286			bias-pull-down;
287			slew-rate = "fast";
288		};
289		group3 {
290			pinmux = <&iomuxc_gpio_ad_35_gpio10_io02>;
291			drive-strength = "high";
292			bias-pull-up;
293			slew-rate = "fast";
294		};
295	};
296
297};
298
299