1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Exynos5410 SoC pin-mux and pin-config device tree source
4 *
5 * Copyright (c) 2013 Hardkernel Co., Ltd.
6 *              https://www.hardkernel.com
7 */
8
9#include <dt-bindings/pinctrl/samsung.h>
10
11&pinctrl_0 {
12	gpa0: gpa0 {
13		gpio-controller;
14		#gpio-cells = <2>;
15
16		interrupt-controller;
17		#interrupt-cells = <2>;
18	};
19
20	gpa1: gpa1 {
21		gpio-controller;
22		#gpio-cells = <2>;
23
24		interrupt-controller;
25		#interrupt-cells = <2>;
26	};
27
28	gpa2: gpa2 {
29		gpio-controller;
30		#gpio-cells = <2>;
31
32		interrupt-controller;
33		#interrupt-cells = <2>;
34	};
35
36	gpb0: gpb0 {
37		gpio-controller;
38		#gpio-cells = <2>;
39
40		interrupt-controller;
41		#interrupt-cells = <2>;
42	};
43
44	gpb1: gpb1 {
45		gpio-controller;
46		#gpio-cells = <2>;
47
48		interrupt-controller;
49		#interrupt-cells = <2>;
50	};
51
52	gpb2: gpb2 {
53		gpio-controller;
54		#gpio-cells = <2>;
55
56		interrupt-controller;
57		#interrupt-cells = <2>;
58	};
59
60	gpb3: gpb3 {
61		gpio-controller;
62		#gpio-cells = <2>;
63
64		interrupt-controller;
65		#interrupt-cells = <2>;
66	};
67
68	gpc0: gpc0 {
69		gpio-controller;
70		#gpio-cells = <2>;
71
72		interrupt-controller;
73		#interrupt-cells = <2>;
74	};
75
76	gpc3: gpc3 {
77		gpio-controller;
78		#gpio-cells = <2>;
79
80		interrupt-controller;
81		#interrupt-cells = <2>;
82	};
83
84	gpc1: gpc1 {
85		gpio-controller;
86		#gpio-cells = <2>;
87
88		interrupt-controller;
89		#interrupt-cells = <2>;
90	};
91
92	gpc2: gpc2 {
93		gpio-controller;
94		#gpio-cells = <2>;
95
96		interrupt-controller;
97		#interrupt-cells = <2>;
98	};
99
100	gpm5: gpm5 {
101		gpio-controller;
102		#gpio-cells = <2>;
103	};
104
105	gpd1: gpd1 {
106		gpio-controller;
107		#gpio-cells = <2>;
108
109		interrupt-controller;
110		#interrupt-cells = <2>;
111	};
112
113	gpe0: gpe0 {
114		gpio-controller;
115		#gpio-cells = <2>;
116
117		interrupt-controller;
118		#interrupt-cells = <2>;
119	};
120
121	gpe1: gpe1 {
122		gpio-controller;
123		#gpio-cells = <2>;
124
125		interrupt-controller;
126		#interrupt-cells = <2>;
127	};
128
129	gpf0: gpf0 {
130		gpio-controller;
131		#gpio-cells = <2>;
132
133		interrupt-controller;
134		#interrupt-cells = <2>;
135	};
136
137	gpf1: gpf1 {
138		gpio-controller;
139		#gpio-cells = <2>;
140
141		interrupt-controller;
142		#interrupt-cells = <2>;
143	};
144
145	gpg0: gpg0 {
146		gpio-controller;
147		#gpio-cells = <2>;
148
149		interrupt-controller;
150		#interrupt-cells = <2>;
151	};
152
153	gpg1: gpg1 {
154		gpio-controller;
155		#gpio-cells = <2>;
156
157		interrupt-controller;
158		#interrupt-cells = <2>;
159	};
160
161	gpg2: gpg2 {
162		gpio-controller;
163		#gpio-cells = <2>;
164
165		interrupt-controller;
166		#interrupt-cells = <2>;
167	};
168
169	gph0: gph0 {
170		gpio-controller;
171		#gpio-cells = <2>;
172
173		interrupt-controller;
174		#interrupt-cells = <2>;
175	};
176
177	gph1: gph1 {
178		gpio-controller;
179		#gpio-cells = <2>;
180
181		interrupt-controller;
182		#interrupt-cells = <2>;
183	};
184
185	gpm7: gpm7 {
186		gpio-controller;
187		#gpio-cells = <2>;
188	};
189
190	gpy0: gpy0 {
191		gpio-controller;
192		#gpio-cells = <2>;
193	};
194
195	gpy1: gpy1 {
196		gpio-controller;
197		#gpio-cells = <2>;
198	};
199
200	gpy2: gpy2 {
201		gpio-controller;
202		#gpio-cells = <2>;
203	};
204
205	gpy3: gpy3 {
206		gpio-controller;
207		#gpio-cells = <2>;
208	};
209
210	gpy4: gpy4 {
211		gpio-controller;
212		#gpio-cells = <2>;
213	};
214
215	gpy5: gpy5 {
216		gpio-controller;
217		#gpio-cells = <2>;
218	};
219
220	gpy6: gpy6 {
221		gpio-controller;
222		#gpio-cells = <2>;
223	};
224
225	gpy7: gpy7 {
226		gpio-controller;
227		#gpio-cells = <2>;
228	};
229
230	gpx0: gpx0 {
231		gpio-controller;
232		#gpio-cells = <2>;
233
234		interrupt-controller;
235		interrupt-parent = <&combiner>;
236		#interrupt-cells = <2>;
237		interrupts = <23 0>,
238		             <24 0>,
239		             <25 0>,
240		             <25 1>,
241		             <26 0>,
242		             <26 1>,
243		             <27 0>,
244		             <27 1>;
245	};
246
247	gpx1: gpx1 {
248		gpio-controller;
249		#gpio-cells = <2>;
250
251		interrupt-controller;
252		interrupt-parent = <&combiner>;
253		#interrupt-cells = <2>;
254		interrupts = <28 0>,
255		             <28 1>,
256		             <29 0>,
257		             <29 1>,
258		             <30 0>,
259		             <30 1>,
260		             <31 0>,
261		             <31 1>;
262	};
263
264	gpx2: gpx2 {
265		gpio-controller;
266		#gpio-cells = <2>;
267
268		interrupt-controller;
269		#interrupt-cells = <2>;
270	};
271
272	gpx3: gpx3 {
273		gpio-controller;
274		#gpio-cells = <2>;
275
276		interrupt-controller;
277		#interrupt-cells = <2>;
278	};
279
280	uart0_data: uart0-data {
281		samsung,pins = "gpa0-0", "gpa0-1";
282		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
283		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
284		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
285	};
286
287	uart0_fctl: uart0-fctl {
288		samsung,pins = "gpa0-2", "gpa0-3";
289		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
290		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
291		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
292	};
293
294	uart1_data: uart1-data {
295		samsung,pins = "gpa0-4", "gpa0-5";
296		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
297		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
298		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
299	};
300
301	uart1_fctl: uart1-fctl {
302		samsung,pins = "gpa0-6", "gpa0-7";
303		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
304		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
305		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
306	};
307
308	i2c2_bus: i2c2-bus {
309		samsung,pins = "gpa0-6", "gpa0-7";
310		samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
311		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
312		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
313	};
314
315	uart2_data: uart2-data {
316		samsung,pins = "gpa1-0", "gpa1-1";
317		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
318		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
319		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
320	};
321
322	uart2_fctl: uart2-fctl {
323		samsung,pins = "gpa1-2", "gpa1-3";
324		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
325		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
326		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
327	};
328
329	i2c3_bus: i2c3-bus {
330		samsung,pins = "gpa1-2", "gpa1-3";
331		samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
332		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
333		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
334	};
335
336	uart3_data: uart3-data {
337		samsung,pins = "gpa1-4", "gpa1-5";
338		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
339		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
340		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
341	};
342
343	i2c4_hs_bus: i2c4-hs-bus {
344		samsung,pins = "gpa2-0", "gpa2-1";
345		samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
346		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
347		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
348	};
349
350	i2c5_hs_bus: i2c5-hs-bus {
351		samsung,pins = "gpa2-2", "gpa2-3";
352		samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
353		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
354		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
355	};
356
357	i2c6_hs_bus: i2c6-hs-bus {
358		samsung,pins = "gpb1-3", "gpb1-4";
359		samsung,pin-function = <EXYNOS_PIN_FUNC_4>;
360		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
361		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
362	};
363
364	pwm0_out: pwm0-out {
365		samsung,pins = "gpb2-0";
366		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
367		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
368		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
369	};
370
371	pwm1_out: pwm1-out {
372		samsung,pins = "gpb2-1";
373		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
374		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
375		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
376	};
377
378	pwm2_out: pwm2-out {
379		samsung,pins = "gpb2-2";
380		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
381		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
382		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
383	};
384
385	pwm3_out: pwm3-out {
386		samsung,pins = "gpb2-3";
387		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
388		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
389		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
390	};
391
392	i2c7_hs_bus: i2c7-hs-bus {
393		samsung,pins = "gpb2-2", "gpb2-3";
394		samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
395		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
396		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
397	};
398
399	i2c0_bus: i2c0-bus {
400		samsung,pins = "gpb3-0", "gpb3-1";
401		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
402		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
403		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
404	};
405
406	i2c1_bus: i2c1-bus {
407		samsung,pins = "gpb3-2", "gpb3-3";
408		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
409		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
410		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
411	};
412
413	sd0_clk: sd0-clk {
414		samsung,pins = "gpc0-0";
415		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
416		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
417		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
418	};
419
420	sd0_cmd: sd0-cmd {
421		samsung,pins = "gpc0-1";
422		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
423		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
424		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
425	};
426
427	sd0_cd: sd0-cd {
428		samsung,pins = "gpc0-2";
429		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
430		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
431		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
432	};
433
434	sd0_bus1: sd0-bus-width1 {
435		samsung,pins = "gpc0-3";
436		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
437		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
438		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
439	};
440
441	sd0_bus4: sd0-bus-width4 {
442		samsung,pins = "gpc0-4", "gpc0-5", "gpc0-6";
443		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
444		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
445		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
446	};
447
448	sd2_clk: sd2-clk {
449		samsung,pins = "gpc2-0";
450		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
451		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
452		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
453	};
454
455	sd2_cmd: sd2-cmd {
456		samsung,pins = "gpc2-1";
457		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
458		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
459		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
460	};
461
462	sd2_cd: sd2-cd {
463		samsung,pins = "gpc2-2";
464		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
465		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
466		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
467	};
468
469	sd2_bus1: sd2-bus-width1 {
470		samsung,pins = "gpc2-3";
471		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
472		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
473		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
474	};
475
476	sd2_bus4: sd2-bus-width4 {
477		samsung,pins = "gpc2-4", "gpc2-5", "gpc2-6";
478		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
479		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
480		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
481	};
482
483	sd0_bus8: sd0-bus-width8 {
484		samsung,pins = "gpc3-0", "gpc3-1", "gpc3-2", "gpc3-3";
485		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
486		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
487		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
488	};
489};
490
491&pinctrl_1 {
492	gpj0: gpj0 {
493		gpio-controller;
494		#gpio-cells = <2>;
495
496		interrupt-controller;
497		#interrupt-cells = <2>;
498	};
499
500	gpj1: gpj1 {
501		gpio-controller;
502		#gpio-cells = <2>;
503
504		interrupt-controller;
505		#interrupt-cells = <2>;
506	};
507
508	gpj2: gpj2 {
509		gpio-controller;
510		#gpio-cells = <2>;
511
512		interrupt-controller;
513		#interrupt-cells = <2>;
514	};
515
516	gpj3: gpj3 {
517		gpio-controller;
518		#gpio-cells = <2>;
519
520		interrupt-controller;
521		#interrupt-cells = <2>;
522	};
523
524	gpj4: gpj4 {
525		gpio-controller;
526		#gpio-cells = <2>;
527
528		interrupt-controller;
529		#interrupt-cells = <2>;
530	};
531
532	gpk0: gpk0 {
533		gpio-controller;
534		#gpio-cells = <2>;
535
536		interrupt-controller;
537		#interrupt-cells = <2>;
538	};
539
540	gpk1: gpk1 {
541		gpio-controller;
542		#gpio-cells = <2>;
543
544		interrupt-controller;
545		#interrupt-cells = <2>;
546	};
547
548	gpk2: gpk2 {
549		gpio-controller;
550		#gpio-cells = <2>;
551
552		interrupt-controller;
553		#interrupt-cells = <2>;
554	};
555
556	gpk3: gpk3 {
557		gpio-controller;
558		#gpio-cells = <2>;
559
560		interrupt-controller;
561		#interrupt-cells = <2>;
562	};
563};
564
565&pinctrl_2 {
566	gpv0: gpv0 {
567		gpio-controller;
568		#gpio-cells = <2>;
569
570		interrupt-controller;
571		#interrupt-cells = <2>;
572	};
573
574	gpv1: gpv1 {
575		gpio-controller;
576		#gpio-cells = <2>;
577
578		interrupt-controller;
579		#interrupt-cells = <2>;
580	};
581
582	gpv2: gpv2 {
583		gpio-controller;
584		#gpio-cells = <2>;
585
586		interrupt-controller;
587		#interrupt-cells = <2>;
588	};
589
590	gpv3: gpv3 {
591		gpio-controller;
592		#gpio-cells = <2>;
593
594		interrupt-controller;
595		#interrupt-cells = <2>;
596	};
597
598	gpv4: gpv4 {
599		gpio-controller;
600		#gpio-cells = <2>;
601
602		interrupt-controller;
603		#interrupt-cells = <2>;
604	};
605};
606
607&pinctrl_3 {
608	gpz: gpz {
609		gpio-controller;
610		#gpio-cells = <2>;
611
612		interrupt-controller;
613		#interrupt-cells = <2>;
614	};
615
616	audi2s0_bus: audi2s0-bus {
617		samsung,pins = "gpz-0", "gpz-1", "gpz-2", "gpz-3",
618				"gpz-4";
619		samsung,pin-function = <2>;
620		samsung,pin-pud = <0>;
621		samsung,pin-drv = <0>;
622	};
623
624};
625