xref: /rk3399_rockchip-uboot/arch/arm/dts/rv1103b-pinctrl.dtsi (revision b9dcc64364a9e8c2e861cee86a555496820c46a6)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2024 Rockchip Electronics Co., Ltd.
4 */
5
6#include <dt-bindings/pinctrl/rockchip.h>
7#include "rockchip-pinconf.dtsi"
8
9/*
10 * This file is auto generated by pin2dts tool, please keep these code
11 * by adding changes at end of this file.
12 */
13&pinctrl {
14	cam_clk0 {
15		cam_clk0_pins: cam-clk0-pins {
16			rockchip,pins =
17				/* cam_clk0_out */
18				<1 RK_PB5 1 &pcfg_pull_none>;
19		};
20	};
21
22	cam_clk1 {
23		cam_clk1_pins: cam-clk1-pins {
24			rockchip,pins =
25				/* cam_clk1_out */
26				<1 RK_PB6 1 &pcfg_pull_none>;
27		};
28	};
29
30	cam_spi {
31		cam_spi_bus4_pins: cam-spi-bus4-pins {
32			rockchip,pins =
33				/* cam_spi_d0 */
34				<0 RK_PB5 4 &pcfg_pull_up_drv_level_2>,
35				/* cam_spi_d1 */
36				<0 RK_PB2 4 &pcfg_pull_up_drv_level_2>,
37				/* cam_spi_d2 */
38				<0 RK_PB1 4 &pcfg_pull_up_drv_level_2>,
39				/* cam_spi_d3 */
40				<0 RK_PB0 4 &pcfg_pull_up_drv_level_2>;
41		};
42
43		cam_spi_clk_pins: cam-spi-clk-pins {
44			rockchip,pins =
45				/* cam_spi_clk */
46				<0 RK_PB4 4 &pcfg_pull_none>;
47		};
48		cam_spi_cs0n_pins: cam-spi-cs0n-pins {
49			rockchip,pins =
50				/* cam_spi_cs0n */
51				<0 RK_PB3 4 &pcfg_pull_none>;
52		};
53	};
54
55	clk {
56		clk_32k_pins: clk-32k-pins {
57			rockchip,pins =
58				/* clk_32k */
59				<0 RK_PA0 2 &pcfg_pull_none>;
60		};
61	};
62
63	clk_24m {
64		clk_24m_out_pins: clk-24m-out-pins {
65			rockchip,pins =
66				/* clk_24m_out */
67				<0 RK_PA0 3 &pcfg_pull_none>;
68		};
69	};
70
71	cpu {
72		cpu_pins: cpu-pins {
73			rockchip,pins =
74				/* cpu_avs */
75				<0 RK_PA1 2 &pcfg_pull_none>;
76		};
77	};
78
79	emmc {
80		emmc_bus4_pins: emmc-bus4-pins {
81			rockchip,pins =
82				/* emmc_d0 */
83				<1 RK_PA1 1 &pcfg_pull_up_drv_level_2>,
84				/* emmc_d1 */
85				<1 RK_PA2 1 &pcfg_pull_up_drv_level_2>,
86				/* emmc_d2 */
87				<1 RK_PA3 1 &pcfg_pull_up_drv_level_2>,
88				/* emmc_d3 */
89				<1 RK_PA0 1 &pcfg_pull_up_drv_level_2>;
90		};
91
92		emmc_clk_pins: emmc-clk-pins {
93			rockchip,pins =
94				/* emmc_clk */
95				<1 RK_PA4 1 &pcfg_pull_up_drv_level_2>;
96		};
97
98		emmc_cmd_pins: emmc-cmd-pins {
99			rockchip,pins =
100				/* emmc_cmd */
101				<1 RK_PA5 1 &pcfg_pull_up_drv_level_2>;
102		};
103	};
104
105	emmc_testclk {
106		emmc_testclk_clk_pins: emmc-testclk-clk-pins {
107			rockchip,pins =
108				/* emmc_testclk_out */
109				<1 RK_PA7 3 &pcfg_pull_up_drv_level_2>;
110		};
111	};
112
113	emmc_testdata {
114		emmc_testdata_out_pins: emmc-testdata-out-pins {
115			rockchip,pins =
116				/* emmc_testdata_out */
117				<1 RK_PB0 3 &pcfg_pull_none>;
118		};
119	};
120
121	eth_led {
122		eth_led_pins: eth-led-pins {
123			rockchip,pins =
124				/* eth_led_dpx */
125				<2 RK_PA4 6 &pcfg_pull_none>,
126				/* eth_led_link */
127				<2 RK_PA6 6 &pcfg_pull_none>,
128				/* eth_led_spd */
129				<2 RK_PA7 6 &pcfg_pull_none>;
130		};
131	};
132
133	flash_trig {
134		flash_trig_pins: flash-trig-pins {
135			rockchip,pins =
136				/* flash_trig_out */
137				<2 RK_PB0 6 &pcfg_pull_none>;
138		};
139	};
140
141	fspi {
142		fspi_bus4_pins: fspi-bus4-pins {
143			rockchip,pins =
144				/* fspi_d0 */
145				<1 RK_PA1 2 &pcfg_pull_none>,
146				/* fspi_d1 */
147				<1 RK_PA2 2 &pcfg_pull_none>,
148				/* fspi_d2 */
149				<1 RK_PA3 2 &pcfg_pull_none>,
150				/* fspi_d3 */
151				<1 RK_PA0 2 &pcfg_pull_none>;
152		};
153
154		fspi_cs0_pins: fspi-cs0-pins {
155			rockchip,pins =
156				/* fspi_cs0n */
157				<1 RK_PA5 2 &pcfg_pull_up>;
158		};
159
160		fspi_clk_pins: fspi-clk-pins {
161			rockchip,pins =
162				/* fspi_clk */
163				<1 RK_PA4 2 &pcfg_pull_none>;
164		};
165	};
166
167	fspi_testclk {
168		fspi_testclk_out_pins: fspi-testclk-out-pins {
169			rockchip,pins =
170				/* fspi_testclk_out */
171				<1 RK_PA7 5 &pcfg_pull_none>;
172		};
173	};
174
175	fspi_testdata {
176		fspi_testdata_out_pins: fspi-testdata-out-pins {
177			rockchip,pins =
178				/* fspi_testdata_out */
179				<1 RK_PB0 5 &pcfg_pull_none>;
180		};
181	};
182
183	i2c0 {
184		i2c0m0_xfer_pins: i2c0m0-xfer-pins {
185			rockchip,pins =
186				/* i2c0_scl_m0 */
187				<0 RK_PA5 3 &pcfg_pull_none_smt>,
188				/* i2c0_sda_m0 */
189				<0 RK_PA6 3 &pcfg_pull_none_smt>;
190		};
191
192		i2c0m1_xfer_pins: i2c0m1-xfer-pins {
193			rockchip,pins =
194				/* i2c0_scl_m1 */
195				<1 RK_PB4 5 &pcfg_pull_none_smt>,
196				/* i2c0_sda_m1 */
197				<1 RK_PB3 5 &pcfg_pull_none_smt>;
198		};
199
200		i2c0m2_xfer_pins: i2c0m2-xfer-pins {
201			rockchip,pins =
202				/* i2c0_scl_m2 */
203				<1 RK_PB5 2 &pcfg_pull_none_smt>,
204				/* i2c0_sda_m2 */
205				<1 RK_PB6 2 &pcfg_pull_none_smt>;
206		};
207	};
208
209	i2c1 {
210		i2c1m0_xfer_pins: i2c1m0-xfer-pins {
211			rockchip,pins =
212				/* i2c1_scl_m0 */
213				<0 RK_PB0 1 &pcfg_pull_none_smt>,
214				/* i2c1_sda_m0 */
215				<0 RK_PB1 1 &pcfg_pull_none_smt>;
216		};
217
218		i2c1m1_xfer_pins: i2c1m1-xfer-pins {
219			rockchip,pins =
220				/* i2c1_scl_m1 */
221				<2 RK_PA4 4 &pcfg_pull_none_smt>,
222				/* i2c1_sda_m1 */
223				<2 RK_PA5 4 &pcfg_pull_none_smt>;
224		};
225	};
226
227	i2c2 {
228		i2c2m0_xfer_pins: i2c2m0-xfer-pins {
229			rockchip,pins =
230				/* i2c2_scl_m0 */
231				<0 RK_PB2 1 &pcfg_pull_none_smt>,
232				/* i2c2_sda_m0 */
233				<0 RK_PB3 1 &pcfg_pull_none_smt>;
234		};
235
236		i2c2m1_xfer_pins: i2c2m1-xfer-pins {
237			rockchip,pins =
238				/* i2c2_scl_m1 */
239				<2 RK_PA6 4 &pcfg_pull_none_smt>,
240				/* i2c2_sda_m1 */
241				<2 RK_PA7 4 &pcfg_pull_none_smt>;
242		};
243	};
244
245	i2c3 {
246		i2c3m0_xfer_pins: i2c3m0-xfer-pins {
247			rockchip,pins =
248				/* i2c3_scl_m0 */
249				<0 RK_PB4 1 &pcfg_pull_none_smt>,
250				/* i2c3_sda_m0 */
251				<0 RK_PB5 1 &pcfg_pull_none_smt>;
252		};
253
254		i2c3m1_xfer_pins: i2c3m1-xfer-pins {
255			rockchip,pins =
256				/* i2c3_scl_m1 */
257				<2 RK_PB3 4 &pcfg_pull_none_smt>,
258				/* i2c3_sda_m1 */
259				<2 RK_PB2 4 &pcfg_pull_none_smt>;
260		};
261	};
262
263	i2c4 {
264		i2c4m0_xfer_pins: i2c4m0-xfer-pins {
265			rockchip,pins =
266				/* i2c4_scl_m0 */
267				<2 RK_PB0 4 &pcfg_pull_none_smt>,
268				/* i2c4_sda_m0 */
269				<2 RK_PB1 4 &pcfg_pull_none_smt>;
270		};
271
272		i2c4m1_xfer_pins: i2c4m1-xfer-pins {
273			rockchip,pins =
274				/* i2c4_scl_m1 */
275				<1 RK_PB7 2 &pcfg_pull_none_smt>,
276				/* i2c4_sda_m1 */
277				<1 RK_PC0 2 &pcfg_pull_none_smt>;
278		};
279	};
280
281	jtag {
282		jtagm0_pins: jtagm0-pins {
283			rockchip,pins =
284				/* jtag_tck_m0 */
285				<0 RK_PA5 5 &pcfg_pull_none>,
286				/* jtag_tms_m0 */
287				<0 RK_PA6 5 &pcfg_pull_none>;
288		};
289
290		jtagm1_pins: jtagm1-pins {
291			rockchip,pins =
292				/* jtag_tck_m1 */
293				<0 RK_PB4 3 &pcfg_pull_none>,
294				/* jtag_tms_m1 */
295				<0 RK_PB5 3 &pcfg_pull_none>;
296		};
297
298		jtagm2_pins: jtagm2-pins {
299			rockchip,pins =
300				/* jtag_tck_m2 */
301				<1 RK_PB4 3 &pcfg_pull_none>,
302				/* jtag_tms_m2 */
303				<1 RK_PB3 3 &pcfg_pull_none>;
304		};
305	};
306
307	pmu_debug_test {
308		pmu_debug_test_pins: pmu-debug-test-pins {
309			rockchip,pins =
310				/* pmu_debug_test_out */
311				<0 RK_PB1 5 &pcfg_pull_none>;
312		};
313	};
314
315	prelight_trig {
316		prelight_trig_pins: prelight-trig-pins {
317			rockchip,pins =
318				/* prelight_trig_out */
319				<2 RK_PB1 6 &pcfg_pull_none>;
320		};
321	};
322
323	psram_spi {
324		psram_spi_bus4_pins: psram-spi-bus4-pins {
325			rockchip,pins =
326				/* psram_spi_d0 */
327				<0 RK_PA2 4 &pcfg_pull_none>,
328				/* psram_spi_d1 */
329				<0 RK_PA1 4 &pcfg_pull_none>,
330				/* psram_spi_d2 */
331				<0 RK_PA5 4 &pcfg_pull_none>,
332				/* psram_spi_d3 */
333				<0 RK_PA6 4 &pcfg_pull_none>;
334		};
335
336		psram_spi_clk_pins: psram-spi-clk-pins {
337			rockchip,pins =
338				/* psram_spi_clk */
339				<0 RK_PA0 4 &pcfg_pull_none>;
340		};
341		psram_spi_cs0n_pins: psram-spi-cs0n-pins {
342			rockchip,pins =
343				/* psram_spi_cs0n */
344				<0 RK_PA4 4 &pcfg_pull_none>;
345		};
346	};
347
348	pwm0 {
349		pwm0m0_ch0_pins: pwm0m0-ch0-pins {
350			rockchip,pins =
351				/* pwm0m0_ch0 */
352				<0 RK_PA1 1 &pcfg_pull_none>;
353		};
354		pwm0m0_ch1_pins: pwm0m0-ch1-pins {
355			rockchip,pins =
356				/* pwm0m0_ch1 */
357				<0 RK_PA5 2 &pcfg_pull_none>;
358		};
359		pwm0m0_ch2_pins: pwm0m0-ch2-pins {
360			rockchip,pins =
361				/* pwm0m0_ch2 */
362				<0 RK_PA6 2 &pcfg_pull_none>;
363		};
364		pwm0m0_ch3_pins: pwm0m0-ch3-pins {
365			rockchip,pins =
366				/* pwm0m0_ch3 */
367				<0 RK_PA2 1 &pcfg_pull_none>;
368		};
369
370		pwm0m1_ch0_pins: pwm0m1-ch0-pins {
371			rockchip,pins =
372				/* pwm0m1_ch0 */
373				<2 RK_PA0 3 &pcfg_pull_none>;
374		};
375		pwm0m1_ch1_pins: pwm0m1-ch1-pins {
376			rockchip,pins =
377				/* pwm0m1_ch1 */
378				<2 RK_PA1 3 &pcfg_pull_none>;
379		};
380		pwm0m1_ch2_pins: pwm0m1-ch2-pins {
381			rockchip,pins =
382				/* pwm0m1_ch2 */
383				<2 RK_PA2 3 &pcfg_pull_none>;
384		};
385		pwm0m1_ch3_pins: pwm0m1-ch3-pins {
386			rockchip,pins =
387				/* pwm0m1_ch3 */
388				<2 RK_PB0 3 &pcfg_pull_none>;
389		};
390
391		pwm0m2_ch1_pins: pwm0m2-ch1-pins {
392			rockchip,pins =
393				/* pwm0m2_ch1 */
394				<1 RK_PB7 1 &pcfg_pull_none>;
395		};
396		pwm0m2_ch2_pins: pwm0m2-ch2-pins {
397			rockchip,pins =
398				/* pwm0m2_ch2 */
399				<1 RK_PC0 1 &pcfg_pull_none>;
400		};
401	};
402
403	pwm1 {
404		pwm1m0_ch0_pins: pwm1m0-ch0-pins {
405			rockchip,pins =
406				/* pwm1m0_ch0 */
407				<0 RK_PB0 3 &pcfg_pull_none>;
408		};
409		pwm1m0_ch1_pins: pwm1m0-ch1-pins {
410			rockchip,pins =
411				/* pwm1m0_ch1 */
412				<0 RK_PB1 3 &pcfg_pull_none>;
413		};
414		pwm1m0_ch2_pins: pwm1m0-ch2-pins {
415			rockchip,pins =
416				/* pwm1m0_ch2 */
417				<0 RK_PB2 3 &pcfg_pull_none>;
418		};
419		pwm1m0_ch3_pins: pwm1m0-ch3-pins {
420			rockchip,pins =
421				/* pwm1m0_ch3 */
422				<0 RK_PB3 3 &pcfg_pull_none>;
423		};
424
425		pwm1m1_ch0_pins: pwm1m1-ch0-pins {
426			rockchip,pins =
427				/* pwm1m1_ch0 */
428				<2 RK_PA3 3 &pcfg_pull_none>;
429		};
430		pwm1m1_ch1_pins: pwm1m1-ch1-pins {
431			rockchip,pins =
432				/* pwm1m1_ch1 */
433				<2 RK_PA4 3 &pcfg_pull_none>;
434		};
435		pwm1m1_ch2_pins: pwm1m1-ch2-pins {
436			rockchip,pins =
437				/* pwm1m1_ch2 */
438				<2 RK_PA5 3 &pcfg_pull_none>;
439		};
440		pwm1m1_ch3_pins: pwm1m1-ch3-pins {
441			rockchip,pins =
442				/* pwm1m1_ch3 */
443				<2 RK_PB1 3 &pcfg_pull_none>;
444		};
445	};
446
447	pwm2 {
448		pwm2m0_ch0_pins: pwm2m0-ch0-pins {
449			rockchip,pins =
450				/* pwm2m0_ch0 */
451				<1 RK_PB0 4 &pcfg_pull_none>;
452		};
453		pwm2m0_ch1_pins: pwm2m0-ch1-pins {
454			rockchip,pins =
455				/* pwm2m0_ch1 */
456				<1 RK_PA7 4 &pcfg_pull_none>;
457		};
458		pwm2m0_ch2_pins: pwm2m0-ch2-pins {
459			rockchip,pins =
460				/* pwm2m0_ch2 */
461				<1 RK_PB4 4 &pcfg_pull_none>;
462		};
463		pwm2m0_ch3_pins: pwm2m0-ch3-pins {
464			rockchip,pins =
465				/* pwm2m0_ch3 */
466				<1 RK_PB3 4 &pcfg_pull_none>;
467		};
468
469		pwm2m1_ch0_pins: pwm2m1-ch0-pins {
470			rockchip,pins =
471				/* pwm2m1_ch0 */
472				<2 RK_PA6 3 &pcfg_pull_none>;
473		};
474		pwm2m1_ch1_pins: pwm2m1-ch1-pins {
475			rockchip,pins =
476				/* pwm2m1_ch1 */
477				<2 RK_PA7 3 &pcfg_pull_none>;
478		};
479		pwm2m1_ch2_pins: pwm2m1-ch2-pins {
480			rockchip,pins =
481				/* pwm2m1_ch2 */
482				<2 RK_PB2 3 &pcfg_pull_none>;
483		};
484		pwm2m1_ch3_pins: pwm2m1-ch3-pins {
485			rockchip,pins =
486				/* pwm2m1_ch3 */
487				<2 RK_PB3 3 &pcfg_pull_none>;
488		};
489	};
490
491	pwr {
492		pwr_pins: pwr-pins {
493			rockchip,pins =
494				/* pwr_ctrl0 */
495				<0 RK_PA3 1 &pcfg_pull_none>,
496				/* pwr_ctrl1 */
497				<0 RK_PA4 1 &pcfg_pull_none>;
498		};
499	};
500
501	rtc_32k {
502		rtc_32k_pins: rtc-32k-pins {
503			rockchip,pins =
504				/* rtc_32k_out */
505				<0 RK_PA0 1 &pcfg_pull_none>;
506		};
507	};
508
509	sai {
510		sai_pins: sai-pins {
511			rockchip,pins =
512				/* sai_lrck */
513				<2 RK_PB1 5 &pcfg_pull_none>,
514				/* sai_mclk */
515				<2 RK_PB0 5 &pcfg_pull_none>,
516				/* sai_sclk */
517				<2 RK_PA7 5 &pcfg_pull_none>,
518				/* sai_sdi */
519				<2 RK_PA6 5 &pcfg_pull_none>,
520				/* sai_sdo */
521				<2 RK_PB2 5 &pcfg_pull_none>;
522		};
523	};
524
525	sdmmc0_pins: sdmmc0_pins {
526		sdmmc0_bus4_pins: sdmmc0-bus4-pins {
527			rockchip,pins =
528				/* sdmmc0_d0 */
529				<1 RK_PB0 1 &pcfg_pull_up_drv_level_2>,
530				/* sdmmc0_d1 */
531				<1 RK_PA7 1 &pcfg_pull_up_drv_level_2>,
532				/* sdmmc0_d2 */
533				<1 RK_PB4 1 &pcfg_pull_up_drv_level_2>,
534				/* sdmmc0_d3 */
535				<1 RK_PB3 1 &pcfg_pull_up_drv_level_2>;
536		};
537
538		sdmmc0_clk_pins: sdmmc0-clk-pins {
539			rockchip,pins =
540				/* sdmmc0_clk */
541				<1 RK_PB1 1 &pcfg_pull_up_drv_level_2>;
542		};
543
544		sdmmc0_cmd_pins: sdmmc0-cmd-pins {
545			rockchip,pins =
546				/* sdmmc0_cmd */
547				<1 RK_PB2 1 &pcfg_pull_up_drv_level_2>;
548		};
549
550		sdmmc0_det_pins: sdmmc0-det-pins {
551			rockchip,pins =
552				/* sdmmc0_det */
553				<1 RK_PA6 1 &pcfg_pull_up>;
554		};
555	};
556
557	sdmmc1 {
558		sdmmc1_bus4_pins: sdmmc1-bus4-pins {
559			rockchip,pins =
560				/* sdmmc1_d0 */
561				<2 RK_PA1 1 &pcfg_pull_up_drv_level_2>,
562				/* sdmmc1_d1 */
563				<2 RK_PA0 1 &pcfg_pull_up_drv_level_2>,
564				/* sdmmc1_d2 */
565				<2 RK_PA5 1 &pcfg_pull_up_drv_level_2>,
566				/* sdmmc1_d3 */
567				<2 RK_PA4 1 &pcfg_pull_up_drv_level_2>;
568		};
569
570		sdmmc1_clk_pins: sdmmc1-clk-pins {
571			rockchip,pins =
572				/* sdmmc1_clk */
573				<2 RK_PA2 1 &pcfg_pull_up_drv_level_2>;
574		};
575
576		sdmmc1_cmd_pins: sdmmc1-cmd-pins {
577			rockchip,pins =
578				/* sdmmc1_cmd */
579				<2 RK_PA3 1 &pcfg_pull_up_drv_level_2>;
580		};
581	};
582
583	sdmmc0_testclk {
584		sdmmc0_testclk_clk_pins: sdmmc0-testclk-clk-pins {
585			rockchip,pins =
586				/* sdmmc0_testclk_out */
587				<1 RK_PA0 3 &pcfg_pull_up_drv_level_2>;
588		};
589	};
590
591	sdmmc0_testdata {
592		sdmmc0_testdata_out_pins: sdmmc0-testdata-out-pins {
593			rockchip,pins =
594				/* sdmmc0_testdata_out */
595				<1 RK_PA3 3 &pcfg_pull_none>;
596		};
597	};
598
599	sdmmc1_testclk {
600		sdmmc1_testclk_clk_pins: sdmmc1-testclk-clk-pins {
601			rockchip,pins =
602				/* sdmmc1_testclk_out */
603				<2 RK_PA6 7 &pcfg_pull_up_drv_level_2>;
604		};
605	};
606
607	sdmmc1_testdata {
608		sdmmc1_testdata_out_pins: sdmmc1-testdata-out-pins {
609			rockchip,pins =
610				/* sdmmc1_testdata_out */
611				<2 RK_PA7 7 &pcfg_pull_none>;
612		};
613	};
614
615	spi0 {
616		spi0m0_clk_pins: spi0m0-clk-pins {
617			rockchip,pins =
618				/* spi0_clk_m0 */
619				<2 RK_PB0 2 &pcfg_pull_none>,
620				/* spi0_miso_m0 */
621				<2 RK_PB3 2 &pcfg_pull_none>,
622				/* spi0_mosi_m0 */
623				<2 RK_PB1 2 &pcfg_pull_none>;
624		};
625
626		spi0m0_cs0_pins: spi0m0-cs0-pins {
627			rockchip,pins =
628				/* spi0_cs0n_m0 */
629				<2 RK_PB2 2 &pcfg_pull_none>;
630		};
631
632		spi0m0_cs1_pins: spi0m0-cs1-pins {
633			rockchip,pins =
634				/* spi0_cs1n_m0 */
635				<2 RK_PA7 2 &pcfg_pull_none>;
636		};
637
638		spi0m1_clk_pins: spi0m1-clk-pins {
639			rockchip,pins =
640				/* spi0_clk_m1 */
641				<2 RK_PA2 5 &pcfg_pull_none>,
642				/* spi0_miso_m1 */
643				<2 RK_PA4 5 &pcfg_pull_none>,
644				/* spi0_mosi_m1 */
645				<2 RK_PA1 5 &pcfg_pull_none>;
646		};
647
648		spi0m1_cs0_pins: spi0m1-cs0-pins {
649			rockchip,pins =
650				/* spi0_cs0n_m1 */
651				<2 RK_PA3 5 &pcfg_pull_none>;
652		};
653
654		spi0m1_cs1_pins: spi0m1-cs1-pins {
655			rockchip,pins =
656				/* spi0_cs1n_m1 */
657				<2 RK_PA0 5 &pcfg_pull_none>;
658		};
659	};
660
661	uart0 {
662		uart0m0_xfer_pins: uart0m0-xfer-pins {
663			rockchip,pins =
664				/* uart0_rx_m0 */
665				<0 RK_PA6 1 &pcfg_pull_up>,
666				/* uart0_tx_m0 */
667				<0 RK_PA5 1 &pcfg_pull_up>;
668		};
669
670		uart0m1_xfer_pins: uart0m1-xfer-pins {
671			rockchip,pins =
672				/* uart0_rx_m1 */
673				<0 RK_PB5 2 &pcfg_pull_up>,
674				/* uart0_tx_m1 */
675				<0 RK_PB4 2 &pcfg_pull_up>;
676		};
677
678		uart0m2_xfer_pins: uart0m2-xfer-pins {
679			rockchip,pins =
680				/* uart0_rx_m2 */
681				<1 RK_PB3 2 &pcfg_pull_up>,
682				/* uart0_tx_m2 */
683				<1 RK_PB4 2 &pcfg_pull_up>;
684		};
685	};
686
687	uart1 {
688		uart1m0_xfer_pins: uart1m0-xfer-pins {
689			rockchip,pins =
690				/* uart1_rx_m0 */
691				<0 RK_PB2 2 &pcfg_pull_up>,
692				/* uart1_tx_m0 */
693				<0 RK_PB3 2 &pcfg_pull_up>;
694		};
695
696		uart1m0_ctsn_pins: uart1m0-ctsn-pins {
697			rockchip,pins =
698				/* uart1m0_ctsn */
699				<0 RK_PB5 5 &pcfg_pull_none>;
700		};
701		uart1m0_rtsn_pins: uart1m0-rtsn-pins {
702			rockchip,pins =
703				/* uart1m0_rtsn */
704				<0 RK_PB4 5 &pcfg_pull_none>;
705		};
706
707		uart1m1_xfer_pins: uart1m1-xfer-pins {
708			rockchip,pins =
709				/* uart1_rx_m1 */
710				<1 RK_PA7 2 &pcfg_pull_up>,
711				/* uart1_tx_m1 */
712				<1 RK_PB0 2 &pcfg_pull_up>;
713		};
714
715		uart1m1_ctsn_pins: uart1m1-ctsn-pins {
716			rockchip,pins =
717				/* uart1m1_ctsn */
718				<1 RK_PB2 2 &pcfg_pull_none>;
719		};
720		uart1m1_rtsn_pins: uart1m1-rtsn-pins {
721			rockchip,pins =
722				/* uart1m1_rtsn */
723				<1 RK_PB1 2 &pcfg_pull_none>;
724		};
725
726		uart1m2_xfer_pins: uart1m2-xfer-pins {
727			rockchip,pins =
728				/* uart1_rx_m2 */
729				<2 RK_PA7 1 &pcfg_pull_up>,
730				/* uart1_tx_m2 */
731				<2 RK_PA6 1 &pcfg_pull_up>;
732		};
733
734		uart1m2_ctsn_pins: uart1m2-ctsn-pins {
735			rockchip,pins =
736				/* uart1m2_ctsn */
737				<2 RK_PA5 2 &pcfg_pull_none>;
738		};
739		uart1m2_rtsn_pins: uart1m2-rtsn-pins {
740			rockchip,pins =
741				/* uart1m2_rtsn */
742				<2 RK_PA4 2 &pcfg_pull_none>;
743		};
744
745		uart1m3_xfer_pins: uart1m3-xfer-pins {
746			rockchip,pins =
747				/* uart1_rx_m3 */
748				<2 RK_PA3 2 &pcfg_pull_up>,
749				/* uart1_tx_m3 */
750				<2 RK_PA2 2 &pcfg_pull_up>;
751		};
752
753		uart1m3_ctsn_pins: uart1m3-ctsn-pins {
754			rockchip,pins =
755				/* uart1m3_ctsn */
756				<2 RK_PA1 2 &pcfg_pull_none>;
757		};
758		uart1m3_rtsn_pins: uart1m3-rtsn-pins {
759			rockchip,pins =
760				/* uart1m3_rtsn */
761				<2 RK_PA0 2 &pcfg_pull_none>;
762		};
763	};
764
765	uart2 {
766		uart2m0_xfer_pins: uart2m0-xfer-pins {
767			rockchip,pins =
768				/* uart2_rx_m0 */
769				<0 RK_PB1 2 &pcfg_pull_up>,
770				/* uart2_tx_m0 */
771				<0 RK_PB0 2 &pcfg_pull_up>;
772		};
773
774		uart2m0_ctsn_pins: uart2m0-ctsn-pins {
775			rockchip,pins =
776				/* uart2m0_ctsn */
777				<0 RK_PB3 5 &pcfg_pull_none>;
778		};
779		uart2m0_rtsn_pins: uart2m0-rtsn-pins {
780			rockchip,pins =
781				/* uart2m0_rtsn */
782				<0 RK_PB2 5 &pcfg_pull_none>;
783		};
784
785		uart2m1_xfer_pins: uart2m1-xfer-pins {
786			rockchip,pins =
787				/* uart2_rx_m1 */
788				<2 RK_PB1 1 &pcfg_pull_up>,
789				/* uart2_tx_m1 */
790				<2 RK_PB0 1 &pcfg_pull_up>;
791		};
792
793		uart2m1_ctsn_pins: uart2m1-ctsn-pins {
794			rockchip,pins =
795				/* uart2m1_ctsn */
796				<2 RK_PB3 1 &pcfg_pull_none>;
797		};
798		uart2m1_rtsn_pins: uart2m1-rtsn-pins {
799			rockchip,pins =
800				/* uart2m1_rtsn */
801				<2 RK_PB2 1 &pcfg_pull_none>;
802		};
803
804		uart2m2_xfer_pins: uart2m2-xfer-pins {
805			rockchip,pins =
806				/* uart2_rx_m2 */
807				<1 RK_PB6 3 &pcfg_pull_up>,
808				/* uart2_tx_m2 */
809				<1 RK_PB5 3 &pcfg_pull_up>;
810		};
811
812		uart2m2_ctsn_pins: uart2m2-ctsn-pins {
813			rockchip,pins =
814				/* uart2m2_ctsn */
815				<1 RK_PC0 3 &pcfg_pull_none>;
816		};
817		uart2m2_rtsn_pins: uart2m2-rtsn-pins {
818			rockchip,pins =
819				/* uart2m2_rtsn */
820				<1 RK_PB7 3 &pcfg_pull_none>;
821		};
822	};
823};
824
825/*
826 * This part is edited handly.
827 */
828&pinctrl {
829	sdmmc0_pins: sdmmc0_pins {
830		sdmmc0_idle_pins: sdmmc0-idle-pins {
831			rockchip,pins =
832				<1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>,
833				<1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>,
834				<1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>,
835				<1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>,
836				<1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_down>,
837				<1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
838		};
839	};
840};
841