xref: /OK3568_Linux_fs/kernel/scripts/dtc/include-prefixes/arm64/rockchip/rk3308bs-pinctrl.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2021 Rockchip Electronics Co., Ltd
4 */
5
6&pinctrl {
7	/* default for rk3308 and 4ma for rk3308bs */
8	pcfg_pull_none_0_4ma: pcfg-pull-none-0-4ma {
9		bias-disable;
10		drive-strength-s = <4>;
11	};
12	pcfg_pull_none_0_4ma_smt: pcfg-pull-none-0-4ma-smt {
13		bias-disable;
14		drive-strength-s = <4>;
15		input-schmitt-enable;
16	};
17	pcfg_pull_up_0_4ma: pcfg-pull-up-0-4ma {
18		bias-pull-up;
19		drive-strength-s = <4>;
20	};
21	pcfg_pull_down_0_4ma: pcfg-pull-down-0-4ma {
22		bias-pull-down;
23		drive-strength-s = <4>;
24	};
25
26	/* default for rk3308 and 6ma for rk3308bs */
27	pcfg_pull_none_0_6ma: pcfg-pull-none-0-6ma {
28		bias-disable;
29		drive-strength-s = <6>;
30	};
31	pcfg_pull_up_0_6ma: pcfg-pull-up-0-6ma {
32		bias-pull-up;
33		drive-strength-s = <6>;
34	};
35	pcfg_pull_down_0_6ma: pcfg-pull-down-0-6ma {
36		bias-pull-down;
37		drive-strength-s = <6>;
38	};
39
40	/* 4ma for rk3308 and 6ma for rk3308bs */
41	pcfg_pull_none_4_6ma: pcfg-pull-none-4-6ma {
42		bias-disable;
43		drive-strength = <4>;
44		drive-strength-s = <6>;
45	};
46	pcfg_pull_up_4_6ma: pcfg-pull-up-4-6ma {
47		bias-pull-up;
48		drive-strength = <4>;
49		drive-strength-s = <6>;
50	};
51	pcfg_pull_down_4_6ma: pcfg-pull-down-4-6ma {
52		bias-pull-down;
53		drive-strength = <4>;
54		drive-strength-s = <6>;
55	};
56
57	/* 8ma for rk3308 and 6ma for rk3308bs */
58	pcfg_pull_none_8_6ma: pcfg-pull-none-8-6ma {
59		bias-disable;
60		drive-strength = <8>;
61		drive-strength-s = <6>;
62	};
63	pcfg_pull_up_8_6ma: pcfg-pull-up-8-6ma {
64		bias-pull-up;
65		drive-strength = <8>;
66		drive-strength-s = <6>;
67	};
68	pcfg_pull_down_8_6ma: pcfg-pull-down-8-6ma {
69		bias-pull-down;
70		drive-strength = <8>;
71		drive-strength-s = <6>;
72	};
73
74	/* 8ma for rk3308 and 4ma for rk3308bs */
75	pcfg_pull_none_8_4ma: pcfg-pull-none-8-4ma {
76		bias-disable;
77		drive-strength = <8>;
78		drive-strength-s = <4>;
79	};
80	pcfg_pull_up_8_4ma: pcfg-pull-up-8-4ma {
81		bias-pull-up;
82		drive-strength = <8>;
83		drive-strength-s = <4>;
84	};
85	pcfg_pull_down_8_4ma: pcfg-pull-down-8-4ma {
86		bias-pull-down;
87		drive-strength = <8>;
88		drive-strength-s = <4>;
89	};
90
91	/* 12ma for rk3308 and 4ma for rk3308bs */
92	pcfg_pull_none_12_4ma: pcfg-pull-none-12-4ma {
93		bias-disable;
94		drive-strength = <12>;
95		drive-strength-s = <4>;
96	};
97	pcfg_pull_up_12_4ma: pcfg-pull-up-12-4ma {
98		bias-pull-up;
99		drive-strength = <12>;
100		drive-strength-s = <4>;
101	};
102	pcfg_pull_down_12_4ma: pcfg-pull-down-12-4ma {
103		bias-pull-down;
104		drive-strength = <12>;
105		drive-strength-s = <4>;
106	};
107
108	/* 12ma for rk3308 and 6ma for rk3308bs */
109	pcfg_pull_none_12_6ma: pcfg-pull-none-12-6ma {
110		bias-disable;
111		drive-strength = <12>;
112		drive-strength-s = <6>;
113	};
114	pcfg_pull_up_12_6ma: pcfg-pull-up-12-6ma {
115		bias-pull-up;
116		drive-strength = <12>;
117		drive-strength-s = <6>;
118	};
119	pcfg_pull_down_12_6ma: pcfg-pull-down-12-6ma {
120		bias-pull-down;
121		drive-strength = <12>;
122		drive-strength-s = <6>;
123	};
124};
125
126&pinctrl {
127	/delete-node/ i2s_2ch_0;
128	/delete-node/ i2s_8ch_0;
129	/delete-node/ i2s_8ch_1_m0;
130	/delete-node/ i2s_8ch_1_m1;
131
132	i2s_2ch_0 {
133		i2s_2ch_0_mclk: i2s-2ch-0-mclk {
134			rockchip,pins =
135				<4 RK_PB4 1 &pcfg_pull_none_smt>;
136		};
137
138		i2s_2ch_0_sclk: i2s-2ch-0-sclk {
139			rockchip,pins =
140				<4 RK_PB5 1 &pcfg_pull_none_smt>;
141		};
142
143		i2s_2ch_0_lrck: i2s-2ch-0-lrck {
144			rockchip,pins =
145				<4 RK_PB6 1 &pcfg_pull_none_0_4ma_smt>;
146		};
147
148		i2s_2ch_0_sdo: i2s-2ch-0-sdo {
149			rockchip,pins =
150				<4 RK_PB7 1 &pcfg_pull_none_0_4ma>;
151		};
152
153		i2s_2ch_0_sdi: i2s-2ch-0-sdi {
154			rockchip,pins =
155				<4 RK_PC0 1 &pcfg_pull_none_0_4ma>;
156		};
157	};
158
159	i2s_8ch_0 {
160		i2s_8ch_0_mclk: i2s-8ch-0-mclk {
161			rockchip,pins =
162				<2 RK_PA4 1 &pcfg_pull_none_0_4ma_smt>;
163		};
164
165		i2s_8ch_0_sclktx: i2s-8ch-0-sclktx {
166			rockchip,pins =
167				<2 RK_PA5 1 &pcfg_pull_none_0_4ma_smt>;
168		};
169
170		i2s_8ch_0_sclkrx: i2s-8ch-0-sclkrx {
171			rockchip,pins =
172				<2 RK_PA6 1 &pcfg_pull_none_0_4ma_smt>;
173		};
174
175		i2s_8ch_0_lrcktx: i2s-8ch-0-lrcktx {
176			rockchip,pins =
177				<2 RK_PA7 1 &pcfg_pull_none_0_4ma_smt>;
178		};
179
180		i2s_8ch_0_lrckrx: i2s-8ch-0-lrckrx {
181			rockchip,pins =
182				<2 RK_PB0 1 &pcfg_pull_none_0_4ma_smt>;
183		};
184
185		i2s_8ch_0_sdo0: i2s-8ch-0-sdo0 {
186			rockchip,pins =
187				<2 RK_PB1 1 &pcfg_pull_none_0_4ma>;
188		};
189
190		i2s_8ch_0_sdo1: i2s-8ch-0-sdo1 {
191			rockchip,pins =
192				<2 RK_PB2 1 &pcfg_pull_none_0_4ma>;
193		};
194
195		i2s_8ch_0_sdo2: i2s-8ch-0-sdo2 {
196			rockchip,pins =
197				<2 RK_PB3 1 &pcfg_pull_none_0_4ma>;
198		};
199
200		i2s_8ch_0_sdo3: i2s-8ch-0-sdo3 {
201			rockchip,pins =
202				<2 RK_PB4 1 &pcfg_pull_none_0_4ma>;
203		};
204
205		i2s_8ch_0_sdi0: i2s-8ch-0-sdi0 {
206			rockchip,pins =
207				<2 RK_PB5 1 &pcfg_pull_none_0_4ma>;
208		};
209
210		i2s_8ch_0_sdi1: i2s-8ch-0-sdi1 {
211			rockchip,pins =
212				<2 RK_PB6 1 &pcfg_pull_none_0_4ma>;
213		};
214
215		i2s_8ch_0_sdi2: i2s-8ch-0-sdi2 {
216			rockchip,pins =
217				<2 RK_PB7 1 &pcfg_pull_none_0_4ma>;
218		};
219
220		i2s_8ch_0_sdi3: i2s-8ch-0-sdi3 {
221			rockchip,pins =
222				<2 RK_PC0 1 &pcfg_pull_none_0_4ma>;
223		};
224	};
225
226
227	i2s_8ch_1_m0 {
228		i2s_8ch_1_m0_mclk: i2s-8ch-1-m0-mclk {
229			rockchip,pins =
230				<1 RK_PA2 2 &pcfg_pull_none_0_4ma_smt>;
231		};
232
233		i2s_8ch_1_m0_sclktx: i2s-8ch-1-m0-sclktx {
234			rockchip,pins =
235				<1 RK_PA3 2 &pcfg_pull_none_0_4ma_smt>;
236		};
237
238		i2s_8ch_1_m0_sclkrx: i2s-8ch-1-m0-sclkrx {
239			rockchip,pins =
240				<1 RK_PA4 2 &pcfg_pull_none_0_4ma_smt>;
241		};
242
243		i2s_8ch_1_m0_lrcktx: i2s-8ch-1-m0-lrcktx {
244			rockchip,pins =
245				<1 RK_PA5 2 &pcfg_pull_none_0_4ma_smt>;
246		};
247
248		i2s_8ch_1_m0_lrckrx: i2s-8ch-1-m0-lrckrx {
249			rockchip,pins =
250				<1 RK_PA6 2 &pcfg_pull_none_0_4ma_smt>;
251		};
252
253		i2s_8ch_1_m0_sdo0: i2s-8ch-1-m0-sdo0 {
254			rockchip,pins =
255				<1 RK_PA7 2 &pcfg_pull_none_0_4ma>;
256		};
257
258		i2s_8ch_1_m0_sdo1_sdi3: i2s-8ch-1-m0-sdo1-sdi3 {
259			rockchip,pins =
260				<1 RK_PB0 2 &pcfg_pull_none_0_4ma>;
261		};
262
263		i2s_8ch_1_m0_sdo2_sdi2: i2s-8ch-1-m0-sdo2-sdi2 {
264			rockchip,pins =
265				<1 RK_PB1 2 &pcfg_pull_none_0_4ma>;
266		};
267
268		i2s_8ch_1_m0_sdo3_sdi1: i2s-8ch-1-m0-sdo3_sdi1 {
269			rockchip,pins =
270				<1 RK_PB2 2 &pcfg_pull_none_0_4ma>;
271		};
272
273		i2s_8ch_1_m0_sdi0: i2s-8ch-1-m0-sdi0 {
274			rockchip,pins =
275				<1 RK_PB3 2 &pcfg_pull_none_0_4ma>;
276		};
277	};
278
279	i2s_8ch_1_m1 {
280		i2s_8ch_1_m1_mclk: i2s-8ch-1-m1-mclk {
281			rockchip,pins =
282				<1 RK_PB4 2 &pcfg_pull_none_0_4ma_smt>;
283		};
284
285		i2s_8ch_1_m1_sclktx: i2s-8ch-1-m1-sclktx {
286			rockchip,pins =
287				<1 RK_PB5 2 &pcfg_pull_none_0_4ma_smt>;
288		};
289
290		i2s_8ch_1_m1_sclkrx: i2s-8ch-1-m1-sclkrx {
291			rockchip,pins =
292				<1 RK_PB6 2 &pcfg_pull_none_0_4ma_smt>;
293		};
294
295		i2s_8ch_1_m1_lrcktx: i2s-8ch-1-m1-lrcktx {
296			rockchip,pins =
297				<1 RK_PB7 2 &pcfg_pull_none_0_4ma_smt>;
298		};
299
300		i2s_8ch_1_m1_lrckrx: i2s-8ch-1-m1-lrckrx {
301			rockchip,pins =
302				<1 RK_PC0 2 &pcfg_pull_none_0_4ma_smt>;
303		};
304
305		i2s_8ch_1_m1_sdo0: i2s-8ch-1-m1-sdo0 {
306			rockchip,pins =
307				<1 RK_PC1 2 &pcfg_pull_none_0_4ma>;
308		};
309
310		i2s_8ch_1_m1_sdo1_sdi3: i2s-8ch-1-m1-sdo1-sdi3 {
311			rockchip,pins =
312				<1 RK_PC2 2 &pcfg_pull_none_0_4ma>;
313		};
314
315		i2s_8ch_1_m1_sdo2_sdi2: i2s-8ch-1-m1-sdo2-sdi2 {
316			rockchip,pins =
317				<1 RK_PC3 2 &pcfg_pull_none_0_4ma>;
318		};
319
320		i2s_8ch_1_m1_sdo3_sdi1: i2s-8ch-1-m1-sdo3_sdi1 {
321			rockchip,pins =
322				<1 RK_PC4 2 &pcfg_pull_none_0_4ma>;
323		};
324
325		i2s_8ch_1_m1_sdi0: i2s-8ch-1-m1-sdi0 {
326			rockchip,pins =
327				<1 RK_PC5 2 &pcfg_pull_none_0_4ma>;
328		};
329	};
330};
331
332&pinctrl {
333	/delete-node/ sdmmc;
334	sdmmc {
335		sdmmc_clk: sdmmc-clk {
336			rockchip,pins =
337				<4 RK_PD5 1 &pcfg_pull_none_4_6ma>;
338		};
339
340		sdmmc_cmd: sdmmc-cmd {
341			rockchip,pins =
342				<4 RK_PD4 1 &pcfg_pull_up_4ma>;
343		};
344
345		sdmmc_det: sdmmc-det {
346			rockchip,pins =
347				<0 RK_PA3 1 &pcfg_pull_up_4ma>;
348		};
349
350		sdmmc_pwren: sdmmc-pwren {
351			rockchip,pins =
352				<4 RK_PD6 1 &pcfg_pull_none_4ma>;
353		};
354
355		sdmmc_bus1: sdmmc-bus1 {
356			rockchip,pins =
357				<4 RK_PD0 1 &pcfg_pull_up_4_6ma>;
358		};
359
360		sdmmc_bus4: sdmmc-bus4 {
361			rockchip,pins =
362				<4 RK_PD0 1 &pcfg_pull_up_4_6ma>,
363				<4 RK_PD1 1 &pcfg_pull_up_4_6ma>,
364				<4 RK_PD2 1 &pcfg_pull_up_4_6ma>,
365				<4 RK_PD3 1 &pcfg_pull_up_4_6ma>;
366		};
367
368		sdmmc_gpio: sdmmc-gpio {
369			rockchip,pins =
370				<4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
371				<4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
372				<4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
373				<4 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
374				<4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
375				<4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
376				<4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
377		};
378	};
379};
380
381&pinctrl {
382	/delete-node/ sdio;
383	sdio {
384		sdio_clk: sdio-clk {
385			rockchip,pins =
386				<4 RK_PA5 1 &pcfg_pull_none_8_6ma>;
387		};
388
389		sdio_cmd: sdio-cmd {
390			rockchip,pins =
391				<4 RK_PA4 1 &pcfg_pull_up_8_6ma>;
392		};
393
394		sdio_pwren: sdio-pwren {
395			rockchip,pins =
396				<0 RK_PA2 1 &pcfg_pull_none_8_6ma>;
397		};
398
399		sdio_wrpt: sdio-wrpt {
400			rockchip,pins =
401				<0 RK_PA1 1 &pcfg_pull_none_8_6ma>;
402		};
403
404		sdio_intn: sdio-intn {
405			rockchip,pins =
406				<0 RK_PA0 1 &pcfg_pull_none_8_6ma>;
407		};
408
409		sdio_bus1: sdio-bus1 {
410			rockchip,pins =
411				<4 RK_PA0 1 &pcfg_pull_up_8_6ma>;
412		};
413
414		sdio_bus4: sdio-bus4 {
415			rockchip,pins =
416				<4 RK_PA0 1 &pcfg_pull_up_8_6ma>,
417				<4 RK_PA1 1 &pcfg_pull_up_8_6ma>,
418				<4 RK_PA2 1 &pcfg_pull_up_8_6ma>,
419				<4 RK_PA3 1 &pcfg_pull_up_8_6ma>;
420		};
421
422		sdio_gpio: sdio-gpio {
423			rockchip,pins =
424				<4 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
425				<4 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
426				<4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
427				<4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
428				<4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
429				<4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
430		};
431	};
432};
433
434&pinctrl {
435	/delete-node/ gmac;
436	/delete-node/ gmac-m1;
437	gmac {
438		rmii_pins: rmii-pins {
439			rockchip,pins =
440				/* mac_txen */
441				<1 RK_PC1 3 &pcfg_pull_none_12_6ma>,
442				/* mac_txd1 */
443				<1 RK_PC3 3 &pcfg_pull_none_12_6ma>,
444				/* mac_txd0 */
445				<1 RK_PC2 3 &pcfg_pull_none_12_6ma>,
446				/* mac_rxd0 */
447				<1 RK_PC4 3 &pcfg_pull_none>,
448				/* mac_rxd1 */
449				<1 RK_PC5 3 &pcfg_pull_none>,
450				/* mac_rxer */
451				<1 RK_PB7 3 &pcfg_pull_none>,
452				/* mac_rxdv */
453				<1 RK_PC0 3 &pcfg_pull_none>,
454				/* mac_mdio */
455				<1 RK_PB6 3 &pcfg_pull_none>,
456				/* mac_mdc */
457				<1 RK_PB5 3 &pcfg_pull_none>;
458		};
459
460		mac_refclk_12ma: mac-refclk-12ma {
461			rockchip,pins =
462				<1 RK_PB4 3 &pcfg_pull_none_12_6ma>;
463		};
464
465		mac_refclk: mac-refclk {
466			rockchip,pins =
467				<1 RK_PB4 3 &pcfg_pull_none>;
468		};
469	};
470
471	gmac-m1 {
472		rmiim1_pins: rmiim1-pins {
473			rockchip,pins =
474				/* mac_txen */
475				<4 RK_PB7 2 &pcfg_pull_none_12_6ma>,
476				/* mac_txd1 */
477				<4 RK_PA5 2 &pcfg_pull_none_12_6ma>,
478				/* mac_txd0 */
479				<4 RK_PA4 2 &pcfg_pull_none_12_6ma>,
480				/* mac_rxd0 */
481				<4 RK_PA2 2 &pcfg_pull_none>,
482				/* mac_rxd1 */
483				<4 RK_PA3 2 &pcfg_pull_none>,
484				/* mac_rxer */
485				<4 RK_PA0 2 &pcfg_pull_none>,
486				/* mac_rxdv */
487				<4 RK_PA1 2 &pcfg_pull_none>,
488				/* mac_mdio */
489				<4 RK_PB6 2 &pcfg_pull_none>,
490				/* mac_mdc */
491				<4 RK_PB5 2 &pcfg_pull_none>;
492		};
493
494		macm1_refclk_12ma: macm1-refclk-12ma {
495			rockchip,pins =
496				<4 RK_PB4 2 &pcfg_pull_none_12_6ma>;
497		};
498
499		macm1_refclk: macm1-refclk {
500			rockchip,pins =
501				<4 RK_PB4 2 &pcfg_pull_none>;
502		};
503	};
504};
505
506&pinctrl {
507	/delete-node/ spi0;
508	/delete-node/ spi1;
509	/delete-node/ spi2;
510
511	spi0 {
512		spi0_clk: spi0-clk {
513			rockchip,pins =
514				<2 RK_PA2 2 &pcfg_pull_up_4ma>;
515		};
516
517		spi0_csn0: spi0-csn0 {
518			rockchip,pins =
519				<2 RK_PA3 2 &pcfg_pull_up_4ma>;
520		};
521
522		spi0_miso: spi0-miso {
523			rockchip,pins =
524				<2 RK_PA0 2 &pcfg_pull_up_4ma>;
525		};
526
527		spi0_mosi: spi0-mosi {
528			rockchip,pins =
529				<2 RK_PA1 2 &pcfg_pull_up_4ma>;
530		};
531
532		spi0_clk_hs: spi0-clk-hs {
533			rockchip,pins =
534				<2 RK_PA2 2 &pcfg_pull_up_8_4ma>;
535		};
536
537		spi0_miso_hs: spi0-miso-hs {
538			rockchip,pins =
539				<2 RK_PA0 2 &pcfg_pull_up_8_4ma>;
540		};
541
542		spi0_mosi_hs: spi0-mosi-hs {
543			rockchip,pins =
544				<2 RK_PA1 2 &pcfg_pull_up_8_4ma>;
545		};
546
547	};
548
549	spi1 {
550		spi1_clk: spi1-clk {
551			rockchip,pins =
552				<3 RK_PB3 3 &pcfg_pull_up_4ma>;
553		};
554
555		spi1_csn0: spi1-csn0 {
556			rockchip,pins =
557				<3 RK_PB5 3 &pcfg_pull_up_4ma>;
558		};
559
560		spi1_miso: spi1-miso {
561			rockchip,pins =
562				<3 RK_PB2 3 &pcfg_pull_up_4ma>;
563		};
564
565		spi1_mosi: spi1-mosi {
566			rockchip,pins =
567				<3 RK_PB4 3 &pcfg_pull_up_4ma>;
568		};
569
570		spi1_clk_hs: spi1-clk-hs {
571			rockchip,pins =
572				<3 RK_PB3 3 &pcfg_pull_up_8_4ma>;
573		};
574
575		spi1_miso_hs: spi1-miso-hs {
576			rockchip,pins =
577				<3 RK_PB2 3 &pcfg_pull_up_8_4ma>;
578		};
579
580		spi1_mosi_hs: spi1-mosi-hs {
581			rockchip,pins =
582				<3 RK_PB4 3 &pcfg_pull_up_8_4ma>;
583		};
584	};
585
586	spi1-m1 {
587		spi1m1_miso: spi1m1-miso {
588			rockchip,pins =
589				<2 RK_PA4 2 &pcfg_pull_up_4ma>;
590		};
591
592		spi1m1_mosi: spi1m1-mosi {
593			rockchip,pins =
594				<2 RK_PA5 2 &pcfg_pull_up_4ma>;
595		};
596
597		spi1m1_clk: spi1m1-clk {
598			rockchip,pins =
599				<2 RK_PA7 2 &pcfg_pull_up_4ma>;
600		};
601
602		spi1m1_csn0: spi1m1-csn0 {
603			rockchip,pins =
604				<2 RK_PB1 2 &pcfg_pull_up_4ma>;
605		};
606
607		spi1m1_miso_hs: spi1m1-miso-hs {
608			rockchip,pins =
609				<2 RK_PA4 2 &pcfg_pull_up_8_4ma>;
610		};
611
612		spi1m1_mosi_hs: spi1m1-mosi-hs {
613			rockchip,pins =
614				<2 RK_PA5 2 &pcfg_pull_up_8_4ma>;
615		};
616
617		spi1m1_clk_hs: spi1m1-clk-hs {
618			rockchip,pins =
619				<2 RK_PA7 2 &pcfg_pull_up_8_4ma>;
620		};
621
622		spi1m1_csn0_hs: spi1m1-csn0-hs {
623			rockchip,pins =
624				<2 RK_PB1 2 &pcfg_pull_up_8_4ma>;
625		};
626	};
627
628	spi2 {
629		spi2_clk: spi2-clk {
630			rockchip,pins =
631				<1 RK_PD0 3 &pcfg_pull_up_4ma>;
632		};
633
634		spi2_csn0: spi2-csn0 {
635			rockchip,pins =
636				<1 RK_PD1 3 &pcfg_pull_up_4ma>;
637		};
638
639		spi2_miso: spi2-miso {
640			rockchip,pins =
641				<1 RK_PC6 3 &pcfg_pull_up_4ma>;
642		};
643
644		spi2_mosi: spi2-mosi {
645			rockchip,pins =
646				<1 RK_PC7 3 &pcfg_pull_up_4ma>;
647		};
648
649		spi2_clk_hs: spi2-clk-hs {
650			rockchip,pins =
651				<1 RK_PD0 3 &pcfg_pull_up_8_4ma>;
652		};
653
654		spi2_miso_hs: spi2-miso-hs {
655			rockchip,pins =
656				<1 RK_PC6 3 &pcfg_pull_up_8_4ma>;
657		};
658
659		spi2_mosi_hs: spi2-mosi-hs {
660			rockchip,pins =
661				<1 RK_PC7 3 &pcfg_pull_up_8_4ma>;
662		};
663	};
664};
665
666&pinctrl {
667	/delete-node/ lcdc;
668
669	lcdc {
670		lcdc_ctl: lcdc-ctl {
671			rockchip,pins =
672				/* dclk */
673				<1 RK_PA0 1 &pcfg_pull_none_4_6ma>,
674				/* hsync */
675				<1 RK_PA1 1 &pcfg_pull_none_4_6ma>,
676				/* vsync */
677				<1 RK_PA2 1 &pcfg_pull_none_4_6ma>,
678				/* den */
679				<1 RK_PA3 1 &pcfg_pull_none_4_6ma>,
680				/* d0 */
681				<1 RK_PA4 1 &pcfg_pull_none_4_6ma>,
682				/* d1 */
683				<1 RK_PA5 1 &pcfg_pull_none_4_6ma>,
684				/* d2 */
685				<1 RK_PA6 1 &pcfg_pull_none_4_6ma>,
686				/* d3 */
687				<1 RK_PA7 1 &pcfg_pull_none_4_6ma>,
688				/* d4 */
689				<1 RK_PB0 1 &pcfg_pull_none_4_6ma>,
690				/* d5 */
691				<1 RK_PB1 1 &pcfg_pull_none_4_6ma>,
692				/* d6 */
693				<1 RK_PB2 1 &pcfg_pull_none_4_6ma>,
694				/* d7 */
695				<1 RK_PB3 1 &pcfg_pull_none_4_6ma>,
696				/* d8 */
697				<1 RK_PB4 1 &pcfg_pull_none_4_6ma>,
698				/* d9 */
699				<1 RK_PB5 1 &pcfg_pull_none_4_6ma>,
700				/* d10 */
701				<1 RK_PB6 1 &pcfg_pull_none_4_6ma>,
702				/* d11 */
703				<1 RK_PB7 1 &pcfg_pull_none_4_6ma>,
704				/* d12 */
705				<1 RK_PC0 1 &pcfg_pull_none_4_6ma>,
706				/* d13 */
707				<1 RK_PC1 1 &pcfg_pull_none_4_6ma>,
708				/* d14 */
709				<1 RK_PC2 1 &pcfg_pull_none_4_6ma>,
710				/* d15 */
711				<1 RK_PC3 1 &pcfg_pull_none_4_6ma>,
712				/* d16 */
713				<1 RK_PC4 1 &pcfg_pull_none_4_6ma>,
714				/* d17 */
715				<1 RK_PC5 1 &pcfg_pull_none_4_6ma>;
716		};
717
718		lcdc_rgb888_m0: lcdc-rgb888-m0 {
719			rockchip,pins =
720				/* d18 */
721				<1 RK_PC6 6 &pcfg_pull_none_4_6ma>,
722				/* d19 */
723				<1 RK_PC7 6 &pcfg_pull_none_4_6ma>,
724				/* d20 */
725				<2 RK_PB1 3 &pcfg_pull_none_4_6ma>,
726				/* d21 */
727				<2 RK_PB2 3 &pcfg_pull_none_4_6ma>,
728				/* d22 */
729				<2 RK_PB7 3 &pcfg_pull_none_4_6ma>,
730				/* d23 */
731				<2 RK_PC0 3 &pcfg_pull_none_4_6ma>;
732		};
733
734		lcdc_rgb888_m1: lcdc-rgb888-m1 {
735			rockchip,pins =
736				/* d18 */
737				<3 RK_PA6 3 &pcfg_pull_none_4_6ma>,
738				/* d19 */
739				<3 RK_PA7 3 &pcfg_pull_none_4_6ma>,
740				/* d20 */
741				<3 RK_PB0 3 &pcfg_pull_none_4_6ma>,
742				/* d21 */
743				<3 RK_PB1 3 &pcfg_pull_none_4_6ma>,
744				/* d22 */
745				<3 RK_PB2 4 &pcfg_pull_none_4_6ma>,
746				/* d23 */
747				<3 RK_PB3 4 &pcfg_pull_none_4_6ma>;
748		};
749	};
750};
751