1/*
2 * Copyright (c) 2022, Gerson Fernando Budke <nandojve@gmail.com>
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#include <dt-bindings/pinctrl/samv71q-pinctrl.h>
7
8&pinctrl {
9	afec0_default: afec0_default {
10		group1 {
11			pinmux = <PD30X_AFE0_AD0>,
12				 <PA19X_AFE0_AD8>;
13		};
14	};
15
16	afec1_default: afec1_default {
17		group1 {
18			pinmux = <PC13X_AFE1_AD1>,
19				 <PC31X_AFE1_AD6>;
20		};
21	};
22
23	can1_default: can1_default {
24		group1 {
25			pinmux = <PC12C_CAN1_RX>,
26				 <PC14C_CAN1_TX>;
27		};
28	};
29
30	gmac_rmii: gmac_rmii {
31		group1 {
32			pinmux = <PD0A_GMAC_GTXCK>,
33				 <PD1A_GMAC_GTXEN>,
34				 <PD2A_GMAC_GTX0>,
35				 <PD3A_GMAC_GTX1>,
36				 <PD4A_GMAC_GRXDV>,
37				 <PD5A_GMAC_GRX0>,
38				 <PD6A_GMAC_GRX1>,
39				 <PD7A_GMAC_GRXER>;
40		};
41	};
42
43	mdio_default: mdio_default {
44		group1 {
45			pinmux = <PD8A_GMAC_GMDC>,
46				 <PD9A_GMAC_GMDIO>;
47		};
48	};
49
50	pwm_default: pwm_default {
51		group1 {
52			pinmux = <PA0A_PWMC0_PWMH0>,
53				 <PC19B_PWMC0_PWMH2>,
54				 <PD26A_PWMC0_PWML2>,
55				 <PA23B_PWMC0_PWMH0>;
56		};
57	};
58
59	spi0_default: spi0_default {
60		group1 {
61			pinmux = <PD20B_SPI0_MISO>,
62				 <PD21B_SPI0_MOSI>,
63				 <PD22B_SPI0_SPCK>,
64				 <PD25B_SPI0_NPCS1>,
65				 <PD27B_SPI0_NPCS3>;
66		};
67	};
68
69	ssc_default: ssc_default {
70		group1 {
71			pinmux = <PD24B_SSC_RF>,
72				 <PA22A_SSC_RK>,
73				 <PA10C_SSC_RD>,
74				 <PB0D_SSC_TF>,
75				 <PB1D_SSC_TK>,
76				 <PB5D_SSC_TD>;
77		};
78	};
79
80	twihs0_default: twihs0_default {
81		group1 {
82			pinmux = <PA4A_TWI0_TWCK>,
83				 <PA3A_TWI0_TWD>;
84		};
85	};
86	twihs2_default: twihs2_default {
87		group1 {
88			pinmux = <PD28C_TWI2_TWCK>,
89				 <PD27C_TWI2_TWD>;
90		};
91	};
92
93	uart3_default: uart3_default {
94		group1 {
95			pinmux = <PD28A_UART3_RXD>,
96				 <PD30A_UART3_TXD>;
97		};
98	};
99	uart4_default: uart4_default {
100		group1 {
101			pinmux = <PD19C_UART4_TXD>,
102				 <PD18C_UART4_RXD>;
103		};
104	};
105	usart0_default: usart0_default {
106		group1 {
107			pinmux = <PB0C_USART0_RXD>,
108				 <PB1C_USART0_TXD>;
109		};
110	};
111	usart0_hw_ctrl_flow: usart0_hw_ctrl_flow {
112		group1 {
113			pinmux = <PB0C_USART0_RXD>,
114				 <PB3C_USART0_RTS>;
115			bias-pull-up;
116		};
117		group2 {
118			pinmux = <PB1C_USART0_TXD>,
119				 <PB2C_USART0_CTS>;
120		};
121	};
122	usart1_default: usart1_default {
123		group1 {
124			pinmux = <PA21A_USART1_RXD>,
125				 <PB4D_USART1_TXD>;
126		};
127	};
128	usart1_hw_ctrl_flow: usart1_hw_ctrl_flow {
129		group1 {
130			pinmux = <PA21A_USART1_RXD>,
131				 <PA24A_USART1_RTS>;
132			bias-pull-up;
133		};
134		group2 {
135			pinmux = <PB4D_USART1_TXD>,
136				 <PA25A_USART1_CTS>;
137		};
138	};
139	usart2_default: usart2_default {
140		group1 {
141			pinmux = <PD15B_USART2_RXD>,
142				 <PD16B_USART2_TXD>;
143		};
144	};
145	usart2_hw_ctrl_flow: usart2_hw_ctrl_flow_clk {
146		group1 {
147			pinmux = <PD15B_USART2_RXD>,
148				 <PD18B_USART2_RTS>;
149			bias-pull-up;
150		};
151		group2 {
152			pinmux = <PD16B_USART2_TXD>,
153				 <PD19B_USART2_CTS>;
154		};
155	};
156};
157