1/*
2 * Copyright (c) 2020 Gerson Fernando Budke <nandojve@gmail.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include "pinctrl_atmel_sam.h"
8
9/ {
10	soc {
11		pinctrl@400e1000 {
12			/* instance, signal, pio, pin, peripheral */
13			DT_ATMEL_GPIO(spi, miso, a, 3, b);
14			DT_ATMEL_GPIO(spi, miso, a, 21, a);
15			DT_ATMEL_GPIO(spi, miso, a, 27, a);
16			DT_ATMEL_GPIO(spi, miso, b, 14, b);
17			DT_ATMEL_GPIO(spi, miso, c, 4, a);
18			DT_ATMEL_GPIO(spi, miso, c, 28, b);
19			DT_ATMEL_GPIO(spi, mosi, a, 22, a);
20			DT_ATMEL_GPIO(spi, mosi, a, 28, a);
21			DT_ATMEL_GPIO(spi, mosi, b, 15, b);
22			DT_ATMEL_GPIO(spi, mosi, c, 5, a);
23			DT_ATMEL_GPIO(spi, mosi, c, 29, b);
24			DT_ATMEL_GPIO(spi, npcs0, a, 2, b);
25			DT_ATMEL_GPIO(spi, npcs0, a, 24, a);
26			DT_ATMEL_GPIO(spi, npcs0, a, 30, a);
27			DT_ATMEL_GPIO(spi, npcs0, c, 3, a);
28			DT_ATMEL_GPIO(spi, npcs0, c, 31, b);
29			DT_ATMEL_GPIO(spi, npcs1, a, 13, c);
30			DT_ATMEL_GPIO(spi, npcs1, a, 31, a);
31			DT_ATMEL_GPIO(spi, npcs1, b, 13, b);
32			DT_ATMEL_GPIO(spi, npcs1, c, 2, a);
33			DT_ATMEL_GPIO(spi, npcs2, a, 14, c);
34			DT_ATMEL_GPIO(spi, npcs2, b, 11, b);
35			DT_ATMEL_GPIO(spi, npcs2, c, 0, a);
36			DT_ATMEL_GPIO(spi, npcs3, a, 15, c);
37			DT_ATMEL_GPIO(spi, npcs3, b, 12, b);
38			DT_ATMEL_GPIO(spi, npcs3, c, 1, a);
39			DT_ATMEL_GPIO(spi, sck, a, 23, a);
40			DT_ATMEL_GPIO(spi, sck, a, 29, a);
41			DT_ATMEL_GPIO(spi, sck, c, 6, a);
42			DT_ATMEL_GPIO(spi, sck, c, 30, b);
43			DT_ATMEL_GPIO(twi0, twck0, a, 24, b);
44			DT_ATMEL_GPIO(twi0, twd0, a, 23, b);
45			DT_ATMEL_GPIO(twi1, twck1, b, 1, a);
46			DT_ATMEL_GPIO(twi1, twd1, b, 0, a);
47			DT_ATMEL_GPIO(twi2, twck2, a, 22, e);
48			DT_ATMEL_GPIO(twi2, twd2, a, 21, e);
49			DT_ATMEL_GPIO(twi3, twck3, b, 15, c);
50			DT_ATMEL_GPIO(twi3, twd3, b, 14, c);
51			DT_ATMEL_GPIO(usart0, cts0, a, 9, a);
52			DT_ATMEL_GPIO(usart0, cts0, b, 11, a);
53			DT_ATMEL_GPIO(usart0, cts0, c, 2, b);
54			DT_ATMEL_GPIO(usart0, rts0, a, 6, b);
55			DT_ATMEL_GPIO(usart0, rts0, a, 8, a);
56			DT_ATMEL_GPIO(usart0, rts0, b, 12, a);
57			DT_ATMEL_GPIO(usart0, rts0, c, 1, b);
58			DT_ATMEL_GPIO(usart0, rxd0, a, 5, b);
59			DT_ATMEL_GPIO(usart0, rxd0, a, 11, a);
60			DT_ATMEL_GPIO(usart0, rxd0, b, 0, b);
61			DT_ATMEL_GPIO(usart0, rxd0, b, 14, a);
62			DT_ATMEL_GPIO(usart0, rxd0, c, 2, c);
63			DT_ATMEL_GPIO(usart0, clk0, a, 4, b);
64			DT_ATMEL_GPIO(usart0, clk0, a, 10, a);
65			DT_ATMEL_GPIO(usart0, clk0, b, 13, a);
66			DT_ATMEL_GPIO(usart0, clk0, c, 0, b);
67			DT_ATMEL_GPIO(usart0, txd0, a, 7, b);
68			DT_ATMEL_GPIO(usart0, txd0, a, 12, a);
69			DT_ATMEL_GPIO(usart0, txd0, b, 1, b);
70			DT_ATMEL_GPIO(usart0, txd0, b, 15, a);
71			DT_ATMEL_GPIO(usart0, txd0, c, 3, c);
72			DT_ATMEL_GPIO(usart1, cts1, a, 21, b);
73			DT_ATMEL_GPIO(usart1, rts1, a, 13, a);
74			DT_ATMEL_GPIO(usart1, rts1, b, 2, b);
75			DT_ATMEL_GPIO(usart1, rts1, c, 24, a);
76			DT_ATMEL_GPIO(usart1, rxd1, a, 15, a);
77			DT_ATMEL_GPIO(usart1, rxd1, b, 4, b);
78			DT_ATMEL_GPIO(usart1, rxd1, c, 26, a);
79			DT_ATMEL_GPIO(usart1, clk1, a, 14, a);
80			DT_ATMEL_GPIO(usart1, clk1, b, 3, b);
81			DT_ATMEL_GPIO(usart1, clk1, c, 25, a);
82			DT_ATMEL_GPIO(usart1, txd1, a, 16, a);
83			DT_ATMEL_GPIO(usart1, txd1, b, 5, b);
84			DT_ATMEL_GPIO(usart1, txd1, c, 27, a);
85			DT_ATMEL_GPIO(usart2, cts2, a, 22, b);
86			DT_ATMEL_GPIO(usart2, cts2, c, 8, e);
87			DT_ATMEL_GPIO(usart2, rts2, a, 17, a);
88			DT_ATMEL_GPIO(usart2, rts2, c, 7, b);
89			DT_ATMEL_GPIO(usart2, rxd2, a, 19, a);
90			DT_ATMEL_GPIO(usart2, rxd2, a, 25, b);
91			DT_ATMEL_GPIO(usart2, rxd2, c, 11, b);
92			DT_ATMEL_GPIO(usart2, clk2, a, 18, a);
93			DT_ATMEL_GPIO(usart2, clk2, c, 8, b);
94			DT_ATMEL_GPIO(usart2, txd2, a, 20, a);
95			DT_ATMEL_GPIO(usart2, txd2, a, 26, b);
96			DT_ATMEL_GPIO(usart2, txd2, c, 12, b);
97			DT_ATMEL_GPIO(usart3, cts3, a, 28, e);
98			DT_ATMEL_GPIO(usart3, cts3, b, 7, a);
99			DT_ATMEL_GPIO(usart3, rts3, a, 27, e);
100			DT_ATMEL_GPIO(usart3, rts3, b, 6, a);
101			DT_ATMEL_GPIO(usart3, rts3, c, 13, b);
102			DT_ATMEL_GPIO(usart3, rts3, c, 30, a);
103			DT_ATMEL_GPIO(usart3, rxd3, a, 30, a);
104			DT_ATMEL_GPIO(usart3, rxd3, b, 9, a);
105			DT_ATMEL_GPIO(usart3, rxd3, c, 9, b);
106			DT_ATMEL_GPIO(usart3, rxd3, c, 28, a);
107			DT_ATMEL_GPIO(usart3, clk3, a, 29, e);
108			DT_ATMEL_GPIO(usart3, clk3, b, 8, a);
109			DT_ATMEL_GPIO(usart3, clk3, c, 14, b);
110			DT_ATMEL_GPIO(usart3, clk3, c, 31, a);
111			DT_ATMEL_GPIO(usart3, txd3, a, 31, e);
112			DT_ATMEL_GPIO(usart3, txd3, b, 10, a);
113			DT_ATMEL_GPIO(usart3, txd3, c, 10, b);
114			DT_ATMEL_GPIO(usart3, txd3, c, 29, a);
115			DT_ATMEL_GPIO(usbc, dm, a, 25, a);
116			DT_ATMEL_GPIO(usbc, dp, a, 26, a);
117		};
118	};
119};
120