1/*
2 * Copyright (c) 2023 Nuvoton Technology Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include "pinctrl/m467hjhae-pinctrl.h"
8
9&pinctrl {
10	uart0_default: uart0_default {
11		group0 {
12			pinmux = <PB12MFP_UART0_RXD>,
13				 <PB13MFP_UART0_TXD>;
14		};
15	};
16
17	/* TX/RX/RTS/CTS/RST --> D1/D0/A2/A3/D2 --> PB3/PB2/PB8/PB9/PC9 */
18	uart1_default: uart1_default {
19		group0 {
20			pinmux = <PB9MFP_UART1_nCTS>,
21				 <PB8MFP_UART1_nRTS>,
22				 <PB2MFP_UART1_RXD>,
23				 <PB3MFP_UART1_TXD>,
24				 <PC9MFP_GPIO>;
25		};
26	};
27
28	/* CAN TX/RX --> PJ10/PJ11 */
29	canfd0_default: canfd0_default {
30		group0 {
31			pinmux = <PJ10MFP_CAN0_TXD>,
32				 <PJ11MFP_CAN0_RXD>;
33		};
34	};
35
36	/* EMAC multi-function pins for MDIO, TX, REFCLK, RX pins */
37	emac_default: emac_default {
38		group0 {
39			pinmux = <PE8MFP_EMAC0_RMII_MDC>,
40				 <PE9MFP_EMAC0_RMII_MDIO>,
41				 <PE10MFP_EMAC0_RMII_TXD0>,
42				 <PE11MFP_EMAC0_RMII_TXD1>,
43				 <PE12MFP_EMAC0_RMII_TXEN>,
44				 <PC8MFP_EMAC0_RMII_REFCLK>,
45				 <PC7MFP_EMAC0_RMII_RXD0>,
46				 <PC6MFP_EMAC0_RMII_RXD1>,
47				 <PA7MFP_EMAC0_RMII_CRSDV>,
48				 <PA6MFP_EMAC0_RMII_RXERR>,
49				 <PB6MFP_EMAC0_PPS>;
50		};
51	};
52
53	/* USBD multi-function pins for VBUS, D+, D-, and ID pins */
54	usbd_default: usbd_default {
55		group0 {
56			pinmux = <PA12MFP_USB_VBUS>,
57				 <PA13MFP_USB_D_N>,
58				 <PA14MFP_USB_D_P>,
59				 <PA15MFP_USB_OTG_ID>;
60		};
61	};
62};
63