1/*
2 * Copyright (c) 2022-2023, Gerson Fernando Budke <nandojve@gmail.com>
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#include <dt-bindings/pinctrl/sam4eXe-pinctrl.h>
7
8&pinctrl {
9	afec0_default: afec0_default {
10		group1 {
11			pinmux = <PA17X_AFEC0_AD0>,
12				 <PC13X_AFEC0_AD6>;
13		};
14	};
15	afec1_default: afec1_default {
16		group1 {
17			pinmux = <PB2X_AFEC1_AD0>,
18				 <PB3X_AFEC1_AD1>;
19		};
20	};
21
22	gmac_mii: gmac_mii {
23		group1 {
24			pinmux = <PD0A_GMAC_GTXCK>,
25				 <PD1A_GMAC_GTXEN>,
26				 <PD2A_GMAC_GTX0>,
27				 <PD3A_GMAC_GTX1>,
28				 <PD15A_GMAC_GTX2>,
29				 <PD16A_GMAC_GTX3>,
30				 <PD4A_GMAC_GRXDV>,
31				 <PD5A_GMAC_GRX0>,
32				 <PD6A_GMAC_GRX1>,
33				 <PD11A_GMAC_GRX2>,
34				 <PD12A_GMAC_GRX3>,
35				 <PD7A_GMAC_GRXER>,
36				 <PD14A_GMAC_GRXCK>,
37				 <PD13A_GMAC_GCOL>,
38				 <PD10A_GMAC_GCRS>;
39		};
40	};
41
42	mdio_default: mdio_default {
43		group1 {
44			pinmux = <PD8A_GMAC_GMDC>,
45				 <PD9A_GMAC_GMDIO>;
46		};
47	};
48
49	spi0_default: spi0_default {
50		group1 {
51			pinmux = <PA12A_SPI_MISO>,
52				 <PA13A_SPI_MOSI>,
53				 <PA14A_SPI_SPCK>,
54				 <PB14A_SPI_NPCS1>,
55				 <PD23_GPIO>,
56				 <PD30_GPIO>;
57		};
58	};
59
60	twi0_default: twi0_default {
61		group1 {
62			pinmux = <PA4A_TWI0_TWCK>,
63				 <PA3A_TWI0_TWD>;
64		};
65	};
66
67	uart0_default: uart0_default {
68		group1 {
69			pinmux = <PA9A_UART0_RXD>,
70				 <PA10A_UART0_TXD>;
71		};
72	};
73	uart1_default: uart1_default {
74		group1 {
75			pinmux = <PA5C_UART1_RXD>,
76				 <PA6C_UART1_TXD>;
77		};
78	};
79	usart1_default: usart1_default {
80		group1 {
81			pinmux = <PA21A_USART1_RXD>,
82				 <PA24A_USART1_RTS>;
83			bias-pull-up;
84		};
85		group2 {
86			pinmux = <PA22A_USART1_TXD>,
87				 <PA25A_USART1_CTS>;
88		};
89	};
90
91	pwm0_default: pwm0_default {
92		group1 {
93			pinmux = <PD20A_PWM_PWMH0>,
94				 <PD24A_PWM_PWML0>;
95		};
96	};
97
98	hsmci_default: hsmci_default {
99		group1 {
100			pinmux = <PA28C_HSMCI_MCCDA>,
101				 <PA29C_HSMCI_MCCK>,
102				 <PA30C_HSMCI_MCDA0>,
103				 <PA31C_HSMCI_MCDA1>,
104				 <PA26C_HSMCI_MCDA2>,
105				 <PA27C_HSMCI_MCDA3>;
106		};
107	};
108
109};
110