1/*
2 * Copyright (c) 2024 Nuvoton Technology Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include "pinctrl/m2l31ki-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	/* USBD multi-function pins for VBUS, D+, D-, and ID pins */
29	usbd_default: usbd_default {
30		group0 {
31			pinmux = <PA12MFP_USB_VBUS>,
32				 <PA13MFP_USB_D_N>,
33				 <PA14MFP_USB_D_P>,
34				 <PA15MFP_USB_OTG_ID>;
35		};
36	};
37};
38