18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * R8A77995 processor support - PFC hardware block.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2017 Renesas Electronics Corp.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * This file is based on the drivers/pinctrl/renesas/pfc-r8a7796.c
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * R-Car Gen3 processor support - PFC hardware block.
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * Copyright (C) 2015  Renesas Electronics Corporation
128c2ecf20Sopenharmony_ci */
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#include <linux/errno.h>
158c2ecf20Sopenharmony_ci#include <linux/kernel.h>
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#include "core.h"
188c2ecf20Sopenharmony_ci#include "sh_pfc.h"
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#define CPU_ALL_GP(fn, sfx)			\
218c2ecf20Sopenharmony_ci		PORT_GP_9(0,  fn, sfx),		\
228c2ecf20Sopenharmony_ci		PORT_GP_32(1, fn, sfx),		\
238c2ecf20Sopenharmony_ci		PORT_GP_32(2, fn, sfx),		\
248c2ecf20Sopenharmony_ci		PORT_GP_CFG_10(3,  fn, sfx, SH_PFC_PIN_CFG_IO_VOLTAGE),	\
258c2ecf20Sopenharmony_ci		PORT_GP_32(4, fn, sfx),		\
268c2ecf20Sopenharmony_ci		PORT_GP_21(5, fn, sfx),		\
278c2ecf20Sopenharmony_ci		PORT_GP_14(6, fn, sfx)
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci/*
308c2ecf20Sopenharmony_ci * F_() : just information
318c2ecf20Sopenharmony_ci * FM() : macro for FN_xxx / xxx_MARK
328c2ecf20Sopenharmony_ci */
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci/* GPSR0 */
358c2ecf20Sopenharmony_ci#define GPSR0_8		F_(MLB_SIG,		IP0_27_24)
368c2ecf20Sopenharmony_ci#define GPSR0_7		F_(MLB_DAT,		IP0_23_20)
378c2ecf20Sopenharmony_ci#define GPSR0_6		F_(MLB_CLK,		IP0_19_16)
388c2ecf20Sopenharmony_ci#define GPSR0_5		F_(MSIOF2_RXD,		IP0_15_12)
398c2ecf20Sopenharmony_ci#define GPSR0_4		F_(MSIOF2_TXD,		IP0_11_8)
408c2ecf20Sopenharmony_ci#define GPSR0_3		F_(MSIOF2_SCK,		IP0_7_4)
418c2ecf20Sopenharmony_ci#define GPSR0_2		F_(IRQ0_A,		IP0_3_0)
428c2ecf20Sopenharmony_ci#define GPSR0_1		FM(USB0_OVC)
438c2ecf20Sopenharmony_ci#define GPSR0_0		FM(USB0_PWEN)
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci/* GPSR1 */
468c2ecf20Sopenharmony_ci#define GPSR1_31	F_(QPOLB,		IP4_27_24)
478c2ecf20Sopenharmony_ci#define GPSR1_30	F_(QPOLA,		IP4_23_20)
488c2ecf20Sopenharmony_ci#define GPSR1_29	F_(DU_CDE,		IP4_19_16)
498c2ecf20Sopenharmony_ci#define GPSR1_28	F_(DU_DISP_CDE,		IP4_15_12)
508c2ecf20Sopenharmony_ci#define GPSR1_27	F_(DU_DISP,		IP4_11_8)
518c2ecf20Sopenharmony_ci#define GPSR1_26	F_(DU_VSYNC,		IP4_7_4)
528c2ecf20Sopenharmony_ci#define GPSR1_25	F_(DU_HSYNC,		IP4_3_0)
538c2ecf20Sopenharmony_ci#define GPSR1_24	F_(DU_DOTCLKOUT0,	IP3_31_28)
548c2ecf20Sopenharmony_ci#define GPSR1_23	F_(DU_DR7,		IP3_27_24)
558c2ecf20Sopenharmony_ci#define GPSR1_22	F_(DU_DR6,		IP3_23_20)
568c2ecf20Sopenharmony_ci#define GPSR1_21	F_(DU_DR5,		IP3_19_16)
578c2ecf20Sopenharmony_ci#define GPSR1_20	F_(DU_DR4,		IP3_15_12)
588c2ecf20Sopenharmony_ci#define GPSR1_19	F_(DU_DR3,		IP3_11_8)
598c2ecf20Sopenharmony_ci#define GPSR1_18	F_(DU_DR2,		IP3_7_4)
608c2ecf20Sopenharmony_ci#define GPSR1_17	F_(DU_DR1,		IP3_3_0)
618c2ecf20Sopenharmony_ci#define GPSR1_16	F_(DU_DR0,		IP2_31_28)
628c2ecf20Sopenharmony_ci#define GPSR1_15	F_(DU_DG7,		IP2_27_24)
638c2ecf20Sopenharmony_ci#define GPSR1_14	F_(DU_DG6,		IP2_23_20)
648c2ecf20Sopenharmony_ci#define GPSR1_13	F_(DU_DG5,		IP2_19_16)
658c2ecf20Sopenharmony_ci#define GPSR1_12	F_(DU_DG4,		IP2_15_12)
668c2ecf20Sopenharmony_ci#define GPSR1_11	F_(DU_DG3,		IP2_11_8)
678c2ecf20Sopenharmony_ci#define GPSR1_10	F_(DU_DG2,		IP2_7_4)
688c2ecf20Sopenharmony_ci#define GPSR1_9		F_(DU_DG1,		IP2_3_0)
698c2ecf20Sopenharmony_ci#define GPSR1_8		F_(DU_DG0,		IP1_31_28)
708c2ecf20Sopenharmony_ci#define GPSR1_7		F_(DU_DB7,		IP1_27_24)
718c2ecf20Sopenharmony_ci#define GPSR1_6		F_(DU_DB6,		IP1_23_20)
728c2ecf20Sopenharmony_ci#define GPSR1_5		F_(DU_DB5,		IP1_19_16)
738c2ecf20Sopenharmony_ci#define GPSR1_4		F_(DU_DB4,		IP1_15_12)
748c2ecf20Sopenharmony_ci#define GPSR1_3		F_(DU_DB3,		IP1_11_8)
758c2ecf20Sopenharmony_ci#define GPSR1_2		F_(DU_DB2,		IP1_7_4)
768c2ecf20Sopenharmony_ci#define GPSR1_1		F_(DU_DB1,		IP1_3_0)
778c2ecf20Sopenharmony_ci#define GPSR1_0		F_(DU_DB0,		IP0_31_28)
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci/* GPSR2 */
808c2ecf20Sopenharmony_ci#define GPSR2_31	F_(NFCE_N,		IP8_19_16)
818c2ecf20Sopenharmony_ci#define GPSR2_30	F_(NFCLE,		IP8_15_12)
828c2ecf20Sopenharmony_ci#define GPSR2_29	F_(NFALE,		IP8_11_8)
838c2ecf20Sopenharmony_ci#define GPSR2_28	F_(VI4_CLKENB,		IP8_7_4)
848c2ecf20Sopenharmony_ci#define GPSR2_27	F_(VI4_FIELD,		IP8_3_0)
858c2ecf20Sopenharmony_ci#define GPSR2_26	F_(VI4_HSYNC_N,		IP7_31_28)
868c2ecf20Sopenharmony_ci#define GPSR2_25	F_(VI4_VSYNC_N,		IP7_27_24)
878c2ecf20Sopenharmony_ci#define GPSR2_24	F_(VI4_DATA23,		IP7_23_20)
888c2ecf20Sopenharmony_ci#define GPSR2_23	F_(VI4_DATA22,		IP7_19_16)
898c2ecf20Sopenharmony_ci#define GPSR2_22	F_(VI4_DATA21,		IP7_15_12)
908c2ecf20Sopenharmony_ci#define GPSR2_21	F_(VI4_DATA20,		IP7_11_8)
918c2ecf20Sopenharmony_ci#define GPSR2_20	F_(VI4_DATA19,		IP7_7_4)
928c2ecf20Sopenharmony_ci#define GPSR2_19	F_(VI4_DATA18,		IP7_3_0)
938c2ecf20Sopenharmony_ci#define GPSR2_18	F_(VI4_DATA17,		IP6_31_28)
948c2ecf20Sopenharmony_ci#define GPSR2_17	F_(VI4_DATA16,		IP6_27_24)
958c2ecf20Sopenharmony_ci#define GPSR2_16	F_(VI4_DATA15,		IP6_23_20)
968c2ecf20Sopenharmony_ci#define GPSR2_15	F_(VI4_DATA14,		IP6_19_16)
978c2ecf20Sopenharmony_ci#define GPSR2_14	F_(VI4_DATA13,		IP6_15_12)
988c2ecf20Sopenharmony_ci#define GPSR2_13	F_(VI4_DATA12,		IP6_11_8)
998c2ecf20Sopenharmony_ci#define GPSR2_12	F_(VI4_DATA11,		IP6_7_4)
1008c2ecf20Sopenharmony_ci#define GPSR2_11	F_(VI4_DATA10,		IP6_3_0)
1018c2ecf20Sopenharmony_ci#define GPSR2_10	F_(VI4_DATA9,		IP5_31_28)
1028c2ecf20Sopenharmony_ci#define GPSR2_9		F_(VI4_DATA8,		IP5_27_24)
1038c2ecf20Sopenharmony_ci#define GPSR2_8		F_(VI4_DATA7,		IP5_23_20)
1048c2ecf20Sopenharmony_ci#define GPSR2_7		F_(VI4_DATA6,		IP5_19_16)
1058c2ecf20Sopenharmony_ci#define GPSR2_6		F_(VI4_DATA5,		IP5_15_12)
1068c2ecf20Sopenharmony_ci#define GPSR2_5		FM(VI4_DATA4)
1078c2ecf20Sopenharmony_ci#define GPSR2_4		F_(VI4_DATA3,		IP5_11_8)
1088c2ecf20Sopenharmony_ci#define GPSR2_3		F_(VI4_DATA2,		IP5_7_4)
1098c2ecf20Sopenharmony_ci#define GPSR2_2		F_(VI4_DATA1,		IP5_3_0)
1108c2ecf20Sopenharmony_ci#define GPSR2_1		F_(VI4_DATA0,		IP4_31_28)
1118c2ecf20Sopenharmony_ci#define GPSR2_0		FM(VI4_CLK)
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci/* GPSR3 */
1148c2ecf20Sopenharmony_ci#define GPSR3_9		F_(NFDATA7,		IP9_31_28)
1158c2ecf20Sopenharmony_ci#define GPSR3_8		F_(NFDATA6,		IP9_27_24)
1168c2ecf20Sopenharmony_ci#define GPSR3_7		F_(NFDATA5,		IP9_23_20)
1178c2ecf20Sopenharmony_ci#define GPSR3_6		F_(NFDATA4,		IP9_19_16)
1188c2ecf20Sopenharmony_ci#define GPSR3_5		F_(NFDATA3,		IP9_15_12)
1198c2ecf20Sopenharmony_ci#define GPSR3_4		F_(NFDATA2,		IP9_11_8)
1208c2ecf20Sopenharmony_ci#define GPSR3_3		F_(NFDATA1,		IP9_7_4)
1218c2ecf20Sopenharmony_ci#define GPSR3_2		F_(NFDATA0,		IP9_3_0)
1228c2ecf20Sopenharmony_ci#define GPSR3_1		F_(NFWE_N,		IP8_31_28)
1238c2ecf20Sopenharmony_ci#define GPSR3_0		F_(NFRE_N,		IP8_27_24)
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_ci/* GPSR4 */
1268c2ecf20Sopenharmony_ci#define GPSR4_31	F_(CAN0_RX_A,		IP12_27_24)
1278c2ecf20Sopenharmony_ci#define GPSR4_30	F_(CAN1_TX_A,		IP13_7_4)
1288c2ecf20Sopenharmony_ci#define GPSR4_29	F_(CAN1_RX_A,		IP13_3_0)
1298c2ecf20Sopenharmony_ci#define GPSR4_28	F_(CAN0_TX_A,		IP12_31_28)
1308c2ecf20Sopenharmony_ci#define GPSR4_27	FM(TX2)
1318c2ecf20Sopenharmony_ci#define GPSR4_26	FM(RX2)
1328c2ecf20Sopenharmony_ci#define GPSR4_25	F_(SCK2,		IP12_11_8)
1338c2ecf20Sopenharmony_ci#define GPSR4_24	F_(TX1_A,		IP12_7_4)
1348c2ecf20Sopenharmony_ci#define GPSR4_23	F_(RX1_A,		IP12_3_0)
1358c2ecf20Sopenharmony_ci#define GPSR4_22	F_(SCK1_A,		IP11_31_28)
1368c2ecf20Sopenharmony_ci#define GPSR4_21	F_(TX0_A,		IP11_27_24)
1378c2ecf20Sopenharmony_ci#define GPSR4_20	F_(RX0_A,		IP11_23_20)
1388c2ecf20Sopenharmony_ci#define GPSR4_19	F_(SCK0_A,		IP11_19_16)
1398c2ecf20Sopenharmony_ci#define GPSR4_18	F_(MSIOF1_RXD,		IP11_15_12)
1408c2ecf20Sopenharmony_ci#define GPSR4_17	F_(MSIOF1_TXD,		IP11_11_8)
1418c2ecf20Sopenharmony_ci#define GPSR4_16	F_(MSIOF1_SCK,		IP11_7_4)
1428c2ecf20Sopenharmony_ci#define GPSR4_15	FM(MSIOF0_RXD)
1438c2ecf20Sopenharmony_ci#define GPSR4_14	FM(MSIOF0_TXD)
1448c2ecf20Sopenharmony_ci#define GPSR4_13	FM(MSIOF0_SYNC)
1458c2ecf20Sopenharmony_ci#define GPSR4_12	FM(MSIOF0_SCK)
1468c2ecf20Sopenharmony_ci#define GPSR4_11	F_(SDA1,		IP11_3_0)
1478c2ecf20Sopenharmony_ci#define GPSR4_10	F_(SCL1,		IP10_31_28)
1488c2ecf20Sopenharmony_ci#define GPSR4_9		FM(SDA0)
1498c2ecf20Sopenharmony_ci#define GPSR4_8		FM(SCL0)
1508c2ecf20Sopenharmony_ci#define GPSR4_7		F_(SSI_WS4_A,		IP10_27_24)
1518c2ecf20Sopenharmony_ci#define GPSR4_6		F_(SSI_SDATA4_A,	IP10_23_20)
1528c2ecf20Sopenharmony_ci#define GPSR4_5		F_(SSI_SCK4_A,		IP10_19_16)
1538c2ecf20Sopenharmony_ci#define GPSR4_4		F_(SSI_WS34,		IP10_15_12)
1548c2ecf20Sopenharmony_ci#define GPSR4_3		F_(SSI_SDATA3,		IP10_11_8)
1558c2ecf20Sopenharmony_ci#define GPSR4_2		F_(SSI_SCK34,		IP10_7_4)
1568c2ecf20Sopenharmony_ci#define GPSR4_1		F_(AUDIO_CLKA,		IP10_3_0)
1578c2ecf20Sopenharmony_ci#define GPSR4_0		F_(NFRB_N,		IP8_23_20)
1588c2ecf20Sopenharmony_ci
1598c2ecf20Sopenharmony_ci/* GPSR5 */
1608c2ecf20Sopenharmony_ci#define GPSR5_20	FM(AVB0_LINK)
1618c2ecf20Sopenharmony_ci#define GPSR5_19	FM(AVB0_PHY_INT)
1628c2ecf20Sopenharmony_ci#define GPSR5_18	FM(AVB0_MAGIC)
1638c2ecf20Sopenharmony_ci#define GPSR5_17	FM(AVB0_MDC)
1648c2ecf20Sopenharmony_ci#define GPSR5_16	FM(AVB0_MDIO)
1658c2ecf20Sopenharmony_ci#define GPSR5_15	FM(AVB0_TXCREFCLK)
1668c2ecf20Sopenharmony_ci#define GPSR5_14	FM(AVB0_TD3)
1678c2ecf20Sopenharmony_ci#define GPSR5_13	FM(AVB0_TD2)
1688c2ecf20Sopenharmony_ci#define GPSR5_12	FM(AVB0_TD1)
1698c2ecf20Sopenharmony_ci#define GPSR5_11	FM(AVB0_TD0)
1708c2ecf20Sopenharmony_ci#define GPSR5_10	FM(AVB0_TXC)
1718c2ecf20Sopenharmony_ci#define GPSR5_9		FM(AVB0_TX_CTL)
1728c2ecf20Sopenharmony_ci#define GPSR5_8		FM(AVB0_RD3)
1738c2ecf20Sopenharmony_ci#define GPSR5_7		FM(AVB0_RD2)
1748c2ecf20Sopenharmony_ci#define GPSR5_6		FM(AVB0_RD1)
1758c2ecf20Sopenharmony_ci#define GPSR5_5		FM(AVB0_RD0)
1768c2ecf20Sopenharmony_ci#define GPSR5_4		FM(AVB0_RXC)
1778c2ecf20Sopenharmony_ci#define GPSR5_3		FM(AVB0_RX_CTL)
1788c2ecf20Sopenharmony_ci#define GPSR5_2		F_(CAN_CLK,		IP12_23_20)
1798c2ecf20Sopenharmony_ci#define GPSR5_1		F_(TPU0TO1_A,		IP12_19_16)
1808c2ecf20Sopenharmony_ci#define GPSR5_0		F_(TPU0TO0_A,		IP12_15_12)
1818c2ecf20Sopenharmony_ci
1828c2ecf20Sopenharmony_ci/* GPSR6 */
1838c2ecf20Sopenharmony_ci#define GPSR6_13	FM(RPC_INT_N)
1848c2ecf20Sopenharmony_ci#define GPSR6_12	FM(RPC_RESET_N)
1858c2ecf20Sopenharmony_ci#define GPSR6_11	FM(QSPI1_SSL)
1868c2ecf20Sopenharmony_ci#define GPSR6_10	FM(QSPI1_IO3)
1878c2ecf20Sopenharmony_ci#define GPSR6_9		FM(QSPI1_IO2)
1888c2ecf20Sopenharmony_ci#define GPSR6_8		FM(QSPI1_MISO_IO1)
1898c2ecf20Sopenharmony_ci#define GPSR6_7		FM(QSPI1_MOSI_IO0)
1908c2ecf20Sopenharmony_ci#define GPSR6_6		FM(QSPI1_SPCLK)
1918c2ecf20Sopenharmony_ci#define GPSR6_5		FM(QSPI0_SSL)
1928c2ecf20Sopenharmony_ci#define GPSR6_4		FM(QSPI0_IO3)
1938c2ecf20Sopenharmony_ci#define GPSR6_3		FM(QSPI0_IO2)
1948c2ecf20Sopenharmony_ci#define GPSR6_2		FM(QSPI0_MISO_IO1)
1958c2ecf20Sopenharmony_ci#define GPSR6_1		FM(QSPI0_MOSI_IO0)
1968c2ecf20Sopenharmony_ci#define GPSR6_0		FM(QSPI0_SPCLK)
1978c2ecf20Sopenharmony_ci
1988c2ecf20Sopenharmony_ci/* IPSRx */		/* 0 */			/* 1 */			/* 2 */			/* 3 */		/* 4 */			/* 5 */		/* 6  - F */
1998c2ecf20Sopenharmony_ci#define IP0_3_0		FM(IRQ0_A)		FM(MSIOF2_SYNC_B)	F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2008c2ecf20Sopenharmony_ci#define IP0_7_4		FM(MSIOF2_SCK)		F_(0, 0)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2018c2ecf20Sopenharmony_ci#define IP0_11_8	FM(MSIOF2_TXD)		FM(SCL3_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2028c2ecf20Sopenharmony_ci#define IP0_15_12	FM(MSIOF2_RXD)		FM(SDA3_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2038c2ecf20Sopenharmony_ci#define IP0_19_16	FM(MLB_CLK)		FM(MSIOF2_SYNC_A)	FM(SCK5_A)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2048c2ecf20Sopenharmony_ci#define IP0_23_20	FM(MLB_DAT)		FM(MSIOF2_SS1)		FM(RX5_A)		FM(SCL3_B)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2058c2ecf20Sopenharmony_ci#define IP0_27_24	FM(MLB_SIG)		FM(MSIOF2_SS2)		FM(TX5_A)		FM(SDA3_B)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2068c2ecf20Sopenharmony_ci#define IP0_31_28	FM(DU_DB0)		FM(LCDOUT0)		FM(MSIOF3_TXD_B)	F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2078c2ecf20Sopenharmony_ci#define IP1_3_0		FM(DU_DB1)		FM(LCDOUT1)		FM(MSIOF3_RXD_B)	F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2088c2ecf20Sopenharmony_ci#define IP1_7_4		FM(DU_DB2)		FM(LCDOUT2)		FM(IRQ0_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2098c2ecf20Sopenharmony_ci#define IP1_11_8	FM(DU_DB3)		FM(LCDOUT3)		FM(SCK5_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2108c2ecf20Sopenharmony_ci#define IP1_15_12	FM(DU_DB4)		FM(LCDOUT4)		FM(RX5_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2118c2ecf20Sopenharmony_ci#define IP1_19_16	FM(DU_DB5)		FM(LCDOUT5)		FM(TX5_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2128c2ecf20Sopenharmony_ci#define IP1_23_20	FM(DU_DB6)		FM(LCDOUT6)		FM(MSIOF3_SS1_B)	F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2138c2ecf20Sopenharmony_ci#define IP1_27_24	FM(DU_DB7)		FM(LCDOUT7)		FM(MSIOF3_SS2_B)	F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2148c2ecf20Sopenharmony_ci#define IP1_31_28	FM(DU_DG0)		FM(LCDOUT8)		FM(MSIOF3_SCK_B)	F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2158c2ecf20Sopenharmony_ci#define IP2_3_0		FM(DU_DG1)		FM(LCDOUT9)		FM(MSIOF3_SYNC_B)	F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2168c2ecf20Sopenharmony_ci#define IP2_7_4		FM(DU_DG2)		FM(LCDOUT10)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2178c2ecf20Sopenharmony_ci#define IP2_11_8	FM(DU_DG3)		FM(LCDOUT11)		FM(IRQ1_A)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2188c2ecf20Sopenharmony_ci#define IP2_15_12	FM(DU_DG4)		FM(LCDOUT12)		FM(HSCK3_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2198c2ecf20Sopenharmony_ci#define IP2_19_16	FM(DU_DG5)		FM(LCDOUT13)		FM(HTX3_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2208c2ecf20Sopenharmony_ci#define IP2_23_20	FM(DU_DG6)		FM(LCDOUT14)		FM(HRX3_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2218c2ecf20Sopenharmony_ci#define IP2_27_24	FM(DU_DG7)		FM(LCDOUT15)		FM(SCK4_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2228c2ecf20Sopenharmony_ci#define IP2_31_28	FM(DU_DR0)		FM(LCDOUT16)		FM(RX4_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2238c2ecf20Sopenharmony_ci#define IP3_3_0		FM(DU_DR1)		FM(LCDOUT17)		FM(TX4_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2248c2ecf20Sopenharmony_ci#define IP3_7_4		FM(DU_DR2)		FM(LCDOUT18)		FM(PWM0_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2258c2ecf20Sopenharmony_ci#define IP3_11_8	FM(DU_DR3)		FM(LCDOUT19)		FM(PWM1_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2268c2ecf20Sopenharmony_ci#define IP3_15_12	FM(DU_DR4)		FM(LCDOUT20)		FM(TCLK2_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2278c2ecf20Sopenharmony_ci#define IP3_19_16	FM(DU_DR5)		FM(LCDOUT21)		FM(NMI)			F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2288c2ecf20Sopenharmony_ci#define IP3_23_20	FM(DU_DR6)		FM(LCDOUT22)		FM(PWM2_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2298c2ecf20Sopenharmony_ci#define IP3_27_24	FM(DU_DR7)		FM(LCDOUT23)		FM(TCLK1_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2308c2ecf20Sopenharmony_ci#define IP3_31_28	FM(DU_DOTCLKOUT0)	FM(QCLK)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2318c2ecf20Sopenharmony_ci
2328c2ecf20Sopenharmony_ci/* IPSRx */		/* 0 */			/* 1 */			/* 2 */			/* 3 */		/* 4 */			/* 5 */		/* 6  - F */
2338c2ecf20Sopenharmony_ci#define IP4_3_0		FM(DU_HSYNC)		FM(QSTH_QHS)		FM(IRQ3_A)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2348c2ecf20Sopenharmony_ci#define IP4_7_4		FM(DU_VSYNC)		FM(QSTVA_QVS)		FM(IRQ4_A)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2358c2ecf20Sopenharmony_ci#define IP4_11_8	FM(DU_DISP)		FM(QSTVB_QVE)		FM(PWM3_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2368c2ecf20Sopenharmony_ci#define IP4_15_12	FM(DU_DISP_CDE)		FM(QCPV_QDE)		FM(IRQ2_B)		FM(DU_DOTCLKIN1)F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2378c2ecf20Sopenharmony_ci#define IP4_19_16	FM(DU_CDE)		FM(QSTB_QHE)		FM(SCK3_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2388c2ecf20Sopenharmony_ci#define IP4_23_20	FM(QPOLA)		F_(0, 0)		FM(RX3_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2398c2ecf20Sopenharmony_ci#define IP4_27_24	FM(QPOLB)		F_(0, 0)		FM(TX3_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2408c2ecf20Sopenharmony_ci#define IP4_31_28	FM(VI4_DATA0)		FM(PWM0_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2418c2ecf20Sopenharmony_ci#define IP5_3_0		FM(VI4_DATA1)		FM(PWM1_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2428c2ecf20Sopenharmony_ci#define IP5_7_4		FM(VI4_DATA2)		FM(PWM2_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2438c2ecf20Sopenharmony_ci#define IP5_11_8	FM(VI4_DATA3)		FM(PWM3_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2448c2ecf20Sopenharmony_ci#define IP5_15_12	FM(VI4_DATA5)		FM(SCK4_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2458c2ecf20Sopenharmony_ci#define IP5_19_16	FM(VI4_DATA6)		FM(IRQ2_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2468c2ecf20Sopenharmony_ci#define IP5_23_20	FM(VI4_DATA7)		FM(TCLK2_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2478c2ecf20Sopenharmony_ci#define IP5_27_24	FM(VI4_DATA8)		F_(0, 0)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2488c2ecf20Sopenharmony_ci#define IP5_31_28	FM(VI4_DATA9)		FM(MSIOF3_SS2_A)	FM(IRQ1_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2498c2ecf20Sopenharmony_ci#define IP6_3_0		FM(VI4_DATA10)		FM(RX4_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2508c2ecf20Sopenharmony_ci#define IP6_7_4		FM(VI4_DATA11)		FM(TX4_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2518c2ecf20Sopenharmony_ci#define IP6_11_8	FM(VI4_DATA12)		FM(TCLK1_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2528c2ecf20Sopenharmony_ci#define IP6_15_12	FM(VI4_DATA13)		FM(MSIOF3_SS1_A)	FM(HCTS3_N)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2538c2ecf20Sopenharmony_ci#define IP6_19_16	FM(VI4_DATA14)		FM(SSI_SCK4_B)		FM(HRTS3_N)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2548c2ecf20Sopenharmony_ci#define IP6_23_20	FM(VI4_DATA15)		FM(SSI_SDATA4_B)	F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2558c2ecf20Sopenharmony_ci#define IP6_27_24	FM(VI4_DATA16)		FM(HRX3_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2568c2ecf20Sopenharmony_ci#define IP6_31_28	FM(VI4_DATA17)		FM(HTX3_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2578c2ecf20Sopenharmony_ci#define IP7_3_0		FM(VI4_DATA18)		FM(HSCK3_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2588c2ecf20Sopenharmony_ci#define IP7_7_4		FM(VI4_DATA19)		FM(SSI_WS4_B)		F_(0, 0)		F_(0, 0)	FM(NFDATA15)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2598c2ecf20Sopenharmony_ci#define IP7_11_8	FM(VI4_DATA20)		FM(MSIOF3_SYNC_A)	F_(0, 0)		F_(0, 0)	FM(NFDATA14)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2608c2ecf20Sopenharmony_ci#define IP7_15_12	FM(VI4_DATA21)		FM(MSIOF3_TXD_A)	F_(0, 0)		F_(0, 0)	FM(NFDATA13)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2618c2ecf20Sopenharmony_ci#define IP7_19_16	FM(VI4_DATA22)		FM(MSIOF3_RXD_A)	F_(0, 0)		F_(0, 0)	FM(NFDATA12)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2628c2ecf20Sopenharmony_ci#define IP7_23_20	FM(VI4_DATA23)		FM(MSIOF3_SCK_A)	F_(0, 0)		F_(0, 0)	FM(NFDATA11)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2638c2ecf20Sopenharmony_ci#define IP7_27_24	FM(VI4_VSYNC_N)		FM(SCK1_B)		F_(0, 0)		F_(0, 0)	FM(NFDATA10)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2648c2ecf20Sopenharmony_ci#define IP7_31_28	FM(VI4_HSYNC_N)		FM(RX1_B)		F_(0, 0)		F_(0, 0)	FM(NFDATA9)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2658c2ecf20Sopenharmony_ci
2668c2ecf20Sopenharmony_ci/* IPSRx */		/* 0 */			/* 1 */			/* 2 */			/* 3 */		/* 4 */			/* 5 */		/* 6  - F */
2678c2ecf20Sopenharmony_ci#define IP8_3_0		FM(VI4_FIELD)		FM(AUDIO_CLKB)		FM(IRQ5_A)		FM(SCIF_CLK)	FM(NFDATA8)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2688c2ecf20Sopenharmony_ci#define IP8_7_4		FM(VI4_CLKENB)		FM(TX1_B)		F_(0, 0)		F_(0, 0)	FM(NFWP_N)		FM(DVC_MUTE_A)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2698c2ecf20Sopenharmony_ci#define IP8_11_8	FM(NFALE)		FM(SCL2_B)		FM(IRQ3_B)		FM(PWM0_C)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2708c2ecf20Sopenharmony_ci#define IP8_15_12	FM(NFCLE)		FM(SDA2_B)		FM(SCK3_A)		FM(PWM1_C)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2718c2ecf20Sopenharmony_ci#define IP8_19_16	FM(NFCE_N)		F_(0, 0)		FM(RX3_A)		FM(PWM2_C)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2728c2ecf20Sopenharmony_ci#define IP8_23_20	FM(NFRB_N)		F_(0, 0)		FM(TX3_A)		FM(PWM3_C)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2738c2ecf20Sopenharmony_ci#define IP8_27_24	FM(NFRE_N)		FM(MMC_CMD)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2748c2ecf20Sopenharmony_ci#define IP8_31_28	FM(NFWE_N)		FM(MMC_CLK)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2758c2ecf20Sopenharmony_ci#define IP9_3_0		FM(NFDATA0)		FM(MMC_D0)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2768c2ecf20Sopenharmony_ci#define IP9_7_4		FM(NFDATA1)		FM(MMC_D1)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2778c2ecf20Sopenharmony_ci#define IP9_11_8	FM(NFDATA2)		FM(MMC_D2)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2788c2ecf20Sopenharmony_ci#define IP9_15_12	FM(NFDATA3)		FM(MMC_D3)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2798c2ecf20Sopenharmony_ci#define IP9_19_16	FM(NFDATA4)		FM(MMC_D4)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2808c2ecf20Sopenharmony_ci#define IP9_23_20	FM(NFDATA5)		FM(MMC_D5)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2818c2ecf20Sopenharmony_ci#define IP9_27_24	FM(NFDATA6)		FM(MMC_D6)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2828c2ecf20Sopenharmony_ci#define IP9_31_28	FM(NFDATA7)		FM(MMC_D7)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2838c2ecf20Sopenharmony_ci#define IP10_3_0	FM(AUDIO_CLKA)		F_(0, 0)		F_(0, 0)		F_(0, 0)	F_(0, 0)		FM(DVC_MUTE_B)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2848c2ecf20Sopenharmony_ci#define IP10_7_4	FM(SSI_SCK34)		FM(FSO_CFE_0_N_A)	F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2858c2ecf20Sopenharmony_ci#define IP10_11_8	FM(SSI_SDATA3)		FM(FSO_CFE_1_N_A)	F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2868c2ecf20Sopenharmony_ci#define IP10_15_12	FM(SSI_WS34)		FM(FSO_TOE_N_A)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2878c2ecf20Sopenharmony_ci#define IP10_19_16	FM(SSI_SCK4_A)		FM(HSCK0)		FM(AUDIO_CLKOUT)	FM(CAN0_RX_B)	FM(IRQ4_B)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2888c2ecf20Sopenharmony_ci#define IP10_23_20	FM(SSI_SDATA4_A)	FM(HTX0)		FM(SCL2_A)		FM(CAN1_RX_B)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2898c2ecf20Sopenharmony_ci#define IP10_27_24	FM(SSI_WS4_A)		FM(HRX0)		FM(SDA2_A)		FM(CAN1_TX_B)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2908c2ecf20Sopenharmony_ci#define IP10_31_28	FM(SCL1)		FM(CTS1_N)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2918c2ecf20Sopenharmony_ci#define IP11_3_0	FM(SDA1)		FM(RTS1_N)		F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2928c2ecf20Sopenharmony_ci#define IP11_7_4	FM(MSIOF1_SCK)		FM(AVB0_AVTP_PPS_B)	F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2938c2ecf20Sopenharmony_ci#define IP11_11_8	FM(MSIOF1_TXD)		FM(AVB0_AVTP_CAPTURE_B)	F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2948c2ecf20Sopenharmony_ci#define IP11_15_12	FM(MSIOF1_RXD)		FM(AVB0_AVTP_MATCH_B)	F_(0, 0)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2958c2ecf20Sopenharmony_ci#define IP11_19_16	FM(SCK0_A)		FM(MSIOF1_SYNC)		FM(FSO_CFE_0_N_B)	F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2968c2ecf20Sopenharmony_ci#define IP11_23_20	FM(RX0_A)		FM(MSIOF0_SS1)		FM(FSO_CFE_1_N_B)	F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2978c2ecf20Sopenharmony_ci#define IP11_27_24	FM(TX0_A)		FM(MSIOF0_SS2)		FM(FSO_TOE_N_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2988c2ecf20Sopenharmony_ci#define IP11_31_28	FM(SCK1_A)		FM(MSIOF1_SS2)		FM(TPU0TO2_B)		FM(CAN0_TX_B)	FM(AUDIO_CLKOUT1)	F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
2998c2ecf20Sopenharmony_ci
3008c2ecf20Sopenharmony_ci/* IPSRx */		/* 0 */			/* 1 */			/* 2 */			/* 3 */		/* 4 */			/* 5 */		/* 6  - F */
3018c2ecf20Sopenharmony_ci#define IP12_3_0	FM(RX1_A)		FM(CTS0_N)		FM(TPU0TO0_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
3028c2ecf20Sopenharmony_ci#define IP12_7_4	FM(TX1_A)		FM(RTS0_N)		FM(TPU0TO1_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
3038c2ecf20Sopenharmony_ci#define IP12_11_8	FM(SCK2)		FM(MSIOF1_SS1)		FM(TPU0TO3_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
3048c2ecf20Sopenharmony_ci#define IP12_15_12	FM(TPU0TO0_A)		FM(AVB0_AVTP_CAPTURE_A)	FM(HCTS0_N)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
3058c2ecf20Sopenharmony_ci#define IP12_19_16	FM(TPU0TO1_A)		FM(AVB0_AVTP_MATCH_A)	FM(HRTS0_N)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
3068c2ecf20Sopenharmony_ci#define IP12_23_20	FM(CAN_CLK)		FM(AVB0_AVTP_PPS_A)	FM(SCK0_B)		FM(IRQ5_B)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
3078c2ecf20Sopenharmony_ci#define IP12_27_24	FM(CAN0_RX_A)		FM(CANFD0_RX)		FM(RX0_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
3088c2ecf20Sopenharmony_ci#define IP12_31_28	FM(CAN0_TX_A)		FM(CANFD0_TX)		FM(TX0_B)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
3098c2ecf20Sopenharmony_ci#define IP13_3_0	FM(CAN1_RX_A)		FM(CANFD1_RX)		FM(TPU0TO2_A)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
3108c2ecf20Sopenharmony_ci#define IP13_7_4	FM(CAN1_TX_A)		FM(CANFD1_TX)		FM(TPU0TO3_A)		F_(0, 0)	F_(0, 0)		F_(0, 0)	F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
3118c2ecf20Sopenharmony_ci
3128c2ecf20Sopenharmony_ci#define PINMUX_GPSR	\
3138c2ecf20Sopenharmony_ci\
3148c2ecf20Sopenharmony_ci		GPSR1_31	GPSR2_31			GPSR4_31		 \
3158c2ecf20Sopenharmony_ci		GPSR1_30	GPSR2_30			GPSR4_30		 \
3168c2ecf20Sopenharmony_ci		GPSR1_29	GPSR2_29			GPSR4_29		 \
3178c2ecf20Sopenharmony_ci		GPSR1_28	GPSR2_28			GPSR4_28		 \
3188c2ecf20Sopenharmony_ci		GPSR1_27	GPSR2_27			GPSR4_27		 \
3198c2ecf20Sopenharmony_ci		GPSR1_26	GPSR2_26			GPSR4_26		 \
3208c2ecf20Sopenharmony_ci		GPSR1_25	GPSR2_25			GPSR4_25		 \
3218c2ecf20Sopenharmony_ci		GPSR1_24	GPSR2_24			GPSR4_24		 \
3228c2ecf20Sopenharmony_ci		GPSR1_23	GPSR2_23			GPSR4_23		 \
3238c2ecf20Sopenharmony_ci		GPSR1_22	GPSR2_22			GPSR4_22		 \
3248c2ecf20Sopenharmony_ci		GPSR1_21	GPSR2_21			GPSR4_21		 \
3258c2ecf20Sopenharmony_ci		GPSR1_20	GPSR2_20			GPSR4_20	GPSR5_20 \
3268c2ecf20Sopenharmony_ci		GPSR1_19	GPSR2_19			GPSR4_19	GPSR5_19 \
3278c2ecf20Sopenharmony_ci		GPSR1_18	GPSR2_18			GPSR4_18	GPSR5_18 \
3288c2ecf20Sopenharmony_ci		GPSR1_17	GPSR2_17			GPSR4_17	GPSR5_17 \
3298c2ecf20Sopenharmony_ci		GPSR1_16	GPSR2_16			GPSR4_16	GPSR5_16 \
3308c2ecf20Sopenharmony_ci		GPSR1_15	GPSR2_15			GPSR4_15	GPSR5_15 \
3318c2ecf20Sopenharmony_ci		GPSR1_14	GPSR2_14			GPSR4_14	GPSR5_14 \
3328c2ecf20Sopenharmony_ci		GPSR1_13	GPSR2_13			GPSR4_13	GPSR5_13	GPSR6_13 \
3338c2ecf20Sopenharmony_ci		GPSR1_12	GPSR2_12			GPSR4_12	GPSR5_12	GPSR6_12 \
3348c2ecf20Sopenharmony_ci		GPSR1_11	GPSR2_11			GPSR4_11	GPSR5_11	GPSR6_11 \
3358c2ecf20Sopenharmony_ci		GPSR1_10	GPSR2_10			GPSR4_10	GPSR5_10	GPSR6_10 \
3368c2ecf20Sopenharmony_ci		GPSR1_9		GPSR2_9		GPSR3_9		GPSR4_9		GPSR5_9		GPSR6_9 \
3378c2ecf20Sopenharmony_ciGPSR0_8		GPSR1_8		GPSR2_8		GPSR3_8		GPSR4_8		GPSR5_8		GPSR6_8 \
3388c2ecf20Sopenharmony_ciGPSR0_7		GPSR1_7		GPSR2_7		GPSR3_7		GPSR4_7		GPSR5_7		GPSR6_7 \
3398c2ecf20Sopenharmony_ciGPSR0_6		GPSR1_6		GPSR2_6		GPSR3_6		GPSR4_6		GPSR5_6		GPSR6_6 \
3408c2ecf20Sopenharmony_ciGPSR0_5		GPSR1_5		GPSR2_5		GPSR3_5		GPSR4_5		GPSR5_5		GPSR6_5 \
3418c2ecf20Sopenharmony_ciGPSR0_4		GPSR1_4		GPSR2_4		GPSR3_4		GPSR4_4		GPSR5_4		GPSR6_4 \
3428c2ecf20Sopenharmony_ciGPSR0_3		GPSR1_3		GPSR2_3		GPSR3_3		GPSR4_3		GPSR5_3		GPSR6_3 \
3438c2ecf20Sopenharmony_ciGPSR0_2		GPSR1_2		GPSR2_2		GPSR3_2		GPSR4_2		GPSR5_2		GPSR6_2 \
3448c2ecf20Sopenharmony_ciGPSR0_1		GPSR1_1		GPSR2_1		GPSR3_1		GPSR4_1		GPSR5_1		GPSR6_1 \
3458c2ecf20Sopenharmony_ciGPSR0_0		GPSR1_0		GPSR2_0		GPSR3_0		GPSR4_0		GPSR5_0		GPSR6_0
3468c2ecf20Sopenharmony_ci
3478c2ecf20Sopenharmony_ci#define PINMUX_IPSR				\
3488c2ecf20Sopenharmony_ci\
3498c2ecf20Sopenharmony_ciFM(IP0_3_0)	IP0_3_0		FM(IP1_3_0)	IP1_3_0		FM(IP2_3_0)	IP2_3_0		FM(IP3_3_0)	IP3_3_0 \
3508c2ecf20Sopenharmony_ciFM(IP0_7_4)	IP0_7_4		FM(IP1_7_4)	IP1_7_4		FM(IP2_7_4)	IP2_7_4		FM(IP3_7_4)	IP3_7_4 \
3518c2ecf20Sopenharmony_ciFM(IP0_11_8)	IP0_11_8	FM(IP1_11_8)	IP1_11_8	FM(IP2_11_8)	IP2_11_8	FM(IP3_11_8)	IP3_11_8 \
3528c2ecf20Sopenharmony_ciFM(IP0_15_12)	IP0_15_12	FM(IP1_15_12)	IP1_15_12	FM(IP2_15_12)	IP2_15_12	FM(IP3_15_12)	IP3_15_12 \
3538c2ecf20Sopenharmony_ciFM(IP0_19_16)	IP0_19_16	FM(IP1_19_16)	IP1_19_16	FM(IP2_19_16)	IP2_19_16	FM(IP3_19_16)	IP3_19_16 \
3548c2ecf20Sopenharmony_ciFM(IP0_23_20)	IP0_23_20	FM(IP1_23_20)	IP1_23_20	FM(IP2_23_20)	IP2_23_20	FM(IP3_23_20)	IP3_23_20 \
3558c2ecf20Sopenharmony_ciFM(IP0_27_24)	IP0_27_24	FM(IP1_27_24)	IP1_27_24	FM(IP2_27_24)	IP2_27_24	FM(IP3_27_24)	IP3_27_24 \
3568c2ecf20Sopenharmony_ciFM(IP0_31_28)	IP0_31_28	FM(IP1_31_28)	IP1_31_28	FM(IP2_31_28)	IP2_31_28	FM(IP3_31_28)	IP3_31_28 \
3578c2ecf20Sopenharmony_ci\
3588c2ecf20Sopenharmony_ciFM(IP4_3_0)	IP4_3_0		FM(IP5_3_0)	IP5_3_0		FM(IP6_3_0)	IP6_3_0		FM(IP7_3_0)	IP7_3_0 \
3598c2ecf20Sopenharmony_ciFM(IP4_7_4)	IP4_7_4		FM(IP5_7_4)	IP5_7_4		FM(IP6_7_4)	IP6_7_4		FM(IP7_7_4)	IP7_7_4 \
3608c2ecf20Sopenharmony_ciFM(IP4_11_8)	IP4_11_8	FM(IP5_11_8)	IP5_11_8	FM(IP6_11_8)	IP6_11_8	FM(IP7_11_8)	IP7_11_8 \
3618c2ecf20Sopenharmony_ciFM(IP4_15_12)	IP4_15_12	FM(IP5_15_12)	IP5_15_12	FM(IP6_15_12)	IP6_15_12	FM(IP7_15_12)	IP7_15_12 \
3628c2ecf20Sopenharmony_ciFM(IP4_19_16)	IP4_19_16	FM(IP5_19_16)	IP5_19_16	FM(IP6_19_16)	IP6_19_16	FM(IP7_19_16)	IP7_19_16 \
3638c2ecf20Sopenharmony_ciFM(IP4_23_20)	IP4_23_20	FM(IP5_23_20)	IP5_23_20	FM(IP6_23_20)	IP6_23_20	FM(IP7_23_20)	IP7_23_20 \
3648c2ecf20Sopenharmony_ciFM(IP4_27_24)	IP4_27_24	FM(IP5_27_24)	IP5_27_24	FM(IP6_27_24)	IP6_27_24	FM(IP7_27_24)	IP7_27_24 \
3658c2ecf20Sopenharmony_ciFM(IP4_31_28)	IP4_31_28	FM(IP5_31_28)	IP5_31_28	FM(IP6_31_28)	IP6_31_28	FM(IP7_31_28)	IP7_31_28 \
3668c2ecf20Sopenharmony_ci\
3678c2ecf20Sopenharmony_ciFM(IP8_3_0)	IP8_3_0		FM(IP9_3_0)	IP9_3_0		FM(IP10_3_0)	IP10_3_0	FM(IP11_3_0)	IP11_3_0 \
3688c2ecf20Sopenharmony_ciFM(IP8_7_4)	IP8_7_4		FM(IP9_7_4)	IP9_7_4		FM(IP10_7_4)	IP10_7_4	FM(IP11_7_4)	IP11_7_4 \
3698c2ecf20Sopenharmony_ciFM(IP8_11_8)	IP8_11_8	FM(IP9_11_8)	IP9_11_8	FM(IP10_11_8)	IP10_11_8	FM(IP11_11_8)	IP11_11_8 \
3708c2ecf20Sopenharmony_ciFM(IP8_15_12)	IP8_15_12	FM(IP9_15_12)	IP9_15_12	FM(IP10_15_12)	IP10_15_12	FM(IP11_15_12)	IP11_15_12 \
3718c2ecf20Sopenharmony_ciFM(IP8_19_16)	IP8_19_16	FM(IP9_19_16)	IP9_19_16	FM(IP10_19_16)	IP10_19_16	FM(IP11_19_16)	IP11_19_16 \
3728c2ecf20Sopenharmony_ciFM(IP8_23_20)	IP8_23_20	FM(IP9_23_20)	IP9_23_20	FM(IP10_23_20)	IP10_23_20	FM(IP11_23_20)	IP11_23_20 \
3738c2ecf20Sopenharmony_ciFM(IP8_27_24)	IP8_27_24	FM(IP9_27_24)	IP9_27_24	FM(IP10_27_24)	IP10_27_24	FM(IP11_27_24)	IP11_27_24 \
3748c2ecf20Sopenharmony_ciFM(IP8_31_28)	IP8_31_28	FM(IP9_31_28)	IP9_31_28	FM(IP10_31_28)	IP10_31_28	FM(IP11_31_28)	IP11_31_28 \
3758c2ecf20Sopenharmony_ci\
3768c2ecf20Sopenharmony_ciFM(IP12_3_0)	IP12_3_0	FM(IP13_3_0)	IP13_3_0 \
3778c2ecf20Sopenharmony_ciFM(IP12_7_4)	IP12_7_4	FM(IP13_7_4)	IP13_7_4 \
3788c2ecf20Sopenharmony_ciFM(IP12_11_8)	IP12_11_8 \
3798c2ecf20Sopenharmony_ciFM(IP12_15_12)	IP12_15_12 \
3808c2ecf20Sopenharmony_ciFM(IP12_19_16)	IP12_19_16 \
3818c2ecf20Sopenharmony_ciFM(IP12_23_20)	IP12_23_20 \
3828c2ecf20Sopenharmony_ciFM(IP12_27_24)	IP12_27_24 \
3838c2ecf20Sopenharmony_ciFM(IP12_31_28)	IP12_31_28 \
3848c2ecf20Sopenharmony_ci
3858c2ecf20Sopenharmony_ci/* The bit numbering in MOD_SEL fields is reversed */
3868c2ecf20Sopenharmony_ci#define REV4(f0, f1, f2, f3)			f0 f2 f1 f3
3878c2ecf20Sopenharmony_ci
3888c2ecf20Sopenharmony_ci/* MOD_SEL0 */			/* 0 */			/* 1 */			/* 2 */			/* 3 */
3898c2ecf20Sopenharmony_ci#define MOD_SEL0_30		FM(SEL_MSIOF2_0)	FM(SEL_MSIOF2_1)
3908c2ecf20Sopenharmony_ci#define MOD_SEL0_29		FM(SEL_I2C3_0)		FM(SEL_I2C3_1)
3918c2ecf20Sopenharmony_ci#define MOD_SEL0_28		FM(SEL_SCIF5_0)		FM(SEL_SCIF5_1)
3928c2ecf20Sopenharmony_ci#define MOD_SEL0_27		FM(SEL_MSIOF3_0)	FM(SEL_MSIOF3_1)
3938c2ecf20Sopenharmony_ci#define MOD_SEL0_26		FM(SEL_HSCIF3_0)	FM(SEL_HSCIF3_1)
3948c2ecf20Sopenharmony_ci#define MOD_SEL0_25		FM(SEL_SCIF4_0)		FM(SEL_SCIF4_1)
3958c2ecf20Sopenharmony_ci#define MOD_SEL0_24_23	   REV4(FM(SEL_PWM0_0),		FM(SEL_PWM0_1),		FM(SEL_PWM0_2),		F_(0, 0))
3968c2ecf20Sopenharmony_ci#define MOD_SEL0_22_21	   REV4(FM(SEL_PWM1_0),		FM(SEL_PWM1_1),		FM(SEL_PWM1_2),		F_(0, 0))
3978c2ecf20Sopenharmony_ci#define MOD_SEL0_20_19	   REV4(FM(SEL_PWM2_0),		FM(SEL_PWM2_1),		FM(SEL_PWM2_2),		F_(0, 0))
3988c2ecf20Sopenharmony_ci#define MOD_SEL0_18_17	   REV4(FM(SEL_PWM3_0),		FM(SEL_PWM3_1),		FM(SEL_PWM3_2),		F_(0, 0))
3998c2ecf20Sopenharmony_ci#define MOD_SEL0_15		FM(SEL_IRQ_0_0)		FM(SEL_IRQ_0_1)
4008c2ecf20Sopenharmony_ci#define MOD_SEL0_14		FM(SEL_IRQ_1_0)		FM(SEL_IRQ_1_1)
4018c2ecf20Sopenharmony_ci#define MOD_SEL0_13		FM(SEL_IRQ_2_0)		FM(SEL_IRQ_2_1)
4028c2ecf20Sopenharmony_ci#define MOD_SEL0_12		FM(SEL_IRQ_3_0)		FM(SEL_IRQ_3_1)
4038c2ecf20Sopenharmony_ci#define MOD_SEL0_11		FM(SEL_IRQ_4_0)		FM(SEL_IRQ_4_1)
4048c2ecf20Sopenharmony_ci#define MOD_SEL0_10		FM(SEL_IRQ_5_0)		FM(SEL_IRQ_5_1)
4058c2ecf20Sopenharmony_ci#define MOD_SEL0_5		FM(SEL_TMU_0_0)		FM(SEL_TMU_0_1)
4068c2ecf20Sopenharmony_ci#define MOD_SEL0_4		FM(SEL_TMU_1_0)		FM(SEL_TMU_1_1)
4078c2ecf20Sopenharmony_ci#define MOD_SEL0_3		FM(SEL_SCIF3_0)		FM(SEL_SCIF3_1)
4088c2ecf20Sopenharmony_ci#define MOD_SEL0_2		FM(SEL_SCIF1_0)		FM(SEL_SCIF1_1)
4098c2ecf20Sopenharmony_ci#define MOD_SEL0_1		FM(SEL_SCU_0)		FM(SEL_SCU_1)
4108c2ecf20Sopenharmony_ci#define MOD_SEL0_0		FM(SEL_RFSO_0)		FM(SEL_RFSO_1)
4118c2ecf20Sopenharmony_ci
4128c2ecf20Sopenharmony_ci#define MOD_SEL1_31		FM(SEL_CAN0_0)		FM(SEL_CAN0_1)
4138c2ecf20Sopenharmony_ci#define MOD_SEL1_30		FM(SEL_CAN1_0)		FM(SEL_CAN1_1)
4148c2ecf20Sopenharmony_ci#define MOD_SEL1_29		FM(SEL_I2C2_0)		FM(SEL_I2C2_1)
4158c2ecf20Sopenharmony_ci#define MOD_SEL1_28		FM(SEL_ETHERAVB_0)	FM(SEL_ETHERAVB_1)
4168c2ecf20Sopenharmony_ci#define MOD_SEL1_27		FM(SEL_SCIF0_0)		FM(SEL_SCIF0_1)
4178c2ecf20Sopenharmony_ci#define MOD_SEL1_26		FM(SEL_SSIF4_0)		FM(SEL_SSIF4_1)
4188c2ecf20Sopenharmony_ci
4198c2ecf20Sopenharmony_ci
4208c2ecf20Sopenharmony_ci#define PINMUX_MOD_SELS	\
4218c2ecf20Sopenharmony_ci\
4228c2ecf20Sopenharmony_ci		MOD_SEL1_31 \
4238c2ecf20Sopenharmony_ciMOD_SEL0_30	MOD_SEL1_30 \
4248c2ecf20Sopenharmony_ciMOD_SEL0_29	MOD_SEL1_29 \
4258c2ecf20Sopenharmony_ciMOD_SEL0_28	MOD_SEL1_28 \
4268c2ecf20Sopenharmony_ciMOD_SEL0_27	MOD_SEL1_27 \
4278c2ecf20Sopenharmony_ciMOD_SEL0_26	MOD_SEL1_26 \
4288c2ecf20Sopenharmony_ciMOD_SEL0_25 \
4298c2ecf20Sopenharmony_ciMOD_SEL0_24_23 \
4308c2ecf20Sopenharmony_ciMOD_SEL0_22_21 \
4318c2ecf20Sopenharmony_ciMOD_SEL0_20_19 \
4328c2ecf20Sopenharmony_ciMOD_SEL0_18_17 \
4338c2ecf20Sopenharmony_ciMOD_SEL0_15 \
4348c2ecf20Sopenharmony_ciMOD_SEL0_14 \
4358c2ecf20Sopenharmony_ciMOD_SEL0_13 \
4368c2ecf20Sopenharmony_ciMOD_SEL0_12 \
4378c2ecf20Sopenharmony_ciMOD_SEL0_11 \
4388c2ecf20Sopenharmony_ciMOD_SEL0_10 \
4398c2ecf20Sopenharmony_ciMOD_SEL0_5 \
4408c2ecf20Sopenharmony_ciMOD_SEL0_4 \
4418c2ecf20Sopenharmony_ciMOD_SEL0_3 \
4428c2ecf20Sopenharmony_ciMOD_SEL0_2 \
4438c2ecf20Sopenharmony_ciMOD_SEL0_1 \
4448c2ecf20Sopenharmony_ciMOD_SEL0_0
4458c2ecf20Sopenharmony_ci
4468c2ecf20Sopenharmony_cienum {
4478c2ecf20Sopenharmony_ci	PINMUX_RESERVED = 0,
4488c2ecf20Sopenharmony_ci
4498c2ecf20Sopenharmony_ci	PINMUX_DATA_BEGIN,
4508c2ecf20Sopenharmony_ci	GP_ALL(DATA),
4518c2ecf20Sopenharmony_ci	PINMUX_DATA_END,
4528c2ecf20Sopenharmony_ci
4538c2ecf20Sopenharmony_ci#define F_(x, y)
4548c2ecf20Sopenharmony_ci#define FM(x)	FN_##x,
4558c2ecf20Sopenharmony_ci	PINMUX_FUNCTION_BEGIN,
4568c2ecf20Sopenharmony_ci	GP_ALL(FN),
4578c2ecf20Sopenharmony_ci	PINMUX_GPSR
4588c2ecf20Sopenharmony_ci	PINMUX_IPSR
4598c2ecf20Sopenharmony_ci	PINMUX_MOD_SELS
4608c2ecf20Sopenharmony_ci	PINMUX_FUNCTION_END,
4618c2ecf20Sopenharmony_ci#undef F_
4628c2ecf20Sopenharmony_ci#undef FM
4638c2ecf20Sopenharmony_ci
4648c2ecf20Sopenharmony_ci#define F_(x, y)
4658c2ecf20Sopenharmony_ci#define FM(x)	x##_MARK,
4668c2ecf20Sopenharmony_ci	PINMUX_MARK_BEGIN,
4678c2ecf20Sopenharmony_ci	PINMUX_GPSR
4688c2ecf20Sopenharmony_ci	PINMUX_IPSR
4698c2ecf20Sopenharmony_ci	PINMUX_MOD_SELS
4708c2ecf20Sopenharmony_ci	PINMUX_MARK_END,
4718c2ecf20Sopenharmony_ci#undef F_
4728c2ecf20Sopenharmony_ci#undef FM
4738c2ecf20Sopenharmony_ci};
4748c2ecf20Sopenharmony_ci
4758c2ecf20Sopenharmony_cistatic const u16 pinmux_data[] = {
4768c2ecf20Sopenharmony_ci	PINMUX_DATA_GP_ALL(),
4778c2ecf20Sopenharmony_ci
4788c2ecf20Sopenharmony_ci	PINMUX_SINGLE(USB0_OVC),
4798c2ecf20Sopenharmony_ci	PINMUX_SINGLE(USB0_PWEN),
4808c2ecf20Sopenharmony_ci	PINMUX_SINGLE(VI4_DATA4),
4818c2ecf20Sopenharmony_ci	PINMUX_SINGLE(VI4_CLK),
4828c2ecf20Sopenharmony_ci	PINMUX_SINGLE(TX2),
4838c2ecf20Sopenharmony_ci	PINMUX_SINGLE(RX2),
4848c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_LINK),
4858c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_PHY_INT),
4868c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_MAGIC),
4878c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_MDC),
4888c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_MDIO),
4898c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_TXCREFCLK),
4908c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_TD3),
4918c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_TD2),
4928c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_TD1),
4938c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_TD0),
4948c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_TXC),
4958c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_TX_CTL),
4968c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_RD3),
4978c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_RD2),
4988c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_RD1),
4998c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_RD0),
5008c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_RXC),
5018c2ecf20Sopenharmony_ci	PINMUX_SINGLE(AVB0_RX_CTL),
5028c2ecf20Sopenharmony_ci	PINMUX_SINGLE(RPC_INT_N),
5038c2ecf20Sopenharmony_ci	PINMUX_SINGLE(RPC_RESET_N),
5048c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI1_SSL),
5058c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI1_IO3),
5068c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI1_IO2),
5078c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI1_MISO_IO1),
5088c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI1_MOSI_IO0),
5098c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI1_SPCLK),
5108c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI0_SSL),
5118c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI0_IO3),
5128c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI0_IO2),
5138c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI0_MISO_IO1),
5148c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI0_MOSI_IO0),
5158c2ecf20Sopenharmony_ci	PINMUX_SINGLE(QSPI0_SPCLK),
5168c2ecf20Sopenharmony_ci	PINMUX_SINGLE(SCL0),
5178c2ecf20Sopenharmony_ci	PINMUX_SINGLE(SDA0),
5188c2ecf20Sopenharmony_ci	PINMUX_SINGLE(MSIOF0_RXD),
5198c2ecf20Sopenharmony_ci	PINMUX_SINGLE(MSIOF0_TXD),
5208c2ecf20Sopenharmony_ci	PINMUX_SINGLE(MSIOF0_SYNC),
5218c2ecf20Sopenharmony_ci	PINMUX_SINGLE(MSIOF0_SCK),
5228c2ecf20Sopenharmony_ci
5238c2ecf20Sopenharmony_ci	/* IPSR0 */
5248c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP0_3_0,	IRQ0_A, SEL_IRQ_0_0),
5258c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP0_3_0,	MSIOF2_SYNC_B, SEL_MSIOF2_1),
5268c2ecf20Sopenharmony_ci
5278c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP0_7_4,	MSIOF2_SCK),
5288c2ecf20Sopenharmony_ci
5298c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP0_11_8,	MSIOF2_TXD),
5308c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP0_11_8,	SCL3_A, SEL_I2C3_0),
5318c2ecf20Sopenharmony_ci
5328c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP0_15_12,	MSIOF2_RXD),
5338c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP0_15_12,	SDA3_A, SEL_I2C3_0),
5348c2ecf20Sopenharmony_ci
5358c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP0_19_16,	MLB_CLK),
5368c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP0_19_16,	MSIOF2_SYNC_A, SEL_MSIOF2_0),
5378c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP0_19_16,	SCK5_A, SEL_SCIF5_0),
5388c2ecf20Sopenharmony_ci
5398c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP0_23_20,	MLB_DAT),
5408c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP0_23_20,	MSIOF2_SS1),
5418c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP0_23_20,	RX5_A, SEL_SCIF5_0),
5428c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP0_23_20,	SCL3_B, SEL_I2C3_1),
5438c2ecf20Sopenharmony_ci
5448c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP0_27_24,	MLB_SIG),
5458c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP0_27_24,	MSIOF2_SS2),
5468c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP0_27_24,	TX5_A, SEL_SCIF5_0),
5478c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP0_27_24,	SDA3_B, SEL_I2C3_1),
5488c2ecf20Sopenharmony_ci
5498c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP0_31_28,	DU_DB0),
5508c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP0_31_28,	LCDOUT0),
5518c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP0_31_28,	MSIOF3_TXD_B, SEL_MSIOF3_1),
5528c2ecf20Sopenharmony_ci
5538c2ecf20Sopenharmony_ci	/* IPSR1 */
5548c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_3_0,	DU_DB1),
5558c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_3_0,	LCDOUT1),
5568c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP1_3_0,	MSIOF3_RXD_B, SEL_MSIOF3_1),
5578c2ecf20Sopenharmony_ci
5588c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_7_4,	DU_DB2),
5598c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_7_4,	LCDOUT2),
5608c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP1_7_4,	IRQ0_B, SEL_IRQ_0_1),
5618c2ecf20Sopenharmony_ci
5628c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_11_8,	DU_DB3),
5638c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_11_8,	LCDOUT3),
5648c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP1_11_8,	SCK5_B, SEL_SCIF5_1),
5658c2ecf20Sopenharmony_ci
5668c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_15_12,	DU_DB4),
5678c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_15_12,	LCDOUT4),
5688c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP1_15_12,	RX5_B, SEL_SCIF5_1),
5698c2ecf20Sopenharmony_ci
5708c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_19_16,	DU_DB5),
5718c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_19_16,	LCDOUT5),
5728c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP1_19_16,	TX5_B, SEL_SCIF5_1),
5738c2ecf20Sopenharmony_ci
5748c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_23_20,	DU_DB6),
5758c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_23_20,	LCDOUT6),
5768c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP1_23_20,	MSIOF3_SS1_B, SEL_MSIOF3_1),
5778c2ecf20Sopenharmony_ci
5788c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_27_24,	DU_DB7),
5798c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_27_24,	LCDOUT7),
5808c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP1_27_24,	MSIOF3_SS2_B, SEL_MSIOF3_1),
5818c2ecf20Sopenharmony_ci
5828c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_31_28,	DU_DG0),
5838c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP1_31_28,	LCDOUT8),
5848c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP1_31_28,	MSIOF3_SCK_B, SEL_MSIOF3_1),
5858c2ecf20Sopenharmony_ci
5868c2ecf20Sopenharmony_ci	/* IPSR2 */
5878c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_3_0,	DU_DG1),
5888c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_3_0,	LCDOUT9),
5898c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP2_3_0,	MSIOF3_SYNC_B, SEL_MSIOF3_1),
5908c2ecf20Sopenharmony_ci
5918c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_7_4,	DU_DG2),
5928c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_7_4,	LCDOUT10),
5938c2ecf20Sopenharmony_ci
5948c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_11_8,	DU_DG3),
5958c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_11_8,	LCDOUT11),
5968c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP2_11_8,	IRQ1_A, SEL_IRQ_1_0),
5978c2ecf20Sopenharmony_ci
5988c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_15_12,	DU_DG4),
5998c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_15_12,	LCDOUT12),
6008c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP2_15_12,	HSCK3_B, SEL_HSCIF3_1),
6018c2ecf20Sopenharmony_ci
6028c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_19_16,	DU_DG5),
6038c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_19_16,	LCDOUT13),
6048c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP2_19_16,	HTX3_B, SEL_HSCIF3_1),
6058c2ecf20Sopenharmony_ci
6068c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_23_20,	DU_DG6),
6078c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_23_20,	LCDOUT14),
6088c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP2_23_20,	HRX3_B, SEL_HSCIF3_1),
6098c2ecf20Sopenharmony_ci
6108c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_27_24,	DU_DG7),
6118c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_27_24,	LCDOUT15),
6128c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP2_27_24,	SCK4_B, SEL_SCIF4_1),
6138c2ecf20Sopenharmony_ci
6148c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_31_28,	DU_DR0),
6158c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP2_31_28,	LCDOUT16),
6168c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP2_31_28,	RX4_B, SEL_SCIF4_1),
6178c2ecf20Sopenharmony_ci
6188c2ecf20Sopenharmony_ci	/* IPSR3 */
6198c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_3_0,	DU_DR1),
6208c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_3_0,	LCDOUT17),
6218c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP3_3_0,	TX4_B, SEL_SCIF4_1),
6228c2ecf20Sopenharmony_ci
6238c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_7_4,	DU_DR2),
6248c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_7_4,	LCDOUT18),
6258c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP3_7_4,	PWM0_B, SEL_PWM0_2),
6268c2ecf20Sopenharmony_ci
6278c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_11_8,	DU_DR3),
6288c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_11_8,	LCDOUT19),
6298c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP3_11_8,	PWM1_B, SEL_PWM1_2),
6308c2ecf20Sopenharmony_ci
6318c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_15_12,	DU_DR4),
6328c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_15_12,	LCDOUT20),
6338c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP3_15_12,	TCLK2_B, SEL_TMU_0_1),
6348c2ecf20Sopenharmony_ci
6358c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_19_16,	DU_DR5),
6368c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_19_16,	LCDOUT21),
6378c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_19_16,	NMI),
6388c2ecf20Sopenharmony_ci
6398c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_23_20,	DU_DR6),
6408c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_23_20,	LCDOUT22),
6418c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP3_23_20,	PWM2_B, SEL_PWM2_2),
6428c2ecf20Sopenharmony_ci
6438c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_27_24,	DU_DR7),
6448c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_27_24,	LCDOUT23),
6458c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP3_27_24,	TCLK1_B, SEL_TMU_1_1),
6468c2ecf20Sopenharmony_ci
6478c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_31_28,	DU_DOTCLKOUT0),
6488c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP3_31_28,	QCLK),
6498c2ecf20Sopenharmony_ci
6508c2ecf20Sopenharmony_ci	/* IPSR4 */
6518c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_3_0,	DU_HSYNC),
6528c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_3_0,	QSTH_QHS),
6538c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP4_3_0,	IRQ3_A, SEL_IRQ_3_0),
6548c2ecf20Sopenharmony_ci
6558c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_7_4,	DU_VSYNC),
6568c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_7_4,	QSTVA_QVS),
6578c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP4_7_4,	IRQ4_A, SEL_IRQ_4_0),
6588c2ecf20Sopenharmony_ci
6598c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_11_8,	DU_DISP),
6608c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_11_8,	QSTVB_QVE),
6618c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP4_11_8,	PWM3_B, SEL_PWM3_2),
6628c2ecf20Sopenharmony_ci
6638c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_15_12,	DU_DISP_CDE),
6648c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_15_12,	QCPV_QDE),
6658c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP4_15_12,	IRQ2_B, SEL_IRQ_2_1),
6668c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_15_12,	DU_DOTCLKIN1),
6678c2ecf20Sopenharmony_ci
6688c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_19_16,	DU_CDE),
6698c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_19_16,	QSTB_QHE),
6708c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP4_19_16,	SCK3_B, SEL_SCIF3_1),
6718c2ecf20Sopenharmony_ci
6728c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_23_20,	QPOLA),
6738c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP4_23_20,	RX3_B, SEL_SCIF3_1),
6748c2ecf20Sopenharmony_ci
6758c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_27_24,	QPOLB),
6768c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP4_27_24,	TX3_B, SEL_SCIF3_1),
6778c2ecf20Sopenharmony_ci
6788c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP4_31_28,	VI4_DATA0),
6798c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP4_31_28,	PWM0_A, SEL_PWM0_0),
6808c2ecf20Sopenharmony_ci
6818c2ecf20Sopenharmony_ci	/* IPSR5 */
6828c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP5_3_0,	VI4_DATA1),
6838c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP5_3_0,	PWM1_A, SEL_PWM1_0),
6848c2ecf20Sopenharmony_ci
6858c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP5_7_4,	VI4_DATA2),
6868c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP5_7_4,	PWM2_A, SEL_PWM2_0),
6878c2ecf20Sopenharmony_ci
6888c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP5_11_8,	VI4_DATA3),
6898c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP5_11_8,	PWM3_A, SEL_PWM3_0),
6908c2ecf20Sopenharmony_ci
6918c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP5_15_12,	VI4_DATA5),
6928c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP5_15_12,	SCK4_A, SEL_SCIF4_0),
6938c2ecf20Sopenharmony_ci
6948c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP5_19_16,	VI4_DATA6),
6958c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP5_19_16,	IRQ2_A, SEL_IRQ_2_0),
6968c2ecf20Sopenharmony_ci
6978c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP5_23_20,	VI4_DATA7),
6988c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP5_23_20,	TCLK2_A, SEL_TMU_0_0),
6998c2ecf20Sopenharmony_ci
7008c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP5_27_24,	VI4_DATA8),
7018c2ecf20Sopenharmony_ci
7028c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP5_31_28,	VI4_DATA9),
7038c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP5_31_28,	MSIOF3_SS2_A, SEL_MSIOF3_0),
7048c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP5_31_28,	IRQ1_B, SEL_IRQ_1_1),
7058c2ecf20Sopenharmony_ci
7068c2ecf20Sopenharmony_ci	/* IPSR6 */
7078c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP6_3_0,	VI4_DATA10),
7088c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP6_3_0,	RX4_A, SEL_SCIF4_0),
7098c2ecf20Sopenharmony_ci
7108c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP6_7_4,	VI4_DATA11),
7118c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP6_7_4,	TX4_A, SEL_SCIF4_0),
7128c2ecf20Sopenharmony_ci
7138c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP6_11_8,	VI4_DATA12),
7148c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP6_11_8,	TCLK1_A, SEL_TMU_1_0),
7158c2ecf20Sopenharmony_ci
7168c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP6_15_12,	VI4_DATA13),
7178c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP6_15_12,	MSIOF3_SS1_A, SEL_MSIOF3_0),
7188c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP6_15_12,	HCTS3_N),
7198c2ecf20Sopenharmony_ci
7208c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP6_19_16,	VI4_DATA14),
7218c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP6_19_16,	SSI_SCK4_B, SEL_SSIF4_1),
7228c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP6_19_16,	HRTS3_N),
7238c2ecf20Sopenharmony_ci
7248c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP6_23_20,	VI4_DATA15),
7258c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP6_23_20,	SSI_SDATA4_B, SEL_SSIF4_1),
7268c2ecf20Sopenharmony_ci
7278c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP6_27_24,	VI4_DATA16),
7288c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP6_27_24,	HRX3_A, SEL_HSCIF3_0),
7298c2ecf20Sopenharmony_ci
7308c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP6_31_28,	VI4_DATA17),
7318c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP6_31_28,	HTX3_A, SEL_HSCIF3_0),
7328c2ecf20Sopenharmony_ci
7338c2ecf20Sopenharmony_ci	/* IPSR7 */
7348c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_3_0,	VI4_DATA18),
7358c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP7_3_0,	HSCK3_A, SEL_HSCIF3_0),
7368c2ecf20Sopenharmony_ci
7378c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_7_4,	VI4_DATA19),
7388c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP7_7_4,	SSI_WS4_B, SEL_SSIF4_1),
7398c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_7_4,	NFDATA15),
7408c2ecf20Sopenharmony_ci
7418c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_11_8,	VI4_DATA20),
7428c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP7_11_8,	MSIOF3_SYNC_A, SEL_MSIOF3_0),
7438c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_11_8,	NFDATA14),
7448c2ecf20Sopenharmony_ci
7458c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_15_12,	VI4_DATA21),
7468c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP7_15_12,	MSIOF3_TXD_A, SEL_MSIOF3_0),
7478c2ecf20Sopenharmony_ci
7488c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_15_12,	NFDATA13),
7498c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_19_16,	VI4_DATA22),
7508c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP7_19_16,	MSIOF3_RXD_A, SEL_MSIOF3_0),
7518c2ecf20Sopenharmony_ci
7528c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_19_16,	NFDATA12),
7538c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_23_20,	VI4_DATA23),
7548c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP7_23_20,	MSIOF3_SCK_A, SEL_MSIOF3_0),
7558c2ecf20Sopenharmony_ci
7568c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_23_20,	NFDATA11),
7578c2ecf20Sopenharmony_ci
7588c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_27_24,	VI4_VSYNC_N),
7598c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP7_27_24,	SCK1_B, SEL_SCIF1_1),
7608c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_27_24,	NFDATA10),
7618c2ecf20Sopenharmony_ci
7628c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_31_28,	VI4_HSYNC_N),
7638c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP7_31_28,	RX1_B, SEL_SCIF1_1),
7648c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP7_31_28,	NFDATA9),
7658c2ecf20Sopenharmony_ci
7668c2ecf20Sopenharmony_ci	/* IPSR8 */
7678c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_3_0,	VI4_FIELD),
7688c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_3_0,	AUDIO_CLKB),
7698c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_3_0,	IRQ5_A, SEL_IRQ_5_0),
7708c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_3_0,	SCIF_CLK),
7718c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_3_0,	NFDATA8),
7728c2ecf20Sopenharmony_ci
7738c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_7_4,	VI4_CLKENB),
7748c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_7_4,	TX1_B, SEL_SCIF1_1),
7758c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_7_4,	NFWP_N),
7768c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_7_4,	DVC_MUTE_A, SEL_SCU_0),
7778c2ecf20Sopenharmony_ci
7788c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_11_8,	NFALE),
7798c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_11_8,	SCL2_B, SEL_I2C2_1),
7808c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_11_8,	IRQ3_B, SEL_IRQ_3_1),
7818c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_11_8,	PWM0_C, SEL_PWM0_1),
7828c2ecf20Sopenharmony_ci
7838c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_15_12,	NFCLE),
7848c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_15_12,	SDA2_B, SEL_I2C2_1),
7858c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_15_12,	SCK3_A, SEL_SCIF3_0),
7868c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_15_12,	PWM1_C, SEL_PWM1_1),
7878c2ecf20Sopenharmony_ci
7888c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_19_16,	NFCE_N),
7898c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_19_16,	RX3_A, SEL_SCIF3_0),
7908c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_19_16,	PWM2_C, SEL_PWM2_1),
7918c2ecf20Sopenharmony_ci
7928c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_23_20,	NFRB_N),
7938c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_23_20,	TX3_A, SEL_SCIF3_0),
7948c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP8_23_20,	PWM3_C, SEL_PWM3_1),
7958c2ecf20Sopenharmony_ci
7968c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_27_24,	NFRE_N),
7978c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_27_24,	MMC_CMD),
7988c2ecf20Sopenharmony_ci
7998c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_31_28,	NFWE_N),
8008c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP8_31_28,	MMC_CLK),
8018c2ecf20Sopenharmony_ci
8028c2ecf20Sopenharmony_ci	/* IPSR9 */
8038c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_3_0,	NFDATA0),
8048c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_3_0,	MMC_D0),
8058c2ecf20Sopenharmony_ci
8068c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_7_4,	NFDATA1),
8078c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_7_4,	MMC_D1),
8088c2ecf20Sopenharmony_ci
8098c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_11_8,	NFDATA2),
8108c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_11_8,	MMC_D2),
8118c2ecf20Sopenharmony_ci
8128c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_15_12,	NFDATA3),
8138c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_15_12,	MMC_D3),
8148c2ecf20Sopenharmony_ci
8158c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_19_16,	NFDATA4),
8168c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_19_16,	MMC_D4),
8178c2ecf20Sopenharmony_ci
8188c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_23_20,	NFDATA5),
8198c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_23_20,	MMC_D5),
8208c2ecf20Sopenharmony_ci
8218c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_27_24,	NFDATA6),
8228c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_27_24,	MMC_D6),
8238c2ecf20Sopenharmony_ci
8248c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_31_28,	NFDATA7),
8258c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP9_31_28,	MMC_D7),
8268c2ecf20Sopenharmony_ci
8278c2ecf20Sopenharmony_ci	/* IPSR10 */
8288c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP10_3_0,	AUDIO_CLKA),
8298c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_3_0,	DVC_MUTE_B, SEL_SCU_1),
8308c2ecf20Sopenharmony_ci
8318c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP10_7_4,	SSI_SCK34),
8328c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_7_4,	FSO_CFE_0_N_A, SEL_RFSO_0),
8338c2ecf20Sopenharmony_ci
8348c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP10_11_8,	SSI_SDATA3),
8358c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_11_8,	FSO_CFE_1_N_A, SEL_RFSO_0),
8368c2ecf20Sopenharmony_ci
8378c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP10_15_12,	SSI_WS34),
8388c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_15_12,	FSO_TOE_N_A, SEL_RFSO_0),
8398c2ecf20Sopenharmony_ci
8408c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_19_16,	SSI_SCK4_A, SEL_SSIF4_0),
8418c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP10_19_16,	HSCK0),
8428c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP10_19_16,	AUDIO_CLKOUT),
8438c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_19_16,	CAN0_RX_B, SEL_CAN0_1),
8448c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_19_16,	IRQ4_B, SEL_IRQ_4_1),
8458c2ecf20Sopenharmony_ci
8468c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_23_20,	SSI_SDATA4_A, SEL_SSIF4_0),
8478c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP10_23_20,	HTX0),
8488c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_23_20,	SCL2_A, SEL_I2C2_0),
8498c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_23_20,	CAN1_RX_B, SEL_CAN1_1),
8508c2ecf20Sopenharmony_ci
8518c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_27_24,	SSI_WS4_A, SEL_SSIF4_0),
8528c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP10_27_24,	HRX0),
8538c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_27_24,	SDA2_A, SEL_I2C2_0),
8548c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP10_27_24,	CAN1_TX_B, SEL_CAN1_1),
8558c2ecf20Sopenharmony_ci
8568c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP10_31_28,	SCL1),
8578c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP10_31_28,	CTS1_N),
8588c2ecf20Sopenharmony_ci
8598c2ecf20Sopenharmony_ci	/* IPSR11 */
8608c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP11_3_0,	SDA1),
8618c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP11_3_0,	RTS1_N),
8628c2ecf20Sopenharmony_ci
8638c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP11_7_4,	MSIOF1_SCK),
8648c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP11_7_4,	AVB0_AVTP_PPS_B, SEL_ETHERAVB_1),
8658c2ecf20Sopenharmony_ci
8668c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP11_11_8,	MSIOF1_TXD),
8678c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP11_11_8,	AVB0_AVTP_CAPTURE_B, SEL_ETHERAVB_1),
8688c2ecf20Sopenharmony_ci
8698c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP11_15_12,	MSIOF1_RXD),
8708c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP11_15_12,	AVB0_AVTP_MATCH_B, SEL_ETHERAVB_1),
8718c2ecf20Sopenharmony_ci
8728c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP11_19_16,	SCK0_A, SEL_SCIF0_0),
8738c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP11_19_16,	MSIOF1_SYNC),
8748c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP11_19_16,	FSO_CFE_0_N_B, SEL_RFSO_1),
8758c2ecf20Sopenharmony_ci
8768c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP11_23_20,	RX0_A, SEL_SCIF0_0),
8778c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP11_23_20,	MSIOF0_SS1),
8788c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP11_23_20,	FSO_CFE_1_N_B, SEL_RFSO_1),
8798c2ecf20Sopenharmony_ci
8808c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP11_27_24,	TX0_A, SEL_SCIF0_0),
8818c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP11_27_24,	MSIOF0_SS2),
8828c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP11_27_24,	FSO_TOE_N_B, SEL_RFSO_1),
8838c2ecf20Sopenharmony_ci
8848c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP11_31_28,	SCK1_A, SEL_SCIF1_0),
8858c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP11_31_28,	MSIOF1_SS2),
8868c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP11_31_28,	TPU0TO2_B),
8878c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP11_31_28,	CAN0_TX_B, SEL_CAN0_1),
8888c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP11_31_28,	AUDIO_CLKOUT1),
8898c2ecf20Sopenharmony_ci
8908c2ecf20Sopenharmony_ci	/* IPSR12 */
8918c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP12_3_0,	RX1_A, SEL_SCIF1_0),
8928c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_3_0,	CTS0_N),
8938c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_3_0,	TPU0TO0_B),
8948c2ecf20Sopenharmony_ci
8958c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP12_7_4,	TX1_A, SEL_SCIF1_0),
8968c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_7_4,	RTS0_N),
8978c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_7_4,	TPU0TO1_B),
8988c2ecf20Sopenharmony_ci
8998c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_11_8,	SCK2),
9008c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_11_8,	MSIOF1_SS1),
9018c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_11_8,	TPU0TO3_B),
9028c2ecf20Sopenharmony_ci
9038c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_15_12,	TPU0TO0_A),
9048c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP12_15_12,	AVB0_AVTP_CAPTURE_A, SEL_ETHERAVB_0),
9058c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_15_12,	HCTS0_N),
9068c2ecf20Sopenharmony_ci
9078c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_19_16,	TPU0TO1_A),
9088c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP12_19_16,	AVB0_AVTP_MATCH_A, SEL_ETHERAVB_0),
9098c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_19_16,	HRTS0_N),
9108c2ecf20Sopenharmony_ci
9118c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_23_20,	CAN_CLK),
9128c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP12_23_20,	AVB0_AVTP_PPS_A, SEL_ETHERAVB_0),
9138c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP12_23_20,	SCK0_B, SEL_SCIF0_1),
9148c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP12_23_20,	IRQ5_B, SEL_IRQ_5_1),
9158c2ecf20Sopenharmony_ci
9168c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP12_27_24,	CAN0_RX_A, SEL_CAN0_0),
9178c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_27_24,	CANFD0_RX),
9188c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP12_27_24,	RX0_B, SEL_SCIF0_1),
9198c2ecf20Sopenharmony_ci
9208c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP12_31_28,	CAN0_TX_A, SEL_CAN0_0),
9218c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP12_31_28,	CANFD0_TX),
9228c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP12_31_28,	TX0_B, SEL_SCIF0_1),
9238c2ecf20Sopenharmony_ci
9248c2ecf20Sopenharmony_ci	/* IPSR13 */
9258c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP13_3_0,	CAN1_RX_A, SEL_CAN1_0),
9268c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP13_3_0,	CANFD1_RX),
9278c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP13_3_0,	TPU0TO2_A),
9288c2ecf20Sopenharmony_ci
9298c2ecf20Sopenharmony_ci	PINMUX_IPSR_MSEL(IP13_7_4,	CAN1_TX_A, SEL_CAN1_0),
9308c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP13_7_4,	CANFD1_TX),
9318c2ecf20Sopenharmony_ci	PINMUX_IPSR_GPSR(IP13_7_4,	TPU0TO3_A),
9328c2ecf20Sopenharmony_ci};
9338c2ecf20Sopenharmony_ci
9348c2ecf20Sopenharmony_cistatic const struct sh_pfc_pin pinmux_pins[] = {
9358c2ecf20Sopenharmony_ci	PINMUX_GPIO_GP_ALL(),
9368c2ecf20Sopenharmony_ci};
9378c2ecf20Sopenharmony_ci
9388c2ecf20Sopenharmony_ci/* - AUDIO CLOCK ------------------------------------------------------------- */
9398c2ecf20Sopenharmony_cistatic const unsigned int audio_clk_a_pins[] = {
9408c2ecf20Sopenharmony_ci	/* CLK A */
9418c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 1),
9428c2ecf20Sopenharmony_ci};
9438c2ecf20Sopenharmony_cistatic const unsigned int audio_clk_a_mux[] = {
9448c2ecf20Sopenharmony_ci	AUDIO_CLKA_MARK,
9458c2ecf20Sopenharmony_ci};
9468c2ecf20Sopenharmony_cistatic const unsigned int audio_clk_b_pins[] = {
9478c2ecf20Sopenharmony_ci	/* CLK B */
9488c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 27),
9498c2ecf20Sopenharmony_ci};
9508c2ecf20Sopenharmony_cistatic const unsigned int audio_clk_b_mux[] = {
9518c2ecf20Sopenharmony_ci	AUDIO_CLKB_MARK,
9528c2ecf20Sopenharmony_ci};
9538c2ecf20Sopenharmony_cistatic const unsigned int audio_clkout_pins[] = {
9548c2ecf20Sopenharmony_ci	/* CLKOUT */
9558c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 5),
9568c2ecf20Sopenharmony_ci};
9578c2ecf20Sopenharmony_cistatic const unsigned int audio_clkout_mux[] = {
9588c2ecf20Sopenharmony_ci	AUDIO_CLKOUT_MARK,
9598c2ecf20Sopenharmony_ci};
9608c2ecf20Sopenharmony_cistatic const unsigned int audio_clkout1_pins[] = {
9618c2ecf20Sopenharmony_ci	/* CLKOUT1 */
9628c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 22),
9638c2ecf20Sopenharmony_ci};
9648c2ecf20Sopenharmony_cistatic const unsigned int audio_clkout1_mux[] = {
9658c2ecf20Sopenharmony_ci	AUDIO_CLKOUT1_MARK,
9668c2ecf20Sopenharmony_ci};
9678c2ecf20Sopenharmony_ci
9688c2ecf20Sopenharmony_ci/* - EtherAVB --------------------------------------------------------------- */
9698c2ecf20Sopenharmony_cistatic const unsigned int avb0_link_pins[] = {
9708c2ecf20Sopenharmony_ci	/* AVB0_LINK */
9718c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 20),
9728c2ecf20Sopenharmony_ci};
9738c2ecf20Sopenharmony_cistatic const unsigned int avb0_link_mux[] = {
9748c2ecf20Sopenharmony_ci	AVB0_LINK_MARK,
9758c2ecf20Sopenharmony_ci};
9768c2ecf20Sopenharmony_cistatic const unsigned int avb0_magic_pins[] = {
9778c2ecf20Sopenharmony_ci	/* AVB0_MAGIC */
9788c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 18),
9798c2ecf20Sopenharmony_ci};
9808c2ecf20Sopenharmony_cistatic const unsigned int avb0_magic_mux[] = {
9818c2ecf20Sopenharmony_ci	AVB0_MAGIC_MARK,
9828c2ecf20Sopenharmony_ci};
9838c2ecf20Sopenharmony_cistatic const unsigned int avb0_phy_int_pins[] = {
9848c2ecf20Sopenharmony_ci	/* AVB0_PHY_INT */
9858c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 19),
9868c2ecf20Sopenharmony_ci};
9878c2ecf20Sopenharmony_cistatic const unsigned int avb0_phy_int_mux[] = {
9888c2ecf20Sopenharmony_ci	AVB0_PHY_INT_MARK,
9898c2ecf20Sopenharmony_ci};
9908c2ecf20Sopenharmony_cistatic const unsigned int avb0_mdio_pins[] = {
9918c2ecf20Sopenharmony_ci	/* AVB0_MDC, AVB0_MDIO */
9928c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 16),
9938c2ecf20Sopenharmony_ci};
9948c2ecf20Sopenharmony_cistatic const unsigned int avb0_mdio_mux[] = {
9958c2ecf20Sopenharmony_ci	AVB0_MDC_MARK, AVB0_MDIO_MARK,
9968c2ecf20Sopenharmony_ci};
9978c2ecf20Sopenharmony_cistatic const unsigned int avb0_mii_pins[] = {
9988c2ecf20Sopenharmony_ci	/*
9998c2ecf20Sopenharmony_ci	 * AVB0_TX_CTL, AVB0_TXC, AVB0_TD0,
10008c2ecf20Sopenharmony_ci	 * AVB0_TD1, AVB0_TD2, AVB0_TD3,
10018c2ecf20Sopenharmony_ci	 * AVB0_RX_CTL, AVB0_RXC, AVB0_RD0,
10028c2ecf20Sopenharmony_ci	 * AVB0_RD1, AVB0_RD2, AVB0_RD3,
10038c2ecf20Sopenharmony_ci	 * AVB0_TXCREFCLK
10048c2ecf20Sopenharmony_ci	 */
10058c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 9), RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 11),
10068c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 12), RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 14),
10078c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 3), RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 5),
10088c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 7), RCAR_GP_PIN(5, 8),
10098c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 15),
10108c2ecf20Sopenharmony_ci};
10118c2ecf20Sopenharmony_cistatic const unsigned int avb0_mii_mux[] = {
10128c2ecf20Sopenharmony_ci	AVB0_TX_CTL_MARK, AVB0_TXC_MARK, AVB0_TD0_MARK,
10138c2ecf20Sopenharmony_ci	AVB0_TD1_MARK, AVB0_TD2_MARK, AVB0_TD3_MARK,
10148c2ecf20Sopenharmony_ci	AVB0_RX_CTL_MARK, AVB0_RXC_MARK, AVB0_RD0_MARK,
10158c2ecf20Sopenharmony_ci	AVB0_RD1_MARK, AVB0_RD2_MARK, AVB0_RD3_MARK,
10168c2ecf20Sopenharmony_ci	AVB0_TXCREFCLK_MARK,
10178c2ecf20Sopenharmony_ci};
10188c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_pps_a_pins[] = {
10198c2ecf20Sopenharmony_ci	/* AVB0_AVTP_PPS_A */
10208c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 2),
10218c2ecf20Sopenharmony_ci};
10228c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_pps_a_mux[] = {
10238c2ecf20Sopenharmony_ci	AVB0_AVTP_PPS_A_MARK,
10248c2ecf20Sopenharmony_ci};
10258c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_match_a_pins[] = {
10268c2ecf20Sopenharmony_ci	/* AVB0_AVTP_MATCH_A */
10278c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 1),
10288c2ecf20Sopenharmony_ci};
10298c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_match_a_mux[] = {
10308c2ecf20Sopenharmony_ci	AVB0_AVTP_MATCH_A_MARK,
10318c2ecf20Sopenharmony_ci};
10328c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_capture_a_pins[] = {
10338c2ecf20Sopenharmony_ci	/* AVB0_AVTP_CAPTURE_A */
10348c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 0),
10358c2ecf20Sopenharmony_ci};
10368c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_capture_a_mux[] = {
10378c2ecf20Sopenharmony_ci	AVB0_AVTP_CAPTURE_A_MARK,
10388c2ecf20Sopenharmony_ci};
10398c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_pps_b_pins[] = {
10408c2ecf20Sopenharmony_ci	/* AVB0_AVTP_PPS_B */
10418c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 16),
10428c2ecf20Sopenharmony_ci};
10438c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_pps_b_mux[] = {
10448c2ecf20Sopenharmony_ci	AVB0_AVTP_PPS_B_MARK,
10458c2ecf20Sopenharmony_ci};
10468c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_match_b_pins[] = {
10478c2ecf20Sopenharmony_ci	/*  AVB0_AVTP_MATCH_B */
10488c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 18),
10498c2ecf20Sopenharmony_ci};
10508c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_match_b_mux[] = {
10518c2ecf20Sopenharmony_ci	AVB0_AVTP_MATCH_B_MARK,
10528c2ecf20Sopenharmony_ci};
10538c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_capture_b_pins[] = {
10548c2ecf20Sopenharmony_ci	/* AVB0_AVTP_CAPTURE_B */
10558c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 17),
10568c2ecf20Sopenharmony_ci};
10578c2ecf20Sopenharmony_cistatic const unsigned int avb0_avtp_capture_b_mux[] = {
10588c2ecf20Sopenharmony_ci	AVB0_AVTP_CAPTURE_B_MARK,
10598c2ecf20Sopenharmony_ci};
10608c2ecf20Sopenharmony_ci
10618c2ecf20Sopenharmony_ci/* - CAN ------------------------------------------------------------------ */
10628c2ecf20Sopenharmony_cistatic const unsigned int can0_data_a_pins[] = {
10638c2ecf20Sopenharmony_ci	/* TX, RX */
10648c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 31),
10658c2ecf20Sopenharmony_ci};
10668c2ecf20Sopenharmony_cistatic const unsigned int can0_data_a_mux[] = {
10678c2ecf20Sopenharmony_ci	CAN0_TX_A_MARK, CAN0_RX_A_MARK,
10688c2ecf20Sopenharmony_ci};
10698c2ecf20Sopenharmony_cistatic const unsigned int can0_data_b_pins[] = {
10708c2ecf20Sopenharmony_ci	/* TX, RX */
10718c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 22), RCAR_GP_PIN(4, 5),
10728c2ecf20Sopenharmony_ci};
10738c2ecf20Sopenharmony_cistatic const unsigned int can0_data_b_mux[] = {
10748c2ecf20Sopenharmony_ci	CAN0_TX_B_MARK, CAN0_RX_B_MARK,
10758c2ecf20Sopenharmony_ci};
10768c2ecf20Sopenharmony_cistatic const unsigned int can1_data_a_pins[] = {
10778c2ecf20Sopenharmony_ci	/* TX, RX */
10788c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 30), RCAR_GP_PIN(4, 29),
10798c2ecf20Sopenharmony_ci};
10808c2ecf20Sopenharmony_cistatic const unsigned int can1_data_a_mux[] = {
10818c2ecf20Sopenharmony_ci	CAN1_TX_A_MARK, CAN1_RX_A_MARK,
10828c2ecf20Sopenharmony_ci};
10838c2ecf20Sopenharmony_cistatic const unsigned int can1_data_b_pins[] = {
10848c2ecf20Sopenharmony_ci	/* TX, RX */
10858c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 6),
10868c2ecf20Sopenharmony_ci};
10878c2ecf20Sopenharmony_cistatic const unsigned int can1_data_b_mux[] = {
10888c2ecf20Sopenharmony_ci	CAN1_TX_B_MARK, CAN1_RX_B_MARK,
10898c2ecf20Sopenharmony_ci};
10908c2ecf20Sopenharmony_ci
10918c2ecf20Sopenharmony_ci/* - CAN Clock -------------------------------------------------------------- */
10928c2ecf20Sopenharmony_cistatic const unsigned int can_clk_pins[] = {
10938c2ecf20Sopenharmony_ci	/* CLK */
10948c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 2),
10958c2ecf20Sopenharmony_ci};
10968c2ecf20Sopenharmony_cistatic const unsigned int can_clk_mux[] = {
10978c2ecf20Sopenharmony_ci	CAN_CLK_MARK,
10988c2ecf20Sopenharmony_ci};
10998c2ecf20Sopenharmony_ci
11008c2ecf20Sopenharmony_ci/* - CAN FD ----------------------------------------------------------------- */
11018c2ecf20Sopenharmony_cistatic const unsigned int canfd0_data_pins[] = {
11028c2ecf20Sopenharmony_ci	/* TX, RX */
11038c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 31),
11048c2ecf20Sopenharmony_ci};
11058c2ecf20Sopenharmony_cistatic const unsigned int canfd0_data_mux[] = {
11068c2ecf20Sopenharmony_ci	CANFD0_TX_MARK, CANFD0_RX_MARK,
11078c2ecf20Sopenharmony_ci};
11088c2ecf20Sopenharmony_cistatic const unsigned int canfd1_data_pins[] = {
11098c2ecf20Sopenharmony_ci	/* TX, RX */
11108c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 30), RCAR_GP_PIN(4, 29),
11118c2ecf20Sopenharmony_ci};
11128c2ecf20Sopenharmony_cistatic const unsigned int canfd1_data_mux[] = {
11138c2ecf20Sopenharmony_ci	CANFD1_TX_MARK, CANFD1_RX_MARK,
11148c2ecf20Sopenharmony_ci};
11158c2ecf20Sopenharmony_ci
11168c2ecf20Sopenharmony_ci/* - DU --------------------------------------------------------------------- */
11178c2ecf20Sopenharmony_cistatic const unsigned int du_rgb666_pins[] = {
11188c2ecf20Sopenharmony_ci	/* R[7:2], G[7:2], B[7:2] */
11198c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 21),
11208c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
11218c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
11228c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 10),
11238c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 7),  RCAR_GP_PIN(1, 6),  RCAR_GP_PIN(1, 5),
11248c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 4),  RCAR_GP_PIN(1, 3),  RCAR_GP_PIN(1, 2),
11258c2ecf20Sopenharmony_ci};
11268c2ecf20Sopenharmony_cistatic const unsigned int du_rgb666_mux[] = {
11278c2ecf20Sopenharmony_ci	DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK, DU_DR4_MARK,
11288c2ecf20Sopenharmony_ci	DU_DR3_MARK, DU_DR2_MARK,
11298c2ecf20Sopenharmony_ci	DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK, DU_DG4_MARK,
11308c2ecf20Sopenharmony_ci	DU_DG3_MARK, DU_DG2_MARK,
11318c2ecf20Sopenharmony_ci	DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK, DU_DB4_MARK,
11328c2ecf20Sopenharmony_ci	DU_DB3_MARK, DU_DB2_MARK,
11338c2ecf20Sopenharmony_ci};
11348c2ecf20Sopenharmony_cistatic const unsigned int du_rgb888_pins[] = {
11358c2ecf20Sopenharmony_ci	/* R[7:0], G[7:0], B[7:0] */
11368c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 21),
11378c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
11388c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16),
11398c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
11408c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 10),
11418c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 9),  RCAR_GP_PIN(1, 8),
11428c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 7),  RCAR_GP_PIN(1, 6),  RCAR_GP_PIN(1, 5),
11438c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 4),  RCAR_GP_PIN(1, 3),  RCAR_GP_PIN(1, 2),
11448c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 1),  RCAR_GP_PIN(1, 0),
11458c2ecf20Sopenharmony_ci};
11468c2ecf20Sopenharmony_cistatic const unsigned int du_rgb888_mux[] = {
11478c2ecf20Sopenharmony_ci	DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK, DU_DR4_MARK,
11488c2ecf20Sopenharmony_ci	DU_DR3_MARK, DU_DR2_MARK, DU_DR1_MARK, DU_DR0_MARK,
11498c2ecf20Sopenharmony_ci	DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK, DU_DG4_MARK,
11508c2ecf20Sopenharmony_ci	DU_DG3_MARK, DU_DG2_MARK, DU_DG1_MARK, DU_DG0_MARK,
11518c2ecf20Sopenharmony_ci	DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK, DU_DB4_MARK,
11528c2ecf20Sopenharmony_ci	DU_DB3_MARK, DU_DB2_MARK, DU_DB1_MARK, DU_DB0_MARK,
11538c2ecf20Sopenharmony_ci};
11548c2ecf20Sopenharmony_cistatic const unsigned int du_clk_in_1_pins[] = {
11558c2ecf20Sopenharmony_ci	/* CLKIN */
11568c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 28),
11578c2ecf20Sopenharmony_ci};
11588c2ecf20Sopenharmony_cistatic const unsigned int du_clk_in_1_mux[] = {
11598c2ecf20Sopenharmony_ci	DU_DOTCLKIN1_MARK
11608c2ecf20Sopenharmony_ci};
11618c2ecf20Sopenharmony_cistatic const unsigned int du_clk_out_0_pins[] = {
11628c2ecf20Sopenharmony_ci	/* CLKOUT */
11638c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 24),
11648c2ecf20Sopenharmony_ci};
11658c2ecf20Sopenharmony_cistatic const unsigned int du_clk_out_0_mux[] = {
11668c2ecf20Sopenharmony_ci	DU_DOTCLKOUT0_MARK
11678c2ecf20Sopenharmony_ci};
11688c2ecf20Sopenharmony_cistatic const unsigned int du_sync_pins[] = {
11698c2ecf20Sopenharmony_ci	/* VSYNC, HSYNC */
11708c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
11718c2ecf20Sopenharmony_ci};
11728c2ecf20Sopenharmony_cistatic const unsigned int du_sync_mux[] = {
11738c2ecf20Sopenharmony_ci	DU_VSYNC_MARK, DU_HSYNC_MARK
11748c2ecf20Sopenharmony_ci};
11758c2ecf20Sopenharmony_cistatic const unsigned int du_disp_cde_pins[] = {
11768c2ecf20Sopenharmony_ci	/* DISP_CDE */
11778c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 28),
11788c2ecf20Sopenharmony_ci};
11798c2ecf20Sopenharmony_cistatic const unsigned int du_disp_cde_mux[] = {
11808c2ecf20Sopenharmony_ci	DU_DISP_CDE_MARK,
11818c2ecf20Sopenharmony_ci};
11828c2ecf20Sopenharmony_cistatic const unsigned int du_cde_pins[] = {
11838c2ecf20Sopenharmony_ci	/* CDE */
11848c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 29),
11858c2ecf20Sopenharmony_ci};
11868c2ecf20Sopenharmony_cistatic const unsigned int du_cde_mux[] = {
11878c2ecf20Sopenharmony_ci	DU_CDE_MARK,
11888c2ecf20Sopenharmony_ci};
11898c2ecf20Sopenharmony_cistatic const unsigned int du_disp_pins[] = {
11908c2ecf20Sopenharmony_ci	/* DISP */
11918c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 27),
11928c2ecf20Sopenharmony_ci};
11938c2ecf20Sopenharmony_cistatic const unsigned int du_disp_mux[] = {
11948c2ecf20Sopenharmony_ci	DU_DISP_MARK,
11958c2ecf20Sopenharmony_ci};
11968c2ecf20Sopenharmony_ci
11978c2ecf20Sopenharmony_ci/* - I2C -------------------------------------------------------------------- */
11988c2ecf20Sopenharmony_cistatic const unsigned int i2c0_pins[] = {
11998c2ecf20Sopenharmony_ci	/* SCL, SDA */
12008c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 9),
12018c2ecf20Sopenharmony_ci};
12028c2ecf20Sopenharmony_cistatic const unsigned int i2c0_mux[] = {
12038c2ecf20Sopenharmony_ci	SCL0_MARK, SDA0_MARK,
12048c2ecf20Sopenharmony_ci};
12058c2ecf20Sopenharmony_cistatic const unsigned int i2c1_pins[] = {
12068c2ecf20Sopenharmony_ci	/* SCL, SDA */
12078c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 11),
12088c2ecf20Sopenharmony_ci};
12098c2ecf20Sopenharmony_cistatic const unsigned int i2c1_mux[] = {
12108c2ecf20Sopenharmony_ci	SCL1_MARK, SDA1_MARK,
12118c2ecf20Sopenharmony_ci};
12128c2ecf20Sopenharmony_cistatic const unsigned int i2c2_a_pins[] = {
12138c2ecf20Sopenharmony_ci	/* SCL, SDA */
12148c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 6), RCAR_GP_PIN(4, 7),
12158c2ecf20Sopenharmony_ci};
12168c2ecf20Sopenharmony_cistatic const unsigned int i2c2_a_mux[] = {
12178c2ecf20Sopenharmony_ci	SCL2_A_MARK, SDA2_A_MARK,
12188c2ecf20Sopenharmony_ci};
12198c2ecf20Sopenharmony_cistatic const unsigned int i2c2_b_pins[] = {
12208c2ecf20Sopenharmony_ci	/* SCL, SDA */
12218c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 29), RCAR_GP_PIN(2, 30),
12228c2ecf20Sopenharmony_ci};
12238c2ecf20Sopenharmony_cistatic const unsigned int i2c2_b_mux[] = {
12248c2ecf20Sopenharmony_ci	SCL2_B_MARK, SDA2_B_MARK,
12258c2ecf20Sopenharmony_ci};
12268c2ecf20Sopenharmony_cistatic const unsigned int i2c3_a_pins[] = {
12278c2ecf20Sopenharmony_ci	/* SCL, SDA */
12288c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 5),
12298c2ecf20Sopenharmony_ci};
12308c2ecf20Sopenharmony_cistatic const unsigned int i2c3_a_mux[] = {
12318c2ecf20Sopenharmony_ci	SCL3_A_MARK, SDA3_A_MARK,
12328c2ecf20Sopenharmony_ci};
12338c2ecf20Sopenharmony_cistatic const unsigned int i2c3_b_pins[] = {
12348c2ecf20Sopenharmony_ci	/* SCL, SDA */
12358c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 7), RCAR_GP_PIN(0, 8),
12368c2ecf20Sopenharmony_ci};
12378c2ecf20Sopenharmony_cistatic const unsigned int i2c3_b_mux[] = {
12388c2ecf20Sopenharmony_ci	SCL3_B_MARK, SDA3_B_MARK,
12398c2ecf20Sopenharmony_ci};
12408c2ecf20Sopenharmony_ci
12418c2ecf20Sopenharmony_ci/* - MMC ------------------------------------------------------------------- */
12428c2ecf20Sopenharmony_cistatic const unsigned int mmc_data1_pins[] = {
12438c2ecf20Sopenharmony_ci	/* D0 */
12448c2ecf20Sopenharmony_ci	RCAR_GP_PIN(3, 2),
12458c2ecf20Sopenharmony_ci};
12468c2ecf20Sopenharmony_cistatic const unsigned int mmc_data1_mux[] = {
12478c2ecf20Sopenharmony_ci	MMC_D0_MARK,
12488c2ecf20Sopenharmony_ci};
12498c2ecf20Sopenharmony_cistatic const unsigned int mmc_data4_pins[] = {
12508c2ecf20Sopenharmony_ci	/* D[0:3] */
12518c2ecf20Sopenharmony_ci	RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
12528c2ecf20Sopenharmony_ci	RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 5),
12538c2ecf20Sopenharmony_ci};
12548c2ecf20Sopenharmony_cistatic const unsigned int mmc_data4_mux[] = {
12558c2ecf20Sopenharmony_ci	MMC_D0_MARK, MMC_D1_MARK,
12568c2ecf20Sopenharmony_ci	MMC_D2_MARK, MMC_D3_MARK,
12578c2ecf20Sopenharmony_ci};
12588c2ecf20Sopenharmony_cistatic const unsigned int mmc_data8_pins[] = {
12598c2ecf20Sopenharmony_ci	/* D[0:7] */
12608c2ecf20Sopenharmony_ci	RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
12618c2ecf20Sopenharmony_ci	RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 5),
12628c2ecf20Sopenharmony_ci	RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 7),
12638c2ecf20Sopenharmony_ci	RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
12648c2ecf20Sopenharmony_ci};
12658c2ecf20Sopenharmony_cistatic const unsigned int mmc_data8_mux[] = {
12668c2ecf20Sopenharmony_ci	MMC_D0_MARK, MMC_D1_MARK,
12678c2ecf20Sopenharmony_ci	MMC_D2_MARK, MMC_D3_MARK,
12688c2ecf20Sopenharmony_ci	MMC_D4_MARK, MMC_D5_MARK,
12698c2ecf20Sopenharmony_ci	MMC_D6_MARK, MMC_D7_MARK,
12708c2ecf20Sopenharmony_ci};
12718c2ecf20Sopenharmony_cistatic const unsigned int mmc_ctrl_pins[] = {
12728c2ecf20Sopenharmony_ci	/* CLK, CMD */
12738c2ecf20Sopenharmony_ci	RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 0),
12748c2ecf20Sopenharmony_ci};
12758c2ecf20Sopenharmony_cistatic const unsigned int mmc_ctrl_mux[] = {
12768c2ecf20Sopenharmony_ci	MMC_CLK_MARK, MMC_CMD_MARK,
12778c2ecf20Sopenharmony_ci};
12788c2ecf20Sopenharmony_ci
12798c2ecf20Sopenharmony_ci/* - MSIOF0 ----------------------------------------------------------------- */
12808c2ecf20Sopenharmony_cistatic const unsigned int msiof0_clk_pins[] = {
12818c2ecf20Sopenharmony_ci	/* SCK */
12828c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 12),
12838c2ecf20Sopenharmony_ci};
12848c2ecf20Sopenharmony_ci
12858c2ecf20Sopenharmony_cistatic const unsigned int msiof0_clk_mux[] = {
12868c2ecf20Sopenharmony_ci	MSIOF0_SCK_MARK,
12878c2ecf20Sopenharmony_ci};
12888c2ecf20Sopenharmony_ci
12898c2ecf20Sopenharmony_cistatic const unsigned int msiof0_sync_pins[] = {
12908c2ecf20Sopenharmony_ci	/* SYNC */
12918c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 13),
12928c2ecf20Sopenharmony_ci};
12938c2ecf20Sopenharmony_ci
12948c2ecf20Sopenharmony_cistatic const unsigned int msiof0_sync_mux[] = {
12958c2ecf20Sopenharmony_ci	MSIOF0_SYNC_MARK,
12968c2ecf20Sopenharmony_ci};
12978c2ecf20Sopenharmony_ci
12988c2ecf20Sopenharmony_cistatic const unsigned int msiof0_ss1_pins[] = {
12998c2ecf20Sopenharmony_ci	/* SS1 */
13008c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 20),
13018c2ecf20Sopenharmony_ci};
13028c2ecf20Sopenharmony_ci
13038c2ecf20Sopenharmony_cistatic const unsigned int msiof0_ss1_mux[] = {
13048c2ecf20Sopenharmony_ci	MSIOF0_SS1_MARK,
13058c2ecf20Sopenharmony_ci};
13068c2ecf20Sopenharmony_ci
13078c2ecf20Sopenharmony_cistatic const unsigned int msiof0_ss2_pins[] = {
13088c2ecf20Sopenharmony_ci	/* SS2 */
13098c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 21),
13108c2ecf20Sopenharmony_ci};
13118c2ecf20Sopenharmony_ci
13128c2ecf20Sopenharmony_cistatic const unsigned int msiof0_ss2_mux[] = {
13138c2ecf20Sopenharmony_ci	MSIOF0_SS2_MARK,
13148c2ecf20Sopenharmony_ci};
13158c2ecf20Sopenharmony_ci
13168c2ecf20Sopenharmony_cistatic const unsigned int msiof0_txd_pins[] = {
13178c2ecf20Sopenharmony_ci	/* TXD */
13188c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 14),
13198c2ecf20Sopenharmony_ci};
13208c2ecf20Sopenharmony_ci
13218c2ecf20Sopenharmony_cistatic const unsigned int msiof0_txd_mux[] = {
13228c2ecf20Sopenharmony_ci	MSIOF0_TXD_MARK,
13238c2ecf20Sopenharmony_ci};
13248c2ecf20Sopenharmony_ci
13258c2ecf20Sopenharmony_cistatic const unsigned int msiof0_rxd_pins[] = {
13268c2ecf20Sopenharmony_ci	/* RXD */
13278c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 15),
13288c2ecf20Sopenharmony_ci};
13298c2ecf20Sopenharmony_ci
13308c2ecf20Sopenharmony_cistatic const unsigned int msiof0_rxd_mux[] = {
13318c2ecf20Sopenharmony_ci	MSIOF0_RXD_MARK,
13328c2ecf20Sopenharmony_ci};
13338c2ecf20Sopenharmony_ci
13348c2ecf20Sopenharmony_ci/* - MSIOF1 ----------------------------------------------------------------- */
13358c2ecf20Sopenharmony_cistatic const unsigned int msiof1_clk_pins[] = {
13368c2ecf20Sopenharmony_ci	/* SCK */
13378c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 16),
13388c2ecf20Sopenharmony_ci};
13398c2ecf20Sopenharmony_ci
13408c2ecf20Sopenharmony_cistatic const unsigned int msiof1_clk_mux[] = {
13418c2ecf20Sopenharmony_ci	MSIOF1_SCK_MARK,
13428c2ecf20Sopenharmony_ci};
13438c2ecf20Sopenharmony_ci
13448c2ecf20Sopenharmony_cistatic const unsigned int msiof1_sync_pins[] = {
13458c2ecf20Sopenharmony_ci	/* SYNC */
13468c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 19),
13478c2ecf20Sopenharmony_ci};
13488c2ecf20Sopenharmony_ci
13498c2ecf20Sopenharmony_cistatic const unsigned int msiof1_sync_mux[] = {
13508c2ecf20Sopenharmony_ci	MSIOF1_SYNC_MARK,
13518c2ecf20Sopenharmony_ci};
13528c2ecf20Sopenharmony_ci
13538c2ecf20Sopenharmony_cistatic const unsigned int msiof1_ss1_pins[] = {
13548c2ecf20Sopenharmony_ci	/* SS1 */
13558c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 25),
13568c2ecf20Sopenharmony_ci};
13578c2ecf20Sopenharmony_ci
13588c2ecf20Sopenharmony_cistatic const unsigned int msiof1_ss1_mux[] = {
13598c2ecf20Sopenharmony_ci	MSIOF1_SS1_MARK,
13608c2ecf20Sopenharmony_ci};
13618c2ecf20Sopenharmony_ci
13628c2ecf20Sopenharmony_cistatic const unsigned int msiof1_ss2_pins[] = {
13638c2ecf20Sopenharmony_ci	/* SS2 */
13648c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 22),
13658c2ecf20Sopenharmony_ci};
13668c2ecf20Sopenharmony_ci
13678c2ecf20Sopenharmony_cistatic const unsigned int msiof1_ss2_mux[] = {
13688c2ecf20Sopenharmony_ci	MSIOF1_SS2_MARK,
13698c2ecf20Sopenharmony_ci};
13708c2ecf20Sopenharmony_ci
13718c2ecf20Sopenharmony_cistatic const unsigned int msiof1_txd_pins[] = {
13728c2ecf20Sopenharmony_ci	/* TXD */
13738c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 17),
13748c2ecf20Sopenharmony_ci};
13758c2ecf20Sopenharmony_ci
13768c2ecf20Sopenharmony_cistatic const unsigned int msiof1_txd_mux[] = {
13778c2ecf20Sopenharmony_ci	MSIOF1_TXD_MARK,
13788c2ecf20Sopenharmony_ci};
13798c2ecf20Sopenharmony_ci
13808c2ecf20Sopenharmony_cistatic const unsigned int msiof1_rxd_pins[] = {
13818c2ecf20Sopenharmony_ci	/* RXD */
13828c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 18),
13838c2ecf20Sopenharmony_ci};
13848c2ecf20Sopenharmony_ci
13858c2ecf20Sopenharmony_cistatic const unsigned int msiof1_rxd_mux[] = {
13868c2ecf20Sopenharmony_ci	MSIOF1_RXD_MARK,
13878c2ecf20Sopenharmony_ci};
13888c2ecf20Sopenharmony_ci
13898c2ecf20Sopenharmony_ci/* - MSIOF2 ----------------------------------------------------------------- */
13908c2ecf20Sopenharmony_cistatic const unsigned int msiof2_clk_pins[] = {
13918c2ecf20Sopenharmony_ci	/* SCK */
13928c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 3),
13938c2ecf20Sopenharmony_ci};
13948c2ecf20Sopenharmony_ci
13958c2ecf20Sopenharmony_cistatic const unsigned int msiof2_clk_mux[] = {
13968c2ecf20Sopenharmony_ci	MSIOF2_SCK_MARK,
13978c2ecf20Sopenharmony_ci};
13988c2ecf20Sopenharmony_ci
13998c2ecf20Sopenharmony_cistatic const unsigned int msiof2_sync_a_pins[] = {
14008c2ecf20Sopenharmony_ci	/* SYNC */
14018c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 6),
14028c2ecf20Sopenharmony_ci};
14038c2ecf20Sopenharmony_ci
14048c2ecf20Sopenharmony_cistatic const unsigned int msiof2_sync_a_mux[] = {
14058c2ecf20Sopenharmony_ci	MSIOF2_SYNC_A_MARK,
14068c2ecf20Sopenharmony_ci};
14078c2ecf20Sopenharmony_ci
14088c2ecf20Sopenharmony_cistatic const unsigned int msiof2_sync_b_pins[] = {
14098c2ecf20Sopenharmony_ci	/* SYNC */
14108c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 2),
14118c2ecf20Sopenharmony_ci};
14128c2ecf20Sopenharmony_ci
14138c2ecf20Sopenharmony_cistatic const unsigned int msiof2_sync_b_mux[] = {
14148c2ecf20Sopenharmony_ci	MSIOF2_SYNC_B_MARK,
14158c2ecf20Sopenharmony_ci};
14168c2ecf20Sopenharmony_ci
14178c2ecf20Sopenharmony_cistatic const unsigned int msiof2_ss1_pins[] = {
14188c2ecf20Sopenharmony_ci	/* SS1 */
14198c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 7),
14208c2ecf20Sopenharmony_ci};
14218c2ecf20Sopenharmony_ci
14228c2ecf20Sopenharmony_cistatic const unsigned int msiof2_ss1_mux[] = {
14238c2ecf20Sopenharmony_ci	MSIOF2_SS1_MARK,
14248c2ecf20Sopenharmony_ci};
14258c2ecf20Sopenharmony_ci
14268c2ecf20Sopenharmony_cistatic const unsigned int msiof2_ss2_pins[] = {
14278c2ecf20Sopenharmony_ci	/* SS2 */
14288c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 8),
14298c2ecf20Sopenharmony_ci};
14308c2ecf20Sopenharmony_ci
14318c2ecf20Sopenharmony_cistatic const unsigned int msiof2_ss2_mux[] = {
14328c2ecf20Sopenharmony_ci	MSIOF2_SS2_MARK,
14338c2ecf20Sopenharmony_ci};
14348c2ecf20Sopenharmony_ci
14358c2ecf20Sopenharmony_cistatic const unsigned int msiof2_txd_pins[] = {
14368c2ecf20Sopenharmony_ci	/* TXD */
14378c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 4),
14388c2ecf20Sopenharmony_ci};
14398c2ecf20Sopenharmony_ci
14408c2ecf20Sopenharmony_cistatic const unsigned int msiof2_txd_mux[] = {
14418c2ecf20Sopenharmony_ci	MSIOF2_TXD_MARK,
14428c2ecf20Sopenharmony_ci};
14438c2ecf20Sopenharmony_ci
14448c2ecf20Sopenharmony_cistatic const unsigned int msiof2_rxd_pins[] = {
14458c2ecf20Sopenharmony_ci	/* RXD */
14468c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 5),
14478c2ecf20Sopenharmony_ci};
14488c2ecf20Sopenharmony_ci
14498c2ecf20Sopenharmony_cistatic const unsigned int msiof2_rxd_mux[] = {
14508c2ecf20Sopenharmony_ci	MSIOF2_RXD_MARK,
14518c2ecf20Sopenharmony_ci};
14528c2ecf20Sopenharmony_ci
14538c2ecf20Sopenharmony_ci/* - MSIOF3 ----------------------------------------------------------------- */
14548c2ecf20Sopenharmony_cistatic const unsigned int msiof3_clk_a_pins[] = {
14558c2ecf20Sopenharmony_ci	/* SCK */
14568c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 24),
14578c2ecf20Sopenharmony_ci};
14588c2ecf20Sopenharmony_ci
14598c2ecf20Sopenharmony_cistatic const unsigned int msiof3_clk_a_mux[] = {
14608c2ecf20Sopenharmony_ci	MSIOF3_SCK_A_MARK,
14618c2ecf20Sopenharmony_ci};
14628c2ecf20Sopenharmony_ci
14638c2ecf20Sopenharmony_cistatic const unsigned int msiof3_sync_a_pins[] = {
14648c2ecf20Sopenharmony_ci	/* SYNC */
14658c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 21),
14668c2ecf20Sopenharmony_ci};
14678c2ecf20Sopenharmony_ci
14688c2ecf20Sopenharmony_cistatic const unsigned int msiof3_sync_a_mux[] = {
14698c2ecf20Sopenharmony_ci	MSIOF3_SYNC_A_MARK,
14708c2ecf20Sopenharmony_ci};
14718c2ecf20Sopenharmony_ci
14728c2ecf20Sopenharmony_cistatic const unsigned int msiof3_ss1_a_pins[] = {
14738c2ecf20Sopenharmony_ci	/* SS1 */
14748c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 14),
14758c2ecf20Sopenharmony_ci};
14768c2ecf20Sopenharmony_ci
14778c2ecf20Sopenharmony_cistatic const unsigned int msiof3_ss1_a_mux[] = {
14788c2ecf20Sopenharmony_ci	MSIOF3_SS1_A_MARK,
14798c2ecf20Sopenharmony_ci};
14808c2ecf20Sopenharmony_ci
14818c2ecf20Sopenharmony_cistatic const unsigned int msiof3_ss2_a_pins[] = {
14828c2ecf20Sopenharmony_ci	/* SS2 */
14838c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 10),
14848c2ecf20Sopenharmony_ci};
14858c2ecf20Sopenharmony_ci
14868c2ecf20Sopenharmony_cistatic const unsigned int msiof3_ss2_a_mux[] = {
14878c2ecf20Sopenharmony_ci	MSIOF3_SS2_A_MARK,
14888c2ecf20Sopenharmony_ci};
14898c2ecf20Sopenharmony_ci
14908c2ecf20Sopenharmony_cistatic const unsigned int msiof3_txd_a_pins[] = {
14918c2ecf20Sopenharmony_ci	/* TXD */
14928c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 22),
14938c2ecf20Sopenharmony_ci};
14948c2ecf20Sopenharmony_ci
14958c2ecf20Sopenharmony_cistatic const unsigned int msiof3_txd_a_mux[] = {
14968c2ecf20Sopenharmony_ci	MSIOF3_TXD_A_MARK,
14978c2ecf20Sopenharmony_ci};
14988c2ecf20Sopenharmony_ci
14998c2ecf20Sopenharmony_cistatic const unsigned int msiof3_rxd_a_pins[] = {
15008c2ecf20Sopenharmony_ci	/* RXD */
15018c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 23),
15028c2ecf20Sopenharmony_ci};
15038c2ecf20Sopenharmony_ci
15048c2ecf20Sopenharmony_cistatic const unsigned int msiof3_rxd_a_mux[] = {
15058c2ecf20Sopenharmony_ci	MSIOF3_RXD_A_MARK,
15068c2ecf20Sopenharmony_ci};
15078c2ecf20Sopenharmony_ci
15088c2ecf20Sopenharmony_cistatic const unsigned int msiof3_clk_b_pins[] = {
15098c2ecf20Sopenharmony_ci	/* SCK */
15108c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 8),
15118c2ecf20Sopenharmony_ci};
15128c2ecf20Sopenharmony_ci
15138c2ecf20Sopenharmony_cistatic const unsigned int msiof3_clk_b_mux[] = {
15148c2ecf20Sopenharmony_ci	MSIOF3_SCK_B_MARK,
15158c2ecf20Sopenharmony_ci};
15168c2ecf20Sopenharmony_ci
15178c2ecf20Sopenharmony_cistatic const unsigned int msiof3_sync_b_pins[] = {
15188c2ecf20Sopenharmony_ci	/* SYNC */
15198c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 9),
15208c2ecf20Sopenharmony_ci};
15218c2ecf20Sopenharmony_ci
15228c2ecf20Sopenharmony_cistatic const unsigned int msiof3_sync_b_mux[] = {
15238c2ecf20Sopenharmony_ci	MSIOF3_SYNC_B_MARK,
15248c2ecf20Sopenharmony_ci};
15258c2ecf20Sopenharmony_ci
15268c2ecf20Sopenharmony_cistatic const unsigned int msiof3_ss1_b_pins[] = {
15278c2ecf20Sopenharmony_ci	/* SS1 */
15288c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 6),
15298c2ecf20Sopenharmony_ci};
15308c2ecf20Sopenharmony_ci
15318c2ecf20Sopenharmony_cistatic const unsigned int msiof3_ss1_b_mux[] = {
15328c2ecf20Sopenharmony_ci	MSIOF3_SS1_B_MARK,
15338c2ecf20Sopenharmony_ci};
15348c2ecf20Sopenharmony_ci
15358c2ecf20Sopenharmony_cistatic const unsigned int msiof3_ss2_b_pins[] = {
15368c2ecf20Sopenharmony_ci	/* SS2 */
15378c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 7),
15388c2ecf20Sopenharmony_ci};
15398c2ecf20Sopenharmony_ci
15408c2ecf20Sopenharmony_cistatic const unsigned int msiof3_ss2_b_mux[] = {
15418c2ecf20Sopenharmony_ci	MSIOF3_SS2_B_MARK,
15428c2ecf20Sopenharmony_ci};
15438c2ecf20Sopenharmony_ci
15448c2ecf20Sopenharmony_cistatic const unsigned int msiof3_txd_b_pins[] = {
15458c2ecf20Sopenharmony_ci	/* TXD */
15468c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 0),
15478c2ecf20Sopenharmony_ci};
15488c2ecf20Sopenharmony_ci
15498c2ecf20Sopenharmony_cistatic const unsigned int msiof3_txd_b_mux[] = {
15508c2ecf20Sopenharmony_ci	MSIOF3_TXD_B_MARK,
15518c2ecf20Sopenharmony_ci};
15528c2ecf20Sopenharmony_ci
15538c2ecf20Sopenharmony_cistatic const unsigned int msiof3_rxd_b_pins[] = {
15548c2ecf20Sopenharmony_ci	/* RXD */
15558c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 1),
15568c2ecf20Sopenharmony_ci};
15578c2ecf20Sopenharmony_ci
15588c2ecf20Sopenharmony_cistatic const unsigned int msiof3_rxd_b_mux[] = {
15598c2ecf20Sopenharmony_ci	MSIOF3_RXD_B_MARK,
15608c2ecf20Sopenharmony_ci};
15618c2ecf20Sopenharmony_ci
15628c2ecf20Sopenharmony_ci/* - PWM0 ------------------------------------------------------------------ */
15638c2ecf20Sopenharmony_cistatic const unsigned int pwm0_a_pins[] = {
15648c2ecf20Sopenharmony_ci	/* PWM */
15658c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 1),
15668c2ecf20Sopenharmony_ci};
15678c2ecf20Sopenharmony_ci
15688c2ecf20Sopenharmony_cistatic const unsigned int pwm0_a_mux[] = {
15698c2ecf20Sopenharmony_ci	PWM0_A_MARK,
15708c2ecf20Sopenharmony_ci};
15718c2ecf20Sopenharmony_ci
15728c2ecf20Sopenharmony_cistatic const unsigned int pwm0_b_pins[] = {
15738c2ecf20Sopenharmony_ci	/* PWM */
15748c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 18),
15758c2ecf20Sopenharmony_ci};
15768c2ecf20Sopenharmony_ci
15778c2ecf20Sopenharmony_cistatic const unsigned int pwm0_b_mux[] = {
15788c2ecf20Sopenharmony_ci	PWM0_B_MARK,
15798c2ecf20Sopenharmony_ci};
15808c2ecf20Sopenharmony_ci
15818c2ecf20Sopenharmony_cistatic const unsigned int pwm0_c_pins[] = {
15828c2ecf20Sopenharmony_ci	/* PWM */
15838c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 29),
15848c2ecf20Sopenharmony_ci};
15858c2ecf20Sopenharmony_ci
15868c2ecf20Sopenharmony_cistatic const unsigned int pwm0_c_mux[] = {
15878c2ecf20Sopenharmony_ci	PWM0_C_MARK,
15888c2ecf20Sopenharmony_ci};
15898c2ecf20Sopenharmony_ci
15908c2ecf20Sopenharmony_ci/* - PWM1 ------------------------------------------------------------------ */
15918c2ecf20Sopenharmony_cistatic const unsigned int pwm1_a_pins[] = {
15928c2ecf20Sopenharmony_ci	/* PWM */
15938c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 2),
15948c2ecf20Sopenharmony_ci};
15958c2ecf20Sopenharmony_ci
15968c2ecf20Sopenharmony_cistatic const unsigned int pwm1_a_mux[] = {
15978c2ecf20Sopenharmony_ci	PWM1_A_MARK,
15988c2ecf20Sopenharmony_ci};
15998c2ecf20Sopenharmony_ci
16008c2ecf20Sopenharmony_cistatic const unsigned int pwm1_b_pins[] = {
16018c2ecf20Sopenharmony_ci	/* PWM */
16028c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 19),
16038c2ecf20Sopenharmony_ci};
16048c2ecf20Sopenharmony_ci
16058c2ecf20Sopenharmony_cistatic const unsigned int pwm1_b_mux[] = {
16068c2ecf20Sopenharmony_ci	PWM1_B_MARK,
16078c2ecf20Sopenharmony_ci};
16088c2ecf20Sopenharmony_ci
16098c2ecf20Sopenharmony_cistatic const unsigned int pwm1_c_pins[] = {
16108c2ecf20Sopenharmony_ci	/* PWM */
16118c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 30),
16128c2ecf20Sopenharmony_ci};
16138c2ecf20Sopenharmony_ci
16148c2ecf20Sopenharmony_cistatic const unsigned int pwm1_c_mux[] = {
16158c2ecf20Sopenharmony_ci	PWM1_C_MARK,
16168c2ecf20Sopenharmony_ci};
16178c2ecf20Sopenharmony_ci
16188c2ecf20Sopenharmony_ci/* - PWM2 ------------------------------------------------------------------ */
16198c2ecf20Sopenharmony_cistatic const unsigned int pwm2_a_pins[] = {
16208c2ecf20Sopenharmony_ci	/* PWM */
16218c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 3),
16228c2ecf20Sopenharmony_ci};
16238c2ecf20Sopenharmony_ci
16248c2ecf20Sopenharmony_cistatic const unsigned int pwm2_a_mux[] = {
16258c2ecf20Sopenharmony_ci	PWM2_A_MARK,
16268c2ecf20Sopenharmony_ci};
16278c2ecf20Sopenharmony_ci
16288c2ecf20Sopenharmony_cistatic const unsigned int pwm2_b_pins[] = {
16298c2ecf20Sopenharmony_ci	/* PWM */
16308c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 22),
16318c2ecf20Sopenharmony_ci};
16328c2ecf20Sopenharmony_ci
16338c2ecf20Sopenharmony_cistatic const unsigned int pwm2_b_mux[] = {
16348c2ecf20Sopenharmony_ci	PWM2_B_MARK,
16358c2ecf20Sopenharmony_ci};
16368c2ecf20Sopenharmony_ci
16378c2ecf20Sopenharmony_cistatic const unsigned int pwm2_c_pins[] = {
16388c2ecf20Sopenharmony_ci	/* PWM */
16398c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 31),
16408c2ecf20Sopenharmony_ci};
16418c2ecf20Sopenharmony_ci
16428c2ecf20Sopenharmony_cistatic const unsigned int pwm2_c_mux[] = {
16438c2ecf20Sopenharmony_ci	PWM2_C_MARK,
16448c2ecf20Sopenharmony_ci};
16458c2ecf20Sopenharmony_ci
16468c2ecf20Sopenharmony_ci/* - PWM3 ------------------------------------------------------------------ */
16478c2ecf20Sopenharmony_cistatic const unsigned int pwm3_a_pins[] = {
16488c2ecf20Sopenharmony_ci	/* PWM */
16498c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 4),
16508c2ecf20Sopenharmony_ci};
16518c2ecf20Sopenharmony_ci
16528c2ecf20Sopenharmony_cistatic const unsigned int pwm3_a_mux[] = {
16538c2ecf20Sopenharmony_ci	PWM3_A_MARK,
16548c2ecf20Sopenharmony_ci};
16558c2ecf20Sopenharmony_ci
16568c2ecf20Sopenharmony_cistatic const unsigned int pwm3_b_pins[] = {
16578c2ecf20Sopenharmony_ci	/* PWM */
16588c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 27),
16598c2ecf20Sopenharmony_ci};
16608c2ecf20Sopenharmony_ci
16618c2ecf20Sopenharmony_cistatic const unsigned int pwm3_b_mux[] = {
16628c2ecf20Sopenharmony_ci	PWM3_B_MARK,
16638c2ecf20Sopenharmony_ci};
16648c2ecf20Sopenharmony_ci
16658c2ecf20Sopenharmony_cistatic const unsigned int pwm3_c_pins[] = {
16668c2ecf20Sopenharmony_ci	/* PWM */
16678c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 0),
16688c2ecf20Sopenharmony_ci};
16698c2ecf20Sopenharmony_ci
16708c2ecf20Sopenharmony_cistatic const unsigned int pwm3_c_mux[] = {
16718c2ecf20Sopenharmony_ci	PWM3_C_MARK,
16728c2ecf20Sopenharmony_ci};
16738c2ecf20Sopenharmony_ci
16748c2ecf20Sopenharmony_ci/* - SCIF0 ------------------------------------------------------------------ */
16758c2ecf20Sopenharmony_cistatic const unsigned int scif0_data_a_pins[] = {
16768c2ecf20Sopenharmony_ci	/* RX, TX */
16778c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 20), RCAR_GP_PIN(4, 21),
16788c2ecf20Sopenharmony_ci};
16798c2ecf20Sopenharmony_cistatic const unsigned int scif0_data_a_mux[] = {
16808c2ecf20Sopenharmony_ci	RX0_A_MARK, TX0_A_MARK,
16818c2ecf20Sopenharmony_ci};
16828c2ecf20Sopenharmony_cistatic const unsigned int scif0_clk_a_pins[] = {
16838c2ecf20Sopenharmony_ci	/* SCK */
16848c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 19),
16858c2ecf20Sopenharmony_ci};
16868c2ecf20Sopenharmony_cistatic const unsigned int scif0_clk_a_mux[] = {
16878c2ecf20Sopenharmony_ci	SCK0_A_MARK,
16888c2ecf20Sopenharmony_ci};
16898c2ecf20Sopenharmony_cistatic const unsigned int scif0_data_b_pins[] = {
16908c2ecf20Sopenharmony_ci	/* RX, TX */
16918c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 31), RCAR_GP_PIN(4, 28),
16928c2ecf20Sopenharmony_ci};
16938c2ecf20Sopenharmony_cistatic const unsigned int scif0_data_b_mux[] = {
16948c2ecf20Sopenharmony_ci	RX0_B_MARK, TX0_B_MARK,
16958c2ecf20Sopenharmony_ci};
16968c2ecf20Sopenharmony_cistatic const unsigned int scif0_clk_b_pins[] = {
16978c2ecf20Sopenharmony_ci	/* SCK */
16988c2ecf20Sopenharmony_ci	RCAR_GP_PIN(5, 2),
16998c2ecf20Sopenharmony_ci};
17008c2ecf20Sopenharmony_cistatic const unsigned int scif0_clk_b_mux[] = {
17018c2ecf20Sopenharmony_ci	SCK0_B_MARK,
17028c2ecf20Sopenharmony_ci};
17038c2ecf20Sopenharmony_cistatic const unsigned int scif0_ctrl_pins[] = {
17048c2ecf20Sopenharmony_ci	/* RTS, CTS */
17058c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 24), RCAR_GP_PIN(4, 23),
17068c2ecf20Sopenharmony_ci};
17078c2ecf20Sopenharmony_cistatic const unsigned int scif0_ctrl_mux[] = {
17088c2ecf20Sopenharmony_ci	RTS0_N_MARK, CTS0_N_MARK,
17098c2ecf20Sopenharmony_ci};
17108c2ecf20Sopenharmony_ci/* - SCIF1 ------------------------------------------------------------------ */
17118c2ecf20Sopenharmony_cistatic const unsigned int scif1_data_a_pins[] = {
17128c2ecf20Sopenharmony_ci	/* RX, TX */
17138c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 23), RCAR_GP_PIN(4, 24),
17148c2ecf20Sopenharmony_ci};
17158c2ecf20Sopenharmony_cistatic const unsigned int scif1_data_a_mux[] = {
17168c2ecf20Sopenharmony_ci	RX1_A_MARK, TX1_A_MARK,
17178c2ecf20Sopenharmony_ci};
17188c2ecf20Sopenharmony_cistatic const unsigned int scif1_clk_a_pins[] = {
17198c2ecf20Sopenharmony_ci	/* SCK */
17208c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 22),
17218c2ecf20Sopenharmony_ci};
17228c2ecf20Sopenharmony_cistatic const unsigned int scif1_clk_a_mux[] = {
17238c2ecf20Sopenharmony_ci	SCK1_A_MARK,
17248c2ecf20Sopenharmony_ci};
17258c2ecf20Sopenharmony_cistatic const unsigned int scif1_data_b_pins[] = {
17268c2ecf20Sopenharmony_ci	/* RX, TX */
17278c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 26), RCAR_GP_PIN(2, 28),
17288c2ecf20Sopenharmony_ci};
17298c2ecf20Sopenharmony_cistatic const unsigned int scif1_data_b_mux[] = {
17308c2ecf20Sopenharmony_ci	RX1_B_MARK, TX1_B_MARK,
17318c2ecf20Sopenharmony_ci};
17328c2ecf20Sopenharmony_cistatic const unsigned int scif1_clk_b_pins[] = {
17338c2ecf20Sopenharmony_ci	/* SCK */
17348c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 25),
17358c2ecf20Sopenharmony_ci};
17368c2ecf20Sopenharmony_cistatic const unsigned int scif1_clk_b_mux[] = {
17378c2ecf20Sopenharmony_ci	SCK1_B_MARK,
17388c2ecf20Sopenharmony_ci};
17398c2ecf20Sopenharmony_cistatic const unsigned int scif1_ctrl_pins[] = {
17408c2ecf20Sopenharmony_ci	/* RTS, CTS */
17418c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 11), RCAR_GP_PIN(4, 10),
17428c2ecf20Sopenharmony_ci};
17438c2ecf20Sopenharmony_cistatic const unsigned int scif1_ctrl_mux[] = {
17448c2ecf20Sopenharmony_ci	RTS1_N_MARK, CTS1_N_MARK,
17458c2ecf20Sopenharmony_ci};
17468c2ecf20Sopenharmony_ci
17478c2ecf20Sopenharmony_ci/* - SCIF2 ------------------------------------------------------------------ */
17488c2ecf20Sopenharmony_cistatic const unsigned int scif2_data_pins[] = {
17498c2ecf20Sopenharmony_ci	/* RX, TX */
17508c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 26), RCAR_GP_PIN(4, 27),
17518c2ecf20Sopenharmony_ci};
17528c2ecf20Sopenharmony_cistatic const unsigned int scif2_data_mux[] = {
17538c2ecf20Sopenharmony_ci	RX2_MARK, TX2_MARK,
17548c2ecf20Sopenharmony_ci};
17558c2ecf20Sopenharmony_cistatic const unsigned int scif2_clk_pins[] = {
17568c2ecf20Sopenharmony_ci	/* SCK */
17578c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 25),
17588c2ecf20Sopenharmony_ci};
17598c2ecf20Sopenharmony_cistatic const unsigned int scif2_clk_mux[] = {
17608c2ecf20Sopenharmony_ci	SCK2_MARK,
17618c2ecf20Sopenharmony_ci};
17628c2ecf20Sopenharmony_ci/* - SCIF3 ------------------------------------------------------------------ */
17638c2ecf20Sopenharmony_cistatic const unsigned int scif3_data_a_pins[] = {
17648c2ecf20Sopenharmony_ci	/* RX, TX */
17658c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 31), RCAR_GP_PIN(4, 00),
17668c2ecf20Sopenharmony_ci};
17678c2ecf20Sopenharmony_cistatic const unsigned int scif3_data_a_mux[] = {
17688c2ecf20Sopenharmony_ci	RX3_A_MARK, TX3_A_MARK,
17698c2ecf20Sopenharmony_ci};
17708c2ecf20Sopenharmony_cistatic const unsigned int scif3_clk_a_pins[] = {
17718c2ecf20Sopenharmony_ci	/* SCK */
17728c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 30),
17738c2ecf20Sopenharmony_ci};
17748c2ecf20Sopenharmony_cistatic const unsigned int scif3_clk_a_mux[] = {
17758c2ecf20Sopenharmony_ci	SCK3_A_MARK,
17768c2ecf20Sopenharmony_ci};
17778c2ecf20Sopenharmony_cistatic const unsigned int scif3_data_b_pins[] = {
17788c2ecf20Sopenharmony_ci	/* RX, TX */
17798c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 30), RCAR_GP_PIN(1, 31),
17808c2ecf20Sopenharmony_ci};
17818c2ecf20Sopenharmony_cistatic const unsigned int scif3_data_b_mux[] = {
17828c2ecf20Sopenharmony_ci	RX3_B_MARK, TX3_B_MARK,
17838c2ecf20Sopenharmony_ci};
17848c2ecf20Sopenharmony_cistatic const unsigned int scif3_clk_b_pins[] = {
17858c2ecf20Sopenharmony_ci	/* SCK */
17868c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 29),
17878c2ecf20Sopenharmony_ci};
17888c2ecf20Sopenharmony_cistatic const unsigned int scif3_clk_b_mux[] = {
17898c2ecf20Sopenharmony_ci	SCK3_B_MARK,
17908c2ecf20Sopenharmony_ci};
17918c2ecf20Sopenharmony_ci/* - SCIF4 ------------------------------------------------------------------ */
17928c2ecf20Sopenharmony_cistatic const unsigned int scif4_data_a_pins[] = {
17938c2ecf20Sopenharmony_ci	/* RX, TX */
17948c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 12),
17958c2ecf20Sopenharmony_ci};
17968c2ecf20Sopenharmony_cistatic const unsigned int scif4_data_a_mux[] = {
17978c2ecf20Sopenharmony_ci	RX4_A_MARK, TX4_A_MARK,
17988c2ecf20Sopenharmony_ci};
17998c2ecf20Sopenharmony_cistatic const unsigned int scif4_clk_a_pins[] = {
18008c2ecf20Sopenharmony_ci	/* SCK */
18018c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 6),
18028c2ecf20Sopenharmony_ci};
18038c2ecf20Sopenharmony_cistatic const unsigned int scif4_clk_a_mux[] = {
18048c2ecf20Sopenharmony_ci	SCK4_A_MARK,
18058c2ecf20Sopenharmony_ci};
18068c2ecf20Sopenharmony_cistatic const unsigned int scif4_data_b_pins[] = {
18078c2ecf20Sopenharmony_ci	/* RX, TX */
18088c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 17),
18098c2ecf20Sopenharmony_ci};
18108c2ecf20Sopenharmony_cistatic const unsigned int scif4_data_b_mux[] = {
18118c2ecf20Sopenharmony_ci	RX4_B_MARK, TX4_B_MARK,
18128c2ecf20Sopenharmony_ci};
18138c2ecf20Sopenharmony_cistatic const unsigned int scif4_clk_b_pins[] = {
18148c2ecf20Sopenharmony_ci	/* SCK */
18158c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 15),
18168c2ecf20Sopenharmony_ci};
18178c2ecf20Sopenharmony_cistatic const unsigned int scif4_clk_b_mux[] = {
18188c2ecf20Sopenharmony_ci	SCK4_B_MARK,
18198c2ecf20Sopenharmony_ci};
18208c2ecf20Sopenharmony_ci/* - SCIF5 ------------------------------------------------------------------ */
18218c2ecf20Sopenharmony_cistatic const unsigned int scif5_data_a_pins[] = {
18228c2ecf20Sopenharmony_ci	/* RX, TX */
18238c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 7), RCAR_GP_PIN(0, 8),
18248c2ecf20Sopenharmony_ci};
18258c2ecf20Sopenharmony_cistatic const unsigned int scif5_data_a_mux[] = {
18268c2ecf20Sopenharmony_ci	RX5_A_MARK, TX5_A_MARK,
18278c2ecf20Sopenharmony_ci};
18288c2ecf20Sopenharmony_cistatic const unsigned int scif5_clk_a_pins[] = {
18298c2ecf20Sopenharmony_ci	/* SCK */
18308c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 6),
18318c2ecf20Sopenharmony_ci};
18328c2ecf20Sopenharmony_cistatic const unsigned int scif5_clk_a_mux[] = {
18338c2ecf20Sopenharmony_ci	SCK5_A_MARK,
18348c2ecf20Sopenharmony_ci};
18358c2ecf20Sopenharmony_cistatic const unsigned int scif5_data_b_pins[] = {
18368c2ecf20Sopenharmony_ci	/* RX, TX */
18378c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 5),
18388c2ecf20Sopenharmony_ci};
18398c2ecf20Sopenharmony_cistatic const unsigned int scif5_data_b_mux[] = {
18408c2ecf20Sopenharmony_ci	RX5_B_MARK, TX5_B_MARK,
18418c2ecf20Sopenharmony_ci};
18428c2ecf20Sopenharmony_cistatic const unsigned int scif5_clk_b_pins[] = {
18438c2ecf20Sopenharmony_ci	/* SCK */
18448c2ecf20Sopenharmony_ci	RCAR_GP_PIN(1, 3),
18458c2ecf20Sopenharmony_ci};
18468c2ecf20Sopenharmony_cistatic const unsigned int scif5_clk_b_mux[] = {
18478c2ecf20Sopenharmony_ci	SCK5_B_MARK,
18488c2ecf20Sopenharmony_ci};
18498c2ecf20Sopenharmony_ci/* - SCIF Clock ------------------------------------------------------------- */
18508c2ecf20Sopenharmony_cistatic const unsigned int scif_clk_pins[] = {
18518c2ecf20Sopenharmony_ci	/* SCIF_CLK */
18528c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 27),
18538c2ecf20Sopenharmony_ci};
18548c2ecf20Sopenharmony_cistatic const unsigned int scif_clk_mux[] = {
18558c2ecf20Sopenharmony_ci	SCIF_CLK_MARK,
18568c2ecf20Sopenharmony_ci};
18578c2ecf20Sopenharmony_ci
18588c2ecf20Sopenharmony_ci/* - SSI ---------------------------------------------------------------*/
18598c2ecf20Sopenharmony_cistatic const unsigned int ssi3_data_pins[] = {
18608c2ecf20Sopenharmony_ci	/* SDATA */
18618c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 3),
18628c2ecf20Sopenharmony_ci};
18638c2ecf20Sopenharmony_cistatic const unsigned int ssi3_data_mux[] = {
18648c2ecf20Sopenharmony_ci	SSI_SDATA3_MARK,
18658c2ecf20Sopenharmony_ci};
18668c2ecf20Sopenharmony_cistatic const unsigned int ssi34_ctrl_pins[] = {
18678c2ecf20Sopenharmony_ci	/* SCK,  WS */
18688c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 4),
18698c2ecf20Sopenharmony_ci};
18708c2ecf20Sopenharmony_cistatic const unsigned int ssi34_ctrl_mux[] = {
18718c2ecf20Sopenharmony_ci	SSI_SCK34_MARK, SSI_WS34_MARK,
18728c2ecf20Sopenharmony_ci};
18738c2ecf20Sopenharmony_cistatic const unsigned int ssi4_ctrl_a_pins[] = {
18748c2ecf20Sopenharmony_ci	/* SCK, WS */
18758c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 5), RCAR_GP_PIN(4, 7),
18768c2ecf20Sopenharmony_ci};
18778c2ecf20Sopenharmony_cistatic const unsigned int ssi4_ctrl_a_mux[] = {
18788c2ecf20Sopenharmony_ci	SSI_SCK4_A_MARK, SSI_WS4_A_MARK,
18798c2ecf20Sopenharmony_ci};
18808c2ecf20Sopenharmony_cistatic const unsigned int ssi4_data_a_pins[] = {
18818c2ecf20Sopenharmony_ci	/* SDATA */
18828c2ecf20Sopenharmony_ci	RCAR_GP_PIN(4, 6),
18838c2ecf20Sopenharmony_ci};
18848c2ecf20Sopenharmony_cistatic const unsigned int ssi4_data_a_mux[] = {
18858c2ecf20Sopenharmony_ci	SSI_SDATA4_A_MARK,
18868c2ecf20Sopenharmony_ci};
18878c2ecf20Sopenharmony_cistatic const unsigned int ssi4_ctrl_b_pins[] = {
18888c2ecf20Sopenharmony_ci	/* SCK, WS */
18898c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 20),
18908c2ecf20Sopenharmony_ci};
18918c2ecf20Sopenharmony_cistatic const unsigned int ssi4_ctrl_b_mux[] = {
18928c2ecf20Sopenharmony_ci	SSI_SCK4_B_MARK, SSI_WS4_B_MARK,
18938c2ecf20Sopenharmony_ci};
18948c2ecf20Sopenharmony_cistatic const unsigned int ssi4_data_b_pins[] = {
18958c2ecf20Sopenharmony_ci	/* SDATA */
18968c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 16),
18978c2ecf20Sopenharmony_ci};
18988c2ecf20Sopenharmony_cistatic const unsigned int ssi4_data_b_mux[] = {
18998c2ecf20Sopenharmony_ci	SSI_SDATA4_B_MARK,
19008c2ecf20Sopenharmony_ci};
19018c2ecf20Sopenharmony_ci
19028c2ecf20Sopenharmony_ci/* - USB0 ------------------------------------------------------------------- */
19038c2ecf20Sopenharmony_cistatic const unsigned int usb0_pins[] = {
19048c2ecf20Sopenharmony_ci	/* PWEN, OVC */
19058c2ecf20Sopenharmony_ci	RCAR_GP_PIN(0, 0), RCAR_GP_PIN(0, 1),
19068c2ecf20Sopenharmony_ci};
19078c2ecf20Sopenharmony_cistatic const unsigned int usb0_mux[] = {
19088c2ecf20Sopenharmony_ci	USB0_PWEN_MARK, USB0_OVC_MARK,
19098c2ecf20Sopenharmony_ci};
19108c2ecf20Sopenharmony_ci
19118c2ecf20Sopenharmony_ci/* - VIN4 ------------------------------------------------------------------- */
19128c2ecf20Sopenharmony_cistatic const unsigned int vin4_data18_pins[] = {
19138c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 4),
19148c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 6),
19158c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
19168c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 12),
19178c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 13), RCAR_GP_PIN(2, 14),
19188c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 16),
19198c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 19), RCAR_GP_PIN(2, 20),
19208c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 21), RCAR_GP_PIN(2, 22),
19218c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 23), RCAR_GP_PIN(2, 24),
19228c2ecf20Sopenharmony_ci};
19238c2ecf20Sopenharmony_cistatic const unsigned int vin4_data18_mux[] = {
19248c2ecf20Sopenharmony_ci	VI4_DATA2_MARK, VI4_DATA3_MARK,
19258c2ecf20Sopenharmony_ci	VI4_DATA4_MARK, VI4_DATA5_MARK,
19268c2ecf20Sopenharmony_ci	VI4_DATA6_MARK, VI4_DATA7_MARK,
19278c2ecf20Sopenharmony_ci	VI4_DATA10_MARK, VI4_DATA11_MARK,
19288c2ecf20Sopenharmony_ci	VI4_DATA12_MARK, VI4_DATA13_MARK,
19298c2ecf20Sopenharmony_ci	VI4_DATA14_MARK, VI4_DATA15_MARK,
19308c2ecf20Sopenharmony_ci	VI4_DATA18_MARK, VI4_DATA19_MARK,
19318c2ecf20Sopenharmony_ci	VI4_DATA20_MARK, VI4_DATA21_MARK,
19328c2ecf20Sopenharmony_ci	VI4_DATA22_MARK, VI4_DATA23_MARK,
19338c2ecf20Sopenharmony_ci};
19348c2ecf20Sopenharmony_cistatic const union vin_data vin4_data_pins = {
19358c2ecf20Sopenharmony_ci	.data24 = {
19368c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 1), RCAR_GP_PIN(2, 2),
19378c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 4),
19388c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 6),
19398c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
19408c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 10),
19418c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 12),
19428c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 13), RCAR_GP_PIN(2, 14),
19438c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 16),
19448c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 17), RCAR_GP_PIN(2, 18),
19458c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 19), RCAR_GP_PIN(2, 20),
19468c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 21), RCAR_GP_PIN(2, 22),
19478c2ecf20Sopenharmony_ci		RCAR_GP_PIN(2, 23), RCAR_GP_PIN(2, 24),
19488c2ecf20Sopenharmony_ci	},
19498c2ecf20Sopenharmony_ci};
19508c2ecf20Sopenharmony_cistatic const union vin_data vin4_data_mux = {
19518c2ecf20Sopenharmony_ci	.data24 = {
19528c2ecf20Sopenharmony_ci		VI4_DATA0_MARK, VI4_DATA1_MARK,
19538c2ecf20Sopenharmony_ci		VI4_DATA2_MARK, VI4_DATA3_MARK,
19548c2ecf20Sopenharmony_ci		VI4_DATA4_MARK, VI4_DATA5_MARK,
19558c2ecf20Sopenharmony_ci		VI4_DATA6_MARK, VI4_DATA7_MARK,
19568c2ecf20Sopenharmony_ci		VI4_DATA8_MARK,  VI4_DATA9_MARK,
19578c2ecf20Sopenharmony_ci		VI4_DATA10_MARK, VI4_DATA11_MARK,
19588c2ecf20Sopenharmony_ci		VI4_DATA12_MARK, VI4_DATA13_MARK,
19598c2ecf20Sopenharmony_ci		VI4_DATA14_MARK, VI4_DATA15_MARK,
19608c2ecf20Sopenharmony_ci		VI4_DATA16_MARK, VI4_DATA17_MARK,
19618c2ecf20Sopenharmony_ci		VI4_DATA18_MARK, VI4_DATA19_MARK,
19628c2ecf20Sopenharmony_ci		VI4_DATA20_MARK, VI4_DATA21_MARK,
19638c2ecf20Sopenharmony_ci		VI4_DATA22_MARK, VI4_DATA23_MARK,
19648c2ecf20Sopenharmony_ci	},
19658c2ecf20Sopenharmony_ci};
19668c2ecf20Sopenharmony_cistatic const unsigned int vin4_sync_pins[] = {
19678c2ecf20Sopenharmony_ci	/* HSYNC#, VSYNC# */
19688c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 26), RCAR_GP_PIN(2, 25),
19698c2ecf20Sopenharmony_ci};
19708c2ecf20Sopenharmony_cistatic const unsigned int vin4_sync_mux[] = {
19718c2ecf20Sopenharmony_ci	VI4_HSYNC_N_MARK, VI4_VSYNC_N_MARK,
19728c2ecf20Sopenharmony_ci};
19738c2ecf20Sopenharmony_cistatic const unsigned int vin4_field_pins[] = {
19748c2ecf20Sopenharmony_ci	/* FIELD */
19758c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 27),
19768c2ecf20Sopenharmony_ci};
19778c2ecf20Sopenharmony_cistatic const unsigned int vin4_field_mux[] = {
19788c2ecf20Sopenharmony_ci	VI4_FIELD_MARK,
19798c2ecf20Sopenharmony_ci};
19808c2ecf20Sopenharmony_cistatic const unsigned int vin4_clkenb_pins[] = {
19818c2ecf20Sopenharmony_ci	/* CLKENB */
19828c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 28),
19838c2ecf20Sopenharmony_ci};
19848c2ecf20Sopenharmony_cistatic const unsigned int vin4_clkenb_mux[] = {
19858c2ecf20Sopenharmony_ci	VI4_CLKENB_MARK,
19868c2ecf20Sopenharmony_ci};
19878c2ecf20Sopenharmony_cistatic const unsigned int vin4_clk_pins[] = {
19888c2ecf20Sopenharmony_ci	/* CLK */
19898c2ecf20Sopenharmony_ci	RCAR_GP_PIN(2, 0),
19908c2ecf20Sopenharmony_ci};
19918c2ecf20Sopenharmony_cistatic const unsigned int vin4_clk_mux[] = {
19928c2ecf20Sopenharmony_ci	VI4_CLK_MARK,
19938c2ecf20Sopenharmony_ci};
19948c2ecf20Sopenharmony_ci
19958c2ecf20Sopenharmony_cistatic const struct sh_pfc_pin_group pinmux_groups[] = {
19968c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(audio_clk_a),
19978c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(audio_clk_b),
19988c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(audio_clkout),
19998c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(audio_clkout1),
20008c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(avb0_link),
20018c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(avb0_magic),
20028c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(avb0_phy_int),
20038c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP_ALIAS(avb0_mdc, avb0_mdio),	/* Deprecated */
20048c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(avb0_mdio),
20058c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(avb0_mii),
20068c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(avb0_avtp_pps_a),
20078c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(avb0_avtp_match_a),
20088c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(avb0_avtp_capture_a),
20098c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(avb0_avtp_pps_b),
20108c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(avb0_avtp_match_b),
20118c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(avb0_avtp_capture_b),
20128c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(can0_data_a),
20138c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(can0_data_b),
20148c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(can1_data_a),
20158c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(can1_data_b),
20168c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(can_clk),
20178c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(canfd0_data),
20188c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(canfd1_data),
20198c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(du_rgb666),
20208c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(du_rgb888),
20218c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(du_clk_in_1),
20228c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(du_clk_out_0),
20238c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(du_sync),
20248c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(du_disp_cde),
20258c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(du_cde),
20268c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(du_disp),
20278c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(i2c0),
20288c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(i2c1),
20298c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(i2c2_a),
20308c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(i2c2_b),
20318c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(i2c3_a),
20328c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(i2c3_b),
20338c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(mmc_data1),
20348c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(mmc_data4),
20358c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(mmc_data8),
20368c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(mmc_ctrl),
20378c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof0_clk),
20388c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof0_sync),
20398c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof0_ss1),
20408c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof0_ss2),
20418c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof0_txd),
20428c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof0_rxd),
20438c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof1_clk),
20448c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof1_sync),
20458c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof1_ss1),
20468c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof1_ss2),
20478c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof1_txd),
20488c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof1_rxd),
20498c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof2_clk),
20508c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof2_sync_a),
20518c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof2_sync_b),
20528c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof2_ss1),
20538c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof2_ss2),
20548c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof2_txd),
20558c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof2_rxd),
20568c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_clk_a),
20578c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_sync_a),
20588c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_ss1_a),
20598c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_ss2_a),
20608c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_txd_a),
20618c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_rxd_a),
20628c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_clk_b),
20638c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_sync_b),
20648c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_ss1_b),
20658c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_ss2_b),
20668c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_txd_b),
20678c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(msiof3_rxd_b),
20688c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm0_a),
20698c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm0_b),
20708c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm0_c),
20718c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm1_a),
20728c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm1_b),
20738c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm1_c),
20748c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm2_a),
20758c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm2_b),
20768c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm2_c),
20778c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm3_a),
20788c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm3_b),
20798c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(pwm3_c),
20808c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif0_data_a),
20818c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif0_clk_a),
20828c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif0_data_b),
20838c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif0_clk_b),
20848c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif0_ctrl),
20858c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif1_data_a),
20868c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif1_clk_a),
20878c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif1_data_b),
20888c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif1_clk_b),
20898c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif1_ctrl),
20908c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif2_data),
20918c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif2_clk),
20928c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif3_data_a),
20938c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif3_clk_a),
20948c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif3_data_b),
20958c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif3_clk_b),
20968c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif4_data_a),
20978c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif4_clk_a),
20988c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif4_data_b),
20998c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif4_clk_b),
21008c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif5_data_a),
21018c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif5_clk_a),
21028c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif5_data_b),
21038c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif5_clk_b),
21048c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(scif_clk),
21058c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(ssi3_data),
21068c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(ssi34_ctrl),
21078c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(ssi4_ctrl_a),
21088c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(ssi4_data_a),
21098c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(ssi4_ctrl_b),
21108c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(ssi4_data_b),
21118c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(usb0),
21128c2ecf20Sopenharmony_ci	VIN_DATA_PIN_GROUP(vin4_data, 8),
21138c2ecf20Sopenharmony_ci	VIN_DATA_PIN_GROUP(vin4_data, 10),
21148c2ecf20Sopenharmony_ci	VIN_DATA_PIN_GROUP(vin4_data, 12),
21158c2ecf20Sopenharmony_ci	VIN_DATA_PIN_GROUP(vin4_data, 16),
21168c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(vin4_data18),
21178c2ecf20Sopenharmony_ci	VIN_DATA_PIN_GROUP(vin4_data, 20),
21188c2ecf20Sopenharmony_ci	VIN_DATA_PIN_GROUP(vin4_data, 24),
21198c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(vin4_sync),
21208c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(vin4_field),
21218c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(vin4_clkenb),
21228c2ecf20Sopenharmony_ci	SH_PFC_PIN_GROUP(vin4_clk),
21238c2ecf20Sopenharmony_ci};
21248c2ecf20Sopenharmony_ci
21258c2ecf20Sopenharmony_cistatic const char * const audio_clk_groups[] = {
21268c2ecf20Sopenharmony_ci	"audio_clk_a",
21278c2ecf20Sopenharmony_ci	"audio_clk_b",
21288c2ecf20Sopenharmony_ci	"audio_clkout",
21298c2ecf20Sopenharmony_ci	"audio_clkout1",
21308c2ecf20Sopenharmony_ci};
21318c2ecf20Sopenharmony_ci
21328c2ecf20Sopenharmony_cistatic const char * const avb0_groups[] = {
21338c2ecf20Sopenharmony_ci	"avb0_link",
21348c2ecf20Sopenharmony_ci	"avb0_magic",
21358c2ecf20Sopenharmony_ci	"avb0_phy_int",
21368c2ecf20Sopenharmony_ci	"avb0_mdc",	/* Deprecated, please use "avb0_mdio" instead */
21378c2ecf20Sopenharmony_ci	"avb0_mdio",
21388c2ecf20Sopenharmony_ci	"avb0_mii",
21398c2ecf20Sopenharmony_ci	"avb0_avtp_pps_a",
21408c2ecf20Sopenharmony_ci	"avb0_avtp_match_a",
21418c2ecf20Sopenharmony_ci	"avb0_avtp_capture_a",
21428c2ecf20Sopenharmony_ci	"avb0_avtp_pps_b",
21438c2ecf20Sopenharmony_ci	"avb0_avtp_match_b",
21448c2ecf20Sopenharmony_ci	"avb0_avtp_capture_b",
21458c2ecf20Sopenharmony_ci};
21468c2ecf20Sopenharmony_ci
21478c2ecf20Sopenharmony_cistatic const char * const can0_groups[] = {
21488c2ecf20Sopenharmony_ci	"can0_data_a",
21498c2ecf20Sopenharmony_ci	"can0_data_b",
21508c2ecf20Sopenharmony_ci};
21518c2ecf20Sopenharmony_cistatic const char * const can1_groups[] = {
21528c2ecf20Sopenharmony_ci	"can1_data_a",
21538c2ecf20Sopenharmony_ci	"can1_data_b",
21548c2ecf20Sopenharmony_ci};
21558c2ecf20Sopenharmony_cistatic const char * const can_clk_groups[] = {
21568c2ecf20Sopenharmony_ci	"can_clk",
21578c2ecf20Sopenharmony_ci};
21588c2ecf20Sopenharmony_ci
21598c2ecf20Sopenharmony_cistatic const char * const canfd0_groups[] = {
21608c2ecf20Sopenharmony_ci	"canfd0_data",
21618c2ecf20Sopenharmony_ci};
21628c2ecf20Sopenharmony_cistatic const char * const canfd1_groups[] = {
21638c2ecf20Sopenharmony_ci	"canfd1_data",
21648c2ecf20Sopenharmony_ci};
21658c2ecf20Sopenharmony_ci
21668c2ecf20Sopenharmony_cistatic const char * const du_groups[] = {
21678c2ecf20Sopenharmony_ci	"du_rgb666",
21688c2ecf20Sopenharmony_ci	"du_rgb888",
21698c2ecf20Sopenharmony_ci	"du_clk_in_1",
21708c2ecf20Sopenharmony_ci	"du_clk_out_0",
21718c2ecf20Sopenharmony_ci	"du_sync",
21728c2ecf20Sopenharmony_ci	"du_disp_cde",
21738c2ecf20Sopenharmony_ci	"du_cde",
21748c2ecf20Sopenharmony_ci	"du_disp",
21758c2ecf20Sopenharmony_ci};
21768c2ecf20Sopenharmony_ci
21778c2ecf20Sopenharmony_cistatic const char * const i2c0_groups[] = {
21788c2ecf20Sopenharmony_ci	"i2c0",
21798c2ecf20Sopenharmony_ci};
21808c2ecf20Sopenharmony_cistatic const char * const i2c1_groups[] = {
21818c2ecf20Sopenharmony_ci	"i2c1",
21828c2ecf20Sopenharmony_ci};
21838c2ecf20Sopenharmony_ci
21848c2ecf20Sopenharmony_cistatic const char * const i2c2_groups[] = {
21858c2ecf20Sopenharmony_ci	"i2c2_a",
21868c2ecf20Sopenharmony_ci	"i2c2_b",
21878c2ecf20Sopenharmony_ci};
21888c2ecf20Sopenharmony_ci
21898c2ecf20Sopenharmony_cistatic const char * const i2c3_groups[] = {
21908c2ecf20Sopenharmony_ci	"i2c3_a",
21918c2ecf20Sopenharmony_ci	"i2c3_b",
21928c2ecf20Sopenharmony_ci};
21938c2ecf20Sopenharmony_ci
21948c2ecf20Sopenharmony_cistatic const char * const mmc_groups[] = {
21958c2ecf20Sopenharmony_ci	"mmc_data1",
21968c2ecf20Sopenharmony_ci	"mmc_data4",
21978c2ecf20Sopenharmony_ci	"mmc_data8",
21988c2ecf20Sopenharmony_ci	"mmc_ctrl",
21998c2ecf20Sopenharmony_ci};
22008c2ecf20Sopenharmony_ci
22018c2ecf20Sopenharmony_cistatic const char * const pwm0_groups[] = {
22028c2ecf20Sopenharmony_ci	"pwm0_a",
22038c2ecf20Sopenharmony_ci	"pwm0_b",
22048c2ecf20Sopenharmony_ci	"pwm0_c",
22058c2ecf20Sopenharmony_ci};
22068c2ecf20Sopenharmony_ci
22078c2ecf20Sopenharmony_cistatic const char * const pwm1_groups[] = {
22088c2ecf20Sopenharmony_ci	"pwm1_a",
22098c2ecf20Sopenharmony_ci	"pwm1_b",
22108c2ecf20Sopenharmony_ci	"pwm1_c",
22118c2ecf20Sopenharmony_ci};
22128c2ecf20Sopenharmony_ci
22138c2ecf20Sopenharmony_cistatic const char * const pwm2_groups[] = {
22148c2ecf20Sopenharmony_ci	"pwm2_a",
22158c2ecf20Sopenharmony_ci	"pwm2_b",
22168c2ecf20Sopenharmony_ci	"pwm2_c",
22178c2ecf20Sopenharmony_ci};
22188c2ecf20Sopenharmony_ci
22198c2ecf20Sopenharmony_cistatic const char * const pwm3_groups[] = {
22208c2ecf20Sopenharmony_ci	"pwm3_a",
22218c2ecf20Sopenharmony_ci	"pwm3_b",
22228c2ecf20Sopenharmony_ci	"pwm3_c",
22238c2ecf20Sopenharmony_ci};
22248c2ecf20Sopenharmony_ci
22258c2ecf20Sopenharmony_cistatic const char * const scif0_groups[] = {
22268c2ecf20Sopenharmony_ci	"scif0_data_a",
22278c2ecf20Sopenharmony_ci	"scif0_clk_a",
22288c2ecf20Sopenharmony_ci	"scif0_data_b",
22298c2ecf20Sopenharmony_ci	"scif0_clk_b",
22308c2ecf20Sopenharmony_ci	"scif0_ctrl",
22318c2ecf20Sopenharmony_ci};
22328c2ecf20Sopenharmony_ci
22338c2ecf20Sopenharmony_cistatic const char * const scif1_groups[] = {
22348c2ecf20Sopenharmony_ci	"scif1_data_a",
22358c2ecf20Sopenharmony_ci	"scif1_clk_a",
22368c2ecf20Sopenharmony_ci	"scif1_data_b",
22378c2ecf20Sopenharmony_ci	"scif1_clk_b",
22388c2ecf20Sopenharmony_ci	"scif1_ctrl",
22398c2ecf20Sopenharmony_ci};
22408c2ecf20Sopenharmony_ci
22418c2ecf20Sopenharmony_cistatic const char * const scif2_groups[] = {
22428c2ecf20Sopenharmony_ci	"scif2_data",
22438c2ecf20Sopenharmony_ci	"scif2_clk",
22448c2ecf20Sopenharmony_ci};
22458c2ecf20Sopenharmony_ci
22468c2ecf20Sopenharmony_cistatic const char * const scif3_groups[] = {
22478c2ecf20Sopenharmony_ci	"scif3_data_a",
22488c2ecf20Sopenharmony_ci	"scif3_clk_a",
22498c2ecf20Sopenharmony_ci	"scif3_data_b",
22508c2ecf20Sopenharmony_ci	"scif3_clk_b",
22518c2ecf20Sopenharmony_ci};
22528c2ecf20Sopenharmony_ci
22538c2ecf20Sopenharmony_cistatic const char * const scif4_groups[] = {
22548c2ecf20Sopenharmony_ci	"scif4_data_a",
22558c2ecf20Sopenharmony_ci	"scif4_clk_a",
22568c2ecf20Sopenharmony_ci	"scif4_data_b",
22578c2ecf20Sopenharmony_ci	"scif4_clk_b",
22588c2ecf20Sopenharmony_ci};
22598c2ecf20Sopenharmony_ci
22608c2ecf20Sopenharmony_cistatic const char * const scif5_groups[] = {
22618c2ecf20Sopenharmony_ci	"scif5_data_a",
22628c2ecf20Sopenharmony_ci	"scif5_clk_a",
22638c2ecf20Sopenharmony_ci	"scif5_data_b",
22648c2ecf20Sopenharmony_ci	"scif5_clk_b",
22658c2ecf20Sopenharmony_ci};
22668c2ecf20Sopenharmony_ci
22678c2ecf20Sopenharmony_cistatic const char * const scif_clk_groups[] = {
22688c2ecf20Sopenharmony_ci	"scif_clk",
22698c2ecf20Sopenharmony_ci};
22708c2ecf20Sopenharmony_ci
22718c2ecf20Sopenharmony_cistatic const char * const ssi_groups[] = {
22728c2ecf20Sopenharmony_ci	"ssi3_data",
22738c2ecf20Sopenharmony_ci	"ssi34_ctrl",
22748c2ecf20Sopenharmony_ci	"ssi4_ctrl_a",
22758c2ecf20Sopenharmony_ci	"ssi4_data_a",
22768c2ecf20Sopenharmony_ci	"ssi4_ctrl_b",
22778c2ecf20Sopenharmony_ci	"ssi4_data_b",
22788c2ecf20Sopenharmony_ci};
22798c2ecf20Sopenharmony_ci
22808c2ecf20Sopenharmony_cistatic const char * const usb0_groups[] = {
22818c2ecf20Sopenharmony_ci	"usb0",
22828c2ecf20Sopenharmony_ci};
22838c2ecf20Sopenharmony_ci
22848c2ecf20Sopenharmony_cistatic const char * const vin4_groups[] = {
22858c2ecf20Sopenharmony_ci	"vin4_data8",
22868c2ecf20Sopenharmony_ci	"vin4_data10",
22878c2ecf20Sopenharmony_ci	"vin4_data12",
22888c2ecf20Sopenharmony_ci	"vin4_data16",
22898c2ecf20Sopenharmony_ci	"vin4_data18",
22908c2ecf20Sopenharmony_ci	"vin4_data20",
22918c2ecf20Sopenharmony_ci	"vin4_data24",
22928c2ecf20Sopenharmony_ci	"vin4_sync",
22938c2ecf20Sopenharmony_ci	"vin4_field",
22948c2ecf20Sopenharmony_ci	"vin4_clkenb",
22958c2ecf20Sopenharmony_ci	"vin4_clk",
22968c2ecf20Sopenharmony_ci};
22978c2ecf20Sopenharmony_ci
22988c2ecf20Sopenharmony_cistatic const char * const msiof0_groups[] = {
22998c2ecf20Sopenharmony_ci	"msiof0_clk",
23008c2ecf20Sopenharmony_ci	"msiof0_sync",
23018c2ecf20Sopenharmony_ci	"msiof0_ss1",
23028c2ecf20Sopenharmony_ci	"msiof0_ss2",
23038c2ecf20Sopenharmony_ci	"msiof0_txd",
23048c2ecf20Sopenharmony_ci	"msiof0_rxd",
23058c2ecf20Sopenharmony_ci};
23068c2ecf20Sopenharmony_ci
23078c2ecf20Sopenharmony_cistatic const char * const msiof1_groups[] = {
23088c2ecf20Sopenharmony_ci	"msiof1_clk",
23098c2ecf20Sopenharmony_ci	"msiof1_sync",
23108c2ecf20Sopenharmony_ci	"msiof1_ss1",
23118c2ecf20Sopenharmony_ci	"msiof1_ss2",
23128c2ecf20Sopenharmony_ci	"msiof1_txd",
23138c2ecf20Sopenharmony_ci	"msiof1_rxd",
23148c2ecf20Sopenharmony_ci};
23158c2ecf20Sopenharmony_ci
23168c2ecf20Sopenharmony_cistatic const char * const msiof2_groups[] = {
23178c2ecf20Sopenharmony_ci	"msiof2_clk",
23188c2ecf20Sopenharmony_ci	"msiof2_sync_a",
23198c2ecf20Sopenharmony_ci	"msiof2_sync_b",
23208c2ecf20Sopenharmony_ci	"msiof2_ss1",
23218c2ecf20Sopenharmony_ci	"msiof2_ss2",
23228c2ecf20Sopenharmony_ci	"msiof2_txd",
23238c2ecf20Sopenharmony_ci	"msiof2_rxd",
23248c2ecf20Sopenharmony_ci};
23258c2ecf20Sopenharmony_ci
23268c2ecf20Sopenharmony_cistatic const char * const msiof3_groups[] = {
23278c2ecf20Sopenharmony_ci	"msiof3_clk_a",
23288c2ecf20Sopenharmony_ci	"msiof3_sync_a",
23298c2ecf20Sopenharmony_ci	"msiof3_ss1_a",
23308c2ecf20Sopenharmony_ci	"msiof3_ss2_a",
23318c2ecf20Sopenharmony_ci	"msiof3_txd_a",
23328c2ecf20Sopenharmony_ci	"msiof3_rxd_a",
23338c2ecf20Sopenharmony_ci	"msiof3_clk_b",
23348c2ecf20Sopenharmony_ci	"msiof3_sync_b",
23358c2ecf20Sopenharmony_ci	"msiof3_ss1_b",
23368c2ecf20Sopenharmony_ci	"msiof3_ss2_b",
23378c2ecf20Sopenharmony_ci	"msiof3_txd_b",
23388c2ecf20Sopenharmony_ci	"msiof3_rxd_b",
23398c2ecf20Sopenharmony_ci};
23408c2ecf20Sopenharmony_ci
23418c2ecf20Sopenharmony_cistatic const struct sh_pfc_function pinmux_functions[] = {
23428c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(audio_clk),
23438c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(avb0),
23448c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(can0),
23458c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(can1),
23468c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(can_clk),
23478c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(canfd0),
23488c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(canfd1),
23498c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(du),
23508c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(i2c0),
23518c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(i2c1),
23528c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(i2c2),
23538c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(i2c3),
23548c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(mmc),
23558c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(msiof0),
23568c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(msiof1),
23578c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(msiof2),
23588c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(msiof3),
23598c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(pwm0),
23608c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(pwm1),
23618c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(pwm2),
23628c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(pwm3),
23638c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(scif0),
23648c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(scif1),
23658c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(scif2),
23668c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(scif3),
23678c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(scif4),
23688c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(scif5),
23698c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(scif_clk),
23708c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(ssi),
23718c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(usb0),
23728c2ecf20Sopenharmony_ci	SH_PFC_FUNCTION(vin4),
23738c2ecf20Sopenharmony_ci};
23748c2ecf20Sopenharmony_ci
23758c2ecf20Sopenharmony_cistatic const struct pinmux_cfg_reg pinmux_config_regs[] = {
23768c2ecf20Sopenharmony_ci#define F_(x, y)	FN_##y
23778c2ecf20Sopenharmony_ci#define FM(x)		FN_##x
23788c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("GPSR0", 0xe6060100, 32, 1, GROUP(
23798c2ecf20Sopenharmony_ci		0, 0,
23808c2ecf20Sopenharmony_ci		0, 0,
23818c2ecf20Sopenharmony_ci		0, 0,
23828c2ecf20Sopenharmony_ci		0, 0,
23838c2ecf20Sopenharmony_ci		0, 0,
23848c2ecf20Sopenharmony_ci		0, 0,
23858c2ecf20Sopenharmony_ci		0, 0,
23868c2ecf20Sopenharmony_ci		0, 0,
23878c2ecf20Sopenharmony_ci		0, 0,
23888c2ecf20Sopenharmony_ci		0, 0,
23898c2ecf20Sopenharmony_ci		0, 0,
23908c2ecf20Sopenharmony_ci		0, 0,
23918c2ecf20Sopenharmony_ci		0, 0,
23928c2ecf20Sopenharmony_ci		0, 0,
23938c2ecf20Sopenharmony_ci		0, 0,
23948c2ecf20Sopenharmony_ci		0, 0,
23958c2ecf20Sopenharmony_ci		0, 0,
23968c2ecf20Sopenharmony_ci		0, 0,
23978c2ecf20Sopenharmony_ci		0, 0,
23988c2ecf20Sopenharmony_ci		0, 0,
23998c2ecf20Sopenharmony_ci		0, 0,
24008c2ecf20Sopenharmony_ci		0, 0,
24018c2ecf20Sopenharmony_ci		0, 0,
24028c2ecf20Sopenharmony_ci		GP_0_8_FN,	GPSR0_8,
24038c2ecf20Sopenharmony_ci		GP_0_7_FN,	GPSR0_7,
24048c2ecf20Sopenharmony_ci		GP_0_6_FN,	GPSR0_6,
24058c2ecf20Sopenharmony_ci		GP_0_5_FN,	GPSR0_5,
24068c2ecf20Sopenharmony_ci		GP_0_4_FN,	GPSR0_4,
24078c2ecf20Sopenharmony_ci		GP_0_3_FN,	GPSR0_3,
24088c2ecf20Sopenharmony_ci		GP_0_2_FN,	GPSR0_2,
24098c2ecf20Sopenharmony_ci		GP_0_1_FN,	GPSR0_1,
24108c2ecf20Sopenharmony_ci		GP_0_0_FN,	GPSR0_0, ))
24118c2ecf20Sopenharmony_ci	},
24128c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("GPSR1", 0xe6060104, 32, 1, GROUP(
24138c2ecf20Sopenharmony_ci		GP_1_31_FN,	GPSR1_31,
24148c2ecf20Sopenharmony_ci		GP_1_30_FN,	GPSR1_30,
24158c2ecf20Sopenharmony_ci		GP_1_29_FN,	GPSR1_29,
24168c2ecf20Sopenharmony_ci		GP_1_28_FN,	GPSR1_28,
24178c2ecf20Sopenharmony_ci		GP_1_27_FN,	GPSR1_27,
24188c2ecf20Sopenharmony_ci		GP_1_26_FN,	GPSR1_26,
24198c2ecf20Sopenharmony_ci		GP_1_25_FN,	GPSR1_25,
24208c2ecf20Sopenharmony_ci		GP_1_24_FN,	GPSR1_24,
24218c2ecf20Sopenharmony_ci		GP_1_23_FN,	GPSR1_23,
24228c2ecf20Sopenharmony_ci		GP_1_22_FN,	GPSR1_22,
24238c2ecf20Sopenharmony_ci		GP_1_21_FN,	GPSR1_21,
24248c2ecf20Sopenharmony_ci		GP_1_20_FN,	GPSR1_20,
24258c2ecf20Sopenharmony_ci		GP_1_19_FN,	GPSR1_19,
24268c2ecf20Sopenharmony_ci		GP_1_18_FN,	GPSR1_18,
24278c2ecf20Sopenharmony_ci		GP_1_17_FN,	GPSR1_17,
24288c2ecf20Sopenharmony_ci		GP_1_16_FN,	GPSR1_16,
24298c2ecf20Sopenharmony_ci		GP_1_15_FN,	GPSR1_15,
24308c2ecf20Sopenharmony_ci		GP_1_14_FN,	GPSR1_14,
24318c2ecf20Sopenharmony_ci		GP_1_13_FN,	GPSR1_13,
24328c2ecf20Sopenharmony_ci		GP_1_12_FN,	GPSR1_12,
24338c2ecf20Sopenharmony_ci		GP_1_11_FN,	GPSR1_11,
24348c2ecf20Sopenharmony_ci		GP_1_10_FN,	GPSR1_10,
24358c2ecf20Sopenharmony_ci		GP_1_9_FN,	GPSR1_9,
24368c2ecf20Sopenharmony_ci		GP_1_8_FN,	GPSR1_8,
24378c2ecf20Sopenharmony_ci		GP_1_7_FN,	GPSR1_7,
24388c2ecf20Sopenharmony_ci		GP_1_6_FN,	GPSR1_6,
24398c2ecf20Sopenharmony_ci		GP_1_5_FN,	GPSR1_5,
24408c2ecf20Sopenharmony_ci		GP_1_4_FN,	GPSR1_4,
24418c2ecf20Sopenharmony_ci		GP_1_3_FN,	GPSR1_3,
24428c2ecf20Sopenharmony_ci		GP_1_2_FN,	GPSR1_2,
24438c2ecf20Sopenharmony_ci		GP_1_1_FN,	GPSR1_1,
24448c2ecf20Sopenharmony_ci		GP_1_0_FN,	GPSR1_0, ))
24458c2ecf20Sopenharmony_ci	},
24468c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("GPSR2", 0xe6060108, 32, 1, GROUP(
24478c2ecf20Sopenharmony_ci		GP_2_31_FN,	GPSR2_31,
24488c2ecf20Sopenharmony_ci		GP_2_30_FN,	GPSR2_30,
24498c2ecf20Sopenharmony_ci		GP_2_29_FN,	GPSR2_29,
24508c2ecf20Sopenharmony_ci		GP_2_28_FN,	GPSR2_28,
24518c2ecf20Sopenharmony_ci		GP_2_27_FN,	GPSR2_27,
24528c2ecf20Sopenharmony_ci		GP_2_26_FN,	GPSR2_26,
24538c2ecf20Sopenharmony_ci		GP_2_25_FN,	GPSR2_25,
24548c2ecf20Sopenharmony_ci		GP_2_24_FN,	GPSR2_24,
24558c2ecf20Sopenharmony_ci		GP_2_23_FN,	GPSR2_23,
24568c2ecf20Sopenharmony_ci		GP_2_22_FN,	GPSR2_22,
24578c2ecf20Sopenharmony_ci		GP_2_21_FN,	GPSR2_21,
24588c2ecf20Sopenharmony_ci		GP_2_20_FN,	GPSR2_20,
24598c2ecf20Sopenharmony_ci		GP_2_19_FN,	GPSR2_19,
24608c2ecf20Sopenharmony_ci		GP_2_18_FN,	GPSR2_18,
24618c2ecf20Sopenharmony_ci		GP_2_17_FN,	GPSR2_17,
24628c2ecf20Sopenharmony_ci		GP_2_16_FN,	GPSR2_16,
24638c2ecf20Sopenharmony_ci		GP_2_15_FN,	GPSR2_15,
24648c2ecf20Sopenharmony_ci		GP_2_14_FN,	GPSR2_14,
24658c2ecf20Sopenharmony_ci		GP_2_13_FN,	GPSR2_13,
24668c2ecf20Sopenharmony_ci		GP_2_12_FN,	GPSR2_12,
24678c2ecf20Sopenharmony_ci		GP_2_11_FN,	GPSR2_11,
24688c2ecf20Sopenharmony_ci		GP_2_10_FN,	GPSR2_10,
24698c2ecf20Sopenharmony_ci		GP_2_9_FN,	GPSR2_9,
24708c2ecf20Sopenharmony_ci		GP_2_8_FN,	GPSR2_8,
24718c2ecf20Sopenharmony_ci		GP_2_7_FN,	GPSR2_7,
24728c2ecf20Sopenharmony_ci		GP_2_6_FN,	GPSR2_6,
24738c2ecf20Sopenharmony_ci		GP_2_5_FN,	GPSR2_5,
24748c2ecf20Sopenharmony_ci		GP_2_4_FN,	GPSR2_4,
24758c2ecf20Sopenharmony_ci		GP_2_3_FN,	GPSR2_3,
24768c2ecf20Sopenharmony_ci		GP_2_2_FN,	GPSR2_2,
24778c2ecf20Sopenharmony_ci		GP_2_1_FN,	GPSR2_1,
24788c2ecf20Sopenharmony_ci		GP_2_0_FN,	GPSR2_0, ))
24798c2ecf20Sopenharmony_ci	},
24808c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("GPSR3", 0xe606010c, 32, 1, GROUP(
24818c2ecf20Sopenharmony_ci		0, 0,
24828c2ecf20Sopenharmony_ci		0, 0,
24838c2ecf20Sopenharmony_ci		0, 0,
24848c2ecf20Sopenharmony_ci		0, 0,
24858c2ecf20Sopenharmony_ci		0, 0,
24868c2ecf20Sopenharmony_ci		0, 0,
24878c2ecf20Sopenharmony_ci		0, 0,
24888c2ecf20Sopenharmony_ci		0, 0,
24898c2ecf20Sopenharmony_ci		0, 0,
24908c2ecf20Sopenharmony_ci		0, 0,
24918c2ecf20Sopenharmony_ci		0, 0,
24928c2ecf20Sopenharmony_ci		0, 0,
24938c2ecf20Sopenharmony_ci		0, 0,
24948c2ecf20Sopenharmony_ci		0, 0,
24958c2ecf20Sopenharmony_ci		0, 0,
24968c2ecf20Sopenharmony_ci		0, 0,
24978c2ecf20Sopenharmony_ci		0, 0,
24988c2ecf20Sopenharmony_ci		0, 0,
24998c2ecf20Sopenharmony_ci		0, 0,
25008c2ecf20Sopenharmony_ci		0, 0,
25018c2ecf20Sopenharmony_ci		0, 0,
25028c2ecf20Sopenharmony_ci		0, 0,
25038c2ecf20Sopenharmony_ci		GP_3_9_FN,	GPSR3_9,
25048c2ecf20Sopenharmony_ci		GP_3_8_FN,	GPSR3_8,
25058c2ecf20Sopenharmony_ci		GP_3_7_FN,	GPSR3_7,
25068c2ecf20Sopenharmony_ci		GP_3_6_FN,	GPSR3_6,
25078c2ecf20Sopenharmony_ci		GP_3_5_FN,	GPSR3_5,
25088c2ecf20Sopenharmony_ci		GP_3_4_FN,	GPSR3_4,
25098c2ecf20Sopenharmony_ci		GP_3_3_FN,	GPSR3_3,
25108c2ecf20Sopenharmony_ci		GP_3_2_FN,	GPSR3_2,
25118c2ecf20Sopenharmony_ci		GP_3_1_FN,	GPSR3_1,
25128c2ecf20Sopenharmony_ci		GP_3_0_FN,	GPSR3_0, ))
25138c2ecf20Sopenharmony_ci	},
25148c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("GPSR4", 0xe6060110, 32, 1, GROUP(
25158c2ecf20Sopenharmony_ci		GP_4_31_FN,	GPSR4_31,
25168c2ecf20Sopenharmony_ci		GP_4_30_FN,	GPSR4_30,
25178c2ecf20Sopenharmony_ci		GP_4_29_FN,	GPSR4_29,
25188c2ecf20Sopenharmony_ci		GP_4_28_FN,	GPSR4_28,
25198c2ecf20Sopenharmony_ci		GP_4_27_FN,	GPSR4_27,
25208c2ecf20Sopenharmony_ci		GP_4_26_FN,	GPSR4_26,
25218c2ecf20Sopenharmony_ci		GP_4_25_FN,	GPSR4_25,
25228c2ecf20Sopenharmony_ci		GP_4_24_FN,	GPSR4_24,
25238c2ecf20Sopenharmony_ci		GP_4_23_FN,	GPSR4_23,
25248c2ecf20Sopenharmony_ci		GP_4_22_FN,	GPSR4_22,
25258c2ecf20Sopenharmony_ci		GP_4_21_FN,	GPSR4_21,
25268c2ecf20Sopenharmony_ci		GP_4_20_FN,	GPSR4_20,
25278c2ecf20Sopenharmony_ci		GP_4_19_FN,	GPSR4_19,
25288c2ecf20Sopenharmony_ci		GP_4_18_FN,	GPSR4_18,
25298c2ecf20Sopenharmony_ci		GP_4_17_FN,	GPSR4_17,
25308c2ecf20Sopenharmony_ci		GP_4_16_FN,	GPSR4_16,
25318c2ecf20Sopenharmony_ci		GP_4_15_FN,	GPSR4_15,
25328c2ecf20Sopenharmony_ci		GP_4_14_FN,	GPSR4_14,
25338c2ecf20Sopenharmony_ci		GP_4_13_FN,	GPSR4_13,
25348c2ecf20Sopenharmony_ci		GP_4_12_FN,	GPSR4_12,
25358c2ecf20Sopenharmony_ci		GP_4_11_FN,	GPSR4_11,
25368c2ecf20Sopenharmony_ci		GP_4_10_FN,	GPSR4_10,
25378c2ecf20Sopenharmony_ci		GP_4_9_FN,	GPSR4_9,
25388c2ecf20Sopenharmony_ci		GP_4_8_FN,	GPSR4_8,
25398c2ecf20Sopenharmony_ci		GP_4_7_FN,	GPSR4_7,
25408c2ecf20Sopenharmony_ci		GP_4_6_FN,	GPSR4_6,
25418c2ecf20Sopenharmony_ci		GP_4_5_FN,	GPSR4_5,
25428c2ecf20Sopenharmony_ci		GP_4_4_FN,	GPSR4_4,
25438c2ecf20Sopenharmony_ci		GP_4_3_FN,	GPSR4_3,
25448c2ecf20Sopenharmony_ci		GP_4_2_FN,	GPSR4_2,
25458c2ecf20Sopenharmony_ci		GP_4_1_FN,	GPSR4_1,
25468c2ecf20Sopenharmony_ci		GP_4_0_FN,	GPSR4_0, ))
25478c2ecf20Sopenharmony_ci	},
25488c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("GPSR5", 0xe6060114, 32, 1, GROUP(
25498c2ecf20Sopenharmony_ci		0, 0,
25508c2ecf20Sopenharmony_ci		0, 0,
25518c2ecf20Sopenharmony_ci		0, 0,
25528c2ecf20Sopenharmony_ci		0, 0,
25538c2ecf20Sopenharmony_ci		0, 0,
25548c2ecf20Sopenharmony_ci		0, 0,
25558c2ecf20Sopenharmony_ci		0, 0,
25568c2ecf20Sopenharmony_ci		0, 0,
25578c2ecf20Sopenharmony_ci		0, 0,
25588c2ecf20Sopenharmony_ci		0, 0,
25598c2ecf20Sopenharmony_ci		0, 0,
25608c2ecf20Sopenharmony_ci		GP_5_20_FN,	GPSR5_20,
25618c2ecf20Sopenharmony_ci		GP_5_19_FN,	GPSR5_19,
25628c2ecf20Sopenharmony_ci		GP_5_18_FN,	GPSR5_18,
25638c2ecf20Sopenharmony_ci		GP_5_17_FN,	GPSR5_17,
25648c2ecf20Sopenharmony_ci		GP_5_16_FN,	GPSR5_16,
25658c2ecf20Sopenharmony_ci		GP_5_15_FN,	GPSR5_15,
25668c2ecf20Sopenharmony_ci		GP_5_14_FN,	GPSR5_14,
25678c2ecf20Sopenharmony_ci		GP_5_13_FN,	GPSR5_13,
25688c2ecf20Sopenharmony_ci		GP_5_12_FN,	GPSR5_12,
25698c2ecf20Sopenharmony_ci		GP_5_11_FN,	GPSR5_11,
25708c2ecf20Sopenharmony_ci		GP_5_10_FN,	GPSR5_10,
25718c2ecf20Sopenharmony_ci		GP_5_9_FN,	GPSR5_9,
25728c2ecf20Sopenharmony_ci		GP_5_8_FN,	GPSR5_8,
25738c2ecf20Sopenharmony_ci		GP_5_7_FN,	GPSR5_7,
25748c2ecf20Sopenharmony_ci		GP_5_6_FN,	GPSR5_6,
25758c2ecf20Sopenharmony_ci		GP_5_5_FN,	GPSR5_5,
25768c2ecf20Sopenharmony_ci		GP_5_4_FN,	GPSR5_4,
25778c2ecf20Sopenharmony_ci		GP_5_3_FN,	GPSR5_3,
25788c2ecf20Sopenharmony_ci		GP_5_2_FN,	GPSR5_2,
25798c2ecf20Sopenharmony_ci		GP_5_1_FN,	GPSR5_1,
25808c2ecf20Sopenharmony_ci		GP_5_0_FN,	GPSR5_0, ))
25818c2ecf20Sopenharmony_ci	},
25828c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("GPSR6", 0xe6060118, 32, 1, GROUP(
25838c2ecf20Sopenharmony_ci		0, 0,
25848c2ecf20Sopenharmony_ci		0, 0,
25858c2ecf20Sopenharmony_ci		0, 0,
25868c2ecf20Sopenharmony_ci		0, 0,
25878c2ecf20Sopenharmony_ci		0, 0,
25888c2ecf20Sopenharmony_ci		0, 0,
25898c2ecf20Sopenharmony_ci		0, 0,
25908c2ecf20Sopenharmony_ci		0, 0,
25918c2ecf20Sopenharmony_ci		0, 0,
25928c2ecf20Sopenharmony_ci		0, 0,
25938c2ecf20Sopenharmony_ci		0, 0,
25948c2ecf20Sopenharmony_ci		0, 0,
25958c2ecf20Sopenharmony_ci		0, 0,
25968c2ecf20Sopenharmony_ci		0, 0,
25978c2ecf20Sopenharmony_ci		0, 0,
25988c2ecf20Sopenharmony_ci		0, 0,
25998c2ecf20Sopenharmony_ci		0, 0,
26008c2ecf20Sopenharmony_ci		0, 0,
26018c2ecf20Sopenharmony_ci		GP_6_13_FN,	GPSR6_13,
26028c2ecf20Sopenharmony_ci		GP_6_12_FN,	GPSR6_12,
26038c2ecf20Sopenharmony_ci		GP_6_11_FN,	GPSR6_11,
26048c2ecf20Sopenharmony_ci		GP_6_10_FN,	GPSR6_10,
26058c2ecf20Sopenharmony_ci		GP_6_9_FN,	GPSR6_9,
26068c2ecf20Sopenharmony_ci		GP_6_8_FN,	GPSR6_8,
26078c2ecf20Sopenharmony_ci		GP_6_7_FN,	GPSR6_7,
26088c2ecf20Sopenharmony_ci		GP_6_6_FN,	GPSR6_6,
26098c2ecf20Sopenharmony_ci		GP_6_5_FN,	GPSR6_5,
26108c2ecf20Sopenharmony_ci		GP_6_4_FN,	GPSR6_4,
26118c2ecf20Sopenharmony_ci		GP_6_3_FN,	GPSR6_3,
26128c2ecf20Sopenharmony_ci		GP_6_2_FN,	GPSR6_2,
26138c2ecf20Sopenharmony_ci		GP_6_1_FN,	GPSR6_1,
26148c2ecf20Sopenharmony_ci		GP_6_0_FN,	GPSR6_0, ))
26158c2ecf20Sopenharmony_ci	},
26168c2ecf20Sopenharmony_ci#undef F_
26178c2ecf20Sopenharmony_ci#undef FM
26188c2ecf20Sopenharmony_ci
26198c2ecf20Sopenharmony_ci#define F_(x, y)	x,
26208c2ecf20Sopenharmony_ci#define FM(x)		FN_##x,
26218c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR0", 0xe6060200, 32, 4, GROUP(
26228c2ecf20Sopenharmony_ci		IP0_31_28
26238c2ecf20Sopenharmony_ci		IP0_27_24
26248c2ecf20Sopenharmony_ci		IP0_23_20
26258c2ecf20Sopenharmony_ci		IP0_19_16
26268c2ecf20Sopenharmony_ci		IP0_15_12
26278c2ecf20Sopenharmony_ci		IP0_11_8
26288c2ecf20Sopenharmony_ci		IP0_7_4
26298c2ecf20Sopenharmony_ci		IP0_3_0 ))
26308c2ecf20Sopenharmony_ci	},
26318c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR1", 0xe6060204, 32, 4, GROUP(
26328c2ecf20Sopenharmony_ci		IP1_31_28
26338c2ecf20Sopenharmony_ci		IP1_27_24
26348c2ecf20Sopenharmony_ci		IP1_23_20
26358c2ecf20Sopenharmony_ci		IP1_19_16
26368c2ecf20Sopenharmony_ci		IP1_15_12
26378c2ecf20Sopenharmony_ci		IP1_11_8
26388c2ecf20Sopenharmony_ci		IP1_7_4
26398c2ecf20Sopenharmony_ci		IP1_3_0 ))
26408c2ecf20Sopenharmony_ci	},
26418c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR2", 0xe6060208, 32, 4, GROUP(
26428c2ecf20Sopenharmony_ci		IP2_31_28
26438c2ecf20Sopenharmony_ci		IP2_27_24
26448c2ecf20Sopenharmony_ci		IP2_23_20
26458c2ecf20Sopenharmony_ci		IP2_19_16
26468c2ecf20Sopenharmony_ci		IP2_15_12
26478c2ecf20Sopenharmony_ci		IP2_11_8
26488c2ecf20Sopenharmony_ci		IP2_7_4
26498c2ecf20Sopenharmony_ci		IP2_3_0 ))
26508c2ecf20Sopenharmony_ci	},
26518c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR3", 0xe606020c, 32, 4, GROUP(
26528c2ecf20Sopenharmony_ci		IP3_31_28
26538c2ecf20Sopenharmony_ci		IP3_27_24
26548c2ecf20Sopenharmony_ci		IP3_23_20
26558c2ecf20Sopenharmony_ci		IP3_19_16
26568c2ecf20Sopenharmony_ci		IP3_15_12
26578c2ecf20Sopenharmony_ci		IP3_11_8
26588c2ecf20Sopenharmony_ci		IP3_7_4
26598c2ecf20Sopenharmony_ci		IP3_3_0 ))
26608c2ecf20Sopenharmony_ci	},
26618c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR4", 0xe6060210, 32, 4, GROUP(
26628c2ecf20Sopenharmony_ci		IP4_31_28
26638c2ecf20Sopenharmony_ci		IP4_27_24
26648c2ecf20Sopenharmony_ci		IP4_23_20
26658c2ecf20Sopenharmony_ci		IP4_19_16
26668c2ecf20Sopenharmony_ci		IP4_15_12
26678c2ecf20Sopenharmony_ci		IP4_11_8
26688c2ecf20Sopenharmony_ci		IP4_7_4
26698c2ecf20Sopenharmony_ci		IP4_3_0 ))
26708c2ecf20Sopenharmony_ci	},
26718c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR5", 0xe6060214, 32, 4, GROUP(
26728c2ecf20Sopenharmony_ci		IP5_31_28
26738c2ecf20Sopenharmony_ci		IP5_27_24
26748c2ecf20Sopenharmony_ci		IP5_23_20
26758c2ecf20Sopenharmony_ci		IP5_19_16
26768c2ecf20Sopenharmony_ci		IP5_15_12
26778c2ecf20Sopenharmony_ci		IP5_11_8
26788c2ecf20Sopenharmony_ci		IP5_7_4
26798c2ecf20Sopenharmony_ci		IP5_3_0 ))
26808c2ecf20Sopenharmony_ci	},
26818c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR6", 0xe6060218, 32, 4, GROUP(
26828c2ecf20Sopenharmony_ci		IP6_31_28
26838c2ecf20Sopenharmony_ci		IP6_27_24
26848c2ecf20Sopenharmony_ci		IP6_23_20
26858c2ecf20Sopenharmony_ci		IP6_19_16
26868c2ecf20Sopenharmony_ci		IP6_15_12
26878c2ecf20Sopenharmony_ci		IP6_11_8
26888c2ecf20Sopenharmony_ci		IP6_7_4
26898c2ecf20Sopenharmony_ci		IP6_3_0 ))
26908c2ecf20Sopenharmony_ci	},
26918c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR7", 0xe606021c, 32, 4, GROUP(
26928c2ecf20Sopenharmony_ci		IP7_31_28
26938c2ecf20Sopenharmony_ci		IP7_27_24
26948c2ecf20Sopenharmony_ci		IP7_23_20
26958c2ecf20Sopenharmony_ci		IP7_19_16
26968c2ecf20Sopenharmony_ci		IP7_15_12
26978c2ecf20Sopenharmony_ci		IP7_11_8
26988c2ecf20Sopenharmony_ci		IP7_7_4
26998c2ecf20Sopenharmony_ci		IP7_3_0 ))
27008c2ecf20Sopenharmony_ci	},
27018c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR8", 0xe6060220, 32, 4, GROUP(
27028c2ecf20Sopenharmony_ci		IP8_31_28
27038c2ecf20Sopenharmony_ci		IP8_27_24
27048c2ecf20Sopenharmony_ci		IP8_23_20
27058c2ecf20Sopenharmony_ci		IP8_19_16
27068c2ecf20Sopenharmony_ci		IP8_15_12
27078c2ecf20Sopenharmony_ci		IP8_11_8
27088c2ecf20Sopenharmony_ci		IP8_7_4
27098c2ecf20Sopenharmony_ci		IP8_3_0 ))
27108c2ecf20Sopenharmony_ci	},
27118c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR9", 0xe6060224, 32, 4, GROUP(
27128c2ecf20Sopenharmony_ci		IP9_31_28
27138c2ecf20Sopenharmony_ci		IP9_27_24
27148c2ecf20Sopenharmony_ci		IP9_23_20
27158c2ecf20Sopenharmony_ci		IP9_19_16
27168c2ecf20Sopenharmony_ci		IP9_15_12
27178c2ecf20Sopenharmony_ci		IP9_11_8
27188c2ecf20Sopenharmony_ci		IP9_7_4
27198c2ecf20Sopenharmony_ci		IP9_3_0 ))
27208c2ecf20Sopenharmony_ci	},
27218c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR10", 0xe6060228, 32, 4, GROUP(
27228c2ecf20Sopenharmony_ci		IP10_31_28
27238c2ecf20Sopenharmony_ci		IP10_27_24
27248c2ecf20Sopenharmony_ci		IP10_23_20
27258c2ecf20Sopenharmony_ci		IP10_19_16
27268c2ecf20Sopenharmony_ci		IP10_15_12
27278c2ecf20Sopenharmony_ci		IP10_11_8
27288c2ecf20Sopenharmony_ci		IP10_7_4
27298c2ecf20Sopenharmony_ci		IP10_3_0 ))
27308c2ecf20Sopenharmony_ci	},
27318c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR11", 0xe606022c, 32, 4, GROUP(
27328c2ecf20Sopenharmony_ci		IP11_31_28
27338c2ecf20Sopenharmony_ci		IP11_27_24
27348c2ecf20Sopenharmony_ci		IP11_23_20
27358c2ecf20Sopenharmony_ci		IP11_19_16
27368c2ecf20Sopenharmony_ci		IP11_15_12
27378c2ecf20Sopenharmony_ci		IP11_11_8
27388c2ecf20Sopenharmony_ci		IP11_7_4
27398c2ecf20Sopenharmony_ci		IP11_3_0 ))
27408c2ecf20Sopenharmony_ci	},
27418c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR12", 0xe6060230, 32, 4, GROUP(
27428c2ecf20Sopenharmony_ci		IP12_31_28
27438c2ecf20Sopenharmony_ci		IP12_27_24
27448c2ecf20Sopenharmony_ci		IP12_23_20
27458c2ecf20Sopenharmony_ci		IP12_19_16
27468c2ecf20Sopenharmony_ci		IP12_15_12
27478c2ecf20Sopenharmony_ci		IP12_11_8
27488c2ecf20Sopenharmony_ci		IP12_7_4
27498c2ecf20Sopenharmony_ci		IP12_3_0 ))
27508c2ecf20Sopenharmony_ci	},
27518c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG("IPSR13", 0xe6060234, 32, 4, GROUP(
27528c2ecf20Sopenharmony_ci		/* IP13_31_28 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
27538c2ecf20Sopenharmony_ci		/* IP13_27_24 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
27548c2ecf20Sopenharmony_ci		/* IP13_23_20 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
27558c2ecf20Sopenharmony_ci		/* IP13_19_16 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
27568c2ecf20Sopenharmony_ci		/* IP13_15_12 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
27578c2ecf20Sopenharmony_ci		/* IP13_11_8  */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
27588c2ecf20Sopenharmony_ci		IP13_7_4
27598c2ecf20Sopenharmony_ci		IP13_3_0 ))
27608c2ecf20Sopenharmony_ci	},
27618c2ecf20Sopenharmony_ci#undef F_
27628c2ecf20Sopenharmony_ci#undef FM
27638c2ecf20Sopenharmony_ci
27648c2ecf20Sopenharmony_ci#define F_(x, y)	x,
27658c2ecf20Sopenharmony_ci#define FM(x)		FN_##x,
27668c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG_VAR("MOD_SEL0", 0xe6060500, 32,
27678c2ecf20Sopenharmony_ci			     GROUP(1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1,
27688c2ecf20Sopenharmony_ci				   1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1),
27698c2ecf20Sopenharmony_ci			     GROUP(
27708c2ecf20Sopenharmony_ci		/* RESERVED 31 */
27718c2ecf20Sopenharmony_ci		0, 0,
27728c2ecf20Sopenharmony_ci		MOD_SEL0_30
27738c2ecf20Sopenharmony_ci		MOD_SEL0_29
27748c2ecf20Sopenharmony_ci		MOD_SEL0_28
27758c2ecf20Sopenharmony_ci		MOD_SEL0_27
27768c2ecf20Sopenharmony_ci		MOD_SEL0_26
27778c2ecf20Sopenharmony_ci		MOD_SEL0_25
27788c2ecf20Sopenharmony_ci		MOD_SEL0_24_23
27798c2ecf20Sopenharmony_ci		MOD_SEL0_22_21
27808c2ecf20Sopenharmony_ci		MOD_SEL0_20_19
27818c2ecf20Sopenharmony_ci		MOD_SEL0_18_17
27828c2ecf20Sopenharmony_ci		/* RESERVED 16 */
27838c2ecf20Sopenharmony_ci		0, 0,
27848c2ecf20Sopenharmony_ci		MOD_SEL0_15
27858c2ecf20Sopenharmony_ci		MOD_SEL0_14
27868c2ecf20Sopenharmony_ci		MOD_SEL0_13
27878c2ecf20Sopenharmony_ci		MOD_SEL0_12
27888c2ecf20Sopenharmony_ci		MOD_SEL0_11
27898c2ecf20Sopenharmony_ci		MOD_SEL0_10
27908c2ecf20Sopenharmony_ci		/* RESERVED 9, 8, 7, 6 */
27918c2ecf20Sopenharmony_ci		0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
27928c2ecf20Sopenharmony_ci		MOD_SEL0_5
27938c2ecf20Sopenharmony_ci		MOD_SEL0_4
27948c2ecf20Sopenharmony_ci		MOD_SEL0_3
27958c2ecf20Sopenharmony_ci		MOD_SEL0_2
27968c2ecf20Sopenharmony_ci		MOD_SEL0_1
27978c2ecf20Sopenharmony_ci		MOD_SEL0_0 ))
27988c2ecf20Sopenharmony_ci	},
27998c2ecf20Sopenharmony_ci	{ PINMUX_CFG_REG_VAR("MOD_SEL1", 0xe6060504, 32,
28008c2ecf20Sopenharmony_ci			     GROUP(1, 1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4, 4),
28018c2ecf20Sopenharmony_ci			     GROUP(
28028c2ecf20Sopenharmony_ci		MOD_SEL1_31
28038c2ecf20Sopenharmony_ci		MOD_SEL1_30
28048c2ecf20Sopenharmony_ci		MOD_SEL1_29
28058c2ecf20Sopenharmony_ci		MOD_SEL1_28
28068c2ecf20Sopenharmony_ci		MOD_SEL1_27
28078c2ecf20Sopenharmony_ci		MOD_SEL1_26
28088c2ecf20Sopenharmony_ci		/* RESERVED 25, 24 */
28098c2ecf20Sopenharmony_ci		0, 0, 0, 0,
28108c2ecf20Sopenharmony_ci		/* RESERVED 23, 22, 21, 20 */
28118c2ecf20Sopenharmony_ci		0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
28128c2ecf20Sopenharmony_ci		/* RESERVED 19, 18, 17, 16 */
28138c2ecf20Sopenharmony_ci		0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
28148c2ecf20Sopenharmony_ci		/* RESERVED 15, 14, 13, 12 */
28158c2ecf20Sopenharmony_ci		0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
28168c2ecf20Sopenharmony_ci		/* RESERVED 11, 10, 9, 8  */
28178c2ecf20Sopenharmony_ci		0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
28188c2ecf20Sopenharmony_ci		/* RESERVED 7, 6, 5, 4  */
28198c2ecf20Sopenharmony_ci		0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
28208c2ecf20Sopenharmony_ci		/* RESERVED 3, 2, 1, 0  */
28218c2ecf20Sopenharmony_ci		0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ))
28228c2ecf20Sopenharmony_ci	},
28238c2ecf20Sopenharmony_ci	{ },
28248c2ecf20Sopenharmony_ci};
28258c2ecf20Sopenharmony_ci
28268c2ecf20Sopenharmony_cistatic int r8a77995_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl)
28278c2ecf20Sopenharmony_ci{
28288c2ecf20Sopenharmony_ci	int bit = -EINVAL;
28298c2ecf20Sopenharmony_ci
28308c2ecf20Sopenharmony_ci	*pocctrl = 0xe6060380;
28318c2ecf20Sopenharmony_ci
28328c2ecf20Sopenharmony_ci	if (pin >= RCAR_GP_PIN(3, 0) && pin <= RCAR_GP_PIN(3, 9))
28338c2ecf20Sopenharmony_ci		bit = 29 - (pin - RCAR_GP_PIN(3, 0));
28348c2ecf20Sopenharmony_ci
28358c2ecf20Sopenharmony_ci	return bit;
28368c2ecf20Sopenharmony_ci}
28378c2ecf20Sopenharmony_ci
28388c2ecf20Sopenharmony_cienum ioctrl_regs {
28398c2ecf20Sopenharmony_ci	TDSELCTRL,
28408c2ecf20Sopenharmony_ci};
28418c2ecf20Sopenharmony_ci
28428c2ecf20Sopenharmony_cistatic const struct pinmux_ioctrl_reg pinmux_ioctrl_regs[] = {
28438c2ecf20Sopenharmony_ci	[TDSELCTRL] = { 0xe60603c0, },
28448c2ecf20Sopenharmony_ci	{ /* sentinel */ },
28458c2ecf20Sopenharmony_ci};
28468c2ecf20Sopenharmony_ci
28478c2ecf20Sopenharmony_cistatic const struct sh_pfc_soc_operations r8a77995_pinmux_ops = {
28488c2ecf20Sopenharmony_ci	.pin_to_pocctrl = r8a77995_pin_to_pocctrl,
28498c2ecf20Sopenharmony_ci};
28508c2ecf20Sopenharmony_ci
28518c2ecf20Sopenharmony_ciconst struct sh_pfc_soc_info r8a77995_pinmux_info = {
28528c2ecf20Sopenharmony_ci	.name = "r8a77995_pfc",
28538c2ecf20Sopenharmony_ci	.ops = &r8a77995_pinmux_ops,
28548c2ecf20Sopenharmony_ci	.unlock_reg = 0xe6060000, /* PMMR */
28558c2ecf20Sopenharmony_ci
28568c2ecf20Sopenharmony_ci	.function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
28578c2ecf20Sopenharmony_ci
28588c2ecf20Sopenharmony_ci	.pins = pinmux_pins,
28598c2ecf20Sopenharmony_ci	.nr_pins = ARRAY_SIZE(pinmux_pins),
28608c2ecf20Sopenharmony_ci	.groups = pinmux_groups,
28618c2ecf20Sopenharmony_ci	.nr_groups = ARRAY_SIZE(pinmux_groups),
28628c2ecf20Sopenharmony_ci	.functions = pinmux_functions,
28638c2ecf20Sopenharmony_ci	.nr_functions = ARRAY_SIZE(pinmux_functions),
28648c2ecf20Sopenharmony_ci
28658c2ecf20Sopenharmony_ci	.cfg_regs = pinmux_config_regs,
28668c2ecf20Sopenharmony_ci	.ioctrl_regs = pinmux_ioctrl_regs,
28678c2ecf20Sopenharmony_ci
28688c2ecf20Sopenharmony_ci	.pinmux_data = pinmux_data,
28698c2ecf20Sopenharmony_ci	.pinmux_data_size = ARRAY_SIZE(pinmux_data),
28708c2ecf20Sopenharmony_ci};
2871