blob: e3a9c5e053dae9463eea19ff9999b276058e1ea1 [file] [log] [blame]
Tom Rini24672242018-06-01 21:10:18 -04001// SPDX-License-Identifier: GPL-2.0
Marek Vasut68a77042018-04-26 13:09:20 +02002/*
3 * R8A77990 processor support - PFC hardware block.
4 *
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005 * Copyright (C) 2018-2019 Renesas Electronics Corp.
Marek Vasut68a77042018-04-26 13:09:20 +02006 *
Marek Vasut0e8e9892021-04-26 22:04:11 +02007 * This file is based on the drivers/pinctrl/renesas/pfc-r8a7796.c
Marek Vasut68a77042018-04-26 13:09:20 +02008 *
Marek Vasut88e81ec2019-03-04 22:39:51 +01009 * R8A7796 processor support - PFC hardware block.
Marek Vasut68a77042018-04-26 13:09:20 +020010 *
Marek Vasut88e81ec2019-03-04 22:39:51 +010011 * Copyright (C) 2016-2017 Renesas Electronics Corp.
Marek Vasut68a77042018-04-26 13:09:20 +020012 */
13
Marek Vasut68a77042018-04-26 13:09:20 +020014#include <dm.h>
15#include <errno.h>
16#include <dm/pinctrl.h>
Simon Glass4dcacfc2020-05-10 11:40:13 -060017#include <linux/bitops.h>
Marek Vasut68a77042018-04-26 13:09:20 +020018#include <linux/kernel.h>
19
20#include "sh_pfc.h"
21
Marek Vasut0e8e9892021-04-26 22:04:11 +020022#define CFG_FLAGS (SH_PFC_PIN_CFG_PULL_UP_DOWN)
Marek Vasuteb13e0f2018-06-10 16:05:48 +020023
Marek Vasut0e8e9892021-04-26 22:04:11 +020024#define CPU_ALL_GP(fn, sfx) \
Marek Vasut88e81ec2019-03-04 22:39:51 +010025 PORT_GP_CFG_18(0, fn, sfx, CFG_FLAGS), \
26 PORT_GP_CFG_23(1, fn, sfx, CFG_FLAGS), \
27 PORT_GP_CFG_26(2, fn, sfx, CFG_FLAGS), \
Marek Vasut8fed6732023-09-17 16:08:45 +020028 PORT_GP_CFG_12(3, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33 | SH_PFC_PIN_CFG_DRIVE_STRENGTH), \
Marek Vasut88e81ec2019-03-04 22:39:51 +010029 PORT_GP_CFG_1(3, 12, fn, sfx, CFG_FLAGS), \
30 PORT_GP_CFG_1(3, 13, fn, sfx, CFG_FLAGS), \
31 PORT_GP_CFG_1(3, 14, fn, sfx, CFG_FLAGS), \
32 PORT_GP_CFG_1(3, 15, fn, sfx, CFG_FLAGS), \
Marek Vasut8fed6732023-09-17 16:08:45 +020033 PORT_GP_CFG_11(4, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33 | SH_PFC_PIN_CFG_DRIVE_STRENGTH), \
Marek Vasut88e81ec2019-03-04 22:39:51 +010034 PORT_GP_CFG_20(5, fn, sfx, CFG_FLAGS), \
35 PORT_GP_CFG_9(6, fn, sfx, CFG_FLAGS), \
36 PORT_GP_CFG_1(6, 9, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
37 PORT_GP_CFG_1(6, 10, fn, sfx, CFG_FLAGS), \
38 PORT_GP_CFG_1(6, 11, fn, sfx, CFG_FLAGS), \
39 PORT_GP_CFG_1(6, 12, fn, sfx, CFG_FLAGS), \
40 PORT_GP_CFG_1(6, 13, fn, sfx, CFG_FLAGS), \
41 PORT_GP_CFG_1(6, 14, fn, sfx, CFG_FLAGS), \
42 PORT_GP_CFG_1(6, 15, fn, sfx, CFG_FLAGS), \
43 PORT_GP_CFG_1(6, 16, fn, sfx, CFG_FLAGS), \
44 PORT_GP_CFG_1(6, 17, fn, sfx, CFG_FLAGS)
Marek Vasut0e8e9892021-04-26 22:04:11 +020045
46#define CPU_ALL_NOGP(fn) \
47 PIN_NOGP_CFG(ASEBRK, "ASEBRK", fn, CFG_FLAGS), \
48 PIN_NOGP_CFG(AVB_MDC, "AVB_MDC", fn, CFG_FLAGS), \
49 PIN_NOGP_CFG(AVB_MDIO, "AVB_MDIO", fn, CFG_FLAGS), \
50 PIN_NOGP_CFG(AVB_TD0, "AVB_TD0", fn, CFG_FLAGS), \
51 PIN_NOGP_CFG(AVB_TD1, "AVB_TD1", fn, CFG_FLAGS), \
52 PIN_NOGP_CFG(AVB_TD2, "AVB_TD2", fn, CFG_FLAGS), \
53 PIN_NOGP_CFG(AVB_TD3, "AVB_TD3", fn, CFG_FLAGS), \
54 PIN_NOGP_CFG(AVB_TXC, "AVB_TXC", fn, CFG_FLAGS), \
55 PIN_NOGP_CFG(AVB_TX_CTL, "AVB_TX_CTL", fn, CFG_FLAGS), \
56 PIN_NOGP_CFG(FSCLKST_N, "FSCLKST_N", fn, CFG_FLAGS), \
57 PIN_NOGP_CFG(MLB_REF, "MLB_REF", fn, CFG_FLAGS), \
58 PIN_NOGP_CFG(PRESETOUT_N, "PRESETOUT_N", fn, CFG_FLAGS), \
Marek Vasut6af234c2023-01-26 21:01:45 +010059 PIN_NOGP_CFG(TCK, "TCK", fn, SH_PFC_PIN_CFG_PULL_UP), \
60 PIN_NOGP_CFG(TDI, "TDI", fn, SH_PFC_PIN_CFG_PULL_UP), \
61 PIN_NOGP_CFG(TMS, "TMS", fn, SH_PFC_PIN_CFG_PULL_UP), \
Marek Vasut8fed6732023-09-17 16:08:45 +020062 PIN_NOGP_CFG(TRST_N, "TRST_N", fn, SH_PFC_PIN_CFG_PULL_UP), \
63 PIN_NOGP_CFG(VDDQ_AVB0, "VDDQ_AVB0", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_25_33)
Marek Vasut0e8e9892021-04-26 22:04:11 +020064
Marek Vasut68a77042018-04-26 13:09:20 +020065/*
66 * F_() : just information
67 * FM() : macro for FN_xxx / xxx_MARK
68 */
69
70/* GPSR0 */
71#define GPSR0_17 F_(SDA4, IP7_27_24)
72#define GPSR0_16 F_(SCL4, IP7_23_20)
73#define GPSR0_15 F_(D15, IP7_19_16)
74#define GPSR0_14 F_(D14, IP7_15_12)
75#define GPSR0_13 F_(D13, IP7_11_8)
76#define GPSR0_12 F_(D12, IP7_7_4)
77#define GPSR0_11 F_(D11, IP7_3_0)
78#define GPSR0_10 F_(D10, IP6_31_28)
79#define GPSR0_9 F_(D9, IP6_27_24)
80#define GPSR0_8 F_(D8, IP6_23_20)
81#define GPSR0_7 F_(D7, IP6_19_16)
82#define GPSR0_6 F_(D6, IP6_15_12)
83#define GPSR0_5 F_(D5, IP6_11_8)
84#define GPSR0_4 F_(D4, IP6_7_4)
85#define GPSR0_3 F_(D3, IP6_3_0)
86#define GPSR0_2 F_(D2, IP5_31_28)
87#define GPSR0_1 F_(D1, IP5_27_24)
88#define GPSR0_0 F_(D0, IP5_23_20)
89
90/* GPSR1 */
91#define GPSR1_22 F_(WE0_N, IP5_19_16)
92#define GPSR1_21 F_(CS0_N, IP5_15_12)
93#define GPSR1_20 FM(CLKOUT)
94#define GPSR1_19 F_(A19, IP5_11_8)
95#define GPSR1_18 F_(A18, IP5_7_4)
96#define GPSR1_17 F_(A17, IP5_3_0)
97#define GPSR1_16 F_(A16, IP4_31_28)
98#define GPSR1_15 F_(A15, IP4_27_24)
99#define GPSR1_14 F_(A14, IP4_23_20)
100#define GPSR1_13 F_(A13, IP4_19_16)
101#define GPSR1_12 F_(A12, IP4_15_12)
102#define GPSR1_11 F_(A11, IP4_11_8)
103#define GPSR1_10 F_(A10, IP4_7_4)
104#define GPSR1_9 F_(A9, IP4_3_0)
105#define GPSR1_8 F_(A8, IP3_31_28)
106#define GPSR1_7 F_(A7, IP3_27_24)
107#define GPSR1_6 F_(A6, IP3_23_20)
108#define GPSR1_5 F_(A5, IP3_19_16)
109#define GPSR1_4 F_(A4, IP3_15_12)
110#define GPSR1_3 F_(A3, IP3_11_8)
111#define GPSR1_2 F_(A2, IP3_7_4)
112#define GPSR1_1 F_(A1, IP3_3_0)
113#define GPSR1_0 F_(A0, IP2_31_28)
114
115/* GPSR2 */
116#define GPSR2_25 F_(EX_WAIT0, IP2_27_24)
117#define GPSR2_24 F_(RD_WR_N, IP2_23_20)
118#define GPSR2_23 F_(RD_N, IP2_19_16)
119#define GPSR2_22 F_(BS_N, IP2_15_12)
120#define GPSR2_21 FM(AVB_PHY_INT)
121#define GPSR2_20 F_(AVB_TXCREFCLK, IP2_3_0)
122#define GPSR2_19 FM(AVB_RD3)
123#define GPSR2_18 F_(AVB_RD2, IP1_31_28)
124#define GPSR2_17 F_(AVB_RD1, IP1_27_24)
125#define GPSR2_16 F_(AVB_RD0, IP1_23_20)
126#define GPSR2_15 FM(AVB_RXC)
127#define GPSR2_14 FM(AVB_RX_CTL)
128#define GPSR2_13 F_(RPC_RESET_N, IP1_19_16)
129#define GPSR2_12 F_(RPC_INT_N, IP1_15_12)
130#define GPSR2_11 F_(QSPI1_SSL, IP1_11_8)
131#define GPSR2_10 F_(QSPI1_IO3, IP1_7_4)
132#define GPSR2_9 F_(QSPI1_IO2, IP1_3_0)
133#define GPSR2_8 F_(QSPI1_MISO_IO1, IP0_31_28)
134#define GPSR2_7 F_(QSPI1_MOSI_IO0, IP0_27_24)
135#define GPSR2_6 F_(QSPI1_SPCLK, IP0_23_20)
136#define GPSR2_5 FM(QSPI0_SSL)
137#define GPSR2_4 F_(QSPI0_IO3, IP0_19_16)
138#define GPSR2_3 F_(QSPI0_IO2, IP0_15_12)
139#define GPSR2_2 F_(QSPI0_MISO_IO1, IP0_11_8)
140#define GPSR2_1 F_(QSPI0_MOSI_IO0, IP0_7_4)
141#define GPSR2_0 F_(QSPI0_SPCLK, IP0_3_0)
142
143/* GPSR3 */
144#define GPSR3_15 F_(SD1_WP, IP11_7_4)
145#define GPSR3_14 F_(SD1_CD, IP11_3_0)
146#define GPSR3_13 F_(SD0_WP, IP10_31_28)
147#define GPSR3_12 F_(SD0_CD, IP10_27_24)
148#define GPSR3_11 F_(SD1_DAT3, IP9_11_8)
149#define GPSR3_10 F_(SD1_DAT2, IP9_7_4)
150#define GPSR3_9 F_(SD1_DAT1, IP9_3_0)
151#define GPSR3_8 F_(SD1_DAT0, IP8_31_28)
152#define GPSR3_7 F_(SD1_CMD, IP8_27_24)
153#define GPSR3_6 F_(SD1_CLK, IP8_23_20)
154#define GPSR3_5 F_(SD0_DAT3, IP8_19_16)
155#define GPSR3_4 F_(SD0_DAT2, IP8_15_12)
156#define GPSR3_3 F_(SD0_DAT1, IP8_11_8)
157#define GPSR3_2 F_(SD0_DAT0, IP8_7_4)
158#define GPSR3_1 F_(SD0_CMD, IP8_3_0)
159#define GPSR3_0 F_(SD0_CLK, IP7_31_28)
160
161/* GPSR4 */
162#define GPSR4_10 F_(SD3_DS, IP10_23_20)
163#define GPSR4_9 F_(SD3_DAT7, IP10_19_16)
164#define GPSR4_8 F_(SD3_DAT6, IP10_15_12)
165#define GPSR4_7 F_(SD3_DAT5, IP10_11_8)
166#define GPSR4_6 F_(SD3_DAT4, IP10_7_4)
167#define GPSR4_5 F_(SD3_DAT3, IP10_3_0)
168#define GPSR4_4 F_(SD3_DAT2, IP9_31_28)
169#define GPSR4_3 F_(SD3_DAT1, IP9_27_24)
170#define GPSR4_2 F_(SD3_DAT0, IP9_23_20)
171#define GPSR4_1 F_(SD3_CMD, IP9_19_16)
172#define GPSR4_0 F_(SD3_CLK, IP9_15_12)
173
174/* GPSR5 */
175#define GPSR5_19 F_(MLB_DAT, IP13_23_20)
176#define GPSR5_18 F_(MLB_SIG, IP13_19_16)
177#define GPSR5_17 F_(MLB_CLK, IP13_15_12)
178#define GPSR5_16 F_(SSI_SDATA9, IP13_11_8)
179#define GPSR5_15 F_(MSIOF0_SS2, IP13_7_4)
180#define GPSR5_14 F_(MSIOF0_SS1, IP13_3_0)
181#define GPSR5_13 F_(MSIOF0_SYNC, IP12_31_28)
182#define GPSR5_12 F_(MSIOF0_TXD, IP12_27_24)
183#define GPSR5_11 F_(MSIOF0_RXD, IP12_23_20)
184#define GPSR5_10 F_(MSIOF0_SCK, IP12_19_16)
185#define GPSR5_9 F_(RX2_A, IP12_15_12)
186#define GPSR5_8 F_(TX2_A, IP12_11_8)
187#define GPSR5_7 F_(SCK2_A, IP12_7_4)
188#define GPSR5_6 F_(TX1, IP12_3_0)
189#define GPSR5_5 F_(RX1, IP11_31_28)
Eugeniu Roscaf0066b02019-07-09 18:27:11 +0200190#define GPSR5_4 F_(RTS0_N_A, IP11_23_20)
Marek Vasut68a77042018-04-26 13:09:20 +0200191#define GPSR5_3 F_(CTS0_N_A, IP11_19_16)
192#define GPSR5_2 F_(TX0_A, IP11_15_12)
193#define GPSR5_1 F_(RX0_A, IP11_11_8)
194#define GPSR5_0 F_(SCK0_A, IP11_27_24)
195
196/* GPSR6 */
197#define GPSR6_17 F_(USB30_PWEN, IP15_27_24)
198#define GPSR6_16 F_(SSI_SDATA6, IP15_19_16)
199#define GPSR6_15 F_(SSI_WS6, IP15_15_12)
200#define GPSR6_14 F_(SSI_SCK6, IP15_11_8)
201#define GPSR6_13 F_(SSI_SDATA5, IP15_7_4)
202#define GPSR6_12 F_(SSI_WS5, IP15_3_0)
203#define GPSR6_11 F_(SSI_SCK5, IP14_31_28)
204#define GPSR6_10 F_(SSI_SDATA4, IP14_27_24)
205#define GPSR6_9 F_(USB30_OVC, IP15_31_28)
206#define GPSR6_8 F_(AUDIO_CLKA, IP15_23_20)
207#define GPSR6_7 F_(SSI_SDATA3, IP14_23_20)
208#define GPSR6_6 F_(SSI_WS349, IP14_19_16)
209#define GPSR6_5 F_(SSI_SCK349, IP14_15_12)
210#define GPSR6_4 F_(SSI_SDATA2, IP14_11_8)
211#define GPSR6_3 F_(SSI_SDATA1, IP14_7_4)
212#define GPSR6_2 F_(SSI_SDATA0, IP14_3_0)
213#define GPSR6_1 F_(SSI_WS01239, IP13_31_28)
214#define GPSR6_0 F_(SSI_SCK01239, IP13_27_24)
215
216/* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 - F */
217#define IP0_3_0 FM(QSPI0_SPCLK) FM(HSCK4_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)
218#define IP0_7_4 FM(QSPI0_MOSI_IO0) FM(HCTS4_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)
219#define IP0_11_8 FM(QSPI0_MISO_IO1) FM(HRTS4_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)
220#define IP0_15_12 FM(QSPI0_IO2) FM(HTX4_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)
221#define IP0_19_16 FM(QSPI0_IO3) FM(HRX4_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)
222#define IP0_23_20 FM(QSPI1_SPCLK) FM(RIF2_CLK_A) FM(HSCK4_B) FM(VI4_DATA0_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)
223#define IP0_27_24 FM(QSPI1_MOSI_IO0) FM(RIF2_SYNC_A) FM(HTX4_B) FM(VI4_DATA1_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)
224#define IP0_31_28 FM(QSPI1_MISO_IO1) FM(RIF2_D0_A) FM(HRX4_B) FM(VI4_DATA2_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)
225#define IP1_3_0 FM(QSPI1_IO2) FM(RIF2_D1_A) FM(HTX3_C) FM(VI4_DATA3_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)
226#define IP1_7_4 FM(QSPI1_IO3) FM(RIF3_CLK_A) FM(HRX3_C) FM(VI4_DATA4_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)
227#define IP1_11_8 FM(QSPI1_SSL) FM(RIF3_SYNC_A) FM(HSCK3_C) FM(VI4_DATA5_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)
228#define IP1_15_12 FM(RPC_INT_N) FM(RIF3_D0_A) FM(HCTS3_N_C) FM(VI4_DATA6_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)
229#define IP1_19_16 FM(RPC_RESET_N) FM(RIF3_D1_A) FM(HRTS3_N_C) FM(VI4_DATA7_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)
230#define IP1_23_20 FM(AVB_RD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
231#define IP1_27_24 FM(AVB_RD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
232#define IP1_31_28 FM(AVB_RD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
233#define IP2_3_0 FM(AVB_TXCREFCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
234#define IP2_7_4 FM(AVB_MDIO) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
235#define IP2_11_8 FM(AVB_MDC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
236#define IP2_15_12 FM(BS_N) FM(PWM0_A) FM(AVB_MAGIC) FM(VI4_CLK) F_(0, 0) FM(TX3_C) F_(0, 0) FM(VI5_CLK_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)
237#define IP2_19_16 FM(RD_N) FM(PWM1_A) FM(AVB_LINK) FM(VI4_FIELD) F_(0, 0) FM(RX3_C) FM(FSCLKST2_N_A) FM(VI5_DATA0_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)
Lad Prabhakare4db7392020-10-14 16:45:59 +0100238#define IP2_23_20 FM(RD_WR_N) FM(SCL7_A) FM(AVB_AVTP_MATCH) FM(VI4_VSYNC_N) FM(TX5_B) FM(SCK3_C) FM(PWM5_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)
239#define IP2_27_24 FM(EX_WAIT0) FM(SDA7_A) FM(AVB_AVTP_CAPTURE) FM(VI4_HSYNC_N) FM(RX5_B) FM(PWM6_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)
Marek Vasut68a77042018-04-26 13:09:20 +0200240#define IP2_31_28 FM(A0) FM(IRQ0) FM(PWM2_A) FM(MSIOF3_SS1_B) FM(VI5_CLK_A) FM(DU_CDE) FM(HRX3_D) FM(IERX) FM(QSTB_QHE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
241#define IP3_3_0 FM(A1) FM(IRQ1) FM(PWM3_A) FM(DU_DOTCLKIN1) FM(VI5_DATA0_A) FM(DU_DISP_CDE) FM(SDA6_B) FM(IETX) FM(QCPV_QDE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
242#define IP3_7_4 FM(A2) FM(IRQ2) FM(AVB_AVTP_PPS) FM(VI4_CLKENB) FM(VI5_DATA1_A) FM(DU_DISP) FM(SCL6_B) F_(0, 0) FM(QSTVB_QVE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
243#define IP3_11_8 FM(A3) FM(CTS4_N_A) FM(PWM4_A) FM(VI4_DATA12) F_(0, 0) FM(DU_DOTCLKOUT0) FM(HTX3_D) FM(IECLK) FM(LCDOUT12) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Eugeniu Roscaf0066b02019-07-09 18:27:11 +0200244#define IP3_15_12 FM(A4) FM(RTS4_N_A) FM(MSIOF3_SYNC_B) FM(VI4_DATA8) FM(PWM2_B) FM(DU_DG4) FM(RIF2_CLK_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)
Marek Vasut68a77042018-04-26 13:09:20 +0200245#define IP3_19_16 FM(A5) FM(SCK4_A) FM(MSIOF3_SCK_B) FM(VI4_DATA9) FM(PWM3_B) F_(0, 0) FM(RIF2_SYNC_B) F_(0, 0) FM(QPOLA) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
246#define IP3_23_20 FM(A6) FM(RX4_A) FM(MSIOF3_RXD_B) FM(VI4_DATA10) F_(0, 0) F_(0, 0) FM(RIF2_D0_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)
247#define IP3_27_24 FM(A7) FM(TX4_A) FM(MSIOF3_TXD_B) FM(VI4_DATA11) F_(0, 0) F_(0, 0) FM(RIF2_D1_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)
248#define IP3_31_28 FM(A8) FM(SDA6_A) FM(RX3_B) FM(HRX4_C) FM(VI5_HSYNC_N_A) FM(DU_HSYNC) FM(VI4_DATA0_B) F_(0, 0) FM(QSTH_QHS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
249
250/* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 - F */
251#define IP4_3_0 FM(A9) FM(TX5_A) FM(IRQ3) FM(VI4_DATA16) FM(VI5_VSYNC_N_A) FM(DU_DG7) F_(0, 0) F_(0, 0) FM(LCDOUT15) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
252#define IP4_7_4 FM(A10) FM(IRQ4) FM(MSIOF2_SYNC_B) FM(VI4_DATA13) FM(VI5_FIELD_A) FM(DU_DG5) FM(FSCLKST2_N_B) F_(0, 0) FM(LCDOUT13) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
253#define IP4_11_8 FM(A11) FM(SCL6_A) FM(TX3_B) FM(HTX4_C) F_(0, 0) FM(DU_VSYNC) FM(VI4_DATA1_B) F_(0, 0) FM(QSTVA_QVS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
254#define IP4_15_12 FM(A12) FM(RX5_A) FM(MSIOF2_SS2_B) FM(VI4_DATA17) FM(VI5_DATA3_A) FM(DU_DG6) F_(0, 0) F_(0, 0) FM(LCDOUT14) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
255#define IP4_19_16 FM(A13) FM(SCK5_A) FM(MSIOF2_SCK_B) FM(VI4_DATA14) FM(HRX4_D) FM(DU_DB2) F_(0, 0) F_(0, 0) FM(LCDOUT2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
256#define IP4_23_20 FM(A14) FM(MSIOF1_SS1) FM(MSIOF2_RXD_B) FM(VI4_DATA15) FM(HTX4_D) FM(DU_DB3) F_(0, 0) F_(0, 0) FM(LCDOUT3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
257#define IP4_27_24 FM(A15) FM(MSIOF1_SS2) FM(MSIOF2_TXD_B) FM(VI4_DATA18) FM(VI5_DATA4_A) FM(DU_DB4) F_(0, 0) F_(0, 0) FM(LCDOUT4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
258#define IP4_31_28 FM(A16) FM(MSIOF1_SYNC) FM(MSIOF2_SS1_B) FM(VI4_DATA19) FM(VI5_DATA5_A) FM(DU_DB5) F_(0, 0) F_(0, 0) FM(LCDOUT5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
259#define IP5_3_0 FM(A17) FM(MSIOF1_RXD) F_(0, 0) FM(VI4_DATA20) FM(VI5_DATA6_A) FM(DU_DB6) F_(0, 0) F_(0, 0) FM(LCDOUT6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
260#define IP5_7_4 FM(A18) FM(MSIOF1_TXD) F_(0, 0) FM(VI4_DATA21) FM(VI5_DATA7_A) FM(DU_DB0) F_(0, 0) FM(HRX4_E) FM(LCDOUT0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
261#define IP5_11_8 FM(A19) FM(MSIOF1_SCK) F_(0, 0) FM(VI4_DATA22) FM(VI5_DATA2_A) FM(DU_DB1) F_(0, 0) FM(HTX4_E) FM(LCDOUT1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
262#define IP5_15_12 FM(CS0_N) FM(SCL5) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR0) FM(VI4_DATA2_B) F_(0, 0) FM(LCDOUT16) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
263#define IP5_19_16 FM(WE0_N) FM(SDA5) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR1) FM(VI4_DATA3_B) F_(0, 0) FM(LCDOUT17) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
264#define IP5_23_20 FM(D0) FM(MSIOF3_SCK_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR2) FM(CTS4_N_C) F_(0, 0) FM(LCDOUT18) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Eugeniu Roscaf0066b02019-07-09 18:27:11 +0200265#define IP5_27_24 FM(D1) FM(MSIOF3_SYNC_A) FM(SCK3_A) FM(VI4_DATA23) FM(VI5_CLKENB_A) FM(DU_DB7) FM(RTS4_N_C) F_(0, 0) FM(LCDOUT7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Marek Vasut68a77042018-04-26 13:09:20 +0200266#define IP5_31_28 FM(D2) FM(MSIOF3_RXD_A) FM(RX5_C) F_(0, 0) FM(VI5_DATA14_A) FM(DU_DR3) FM(RX4_C) F_(0, 0) FM(LCDOUT19) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
267#define IP6_3_0 FM(D3) FM(MSIOF3_TXD_A) FM(TX5_C) F_(0, 0) FM(VI5_DATA15_A) FM(DU_DR4) FM(TX4_C) F_(0, 0) FM(LCDOUT20) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Eugeniu Roscaf0066b02019-07-09 18:27:11 +0200268#define IP6_7_4 FM(D4) FM(CANFD1_TX) FM(HSCK3_B) FM(CAN1_TX) FM(RTS3_N_A) FM(MSIOF3_SS2_A) F_(0, 0) FM(VI5_DATA1_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)
Marek Vasut68a77042018-04-26 13:09:20 +0200269#define IP6_11_8 FM(D5) FM(RX3_A) FM(HRX3_B) F_(0, 0) F_(0, 0) FM(DU_DR5) FM(VI4_DATA4_B) F_(0, 0) FM(LCDOUT21) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
270#define IP6_15_12 FM(D6) FM(TX3_A) FM(HTX3_B) F_(0, 0) F_(0, 0) FM(DU_DR6) FM(VI4_DATA5_B) F_(0, 0) FM(LCDOUT22) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
271#define IP6_19_16 FM(D7) FM(CANFD1_RX) FM(IRQ5) FM(CAN1_RX) FM(CTS3_N_A) F_(0, 0) F_(0, 0) FM(VI5_DATA2_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)
272#define IP6_23_20 FM(D8) FM(MSIOF2_SCK_A) FM(SCK4_B) F_(0, 0) FM(VI5_DATA12_A) FM(DU_DR7) FM(RIF3_CLK_B) FM(HCTS3_N_E) FM(LCDOUT23) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
273#define IP6_27_24 FM(D9) FM(MSIOF2_SYNC_A) F_(0, 0) F_(0, 0) FM(VI5_DATA10_A) FM(DU_DG0) FM(RIF3_SYNC_B) FM(HRX3_E) FM(LCDOUT8) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
274#define IP6_31_28 FM(D10) FM(MSIOF2_RXD_A) F_(0, 0) F_(0, 0) FM(VI5_DATA13_A) FM(DU_DG1) FM(RIF3_D0_B) FM(HTX3_E) FM(LCDOUT9) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
275#define IP7_3_0 FM(D11) FM(MSIOF2_TXD_A) F_(0, 0) F_(0, 0) FM(VI5_DATA11_A) FM(DU_DG2) FM(RIF3_D1_B) FM(HRTS3_N_E) FM(LCDOUT10) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
276#define IP7_7_4 FM(D12) FM(CANFD0_TX) FM(TX4_B) FM(CAN0_TX) FM(VI5_DATA8_A) F_(0, 0) F_(0, 0) FM(VI5_DATA3_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)
277#define IP7_11_8 FM(D13) FM(CANFD0_RX) FM(RX4_B) FM(CAN0_RX) FM(VI5_DATA9_A) FM(SCL7_B) F_(0, 0) FM(VI5_DATA4_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)
278#define IP7_15_12 FM(D14) FM(CAN_CLK) FM(HRX3_A) FM(MSIOF2_SS2_A) F_(0, 0) FM(SDA7_B) F_(0, 0) FM(VI5_DATA5_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)
279#define IP7_19_16 FM(D15) FM(MSIOF2_SS1_A) FM(HTX3_A) FM(MSIOF3_SS1_A) F_(0, 0) FM(DU_DG3) F_(0, 0) F_(0, 0) FM(LCDOUT11) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
280#define IP7_23_20 FM(SCL4) FM(CS1_N_A26) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DOTCLKIN0) FM(VI4_DATA6_B) FM(VI5_DATA6_B) FM(QCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
281#define IP7_27_24 FM(SDA4) FM(WE1_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(VI4_DATA7_B) FM(VI5_DATA7_B) FM(QPOLB) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
282#define IP7_31_28 FM(SD0_CLK) FM(NFDATA8) FM(SCL1_C) FM(HSCK1_B) FM(SDA2_E) FM(FMCLK_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)
283
284/* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 - F */
285#define IP8_3_0 FM(SD0_CMD) FM(NFDATA9) F_(0, 0) FM(HRX1_B) F_(0, 0) FM(SPEEDIN_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)
286#define IP8_7_4 FM(SD0_DAT0) FM(NFDATA10) F_(0, 0) FM(HTX1_B) F_(0, 0) FM(REMOCON_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)
287#define IP8_11_8 FM(SD0_DAT1) FM(NFDATA11) FM(SDA2_C) FM(HCTS1_N_B) F_(0, 0) FM(FMIN_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)
288#define IP8_15_12 FM(SD0_DAT2) FM(NFDATA12) FM(SCL2_C) FM(HRTS1_N_B) F_(0, 0) FM(BPFCLK_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)
289#define IP8_19_16 FM(SD0_DAT3) FM(NFDATA13) FM(SDA1_C) FM(SCL2_E) FM(SPEEDIN_C) FM(REMOCON_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)
290#define IP8_23_20 FM(SD1_CLK) FM(NFDATA14_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)
291#define IP8_27_24 FM(SD1_CMD) FM(NFDATA15_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)
292#define IP8_31_28 FM(SD1_DAT0) FM(NFWP_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) F_(0, 0)
293#define IP9_3_0 FM(SD1_DAT1) FM(NFCE_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) F_(0, 0)
294#define IP9_7_4 FM(SD1_DAT2) FM(NFALE_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)
295#define IP9_11_8 FM(SD1_DAT3) FM(NFRB_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) F_(0, 0)
296#define IP9_15_12 FM(SD3_CLK) FM(NFWE_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)
297#define IP9_19_16 FM(SD3_CMD) FM(NFRE_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)
298#define IP9_23_20 FM(SD3_DAT0) FM(NFDATA0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
299#define IP9_27_24 FM(SD3_DAT1) FM(NFDATA1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
300#define IP9_31_28 FM(SD3_DAT2) FM(NFDATA2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
301#define IP10_3_0 FM(SD3_DAT3) FM(NFDATA3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
302#define IP10_7_4 FM(SD3_DAT4) FM(NFDATA4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
303#define IP10_11_8 FM(SD3_DAT5) FM(NFDATA5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
304#define IP10_15_12 FM(SD3_DAT6) FM(NFDATA6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
305#define IP10_19_16 FM(SD3_DAT7) FM(NFDATA7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
306#define IP10_23_20 FM(SD3_DS) FM(NFCLE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
307#define IP10_27_24 FM(SD0_CD) FM(NFALE_A) FM(SD3_CD) FM(RIF0_CLK_B) FM(SCL2_B) FM(TCLK1_A) FM(SSI_SCK2_B) FM(TS_SCK0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
308#define IP10_31_28 FM(SD0_WP) FM(NFRB_N_A) FM(SD3_WP) FM(RIF0_D0_B) FM(SDA2_B) FM(TCLK2_A) FM(SSI_WS2_B) FM(TS_SDAT0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
309#define IP11_3_0 FM(SD1_CD) FM(NFCE_N_A) FM(SSI_SCK1) FM(RIF0_D1_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SDEN0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
310#define IP11_7_4 FM(SD1_WP) FM(NFWP_N_A) FM(SSI_WS1) FM(RIF0_SYNC_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SPSYNC0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
311#define IP11_11_8 FM(RX0_A) FM(HRX1_A) FM(SSI_SCK2_A) FM(RIF1_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SCK1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
312#define IP11_15_12 FM(TX0_A) FM(HTX1_A) FM(SSI_WS2_A) FM(RIF1_D0) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SDAT1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
313#define IP11_19_16 FM(CTS0_N_A) FM(NFDATA14_A) FM(AUDIO_CLKOUT_A) FM(RIF1_D1) FM(SCIF_CLK_A) FM(FMCLK_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)
Eugeniu Roscaf0066b02019-07-09 18:27:11 +0200314#define IP11_23_20 FM(RTS0_N_A) FM(NFDATA15_A) FM(AUDIO_CLKOUT1_A) FM(RIF1_CLK) FM(SCL2_A) FM(FMIN_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)
315#define IP11_27_24 FM(SCK0_A) FM(HSCK1_A) FM(USB3HS0_ID) FM(RTS1_N) FM(SDA2_A) FM(FMCLK_C) F_(0, 0) F_(0, 0) FM(USB0_ID) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Marek Vasut68a77042018-04-26 13:09:20 +0200316#define IP11_31_28 FM(RX1) FM(HRX2_B) FM(SSI_SCK9_B) FM(AUDIO_CLKOUT1_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)
317
318/* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 - F */
319#define IP12_3_0 FM(TX1) FM(HTX2_B) FM(SSI_WS9_B) FM(AUDIO_CLKOUT3_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)
320#define IP12_7_4 FM(SCK2_A) FM(HSCK0_A) FM(AUDIO_CLKB_A) FM(CTS1_N) FM(RIF0_CLK_A) FM(REMOCON_A) FM(SCIF_CLK_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)
321#define IP12_11_8 FM(TX2_A) FM(HRX0_A) FM(AUDIO_CLKOUT2_A) F_(0, 0) FM(SCL1_A) F_(0, 0) FM(FSO_CFE_0_N_A) FM(TS_SDEN1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
322#define IP12_15_12 FM(RX2_A) FM(HTX0_A) FM(AUDIO_CLKOUT3_A) F_(0, 0) FM(SDA1_A) F_(0, 0) FM(FSO_CFE_1_N_A) FM(TS_SPSYNC1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
323#define IP12_19_16 FM(MSIOF0_SCK) F_(0, 0) FM(SSI_SCK78) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
324#define IP12_23_20 FM(MSIOF0_RXD) F_(0, 0) FM(SSI_WS78) F_(0, 0) F_(0, 0) FM(TX2_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)
325#define IP12_27_24 FM(MSIOF0_TXD) F_(0, 0) FM(SSI_SDATA7) F_(0, 0) F_(0, 0) FM(RX2_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)
326#define IP12_31_28 FM(MSIOF0_SYNC) FM(AUDIO_CLKOUT_B) FM(SSI_SDATA8) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
327#define IP13_3_0 FM(MSIOF0_SS1) FM(HRX2_A) FM(SSI_SCK4) FM(HCTS0_N_A) FM(BPFCLK_C) FM(SPEEDIN_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)
328#define IP13_7_4 FM(MSIOF0_SS2) FM(HTX2_A) FM(SSI_WS4) FM(HRTS0_N_A) FM(FMIN_C) FM(BPFCLK_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)
329#define IP13_11_8 FM(SSI_SDATA9) F_(0, 0) FM(AUDIO_CLKC_A) FM(SCK1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
330#define IP13_15_12 FM(MLB_CLK) FM(RX0_B) F_(0, 0) FM(RIF0_D0_A) FM(SCL1_B) FM(TCLK1_B) F_(0, 0) F_(0, 0) FM(SIM0_RST_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
331#define IP13_19_16 FM(MLB_SIG) FM(SCK0_B) F_(0, 0) FM(RIF0_D1_A) FM(SDA1_B) FM(TCLK2_B) F_(0, 0) F_(0, 0) FM(SIM0_D_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
332#define IP13_23_20 FM(MLB_DAT) FM(TX0_B) F_(0, 0) FM(RIF0_SYNC_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(SIM0_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
333#define IP13_27_24 FM(SSI_SCK01239) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
334#define IP13_31_28 FM(SSI_WS01239) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
335#define IP14_3_0 FM(SSI_SDATA0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
336#define IP14_7_4 FM(SSI_SDATA1) FM(AUDIO_CLKC_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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)
337#define IP14_11_8 FM(SSI_SDATA2) FM(AUDIO_CLKOUT2_B) FM(SSI_SCK9_A) F_(0, 0) F_(0, 0) F_(0, 0) 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)
338#define IP14_15_12 FM(SSI_SCK349) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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)
339#define IP14_19_16 FM(SSI_WS349) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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)
340#define IP14_23_20 FM(SSI_SDATA3) FM(AUDIO_CLKOUT1_C) FM(AUDIO_CLKB_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM4_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)
341#define IP14_27_24 FM(SSI_SDATA4) F_(0, 0) FM(SSI_WS9_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM5_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)
342#define IP14_31_28 FM(SSI_SCK5) FM(HRX0_B) F_(0, 0) FM(USB0_PWEN_B) FM(SCL2_D) F_(0, 0) FM(PWM6_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)
343#define IP15_3_0 FM(SSI_WS5) FM(HTX0_B) F_(0, 0) FM(USB0_OVC_B) FM(SDA2_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
344#define IP15_7_4 FM(SSI_SDATA5) FM(HSCK0_B) FM(AUDIO_CLKB_C) FM(TPU0TO0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
345#define IP15_11_8 FM(SSI_SCK6) FM(HSCK2_A) FM(AUDIO_CLKC_C) FM(TPU0TO1) F_(0, 0) F_(0, 0) FM(FSO_CFE_0_N_B) F_(0, 0) FM(SIM0_RST_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
346#define IP15_15_12 FM(SSI_WS6) FM(HCTS2_N_A) FM(AUDIO_CLKOUT2_C) FM(TPU0TO2) FM(SDA1_D) F_(0, 0) FM(FSO_CFE_1_N_B) F_(0, 0) FM(SIM0_D_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
347#define IP15_19_16 FM(SSI_SDATA6) FM(HRTS2_N_A) FM(AUDIO_CLKOUT3_C) FM(TPU0TO3) FM(SCL1_D) F_(0, 0) FM(FSO_TOE_N_B) F_(0, 0) FM(SIM0_CLK_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
348#define IP15_23_20 FM(AUDIO_CLKA) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
349#define IP15_27_24 FM(USB30_PWEN) FM(USB0_PWEN_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)
350#define IP15_31_28 FM(USB30_OVC) FM(USB0_OVC_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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)
351
352#define PINMUX_GPSR \
353\
354 \
355 \
356 \
357 \
358 \
359 \
360 GPSR2_25 \
361 GPSR2_24 \
362 GPSR2_23 \
363 GPSR1_22 GPSR2_22 \
364 GPSR1_21 GPSR2_21 \
365 GPSR1_20 GPSR2_20 \
366 GPSR1_19 GPSR2_19 GPSR5_19 \
367 GPSR1_18 GPSR2_18 GPSR5_18 \
368GPSR0_17 GPSR1_17 GPSR2_17 GPSR5_17 GPSR6_17 \
369GPSR0_16 GPSR1_16 GPSR2_16 GPSR5_16 GPSR6_16 \
370GPSR0_15 GPSR1_15 GPSR2_15 GPSR3_15 GPSR5_15 GPSR6_15 \
371GPSR0_14 GPSR1_14 GPSR2_14 GPSR3_14 GPSR5_14 GPSR6_14 \
372GPSR0_13 GPSR1_13 GPSR2_13 GPSR3_13 GPSR5_13 GPSR6_13 \
373GPSR0_12 GPSR1_12 GPSR2_12 GPSR3_12 GPSR5_12 GPSR6_12 \
374GPSR0_11 GPSR1_11 GPSR2_11 GPSR3_11 GPSR5_11 GPSR6_11 \
375GPSR0_10 GPSR1_10 GPSR2_10 GPSR3_10 GPSR4_10 GPSR5_10 GPSR6_10 \
376GPSR0_9 GPSR1_9 GPSR2_9 GPSR3_9 GPSR4_9 GPSR5_9 GPSR6_9 \
377GPSR0_8 GPSR1_8 GPSR2_8 GPSR3_8 GPSR4_8 GPSR5_8 GPSR6_8 \
378GPSR0_7 GPSR1_7 GPSR2_7 GPSR3_7 GPSR4_7 GPSR5_7 GPSR6_7 \
379GPSR0_6 GPSR1_6 GPSR2_6 GPSR3_6 GPSR4_6 GPSR5_6 GPSR6_6 \
380GPSR0_5 GPSR1_5 GPSR2_5 GPSR3_5 GPSR4_5 GPSR5_5 GPSR6_5 \
381GPSR0_4 GPSR1_4 GPSR2_4 GPSR3_4 GPSR4_4 GPSR5_4 GPSR6_4 \
382GPSR0_3 GPSR1_3 GPSR2_3 GPSR3_3 GPSR4_3 GPSR5_3 GPSR6_3 \
383GPSR0_2 GPSR1_2 GPSR2_2 GPSR3_2 GPSR4_2 GPSR5_2 GPSR6_2 \
384GPSR0_1 GPSR1_1 GPSR2_1 GPSR3_1 GPSR4_1 GPSR5_1 GPSR6_1 \
385GPSR0_0 GPSR1_0 GPSR2_0 GPSR3_0 GPSR4_0 GPSR5_0 GPSR6_0
386
387#define PINMUX_IPSR \
388\
389FM(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 \
390FM(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 \
391FM(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 \
392FM(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 \
393FM(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 \
394FM(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 \
395FM(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 \
396FM(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 \
397\
398FM(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 \
399FM(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 \
400FM(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 \
401FM(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 \
402FM(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 \
403FM(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 \
404FM(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 \
405FM(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 \
406\
407FM(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 \
408FM(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 \
409FM(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 \
410FM(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 \
411FM(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 \
412FM(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 \
413FM(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 \
414FM(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 \
415\
416FM(IP12_3_0) IP12_3_0 FM(IP13_3_0) IP13_3_0 FM(IP14_3_0) IP14_3_0 FM(IP15_3_0) IP15_3_0 \
417FM(IP12_7_4) IP12_7_4 FM(IP13_7_4) IP13_7_4 FM(IP14_7_4) IP14_7_4 FM(IP15_7_4) IP15_7_4 \
418FM(IP12_11_8) IP12_11_8 FM(IP13_11_8) IP13_11_8 FM(IP14_11_8) IP14_11_8 FM(IP15_11_8) IP15_11_8 \
419FM(IP12_15_12) IP12_15_12 FM(IP13_15_12) IP13_15_12 FM(IP14_15_12) IP14_15_12 FM(IP15_15_12) IP15_15_12 \
420FM(IP12_19_16) IP12_19_16 FM(IP13_19_16) IP13_19_16 FM(IP14_19_16) IP14_19_16 FM(IP15_19_16) IP15_19_16 \
421FM(IP12_23_20) IP12_23_20 FM(IP13_23_20) IP13_23_20 FM(IP14_23_20) IP14_23_20 FM(IP15_23_20) IP15_23_20 \
422FM(IP12_27_24) IP12_27_24 FM(IP13_27_24) IP13_27_24 FM(IP14_27_24) IP14_27_24 FM(IP15_27_24) IP15_27_24 \
423FM(IP12_31_28) IP12_31_28 FM(IP13_31_28) IP13_31_28 FM(IP14_31_28) IP14_31_28 FM(IP15_31_28) IP15_31_28
424
Marek Vasut88e81ec2019-03-04 22:39:51 +0100425/* The bit numbering in MOD_SEL fields is reversed */
426#define REV4(f0, f1, f2, f3) f0 f2 f1 f3
427#define REV8(f0, f1, f2, f3, f4, f5, f6, f7) f0 f4 f2 f6 f1 f5 f3 f7
428
Marek Vasut68a77042018-04-26 13:09:20 +0200429/* MOD_SEL0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */
Marek Vasut88e81ec2019-03-04 22:39:51 +0100430#define MOD_SEL0_30_29 REV4(FM(SEL_ADGB_0), FM(SEL_ADGB_1), FM(SEL_ADGB_2), F_(0, 0))
Marek Vasut68a77042018-04-26 13:09:20 +0200431#define MOD_SEL0_28 FM(SEL_DRIF0_0) FM(SEL_DRIF0_1)
Marek Vasut88e81ec2019-03-04 22:39:51 +0100432#define MOD_SEL0_27_26 REV4(FM(SEL_FM_0), FM(SEL_FM_1), FM(SEL_FM_2), F_(0, 0))
Marek Vasut68a77042018-04-26 13:09:20 +0200433#define MOD_SEL0_25 FM(SEL_FSO_0) FM(SEL_FSO_1)
434#define MOD_SEL0_24 FM(SEL_HSCIF0_0) FM(SEL_HSCIF0_1)
435#define MOD_SEL0_23 FM(SEL_HSCIF1_0) FM(SEL_HSCIF1_1)
436#define MOD_SEL0_22 FM(SEL_HSCIF2_0) FM(SEL_HSCIF2_1)
Marek Vasut88e81ec2019-03-04 22:39:51 +0100437#define MOD_SEL0_21_20 REV4(FM(SEL_I2C1_0), FM(SEL_I2C1_1), FM(SEL_I2C1_2), FM(SEL_I2C1_3))
438#define MOD_SEL0_19_18_17 REV8(FM(SEL_I2C2_0), FM(SEL_I2C2_1), FM(SEL_I2C2_2), FM(SEL_I2C2_3), FM(SEL_I2C2_4), F_(0, 0), F_(0, 0), F_(0, 0))
Eugeniu Roscaf0066b02019-07-09 18:27:11 +0200439#define MOD_SEL0_16 FM(SEL_NDF_0) FM(SEL_NDF_1)
Marek Vasut68a77042018-04-26 13:09:20 +0200440#define MOD_SEL0_15 FM(SEL_PWM0_0) FM(SEL_PWM0_1)
441#define MOD_SEL0_14 FM(SEL_PWM1_0) FM(SEL_PWM1_1)
Marek Vasut88e81ec2019-03-04 22:39:51 +0100442#define MOD_SEL0_13_12 REV4(FM(SEL_PWM2_0), FM(SEL_PWM2_1), FM(SEL_PWM2_2), F_(0, 0))
443#define MOD_SEL0_11_10 REV4(FM(SEL_PWM3_0), FM(SEL_PWM3_1), FM(SEL_PWM3_2), F_(0, 0))
Marek Vasut68a77042018-04-26 13:09:20 +0200444#define MOD_SEL0_9 FM(SEL_PWM4_0) FM(SEL_PWM4_1)
445#define MOD_SEL0_8 FM(SEL_PWM5_0) FM(SEL_PWM5_1)
446#define MOD_SEL0_7 FM(SEL_PWM6_0) FM(SEL_PWM6_1)
Marek Vasut88e81ec2019-03-04 22:39:51 +0100447#define MOD_SEL0_6_5 REV4(FM(SEL_REMOCON_0), FM(SEL_REMOCON_1), FM(SEL_REMOCON_2), F_(0, 0))
Marek Vasut68a77042018-04-26 13:09:20 +0200448#define MOD_SEL0_4 FM(SEL_SCIF_0) FM(SEL_SCIF_1)
449#define MOD_SEL0_3 FM(SEL_SCIF0_0) FM(SEL_SCIF0_1)
450#define MOD_SEL0_2 FM(SEL_SCIF2_0) FM(SEL_SCIF2_1)
Marek Vasut88e81ec2019-03-04 22:39:51 +0100451#define MOD_SEL0_1_0 REV4(FM(SEL_SPEED_PULSE_IF_0), FM(SEL_SPEED_PULSE_IF_1), FM(SEL_SPEED_PULSE_IF_2), F_(0, 0))
Marek Vasut68a77042018-04-26 13:09:20 +0200452
453/* MOD_SEL1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */
Lad Prabhakare4db7392020-10-14 16:45:59 +0100454#define MOD_SEL1_31 FM(SEL_SIMCARD_0) FM(SEL_SIMCARD_1)
455#define MOD_SEL1_30 FM(SEL_SSI2_0) FM(SEL_SSI2_1)
Marek Vasut68a77042018-04-26 13:09:20 +0200456#define MOD_SEL1_29 FM(SEL_TIMER_TMU_0) FM(SEL_TIMER_TMU_1)
457#define MOD_SEL1_28 FM(SEL_USB_20_CH0_0) FM(SEL_USB_20_CH0_1)
458#define MOD_SEL1_26 FM(SEL_DRIF2_0) FM(SEL_DRIF2_1)
459#define MOD_SEL1_25 FM(SEL_DRIF3_0) FM(SEL_DRIF3_1)
Marek Vasut88e81ec2019-03-04 22:39:51 +0100460#define MOD_SEL1_24_23_22 REV8(FM(SEL_HSCIF3_0), FM(SEL_HSCIF3_1), FM(SEL_HSCIF3_2), FM(SEL_HSCIF3_3), FM(SEL_HSCIF3_4), F_(0, 0), F_(0, 0), F_(0, 0))
461#define MOD_SEL1_21_20_19 REV8(FM(SEL_HSCIF4_0), FM(SEL_HSCIF4_1), FM(SEL_HSCIF4_2), FM(SEL_HSCIF4_3), FM(SEL_HSCIF4_4), F_(0, 0), F_(0, 0), F_(0, 0))
Marek Vasut68a77042018-04-26 13:09:20 +0200462#define MOD_SEL1_18 FM(SEL_I2C6_0) FM(SEL_I2C6_1)
463#define MOD_SEL1_17 FM(SEL_I2C7_0) FM(SEL_I2C7_1)
464#define MOD_SEL1_16 FM(SEL_MSIOF2_0) FM(SEL_MSIOF2_1)
465#define MOD_SEL1_15 FM(SEL_MSIOF3_0) FM(SEL_MSIOF3_1)
Marek Vasut88e81ec2019-03-04 22:39:51 +0100466#define MOD_SEL1_14_13 REV4(FM(SEL_SCIF3_0), FM(SEL_SCIF3_1), FM(SEL_SCIF3_2), F_(0, 0))
467#define MOD_SEL1_12_11 REV4(FM(SEL_SCIF4_0), FM(SEL_SCIF4_1), FM(SEL_SCIF4_2), F_(0, 0))
468#define MOD_SEL1_10_9 REV4(FM(SEL_SCIF5_0), FM(SEL_SCIF5_1), FM(SEL_SCIF5_2), F_(0, 0))
Marek Vasut68a77042018-04-26 13:09:20 +0200469#define MOD_SEL1_8 FM(SEL_VIN4_0) FM(SEL_VIN4_1)
470#define MOD_SEL1_7 FM(SEL_VIN5_0) FM(SEL_VIN5_1)
Marek Vasut88e81ec2019-03-04 22:39:51 +0100471#define MOD_SEL1_6_5 REV4(FM(SEL_ADGC_0), FM(SEL_ADGC_1), FM(SEL_ADGC_2), F_(0, 0))
Marek Vasut68a77042018-04-26 13:09:20 +0200472#define MOD_SEL1_4 FM(SEL_SSI9_0) FM(SEL_SSI9_1)
473
474#define PINMUX_MOD_SELS \
475\
Lad Prabhakare4db7392020-10-14 16:45:59 +0100476 MOD_SEL1_31 \
477MOD_SEL0_30_29 MOD_SEL1_30 \
Marek Vasut68a77042018-04-26 13:09:20 +0200478 MOD_SEL1_29 \
479MOD_SEL0_28 MOD_SEL1_28 \
480MOD_SEL0_27_26 \
481 MOD_SEL1_26 \
482MOD_SEL0_25 MOD_SEL1_25 \
483MOD_SEL0_24 MOD_SEL1_24_23_22 \
484MOD_SEL0_23 \
485MOD_SEL0_22 \
486MOD_SEL0_21_20 MOD_SEL1_21_20_19 \
487MOD_SEL0_19_18_17 MOD_SEL1_18 \
488 MOD_SEL1_17 \
489MOD_SEL0_16 MOD_SEL1_16 \
490MOD_SEL0_15 MOD_SEL1_15 \
491MOD_SEL0_14 MOD_SEL1_14_13 \
492MOD_SEL0_13_12 \
493 MOD_SEL1_12_11 \
494MOD_SEL0_11_10 \
495 MOD_SEL1_10_9 \
496MOD_SEL0_9 \
497MOD_SEL0_8 MOD_SEL1_8 \
498MOD_SEL0_7 MOD_SEL1_7 \
499MOD_SEL0_6_5 MOD_SEL1_6_5 \
500MOD_SEL0_4 MOD_SEL1_4 \
501MOD_SEL0_3 \
502MOD_SEL0_2 \
503MOD_SEL0_1_0
504
Marek Vasuteb13e0f2018-06-10 16:05:48 +0200505/*
506 * These pins are not able to be muxed but have other properties
507 * that can be set, such as pull-up/pull-down enable.
508 */
509#define PINMUX_STATIC \
510 FM(AVB_TX_CTL) FM(AVB_TXC) FM(AVB_TD0) FM(AVB_TD1) FM(AVB_TD2) \
511 FM(AVB_TD3) \
512 FM(PRESETOUT_N) FM(FSCLKST_N) FM(TRST_N) FM(TCK) FM(TMS) FM(TDI) \
513 FM(ASEBRK) \
Marek Vasut8fed6732023-09-17 16:08:45 +0200514 FM(MLB_REF) \
515 FM(VDDQ_AVB0)
Marek Vasuteb13e0f2018-06-10 16:05:48 +0200516
Marek Vasut68a77042018-04-26 13:09:20 +0200517enum {
518 PINMUX_RESERVED = 0,
519
520 PINMUX_DATA_BEGIN,
521 GP_ALL(DATA),
522 PINMUX_DATA_END,
523
524#define F_(x, y)
525#define FM(x) FN_##x,
526 PINMUX_FUNCTION_BEGIN,
527 GP_ALL(FN),
528 PINMUX_GPSR
529 PINMUX_IPSR
530 PINMUX_MOD_SELS
531 PINMUX_FUNCTION_END,
532#undef F_
533#undef FM
534
535#define F_(x, y)
536#define FM(x) x##_MARK,
537 PINMUX_MARK_BEGIN,
538 PINMUX_GPSR
539 PINMUX_IPSR
540 PINMUX_MOD_SELS
Marek Vasuteb13e0f2018-06-10 16:05:48 +0200541 PINMUX_STATIC
Marek Vasut68a77042018-04-26 13:09:20 +0200542 PINMUX_MARK_END,
543#undef F_
544#undef FM
545};
546
547static const u16 pinmux_data[] = {
548 PINMUX_DATA_GP_ALL(),
549
Marek Vasuteb13e0f2018-06-10 16:05:48 +0200550 PINMUX_SINGLE(CLKOUT),
551 PINMUX_SINGLE(AVB_PHY_INT),
552 PINMUX_SINGLE(AVB_RD3),
553 PINMUX_SINGLE(AVB_RXC),
554 PINMUX_SINGLE(AVB_RX_CTL),
555 PINMUX_SINGLE(QSPI0_SSL),
556
Marek Vasut68a77042018-04-26 13:09:20 +0200557 /* IPSR0 */
558 PINMUX_IPSR_GPSR(IP0_3_0, QSPI0_SPCLK),
559 PINMUX_IPSR_MSEL(IP0_3_0, HSCK4_A, SEL_HSCIF4_0),
560
561 PINMUX_IPSR_GPSR(IP0_7_4, QSPI0_MOSI_IO0),
562 PINMUX_IPSR_MSEL(IP0_7_4, HCTS4_N_A, SEL_HSCIF4_0),
563
564 PINMUX_IPSR_GPSR(IP0_11_8, QSPI0_MISO_IO1),
565 PINMUX_IPSR_MSEL(IP0_11_8, HRTS4_N_A, SEL_HSCIF4_0),
566
567 PINMUX_IPSR_GPSR(IP0_15_12, QSPI0_IO2),
568 PINMUX_IPSR_GPSR(IP0_15_12, HTX4_A),
569
570 PINMUX_IPSR_GPSR(IP0_19_16, QSPI0_IO3),
571 PINMUX_IPSR_MSEL(IP0_19_16, HRX4_A, SEL_HSCIF4_0),
572
573 PINMUX_IPSR_GPSR(IP0_23_20, QSPI1_SPCLK),
574 PINMUX_IPSR_MSEL(IP0_23_20, RIF2_CLK_A, SEL_DRIF2_0),
575 PINMUX_IPSR_MSEL(IP0_23_20, HSCK4_B, SEL_HSCIF4_1),
576 PINMUX_IPSR_MSEL(IP0_23_20, VI4_DATA0_A, SEL_VIN4_0),
577
578 PINMUX_IPSR_GPSR(IP0_27_24, QSPI1_MOSI_IO0),
579 PINMUX_IPSR_MSEL(IP0_27_24, RIF2_SYNC_A, SEL_DRIF2_0),
580 PINMUX_IPSR_GPSR(IP0_27_24, HTX4_B),
581 PINMUX_IPSR_MSEL(IP0_27_24, VI4_DATA1_A, SEL_VIN4_0),
582
583 PINMUX_IPSR_GPSR(IP0_31_28, QSPI1_MISO_IO1),
584 PINMUX_IPSR_MSEL(IP0_31_28, RIF2_D0_A, SEL_DRIF2_0),
585 PINMUX_IPSR_MSEL(IP0_31_28, HRX4_B, SEL_HSCIF4_1),
586 PINMUX_IPSR_MSEL(IP0_31_28, VI4_DATA2_A, SEL_VIN4_0),
587
588 /* IPSR1 */
589 PINMUX_IPSR_GPSR(IP1_3_0, QSPI1_IO2),
590 PINMUX_IPSR_MSEL(IP1_3_0, RIF2_D1_A, SEL_DRIF2_0),
591 PINMUX_IPSR_GPSR(IP1_3_0, HTX3_C),
592 PINMUX_IPSR_MSEL(IP1_3_0, VI4_DATA3_A, SEL_VIN4_0),
593
594 PINMUX_IPSR_GPSR(IP1_7_4, QSPI1_IO3),
595 PINMUX_IPSR_MSEL(IP1_7_4, RIF3_CLK_A, SEL_DRIF3_0),
596 PINMUX_IPSR_MSEL(IP1_7_4, HRX3_C, SEL_HSCIF3_2),
597 PINMUX_IPSR_MSEL(IP1_7_4, VI4_DATA4_A, SEL_VIN4_0),
598
599 PINMUX_IPSR_GPSR(IP1_11_8, QSPI1_SSL),
600 PINMUX_IPSR_MSEL(IP1_11_8, RIF3_SYNC_A, SEL_DRIF3_0),
601 PINMUX_IPSR_MSEL(IP1_11_8, HSCK3_C, SEL_HSCIF3_2),
602 PINMUX_IPSR_MSEL(IP1_11_8, VI4_DATA5_A, SEL_VIN4_0),
603
604 PINMUX_IPSR_GPSR(IP1_15_12, RPC_INT_N),
605 PINMUX_IPSR_MSEL(IP1_15_12, RIF3_D0_A, SEL_DRIF3_0),
606 PINMUX_IPSR_MSEL(IP1_15_12, HCTS3_N_C, SEL_HSCIF3_2),
607 PINMUX_IPSR_MSEL(IP1_15_12, VI4_DATA6_A, SEL_VIN4_0),
608
609 PINMUX_IPSR_GPSR(IP1_19_16, RPC_RESET_N),
610 PINMUX_IPSR_MSEL(IP1_19_16, RIF3_D1_A, SEL_DRIF3_0),
611 PINMUX_IPSR_MSEL(IP1_19_16, HRTS3_N_C, SEL_HSCIF3_2),
612 PINMUX_IPSR_MSEL(IP1_19_16, VI4_DATA7_A, SEL_VIN4_0),
613
614 PINMUX_IPSR_GPSR(IP1_23_20, AVB_RD0),
615
616 PINMUX_IPSR_GPSR(IP1_27_24, AVB_RD1),
617
618 PINMUX_IPSR_GPSR(IP1_31_28, AVB_RD2),
619
620 /* IPSR2 */
621 PINMUX_IPSR_GPSR(IP2_3_0, AVB_TXCREFCLK),
622
623 PINMUX_IPSR_GPSR(IP2_7_4, AVB_MDIO),
624
625 PINMUX_IPSR_GPSR(IP2_11_8, AVB_MDC),
626
627 PINMUX_IPSR_GPSR(IP2_15_12, BS_N),
628 PINMUX_IPSR_MSEL(IP2_15_12, PWM0_A, SEL_PWM0_0),
629 PINMUX_IPSR_GPSR(IP2_15_12, AVB_MAGIC),
630 PINMUX_IPSR_GPSR(IP2_15_12, VI4_CLK),
631 PINMUX_IPSR_GPSR(IP2_15_12, TX3_C),
632 PINMUX_IPSR_MSEL(IP2_15_12, VI5_CLK_B, SEL_VIN5_1),
633
634 PINMUX_IPSR_GPSR(IP2_19_16, RD_N),
635 PINMUX_IPSR_MSEL(IP2_19_16, PWM1_A, SEL_PWM1_0),
636 PINMUX_IPSR_GPSR(IP2_19_16, AVB_LINK),
637 PINMUX_IPSR_GPSR(IP2_19_16, VI4_FIELD),
638 PINMUX_IPSR_MSEL(IP2_19_16, RX3_C, SEL_SCIF3_2),
639 PINMUX_IPSR_GPSR(IP2_19_16, FSCLKST2_N_A),
640 PINMUX_IPSR_MSEL(IP2_19_16, VI5_DATA0_B, SEL_VIN5_1),
641
642 PINMUX_IPSR_GPSR(IP2_23_20, RD_WR_N),
643 PINMUX_IPSR_MSEL(IP2_23_20, SCL7_A, SEL_I2C7_0),
Lad Prabhakare4db7392020-10-14 16:45:59 +0100644 PINMUX_IPSR_GPSR(IP2_23_20, AVB_AVTP_MATCH),
Marek Vasut68a77042018-04-26 13:09:20 +0200645 PINMUX_IPSR_GPSR(IP2_23_20, VI4_VSYNC_N),
646 PINMUX_IPSR_GPSR(IP2_23_20, TX5_B),
647 PINMUX_IPSR_MSEL(IP2_23_20, SCK3_C, SEL_SCIF3_2),
648 PINMUX_IPSR_MSEL(IP2_23_20, PWM5_A, SEL_PWM5_0),
649
650 PINMUX_IPSR_GPSR(IP2_27_24, EX_WAIT0),
651 PINMUX_IPSR_MSEL(IP2_27_24, SDA7_A, SEL_I2C7_0),
Lad Prabhakare4db7392020-10-14 16:45:59 +0100652 PINMUX_IPSR_GPSR(IP2_27_24, AVB_AVTP_CAPTURE),
Marek Vasut68a77042018-04-26 13:09:20 +0200653 PINMUX_IPSR_GPSR(IP2_27_24, VI4_HSYNC_N),
654 PINMUX_IPSR_MSEL(IP2_27_24, RX5_B, SEL_SCIF5_1),
655 PINMUX_IPSR_MSEL(IP2_27_24, PWM6_A, SEL_PWM6_0),
656
657 PINMUX_IPSR_GPSR(IP2_31_28, A0),
658 PINMUX_IPSR_GPSR(IP2_31_28, IRQ0),
659 PINMUX_IPSR_MSEL(IP2_31_28, PWM2_A, SEL_PWM2_0),
660 PINMUX_IPSR_MSEL(IP2_31_28, MSIOF3_SS1_B, SEL_MSIOF3_1),
661 PINMUX_IPSR_MSEL(IP2_31_28, VI5_CLK_A, SEL_VIN5_0),
662 PINMUX_IPSR_GPSR(IP2_31_28, DU_CDE),
663 PINMUX_IPSR_MSEL(IP2_31_28, HRX3_D, SEL_HSCIF3_3),
664 PINMUX_IPSR_GPSR(IP2_31_28, IERX),
665 PINMUX_IPSR_GPSR(IP2_31_28, QSTB_QHE),
666
667 /* IPSR3 */
668 PINMUX_IPSR_GPSR(IP3_3_0, A1),
669 PINMUX_IPSR_GPSR(IP3_3_0, IRQ1),
670 PINMUX_IPSR_MSEL(IP3_3_0, PWM3_A, SEL_PWM3_0),
671 PINMUX_IPSR_GPSR(IP3_3_0, DU_DOTCLKIN1),
672 PINMUX_IPSR_MSEL(IP3_3_0, VI5_DATA0_A, SEL_VIN5_0),
673 PINMUX_IPSR_GPSR(IP3_3_0, DU_DISP_CDE),
674 PINMUX_IPSR_MSEL(IP3_3_0, SDA6_B, SEL_I2C6_1),
675 PINMUX_IPSR_GPSR(IP3_3_0, IETX),
676 PINMUX_IPSR_GPSR(IP3_3_0, QCPV_QDE),
677
678 PINMUX_IPSR_GPSR(IP3_7_4, A2),
679 PINMUX_IPSR_GPSR(IP3_7_4, IRQ2),
680 PINMUX_IPSR_GPSR(IP3_7_4, AVB_AVTP_PPS),
681 PINMUX_IPSR_GPSR(IP3_7_4, VI4_CLKENB),
682 PINMUX_IPSR_MSEL(IP3_7_4, VI5_DATA1_A, SEL_VIN5_0),
683 PINMUX_IPSR_GPSR(IP3_7_4, DU_DISP),
684 PINMUX_IPSR_MSEL(IP3_7_4, SCL6_B, SEL_I2C6_1),
685 PINMUX_IPSR_GPSR(IP3_7_4, QSTVB_QVE),
686
687 PINMUX_IPSR_GPSR(IP3_11_8, A3),
688 PINMUX_IPSR_MSEL(IP3_11_8, CTS4_N_A, SEL_SCIF4_0),
689 PINMUX_IPSR_MSEL(IP3_11_8, PWM4_A, SEL_PWM4_0),
690 PINMUX_IPSR_GPSR(IP3_11_8, VI4_DATA12),
691 PINMUX_IPSR_GPSR(IP3_11_8, DU_DOTCLKOUT0),
692 PINMUX_IPSR_GPSR(IP3_11_8, HTX3_D),
693 PINMUX_IPSR_GPSR(IP3_11_8, IECLK),
694 PINMUX_IPSR_GPSR(IP3_11_8, LCDOUT12),
695
696 PINMUX_IPSR_GPSR(IP3_15_12, A4),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +0200697 PINMUX_IPSR_MSEL(IP3_15_12, RTS4_N_A, SEL_SCIF4_0),
Marek Vasut68a77042018-04-26 13:09:20 +0200698 PINMUX_IPSR_MSEL(IP3_15_12, MSIOF3_SYNC_B, SEL_MSIOF3_1),
699 PINMUX_IPSR_GPSR(IP3_15_12, VI4_DATA8),
700 PINMUX_IPSR_MSEL(IP3_15_12, PWM2_B, SEL_PWM2_1),
701 PINMUX_IPSR_GPSR(IP3_15_12, DU_DG4),
702 PINMUX_IPSR_MSEL(IP3_15_12, RIF2_CLK_B, SEL_DRIF2_1),
703
704 PINMUX_IPSR_GPSR(IP3_19_16, A5),
705 PINMUX_IPSR_MSEL(IP3_19_16, SCK4_A, SEL_SCIF4_0),
706 PINMUX_IPSR_MSEL(IP3_19_16, MSIOF3_SCK_B, SEL_MSIOF3_1),
707 PINMUX_IPSR_GPSR(IP3_19_16, VI4_DATA9),
708 PINMUX_IPSR_MSEL(IP3_19_16, PWM3_B, SEL_PWM3_1),
709 PINMUX_IPSR_MSEL(IP3_19_16, RIF2_SYNC_B, SEL_DRIF2_1),
710 PINMUX_IPSR_GPSR(IP3_19_16, QPOLA),
711
712 PINMUX_IPSR_GPSR(IP3_23_20, A6),
713 PINMUX_IPSR_MSEL(IP3_23_20, RX4_A, SEL_SCIF4_0),
714 PINMUX_IPSR_MSEL(IP3_23_20, MSIOF3_RXD_B, SEL_MSIOF3_1),
715 PINMUX_IPSR_GPSR(IP3_23_20, VI4_DATA10),
716 PINMUX_IPSR_MSEL(IP3_23_20, RIF2_D0_B, SEL_DRIF2_1),
717
718 PINMUX_IPSR_GPSR(IP3_27_24, A7),
719 PINMUX_IPSR_GPSR(IP3_27_24, TX4_A),
720 PINMUX_IPSR_GPSR(IP3_27_24, MSIOF3_TXD_B),
721 PINMUX_IPSR_GPSR(IP3_27_24, VI4_DATA11),
722 PINMUX_IPSR_MSEL(IP3_27_24, RIF2_D1_B, SEL_DRIF2_1),
723
724 PINMUX_IPSR_GPSR(IP3_31_28, A8),
725 PINMUX_IPSR_MSEL(IP3_31_28, SDA6_A, SEL_I2C6_0),
726 PINMUX_IPSR_MSEL(IP3_31_28, RX3_B, SEL_SCIF3_1),
727 PINMUX_IPSR_MSEL(IP3_31_28, HRX4_C, SEL_HSCIF4_2),
728 PINMUX_IPSR_MSEL(IP3_31_28, VI5_HSYNC_N_A, SEL_VIN5_0),
729 PINMUX_IPSR_GPSR(IP3_31_28, DU_HSYNC),
730 PINMUX_IPSR_MSEL(IP3_31_28, VI4_DATA0_B, SEL_VIN4_1),
731 PINMUX_IPSR_GPSR(IP3_31_28, QSTH_QHS),
732
733 /* IPSR4 */
734 PINMUX_IPSR_GPSR(IP4_3_0, A9),
735 PINMUX_IPSR_GPSR(IP4_3_0, TX5_A),
736 PINMUX_IPSR_GPSR(IP4_3_0, IRQ3),
737 PINMUX_IPSR_GPSR(IP4_3_0, VI4_DATA16),
738 PINMUX_IPSR_MSEL(IP4_3_0, VI5_VSYNC_N_A, SEL_VIN5_0),
739 PINMUX_IPSR_GPSR(IP4_3_0, DU_DG7),
740 PINMUX_IPSR_GPSR(IP4_3_0, LCDOUT15),
741
742 PINMUX_IPSR_GPSR(IP4_7_4, A10),
743 PINMUX_IPSR_GPSR(IP4_7_4, IRQ4),
744 PINMUX_IPSR_MSEL(IP4_7_4, MSIOF2_SYNC_B, SEL_MSIOF2_1),
745 PINMUX_IPSR_GPSR(IP4_7_4, VI4_DATA13),
746 PINMUX_IPSR_MSEL(IP4_7_4, VI5_FIELD_A, SEL_VIN5_0),
747 PINMUX_IPSR_GPSR(IP4_7_4, DU_DG5),
748 PINMUX_IPSR_GPSR(IP4_7_4, FSCLKST2_N_B),
749 PINMUX_IPSR_GPSR(IP4_7_4, LCDOUT13),
750
751 PINMUX_IPSR_GPSR(IP4_11_8, A11),
752 PINMUX_IPSR_MSEL(IP4_11_8, SCL6_A, SEL_I2C6_0),
753 PINMUX_IPSR_GPSR(IP4_11_8, TX3_B),
754 PINMUX_IPSR_GPSR(IP4_11_8, HTX4_C),
755 PINMUX_IPSR_GPSR(IP4_11_8, DU_VSYNC),
756 PINMUX_IPSR_MSEL(IP4_11_8, VI4_DATA1_B, SEL_VIN4_1),
757 PINMUX_IPSR_GPSR(IP4_11_8, QSTVA_QVS),
758
759 PINMUX_IPSR_GPSR(IP4_15_12, A12),
760 PINMUX_IPSR_MSEL(IP4_15_12, RX5_A, SEL_SCIF5_0),
761 PINMUX_IPSR_GPSR(IP4_15_12, MSIOF2_SS2_B),
762 PINMUX_IPSR_GPSR(IP4_15_12, VI4_DATA17),
763 PINMUX_IPSR_MSEL(IP4_15_12, VI5_DATA3_A, SEL_VIN5_0),
764 PINMUX_IPSR_GPSR(IP4_15_12, DU_DG6),
765 PINMUX_IPSR_GPSR(IP4_15_12, LCDOUT14),
766
767 PINMUX_IPSR_GPSR(IP4_19_16, A13),
768 PINMUX_IPSR_MSEL(IP4_19_16, SCK5_A, SEL_SCIF5_0),
769 PINMUX_IPSR_MSEL(IP4_19_16, MSIOF2_SCK_B, SEL_MSIOF2_1),
770 PINMUX_IPSR_GPSR(IP4_19_16, VI4_DATA14),
771 PINMUX_IPSR_MSEL(IP4_19_16, HRX4_D, SEL_HSCIF4_3),
772 PINMUX_IPSR_GPSR(IP4_19_16, DU_DB2),
773 PINMUX_IPSR_GPSR(IP4_19_16, LCDOUT2),
774
775 PINMUX_IPSR_GPSR(IP4_23_20, A14),
776 PINMUX_IPSR_GPSR(IP4_23_20, MSIOF1_SS1),
777 PINMUX_IPSR_MSEL(IP4_23_20, MSIOF2_RXD_B, SEL_MSIOF2_1),
778 PINMUX_IPSR_GPSR(IP4_23_20, VI4_DATA15),
779 PINMUX_IPSR_GPSR(IP4_23_20, HTX4_D),
780 PINMUX_IPSR_GPSR(IP4_23_20, DU_DB3),
781 PINMUX_IPSR_GPSR(IP4_23_20, LCDOUT3),
782
783 PINMUX_IPSR_GPSR(IP4_27_24, A15),
784 PINMUX_IPSR_GPSR(IP4_27_24, MSIOF1_SS2),
785 PINMUX_IPSR_GPSR(IP4_27_24, MSIOF2_TXD_B),
786 PINMUX_IPSR_GPSR(IP4_27_24, VI4_DATA18),
787 PINMUX_IPSR_MSEL(IP4_27_24, VI5_DATA4_A, SEL_VIN5_0),
788 PINMUX_IPSR_GPSR(IP4_27_24, DU_DB4),
789 PINMUX_IPSR_GPSR(IP4_27_24, LCDOUT4),
790
791 PINMUX_IPSR_GPSR(IP4_31_28, A16),
792 PINMUX_IPSR_GPSR(IP4_31_28, MSIOF1_SYNC),
793 PINMUX_IPSR_GPSR(IP4_31_28, MSIOF2_SS1_B),
794 PINMUX_IPSR_GPSR(IP4_31_28, VI4_DATA19),
795 PINMUX_IPSR_MSEL(IP4_31_28, VI5_DATA5_A, SEL_VIN5_0),
796 PINMUX_IPSR_GPSR(IP4_31_28, DU_DB5),
797 PINMUX_IPSR_GPSR(IP4_31_28, LCDOUT5),
798
799 /* IPSR5 */
800 PINMUX_IPSR_GPSR(IP5_3_0, A17),
801 PINMUX_IPSR_GPSR(IP5_3_0, MSIOF1_RXD),
802 PINMUX_IPSR_GPSR(IP5_3_0, VI4_DATA20),
803 PINMUX_IPSR_MSEL(IP5_3_0, VI5_DATA6_A, SEL_VIN5_0),
804 PINMUX_IPSR_GPSR(IP5_3_0, DU_DB6),
805 PINMUX_IPSR_GPSR(IP5_3_0, LCDOUT6),
806
807 PINMUX_IPSR_GPSR(IP5_7_4, A18),
808 PINMUX_IPSR_GPSR(IP5_7_4, MSIOF1_TXD),
809 PINMUX_IPSR_GPSR(IP5_7_4, VI4_DATA21),
810 PINMUX_IPSR_MSEL(IP5_7_4, VI5_DATA7_A, SEL_VIN5_0),
811 PINMUX_IPSR_GPSR(IP5_7_4, DU_DB0),
812 PINMUX_IPSR_MSEL(IP5_7_4, HRX4_E, SEL_HSCIF4_4),
813 PINMUX_IPSR_GPSR(IP5_7_4, LCDOUT0),
814
815 PINMUX_IPSR_GPSR(IP5_11_8, A19),
816 PINMUX_IPSR_GPSR(IP5_11_8, MSIOF1_SCK),
817 PINMUX_IPSR_GPSR(IP5_11_8, VI4_DATA22),
818 PINMUX_IPSR_MSEL(IP5_11_8, VI5_DATA2_A, SEL_VIN5_0),
819 PINMUX_IPSR_GPSR(IP5_11_8, DU_DB1),
820 PINMUX_IPSR_GPSR(IP5_11_8, HTX4_E),
821 PINMUX_IPSR_GPSR(IP5_11_8, LCDOUT1),
822
823 PINMUX_IPSR_GPSR(IP5_15_12, CS0_N),
824 PINMUX_IPSR_GPSR(IP5_15_12, SCL5),
825 PINMUX_IPSR_GPSR(IP5_15_12, DU_DR0),
826 PINMUX_IPSR_MSEL(IP5_15_12, VI4_DATA2_B, SEL_VIN4_1),
827 PINMUX_IPSR_GPSR(IP5_15_12, LCDOUT16),
828
829 PINMUX_IPSR_GPSR(IP5_19_16, WE0_N),
830 PINMUX_IPSR_GPSR(IP5_19_16, SDA5),
831 PINMUX_IPSR_GPSR(IP5_19_16, DU_DR1),
832 PINMUX_IPSR_MSEL(IP5_19_16, VI4_DATA3_B, SEL_VIN4_1),
833 PINMUX_IPSR_GPSR(IP5_19_16, LCDOUT17),
834
835 PINMUX_IPSR_GPSR(IP5_23_20, D0),
836 PINMUX_IPSR_MSEL(IP5_23_20, MSIOF3_SCK_A, SEL_MSIOF3_0),
837 PINMUX_IPSR_GPSR(IP5_23_20, DU_DR2),
838 PINMUX_IPSR_MSEL(IP5_23_20, CTS4_N_C, SEL_SCIF4_2),
839 PINMUX_IPSR_GPSR(IP5_23_20, LCDOUT18),
840
841 PINMUX_IPSR_GPSR(IP5_27_24, D1),
842 PINMUX_IPSR_MSEL(IP5_27_24, MSIOF3_SYNC_A, SEL_MSIOF3_0),
843 PINMUX_IPSR_MSEL(IP5_27_24, SCK3_A, SEL_SCIF3_0),
844 PINMUX_IPSR_GPSR(IP5_27_24, VI4_DATA23),
845 PINMUX_IPSR_MSEL(IP5_27_24, VI5_CLKENB_A, SEL_VIN5_0),
846 PINMUX_IPSR_GPSR(IP5_27_24, DU_DB7),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +0200847 PINMUX_IPSR_MSEL(IP5_27_24, RTS4_N_C, SEL_SCIF4_2),
Marek Vasut68a77042018-04-26 13:09:20 +0200848 PINMUX_IPSR_GPSR(IP5_27_24, LCDOUT7),
849
850 PINMUX_IPSR_GPSR(IP5_31_28, D2),
851 PINMUX_IPSR_MSEL(IP5_31_28, MSIOF3_RXD_A, SEL_MSIOF3_0),
852 PINMUX_IPSR_MSEL(IP5_31_28, RX5_C, SEL_SCIF5_2),
853 PINMUX_IPSR_MSEL(IP5_31_28, VI5_DATA14_A, SEL_VIN5_0),
854 PINMUX_IPSR_GPSR(IP5_31_28, DU_DR3),
855 PINMUX_IPSR_MSEL(IP5_31_28, RX4_C, SEL_SCIF4_2),
856 PINMUX_IPSR_GPSR(IP5_31_28, LCDOUT19),
857
858 /* IPSR6 */
859 PINMUX_IPSR_GPSR(IP6_3_0, D3),
860 PINMUX_IPSR_GPSR(IP6_3_0, MSIOF3_TXD_A),
861 PINMUX_IPSR_GPSR(IP6_3_0, TX5_C),
862 PINMUX_IPSR_MSEL(IP6_3_0, VI5_DATA15_A, SEL_VIN5_0),
863 PINMUX_IPSR_GPSR(IP6_3_0, DU_DR4),
864 PINMUX_IPSR_GPSR(IP6_3_0, TX4_C),
865 PINMUX_IPSR_GPSR(IP6_3_0, LCDOUT20),
866
867 PINMUX_IPSR_GPSR(IP6_7_4, D4),
868 PINMUX_IPSR_GPSR(IP6_7_4, CANFD1_TX),
869 PINMUX_IPSR_MSEL(IP6_7_4, HSCK3_B, SEL_HSCIF3_1),
870 PINMUX_IPSR_GPSR(IP6_7_4, CAN1_TX),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +0200871 PINMUX_IPSR_MSEL(IP6_7_4, RTS3_N_A, SEL_SCIF3_0),
Marek Vasut68a77042018-04-26 13:09:20 +0200872 PINMUX_IPSR_GPSR(IP6_7_4, MSIOF3_SS2_A),
873 PINMUX_IPSR_MSEL(IP6_7_4, VI5_DATA1_B, SEL_VIN5_1),
874
875 PINMUX_IPSR_GPSR(IP6_11_8, D5),
876 PINMUX_IPSR_MSEL(IP6_11_8, RX3_A, SEL_SCIF3_0),
877 PINMUX_IPSR_MSEL(IP6_11_8, HRX3_B, SEL_HSCIF3_1),
878 PINMUX_IPSR_GPSR(IP6_11_8, DU_DR5),
879 PINMUX_IPSR_MSEL(IP6_11_8, VI4_DATA4_B, SEL_VIN4_1),
880 PINMUX_IPSR_GPSR(IP6_11_8, LCDOUT21),
881
882 PINMUX_IPSR_GPSR(IP6_15_12, D6),
883 PINMUX_IPSR_GPSR(IP6_15_12, TX3_A),
884 PINMUX_IPSR_GPSR(IP6_15_12, HTX3_B),
885 PINMUX_IPSR_GPSR(IP6_15_12, DU_DR6),
886 PINMUX_IPSR_MSEL(IP6_15_12, VI4_DATA5_B, SEL_VIN4_1),
887 PINMUX_IPSR_GPSR(IP6_15_12, LCDOUT22),
888
889 PINMUX_IPSR_GPSR(IP6_19_16, D7),
890 PINMUX_IPSR_GPSR(IP6_19_16, CANFD1_RX),
891 PINMUX_IPSR_GPSR(IP6_19_16, IRQ5),
892 PINMUX_IPSR_GPSR(IP6_19_16, CAN1_RX),
893 PINMUX_IPSR_MSEL(IP6_19_16, CTS3_N_A, SEL_SCIF3_0),
894 PINMUX_IPSR_MSEL(IP6_19_16, VI5_DATA2_B, SEL_VIN5_1),
895
896 PINMUX_IPSR_GPSR(IP6_23_20, D8),
897 PINMUX_IPSR_MSEL(IP6_23_20, MSIOF2_SCK_A, SEL_MSIOF2_0),
898 PINMUX_IPSR_MSEL(IP6_23_20, SCK4_B, SEL_SCIF4_1),
899 PINMUX_IPSR_MSEL(IP6_23_20, VI5_DATA12_A, SEL_VIN5_0),
900 PINMUX_IPSR_GPSR(IP6_23_20, DU_DR7),
901 PINMUX_IPSR_MSEL(IP6_23_20, RIF3_CLK_B, SEL_DRIF3_1),
902 PINMUX_IPSR_MSEL(IP6_23_20, HCTS3_N_E, SEL_HSCIF3_4),
903 PINMUX_IPSR_GPSR(IP6_23_20, LCDOUT23),
904
905 PINMUX_IPSR_GPSR(IP6_27_24, D9),
906 PINMUX_IPSR_MSEL(IP6_27_24, MSIOF2_SYNC_A, SEL_MSIOF2_0),
907 PINMUX_IPSR_MSEL(IP6_27_24, VI5_DATA10_A, SEL_VIN5_0),
908 PINMUX_IPSR_GPSR(IP6_27_24, DU_DG0),
909 PINMUX_IPSR_MSEL(IP6_27_24, RIF3_SYNC_B, SEL_DRIF3_1),
910 PINMUX_IPSR_MSEL(IP6_27_24, HRX3_E, SEL_HSCIF3_4),
911 PINMUX_IPSR_GPSR(IP6_27_24, LCDOUT8),
912
913 PINMUX_IPSR_GPSR(IP6_31_28, D10),
914 PINMUX_IPSR_MSEL(IP6_31_28, MSIOF2_RXD_A, SEL_MSIOF2_0),
915 PINMUX_IPSR_MSEL(IP6_31_28, VI5_DATA13_A, SEL_VIN5_0),
916 PINMUX_IPSR_GPSR(IP6_31_28, DU_DG1),
917 PINMUX_IPSR_MSEL(IP6_31_28, RIF3_D0_B, SEL_DRIF3_1),
918 PINMUX_IPSR_GPSR(IP6_31_28, HTX3_E),
919 PINMUX_IPSR_GPSR(IP6_31_28, LCDOUT9),
920
921 /* IPSR7 */
922 PINMUX_IPSR_GPSR(IP7_3_0, D11),
923 PINMUX_IPSR_GPSR(IP7_3_0, MSIOF2_TXD_A),
924 PINMUX_IPSR_MSEL(IP7_3_0, VI5_DATA11_A, SEL_VIN5_0),
925 PINMUX_IPSR_GPSR(IP7_3_0, DU_DG2),
926 PINMUX_IPSR_MSEL(IP7_3_0, RIF3_D1_B, SEL_DRIF3_1),
927 PINMUX_IPSR_MSEL(IP7_3_0, HRTS3_N_E, SEL_HSCIF3_4),
928 PINMUX_IPSR_GPSR(IP7_3_0, LCDOUT10),
929
930 PINMUX_IPSR_GPSR(IP7_7_4, D12),
931 PINMUX_IPSR_GPSR(IP7_7_4, CANFD0_TX),
932 PINMUX_IPSR_GPSR(IP7_7_4, TX4_B),
933 PINMUX_IPSR_GPSR(IP7_7_4, CAN0_TX),
934 PINMUX_IPSR_MSEL(IP7_7_4, VI5_DATA8_A, SEL_VIN5_0),
935 PINMUX_IPSR_MSEL(IP7_7_4, VI5_DATA3_B, SEL_VIN5_1),
936
937 PINMUX_IPSR_GPSR(IP7_11_8, D13),
938 PINMUX_IPSR_GPSR(IP7_11_8, CANFD0_RX),
939 PINMUX_IPSR_MSEL(IP7_11_8, RX4_B, SEL_SCIF4_1),
940 PINMUX_IPSR_GPSR(IP7_11_8, CAN0_RX),
941 PINMUX_IPSR_MSEL(IP7_11_8, VI5_DATA9_A, SEL_VIN5_0),
942 PINMUX_IPSR_MSEL(IP7_11_8, SCL7_B, SEL_I2C7_1),
943 PINMUX_IPSR_MSEL(IP7_11_8, VI5_DATA4_B, SEL_VIN5_1),
944
945 PINMUX_IPSR_GPSR(IP7_15_12, D14),
946 PINMUX_IPSR_GPSR(IP7_15_12, CAN_CLK),
947 PINMUX_IPSR_MSEL(IP7_15_12, HRX3_A, SEL_HSCIF3_0),
948 PINMUX_IPSR_GPSR(IP7_15_12, MSIOF2_SS2_A),
949 PINMUX_IPSR_MSEL(IP7_15_12, SDA7_B, SEL_I2C7_1),
950 PINMUX_IPSR_MSEL(IP7_15_12, VI5_DATA5_B, SEL_VIN5_1),
951
952 PINMUX_IPSR_GPSR(IP7_19_16, D15),
953 PINMUX_IPSR_GPSR(IP7_19_16, MSIOF2_SS1_A),
954 PINMUX_IPSR_GPSR(IP7_19_16, HTX3_A),
955 PINMUX_IPSR_GPSR(IP7_19_16, MSIOF3_SS1_A),
956 PINMUX_IPSR_GPSR(IP7_19_16, DU_DG3),
957 PINMUX_IPSR_GPSR(IP7_19_16, LCDOUT11),
958
959 PINMUX_IPSR_GPSR(IP7_23_20, SCL4),
960 PINMUX_IPSR_GPSR(IP7_23_20, CS1_N_A26),
961 PINMUX_IPSR_GPSR(IP7_23_20, DU_DOTCLKIN0),
962 PINMUX_IPSR_MSEL(IP7_23_20, VI4_DATA6_B, SEL_VIN4_1),
963 PINMUX_IPSR_MSEL(IP7_23_20, VI5_DATA6_B, SEL_VIN5_1),
964 PINMUX_IPSR_GPSR(IP7_23_20, QCLK),
965
966 PINMUX_IPSR_GPSR(IP7_27_24, SDA4),
967 PINMUX_IPSR_GPSR(IP7_27_24, WE1_N),
968 PINMUX_IPSR_MSEL(IP7_27_24, VI4_DATA7_B, SEL_VIN4_1),
969 PINMUX_IPSR_MSEL(IP7_27_24, VI5_DATA7_B, SEL_VIN5_1),
970 PINMUX_IPSR_GPSR(IP7_27_24, QPOLB),
971
972 PINMUX_IPSR_GPSR(IP7_31_28, SD0_CLK),
973 PINMUX_IPSR_GPSR(IP7_31_28, NFDATA8),
974 PINMUX_IPSR_MSEL(IP7_31_28, SCL1_C, SEL_I2C1_2),
975 PINMUX_IPSR_MSEL(IP7_31_28, HSCK1_B, SEL_HSCIF1_1),
976 PINMUX_IPSR_MSEL(IP7_31_28, SDA2_E, SEL_I2C2_4),
977 PINMUX_IPSR_MSEL(IP7_31_28, FMCLK_B, SEL_FM_1),
978
979 /* IPSR8 */
980 PINMUX_IPSR_GPSR(IP8_3_0, SD0_CMD),
981 PINMUX_IPSR_GPSR(IP8_3_0, NFDATA9),
982 PINMUX_IPSR_MSEL(IP8_3_0, HRX1_B, SEL_HSCIF1_1),
983 PINMUX_IPSR_MSEL(IP8_3_0, SPEEDIN_B, SEL_SPEED_PULSE_IF_1),
984
985 PINMUX_IPSR_GPSR(IP8_7_4, SD0_DAT0),
986 PINMUX_IPSR_GPSR(IP8_7_4, NFDATA10),
987 PINMUX_IPSR_GPSR(IP8_7_4, HTX1_B),
988 PINMUX_IPSR_MSEL(IP8_7_4, REMOCON_B, SEL_REMOCON_1),
989
990 PINMUX_IPSR_GPSR(IP8_11_8, SD0_DAT1),
991 PINMUX_IPSR_GPSR(IP8_11_8, NFDATA11),
992 PINMUX_IPSR_MSEL(IP8_11_8, SDA2_C, SEL_I2C2_2),
993 PINMUX_IPSR_MSEL(IP8_11_8, HCTS1_N_B, SEL_HSCIF1_1),
994 PINMUX_IPSR_MSEL(IP8_11_8, FMIN_B, SEL_FM_1),
995
996 PINMUX_IPSR_GPSR(IP8_15_12, SD0_DAT2),
997 PINMUX_IPSR_GPSR(IP8_15_12, NFDATA12),
998 PINMUX_IPSR_MSEL(IP8_15_12, SCL2_C, SEL_I2C2_2),
999 PINMUX_IPSR_MSEL(IP8_15_12, HRTS1_N_B, SEL_HSCIF1_1),
1000 PINMUX_IPSR_GPSR(IP8_15_12, BPFCLK_B),
1001
1002 PINMUX_IPSR_GPSR(IP8_19_16, SD0_DAT3),
1003 PINMUX_IPSR_GPSR(IP8_19_16, NFDATA13),
1004 PINMUX_IPSR_MSEL(IP8_19_16, SDA1_C, SEL_I2C1_2),
1005 PINMUX_IPSR_MSEL(IP8_19_16, SCL2_E, SEL_I2C2_4),
1006 PINMUX_IPSR_MSEL(IP8_19_16, SPEEDIN_C, SEL_SPEED_PULSE_IF_2),
1007 PINMUX_IPSR_MSEL(IP8_19_16, REMOCON_C, SEL_REMOCON_2),
1008
1009 PINMUX_IPSR_GPSR(IP8_23_20, SD1_CLK),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001010 PINMUX_IPSR_MSEL(IP8_23_20, NFDATA14_B, SEL_NDF_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001011
1012 PINMUX_IPSR_GPSR(IP8_27_24, SD1_CMD),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001013 PINMUX_IPSR_MSEL(IP8_27_24, NFDATA15_B, SEL_NDF_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001014
1015 PINMUX_IPSR_GPSR(IP8_31_28, SD1_DAT0),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001016 PINMUX_IPSR_MSEL(IP8_31_28, NFWP_N_B, SEL_NDF_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001017
1018 /* IPSR9 */
1019 PINMUX_IPSR_GPSR(IP9_3_0, SD1_DAT1),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001020 PINMUX_IPSR_MSEL(IP9_3_0, NFCE_N_B, SEL_NDF_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001021
1022 PINMUX_IPSR_GPSR(IP9_7_4, SD1_DAT2),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001023 PINMUX_IPSR_MSEL(IP9_7_4, NFALE_B, SEL_NDF_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001024
1025 PINMUX_IPSR_GPSR(IP9_11_8, SD1_DAT3),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001026 PINMUX_IPSR_MSEL(IP9_11_8, NFRB_N_B, SEL_NDF_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001027
1028 PINMUX_IPSR_GPSR(IP9_15_12, SD3_CLK),
1029 PINMUX_IPSR_GPSR(IP9_15_12, NFWE_N),
1030
1031 PINMUX_IPSR_GPSR(IP9_19_16, SD3_CMD),
1032 PINMUX_IPSR_GPSR(IP9_19_16, NFRE_N),
1033
1034 PINMUX_IPSR_GPSR(IP9_23_20, SD3_DAT0),
1035 PINMUX_IPSR_GPSR(IP9_23_20, NFDATA0),
1036
1037 PINMUX_IPSR_GPSR(IP9_27_24, SD3_DAT1),
1038 PINMUX_IPSR_GPSR(IP9_27_24, NFDATA1),
1039
1040 PINMUX_IPSR_GPSR(IP9_31_28, SD3_DAT2),
1041 PINMUX_IPSR_GPSR(IP9_31_28, NFDATA2),
1042
1043 /* IPSR10 */
1044 PINMUX_IPSR_GPSR(IP10_3_0, SD3_DAT3),
1045 PINMUX_IPSR_GPSR(IP10_3_0, NFDATA3),
1046
1047 PINMUX_IPSR_GPSR(IP10_7_4, SD3_DAT4),
1048 PINMUX_IPSR_GPSR(IP10_7_4, NFDATA4),
1049
1050 PINMUX_IPSR_GPSR(IP10_11_8, SD3_DAT5),
1051 PINMUX_IPSR_GPSR(IP10_11_8, NFDATA5),
1052
1053 PINMUX_IPSR_GPSR(IP10_15_12, SD3_DAT6),
1054 PINMUX_IPSR_GPSR(IP10_15_12, NFDATA6),
1055
1056 PINMUX_IPSR_GPSR(IP10_19_16, SD3_DAT7),
1057 PINMUX_IPSR_GPSR(IP10_19_16, NFDATA7),
1058
1059 PINMUX_IPSR_GPSR(IP10_23_20, SD3_DS),
1060 PINMUX_IPSR_GPSR(IP10_23_20, NFCLE),
1061
1062 PINMUX_IPSR_GPSR(IP10_27_24, SD0_CD),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001063 PINMUX_IPSR_MSEL(IP10_27_24, NFALE_A, SEL_NDF_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001064 PINMUX_IPSR_GPSR(IP10_27_24, SD3_CD),
1065 PINMUX_IPSR_MSEL(IP10_27_24, RIF0_CLK_B, SEL_DRIF0_1),
1066 PINMUX_IPSR_MSEL(IP10_27_24, SCL2_B, SEL_I2C2_1),
1067 PINMUX_IPSR_MSEL(IP10_27_24, TCLK1_A, SEL_TIMER_TMU_0),
Lad Prabhakare4db7392020-10-14 16:45:59 +01001068 PINMUX_IPSR_MSEL(IP10_27_24, SSI_SCK2_B, SEL_SSI2_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001069 PINMUX_IPSR_GPSR(IP10_27_24, TS_SCK0),
1070
1071 PINMUX_IPSR_GPSR(IP10_31_28, SD0_WP),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001072 PINMUX_IPSR_MSEL(IP10_31_28, NFRB_N_A, SEL_NDF_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001073 PINMUX_IPSR_GPSR(IP10_31_28, SD3_WP),
1074 PINMUX_IPSR_MSEL(IP10_31_28, RIF0_D0_B, SEL_DRIF0_1),
1075 PINMUX_IPSR_MSEL(IP10_31_28, SDA2_B, SEL_I2C2_1),
1076 PINMUX_IPSR_MSEL(IP10_31_28, TCLK2_A, SEL_TIMER_TMU_0),
Lad Prabhakare4db7392020-10-14 16:45:59 +01001077 PINMUX_IPSR_MSEL(IP10_31_28, SSI_WS2_B, SEL_SSI2_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001078 PINMUX_IPSR_GPSR(IP10_31_28, TS_SDAT0),
1079
1080 /* IPSR11 */
1081 PINMUX_IPSR_GPSR(IP11_3_0, SD1_CD),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001082 PINMUX_IPSR_MSEL(IP11_3_0, NFCE_N_A, SEL_NDF_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001083 PINMUX_IPSR_GPSR(IP11_3_0, SSI_SCK1),
1084 PINMUX_IPSR_MSEL(IP11_3_0, RIF0_D1_B, SEL_DRIF0_1),
1085 PINMUX_IPSR_GPSR(IP11_3_0, TS_SDEN0),
1086
1087 PINMUX_IPSR_GPSR(IP11_7_4, SD1_WP),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001088 PINMUX_IPSR_MSEL(IP11_7_4, NFWP_N_A, SEL_NDF_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001089 PINMUX_IPSR_GPSR(IP11_7_4, SSI_WS1),
1090 PINMUX_IPSR_MSEL(IP11_7_4, RIF0_SYNC_B, SEL_DRIF0_1),
1091 PINMUX_IPSR_GPSR(IP11_7_4, TS_SPSYNC0),
1092
1093 PINMUX_IPSR_MSEL(IP11_11_8, RX0_A, SEL_SCIF0_0),
1094 PINMUX_IPSR_MSEL(IP11_11_8, HRX1_A, SEL_HSCIF1_0),
Lad Prabhakare4db7392020-10-14 16:45:59 +01001095 PINMUX_IPSR_MSEL(IP11_11_8, SSI_SCK2_A, SEL_SSI2_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001096 PINMUX_IPSR_GPSR(IP11_11_8, RIF1_SYNC),
1097 PINMUX_IPSR_GPSR(IP11_11_8, TS_SCK1),
1098
Hiroyuki Yokoyama174f4492019-02-13 12:41:04 +09001099 PINMUX_IPSR_MSEL(IP11_15_12, TX0_A, SEL_SCIF0_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001100 PINMUX_IPSR_GPSR(IP11_15_12, HTX1_A),
Lad Prabhakare4db7392020-10-14 16:45:59 +01001101 PINMUX_IPSR_MSEL(IP11_15_12, SSI_WS2_A, SEL_SSI2_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001102 PINMUX_IPSR_GPSR(IP11_15_12, RIF1_D0),
1103 PINMUX_IPSR_GPSR(IP11_15_12, TS_SDAT1),
1104
1105 PINMUX_IPSR_MSEL(IP11_19_16, CTS0_N_A, SEL_SCIF0_0),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001106 PINMUX_IPSR_MSEL(IP11_19_16, NFDATA14_A, SEL_NDF_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001107 PINMUX_IPSR_GPSR(IP11_19_16, AUDIO_CLKOUT_A),
1108 PINMUX_IPSR_GPSR(IP11_19_16, RIF1_D1),
1109 PINMUX_IPSR_MSEL(IP11_19_16, SCIF_CLK_A, SEL_SCIF_0),
1110 PINMUX_IPSR_MSEL(IP11_19_16, FMCLK_A, SEL_FM_0),
1111
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001112 PINMUX_IPSR_MSEL(IP11_23_20, RTS0_N_A, SEL_SCIF0_0),
1113 PINMUX_IPSR_MSEL(IP11_23_20, NFDATA15_A, SEL_NDF_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001114 PINMUX_IPSR_GPSR(IP11_23_20, AUDIO_CLKOUT1_A),
1115 PINMUX_IPSR_GPSR(IP11_23_20, RIF1_CLK),
1116 PINMUX_IPSR_MSEL(IP11_23_20, SCL2_A, SEL_I2C2_0),
1117 PINMUX_IPSR_MSEL(IP11_23_20, FMIN_A, SEL_FM_0),
1118
1119 PINMUX_IPSR_MSEL(IP11_27_24, SCK0_A, SEL_SCIF0_0),
1120 PINMUX_IPSR_MSEL(IP11_27_24, HSCK1_A, SEL_HSCIF1_0),
1121 PINMUX_IPSR_GPSR(IP11_27_24, USB3HS0_ID),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02001122 PINMUX_IPSR_GPSR(IP11_27_24, RTS1_N),
Marek Vasut68a77042018-04-26 13:09:20 +02001123 PINMUX_IPSR_MSEL(IP11_27_24, SDA2_A, SEL_I2C2_0),
1124 PINMUX_IPSR_MSEL(IP11_27_24, FMCLK_C, SEL_FM_2),
Hiroyuki Yokoyama947e20a2019-02-13 14:23:46 +09001125 PINMUX_IPSR_GPSR(IP11_27_24, USB0_ID),
Marek Vasut68a77042018-04-26 13:09:20 +02001126
1127 PINMUX_IPSR_GPSR(IP11_31_28, RX1),
1128 PINMUX_IPSR_MSEL(IP11_31_28, HRX2_B, SEL_HSCIF2_1),
1129 PINMUX_IPSR_MSEL(IP11_31_28, SSI_SCK9_B, SEL_SSI9_1),
1130 PINMUX_IPSR_GPSR(IP11_31_28, AUDIO_CLKOUT1_B),
1131
1132 /* IPSR12 */
1133 PINMUX_IPSR_GPSR(IP12_3_0, TX1),
1134 PINMUX_IPSR_GPSR(IP12_3_0, HTX2_B),
1135 PINMUX_IPSR_MSEL(IP12_3_0, SSI_WS9_B, SEL_SSI9_1),
1136 PINMUX_IPSR_GPSR(IP12_3_0, AUDIO_CLKOUT3_B),
1137
Hiroyuki Yokoyama11a40dd2019-02-13 12:18:28 +09001138 PINMUX_IPSR_MSEL(IP12_7_4, SCK2_A, SEL_SCIF2_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001139 PINMUX_IPSR_MSEL(IP12_7_4, HSCK0_A, SEL_HSCIF0_0),
1140 PINMUX_IPSR_MSEL(IP12_7_4, AUDIO_CLKB_A, SEL_ADGB_0),
1141 PINMUX_IPSR_GPSR(IP12_7_4, CTS1_N),
1142 PINMUX_IPSR_MSEL(IP12_7_4, RIF0_CLK_A, SEL_DRIF0_0),
1143 PINMUX_IPSR_MSEL(IP12_7_4, REMOCON_A, SEL_REMOCON_0),
1144 PINMUX_IPSR_MSEL(IP12_7_4, SCIF_CLK_B, SEL_SCIF_1),
1145
Hiroyuki Yokoyama11a40dd2019-02-13 12:18:28 +09001146 PINMUX_IPSR_MSEL(IP12_11_8, TX2_A, SEL_SCIF2_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001147 PINMUX_IPSR_MSEL(IP12_11_8, HRX0_A, SEL_HSCIF0_0),
1148 PINMUX_IPSR_GPSR(IP12_11_8, AUDIO_CLKOUT2_A),
1149 PINMUX_IPSR_MSEL(IP12_11_8, SCL1_A, SEL_I2C1_0),
1150 PINMUX_IPSR_MSEL(IP12_11_8, FSO_CFE_0_N_A, SEL_FSO_0),
1151 PINMUX_IPSR_GPSR(IP12_11_8, TS_SDEN1),
1152
Hiroyuki Yokoyama11a40dd2019-02-13 12:18:28 +09001153 PINMUX_IPSR_MSEL(IP12_15_12, RX2_A, SEL_SCIF2_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001154 PINMUX_IPSR_GPSR(IP12_15_12, HTX0_A),
1155 PINMUX_IPSR_GPSR(IP12_15_12, AUDIO_CLKOUT3_A),
1156 PINMUX_IPSR_MSEL(IP12_15_12, SDA1_A, SEL_I2C1_0),
1157 PINMUX_IPSR_MSEL(IP12_15_12, FSO_CFE_1_N_A, SEL_FSO_0),
1158 PINMUX_IPSR_GPSR(IP12_15_12, TS_SPSYNC1),
1159
1160 PINMUX_IPSR_GPSR(IP12_19_16, MSIOF0_SCK),
1161 PINMUX_IPSR_GPSR(IP12_19_16, SSI_SCK78),
1162
1163 PINMUX_IPSR_GPSR(IP12_23_20, MSIOF0_RXD),
1164 PINMUX_IPSR_GPSR(IP12_23_20, SSI_WS78),
Hiroyuki Yokoyama11a40dd2019-02-13 12:18:28 +09001165 PINMUX_IPSR_MSEL(IP12_23_20, TX2_B, SEL_SCIF2_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001166
1167 PINMUX_IPSR_GPSR(IP12_27_24, MSIOF0_TXD),
1168 PINMUX_IPSR_GPSR(IP12_27_24, SSI_SDATA7),
Hiroyuki Yokoyama11a40dd2019-02-13 12:18:28 +09001169 PINMUX_IPSR_MSEL(IP12_27_24, RX2_B, SEL_SCIF2_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001170
1171 PINMUX_IPSR_GPSR(IP12_31_28, MSIOF0_SYNC),
1172 PINMUX_IPSR_GPSR(IP12_31_28, AUDIO_CLKOUT_B),
1173 PINMUX_IPSR_GPSR(IP12_31_28, SSI_SDATA8),
1174
1175 /* IPSR13 */
1176 PINMUX_IPSR_GPSR(IP13_3_0, MSIOF0_SS1),
1177 PINMUX_IPSR_MSEL(IP13_3_0, HRX2_A, SEL_HSCIF2_0),
1178 PINMUX_IPSR_GPSR(IP13_3_0, SSI_SCK4),
1179 PINMUX_IPSR_MSEL(IP13_3_0, HCTS0_N_A, SEL_HSCIF0_0),
1180 PINMUX_IPSR_GPSR(IP13_3_0, BPFCLK_C),
1181 PINMUX_IPSR_MSEL(IP13_3_0, SPEEDIN_A, SEL_SPEED_PULSE_IF_0),
1182
1183 PINMUX_IPSR_GPSR(IP13_7_4, MSIOF0_SS2),
1184 PINMUX_IPSR_GPSR(IP13_7_4, HTX2_A),
1185 PINMUX_IPSR_GPSR(IP13_7_4, SSI_WS4),
1186 PINMUX_IPSR_MSEL(IP13_7_4, HRTS0_N_A, SEL_HSCIF0_0),
1187 PINMUX_IPSR_MSEL(IP13_7_4, FMIN_C, SEL_FM_2),
1188 PINMUX_IPSR_GPSR(IP13_7_4, BPFCLK_A),
1189
1190 PINMUX_IPSR_GPSR(IP13_11_8, SSI_SDATA9),
1191 PINMUX_IPSR_MSEL(IP13_11_8, AUDIO_CLKC_A, SEL_ADGC_0),
1192 PINMUX_IPSR_GPSR(IP13_11_8, SCK1),
1193
1194 PINMUX_IPSR_GPSR(IP13_15_12, MLB_CLK),
1195 PINMUX_IPSR_MSEL(IP13_15_12, RX0_B, SEL_SCIF0_1),
1196 PINMUX_IPSR_MSEL(IP13_15_12, RIF0_D0_A, SEL_DRIF0_0),
1197 PINMUX_IPSR_MSEL(IP13_15_12, SCL1_B, SEL_I2C1_1),
1198 PINMUX_IPSR_MSEL(IP13_15_12, TCLK1_B, SEL_TIMER_TMU_1),
1199 PINMUX_IPSR_GPSR(IP13_15_12, SIM0_RST_A),
1200
1201 PINMUX_IPSR_GPSR(IP13_19_16, MLB_SIG),
1202 PINMUX_IPSR_MSEL(IP13_19_16, SCK0_B, SEL_SCIF0_1),
1203 PINMUX_IPSR_MSEL(IP13_19_16, RIF0_D1_A, SEL_DRIF0_0),
1204 PINMUX_IPSR_MSEL(IP13_19_16, SDA1_B, SEL_I2C1_1),
1205 PINMUX_IPSR_MSEL(IP13_19_16, TCLK2_B, SEL_TIMER_TMU_1),
Lad Prabhakare4db7392020-10-14 16:45:59 +01001206 PINMUX_IPSR_MSEL(IP13_19_16, SIM0_D_A, SEL_SIMCARD_0),
Marek Vasut68a77042018-04-26 13:09:20 +02001207
1208 PINMUX_IPSR_GPSR(IP13_23_20, MLB_DAT),
Marek Vasut88e81ec2019-03-04 22:39:51 +01001209 PINMUX_IPSR_MSEL(IP13_23_20, TX0_B, SEL_SCIF0_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001210 PINMUX_IPSR_MSEL(IP13_23_20, RIF0_SYNC_A, SEL_DRIF0_0),
1211 PINMUX_IPSR_GPSR(IP13_23_20, SIM0_CLK_A),
1212
1213 PINMUX_IPSR_GPSR(IP13_27_24, SSI_SCK01239),
1214
1215 PINMUX_IPSR_GPSR(IP13_31_28, SSI_WS01239),
1216
1217 /* IPSR14 */
1218 PINMUX_IPSR_GPSR(IP14_3_0, SSI_SDATA0),
1219
1220 PINMUX_IPSR_GPSR(IP14_7_4, SSI_SDATA1),
1221 PINMUX_IPSR_MSEL(IP14_7_4, AUDIO_CLKC_B, SEL_ADGC_1),
1222 PINMUX_IPSR_MSEL(IP14_7_4, PWM0_B, SEL_PWM0_1),
1223
1224 PINMUX_IPSR_GPSR(IP14_11_8, SSI_SDATA2),
1225 PINMUX_IPSR_GPSR(IP14_11_8, AUDIO_CLKOUT2_B),
1226 PINMUX_IPSR_MSEL(IP14_11_8, SSI_SCK9_A, SEL_SSI9_0),
1227 PINMUX_IPSR_MSEL(IP14_11_8, PWM1_B, SEL_PWM1_1),
1228
1229 PINMUX_IPSR_GPSR(IP14_15_12, SSI_SCK349),
1230 PINMUX_IPSR_MSEL(IP14_15_12, PWM2_C, SEL_PWM2_2),
1231
1232 PINMUX_IPSR_GPSR(IP14_19_16, SSI_WS349),
1233 PINMUX_IPSR_MSEL(IP14_19_16, PWM3_C, SEL_PWM3_2),
1234
1235 PINMUX_IPSR_GPSR(IP14_23_20, SSI_SDATA3),
1236 PINMUX_IPSR_GPSR(IP14_23_20, AUDIO_CLKOUT1_C),
1237 PINMUX_IPSR_MSEL(IP14_23_20, AUDIO_CLKB_B, SEL_ADGB_1),
1238 PINMUX_IPSR_MSEL(IP14_23_20, PWM4_B, SEL_PWM4_1),
1239
1240 PINMUX_IPSR_GPSR(IP14_27_24, SSI_SDATA4),
1241 PINMUX_IPSR_MSEL(IP14_27_24, SSI_WS9_A, SEL_SSI9_0),
1242 PINMUX_IPSR_MSEL(IP14_27_24, PWM5_B, SEL_PWM5_1),
1243
1244 PINMUX_IPSR_GPSR(IP14_31_28, SSI_SCK5),
1245 PINMUX_IPSR_MSEL(IP14_31_28, HRX0_B, SEL_HSCIF0_1),
1246 PINMUX_IPSR_GPSR(IP14_31_28, USB0_PWEN_B),
1247 PINMUX_IPSR_MSEL(IP14_31_28, SCL2_D, SEL_I2C2_3),
1248 PINMUX_IPSR_MSEL(IP14_31_28, PWM6_B, SEL_PWM6_1),
1249
1250 /* IPSR15 */
1251 PINMUX_IPSR_GPSR(IP15_3_0, SSI_WS5),
1252 PINMUX_IPSR_GPSR(IP15_3_0, HTX0_B),
1253 PINMUX_IPSR_MSEL(IP15_3_0, USB0_OVC_B, SEL_USB_20_CH0_1),
1254 PINMUX_IPSR_MSEL(IP15_3_0, SDA2_D, SEL_I2C2_3),
1255
1256 PINMUX_IPSR_GPSR(IP15_7_4, SSI_SDATA5),
1257 PINMUX_IPSR_MSEL(IP15_7_4, HSCK0_B, SEL_HSCIF0_1),
1258 PINMUX_IPSR_MSEL(IP15_7_4, AUDIO_CLKB_C, SEL_ADGB_2),
1259 PINMUX_IPSR_GPSR(IP15_7_4, TPU0TO0),
1260
1261 PINMUX_IPSR_GPSR(IP15_11_8, SSI_SCK6),
1262 PINMUX_IPSR_MSEL(IP15_11_8, HSCK2_A, SEL_HSCIF2_0),
1263 PINMUX_IPSR_MSEL(IP15_11_8, AUDIO_CLKC_C, SEL_ADGC_2),
1264 PINMUX_IPSR_GPSR(IP15_11_8, TPU0TO1),
1265 PINMUX_IPSR_MSEL(IP15_11_8, FSO_CFE_0_N_B, SEL_FSO_1),
1266 PINMUX_IPSR_GPSR(IP15_11_8, SIM0_RST_B),
1267
1268 PINMUX_IPSR_GPSR(IP15_15_12, SSI_WS6),
1269 PINMUX_IPSR_MSEL(IP15_15_12, HCTS2_N_A, SEL_HSCIF2_0),
1270 PINMUX_IPSR_GPSR(IP15_15_12, AUDIO_CLKOUT2_C),
1271 PINMUX_IPSR_GPSR(IP15_15_12, TPU0TO2),
1272 PINMUX_IPSR_MSEL(IP15_15_12, SDA1_D, SEL_I2C1_3),
1273 PINMUX_IPSR_MSEL(IP15_15_12, FSO_CFE_1_N_B, SEL_FSO_1),
Lad Prabhakare4db7392020-10-14 16:45:59 +01001274 PINMUX_IPSR_MSEL(IP15_15_12, SIM0_D_B, SEL_SIMCARD_1),
Marek Vasut68a77042018-04-26 13:09:20 +02001275
1276 PINMUX_IPSR_GPSR(IP15_19_16, SSI_SDATA6),
1277 PINMUX_IPSR_MSEL(IP15_19_16, HRTS2_N_A, SEL_HSCIF2_0),
1278 PINMUX_IPSR_GPSR(IP15_19_16, AUDIO_CLKOUT3_C),
1279 PINMUX_IPSR_GPSR(IP15_19_16, TPU0TO3),
1280 PINMUX_IPSR_MSEL(IP15_19_16, SCL1_D, SEL_I2C1_3),
1281 PINMUX_IPSR_MSEL(IP15_19_16, FSO_TOE_N_B, SEL_FSO_1),
1282 PINMUX_IPSR_GPSR(IP15_19_16, SIM0_CLK_B),
1283
1284 PINMUX_IPSR_GPSR(IP15_23_20, AUDIO_CLKA),
1285
1286 PINMUX_IPSR_GPSR(IP15_27_24, USB30_PWEN),
1287 PINMUX_IPSR_GPSR(IP15_27_24, USB0_PWEN_A),
1288
1289 PINMUX_IPSR_GPSR(IP15_31_28, USB30_OVC),
1290 PINMUX_IPSR_MSEL(IP15_31_28, USB0_OVC_A, SEL_USB_20_CH0_0),
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001291
1292/*
1293 * Static pins can not be muxed between different functions but
Marek Vasut88e81ec2019-03-04 22:39:51 +01001294 * still need mark entries in the pinmux list. Add each static
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001295 * pin to the list without an associated function. The sh-pfc
Marek Vasut88e81ec2019-03-04 22:39:51 +01001296 * core will do the right thing and skip trying to mux the pin
1297 * while still applying configuration to it.
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001298 */
1299#define FM(x) PINMUX_DATA(x##_MARK, 0),
1300 PINMUX_STATIC
1301#undef FM
Marek Vasut68a77042018-04-26 13:09:20 +02001302};
1303
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001304/*
Marek Vasut0e8e9892021-04-26 22:04:11 +02001305 * Pins not associated with a GPIO port.
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001306 */
Marek Vasut0e8e9892021-04-26 22:04:11 +02001307enum {
1308 GP_ASSIGN_LAST(),
1309 NOGP_ALL(),
1310};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001311
Marek Vasut68a77042018-04-26 13:09:20 +02001312static const struct sh_pfc_pin pinmux_pins[] = {
1313 PINMUX_GPIO_GP_ALL(),
Marek Vasut0e8e9892021-04-26 22:04:11 +02001314 PINMUX_NOGP_ALL(),
Marek Vasut68a77042018-04-26 13:09:20 +02001315};
1316
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001317/* - AUDIO CLOCK ------------------------------------------------------------ */
1318static const unsigned int audio_clk_a_pins[] = {
1319 /* CLK A */
1320 RCAR_GP_PIN(6, 8),
1321};
1322
1323static const unsigned int audio_clk_a_mux[] = {
1324 AUDIO_CLKA_MARK,
1325};
1326
1327static const unsigned int audio_clk_b_a_pins[] = {
1328 /* CLK B_A */
1329 RCAR_GP_PIN(5, 7),
1330};
1331
1332static const unsigned int audio_clk_b_a_mux[] = {
1333 AUDIO_CLKB_A_MARK,
1334};
1335
1336static const unsigned int audio_clk_b_b_pins[] = {
1337 /* CLK B_B */
1338 RCAR_GP_PIN(6, 7),
1339};
1340
1341static const unsigned int audio_clk_b_b_mux[] = {
1342 AUDIO_CLKB_B_MARK,
1343};
1344
1345static const unsigned int audio_clk_b_c_pins[] = {
1346 /* CLK B_C */
1347 RCAR_GP_PIN(6, 13),
1348};
1349
1350static const unsigned int audio_clk_b_c_mux[] = {
1351 AUDIO_CLKB_C_MARK,
1352};
1353
1354static const unsigned int audio_clk_c_a_pins[] = {
1355 /* CLK C_A */
1356 RCAR_GP_PIN(5, 16),
1357};
1358
1359static const unsigned int audio_clk_c_a_mux[] = {
1360 AUDIO_CLKC_A_MARK,
1361};
1362
1363static const unsigned int audio_clk_c_b_pins[] = {
1364 /* CLK C_B */
1365 RCAR_GP_PIN(6, 3),
1366};
1367
1368static const unsigned int audio_clk_c_b_mux[] = {
1369 AUDIO_CLKC_B_MARK,
1370};
1371
1372static const unsigned int audio_clk_c_c_pins[] = {
1373 /* CLK C_C */
1374 RCAR_GP_PIN(6, 14),
1375};
1376
1377static const unsigned int audio_clk_c_c_mux[] = {
1378 AUDIO_CLKC_C_MARK,
1379};
1380
1381static const unsigned int audio_clkout_a_pins[] = {
1382 /* CLKOUT_A */
1383 RCAR_GP_PIN(5, 3),
1384};
1385
1386static const unsigned int audio_clkout_a_mux[] = {
1387 AUDIO_CLKOUT_A_MARK,
1388};
1389
1390static const unsigned int audio_clkout_b_pins[] = {
1391 /* CLKOUT_B */
1392 RCAR_GP_PIN(5, 13),
1393};
1394
1395static const unsigned int audio_clkout_b_mux[] = {
1396 AUDIO_CLKOUT_B_MARK,
1397};
1398
1399static const unsigned int audio_clkout1_a_pins[] = {
1400 /* CLKOUT1_A */
1401 RCAR_GP_PIN(5, 4),
1402};
1403
1404static const unsigned int audio_clkout1_a_mux[] = {
1405 AUDIO_CLKOUT1_A_MARK,
1406};
1407
1408static const unsigned int audio_clkout1_b_pins[] = {
1409 /* CLKOUT1_B */
1410 RCAR_GP_PIN(5, 5),
1411};
1412
1413static const unsigned int audio_clkout1_b_mux[] = {
1414 AUDIO_CLKOUT1_B_MARK,
1415};
1416
1417static const unsigned int audio_clkout1_c_pins[] = {
1418 /* CLKOUT1_C */
1419 RCAR_GP_PIN(6, 7),
1420};
1421
1422static const unsigned int audio_clkout1_c_mux[] = {
1423 AUDIO_CLKOUT1_C_MARK,
1424};
1425
1426static const unsigned int audio_clkout2_a_pins[] = {
1427 /* CLKOUT2_A */
1428 RCAR_GP_PIN(5, 8),
1429};
1430
1431static const unsigned int audio_clkout2_a_mux[] = {
1432 AUDIO_CLKOUT2_A_MARK,
1433};
1434
1435static const unsigned int audio_clkout2_b_pins[] = {
1436 /* CLKOUT2_B */
1437 RCAR_GP_PIN(6, 4),
1438};
1439
1440static const unsigned int audio_clkout2_b_mux[] = {
1441 AUDIO_CLKOUT2_B_MARK,
1442};
1443
1444static const unsigned int audio_clkout2_c_pins[] = {
1445 /* CLKOUT2_C */
1446 RCAR_GP_PIN(6, 15),
1447};
1448
1449static const unsigned int audio_clkout2_c_mux[] = {
1450 AUDIO_CLKOUT2_C_MARK,
1451};
1452
1453static const unsigned int audio_clkout3_a_pins[] = {
1454 /* CLKOUT3_A */
1455 RCAR_GP_PIN(5, 9),
1456};
1457
1458static const unsigned int audio_clkout3_a_mux[] = {
1459 AUDIO_CLKOUT3_A_MARK,
1460};
1461
1462static const unsigned int audio_clkout3_b_pins[] = {
1463 /* CLKOUT3_B */
1464 RCAR_GP_PIN(5, 6),
1465};
1466
1467static const unsigned int audio_clkout3_b_mux[] = {
1468 AUDIO_CLKOUT3_B_MARK,
1469};
1470
1471static const unsigned int audio_clkout3_c_pins[] = {
1472 /* CLKOUT3_C */
1473 RCAR_GP_PIN(6, 16),
1474};
1475
1476static const unsigned int audio_clkout3_c_mux[] = {
1477 AUDIO_CLKOUT3_C_MARK,
1478};
1479
1480/* - EtherAVB --------------------------------------------------------------- */
1481static const unsigned int avb_link_pins[] = {
1482 /* AVB_LINK */
1483 RCAR_GP_PIN(2, 23),
1484};
1485
1486static const unsigned int avb_link_mux[] = {
1487 AVB_LINK_MARK,
1488};
1489
1490static const unsigned int avb_magic_pins[] = {
1491 /* AVB_MAGIC */
1492 RCAR_GP_PIN(2, 22),
1493};
1494
1495static const unsigned int avb_magic_mux[] = {
1496 AVB_MAGIC_MARK,
1497};
1498
1499static const unsigned int avb_phy_int_pins[] = {
1500 /* AVB_PHY_INT */
1501 RCAR_GP_PIN(2, 21),
1502};
1503
1504static const unsigned int avb_phy_int_mux[] = {
1505 AVB_PHY_INT_MARK,
1506};
1507
1508static const unsigned int avb_mii_pins[] = {
1509 /*
1510 * AVB_RX_CTL, AVB_RXC, AVB_RD0,
1511 * AVB_RD1, AVB_RD2, AVB_RD3,
1512 * AVB_TXCREFCLK
1513 */
1514 RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 16),
1515 RCAR_GP_PIN(2, 17), RCAR_GP_PIN(2, 18), RCAR_GP_PIN(2, 19),
1516 RCAR_GP_PIN(2, 20),
1517};
1518
1519static const unsigned int avb_mii_mux[] = {
1520 AVB_RX_CTL_MARK, AVB_RXC_MARK, AVB_RD0_MARK,
1521 AVB_RD1_MARK, AVB_RD2_MARK, AVB_RD3_MARK,
1522 AVB_TXCREFCLK_MARK,
1523};
1524
1525static const unsigned int avb_avtp_pps_pins[] = {
1526 /* AVB_AVTP_PPS */
1527 RCAR_GP_PIN(1, 2),
1528};
1529
1530static const unsigned int avb_avtp_pps_mux[] = {
1531 AVB_AVTP_PPS_MARK,
1532};
1533
Lad Prabhakare4db7392020-10-14 16:45:59 +01001534static const unsigned int avb_avtp_match_pins[] = {
1535 /* AVB_AVTP_MATCH */
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001536 RCAR_GP_PIN(2, 24),
1537};
1538
Lad Prabhakare4db7392020-10-14 16:45:59 +01001539static const unsigned int avb_avtp_match_mux[] = {
1540 AVB_AVTP_MATCH_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001541};
1542
Lad Prabhakare4db7392020-10-14 16:45:59 +01001543static const unsigned int avb_avtp_capture_pins[] = {
1544 /* AVB_AVTP_CAPTURE */
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001545 RCAR_GP_PIN(2, 25),
1546};
1547
Lad Prabhakare4db7392020-10-14 16:45:59 +01001548static const unsigned int avb_avtp_capture_mux[] = {
1549 AVB_AVTP_CAPTURE_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001550};
1551
1552/* - CAN ------------------------------------------------------------------ */
1553static const unsigned int can0_data_pins[] = {
1554 /* TX, RX */
1555 RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
1556};
1557
1558static const unsigned int can0_data_mux[] = {
1559 CAN0_TX_MARK, CAN0_RX_MARK,
1560};
1561
1562static const unsigned int can1_data_pins[] = {
1563 /* TX, RX */
1564 RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 7),
1565};
1566
1567static const unsigned int can1_data_mux[] = {
1568 CAN1_TX_MARK, CAN1_RX_MARK,
1569};
1570
1571/* - CAN Clock -------------------------------------------------------------- */
1572static const unsigned int can_clk_pins[] = {
1573 /* CLK */
1574 RCAR_GP_PIN(0, 14),
1575};
1576
1577static const unsigned int can_clk_mux[] = {
1578 CAN_CLK_MARK,
1579};
1580
1581/* - CAN FD --------------------------------------------------------------- */
1582static const unsigned int canfd0_data_pins[] = {
1583 /* TX, RX */
1584 RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
1585};
1586
1587static const unsigned int canfd0_data_mux[] = {
1588 CANFD0_TX_MARK, CANFD0_RX_MARK,
1589};
1590
1591static const unsigned int canfd1_data_pins[] = {
1592 /* TX, RX */
1593 RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 7),
1594};
1595
1596static const unsigned int canfd1_data_mux[] = {
1597 CANFD1_TX_MARK, CANFD1_RX_MARK,
1598};
1599
Lad Prabhakar14c9b042021-03-15 22:24:03 +00001600#ifdef CONFIG_PINCTRL_PFC_R8A77990
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001601/* - DRIF0 --------------------------------------------------------------- */
1602static const unsigned int drif0_ctrl_a_pins[] = {
1603 /* CLK, SYNC */
1604 RCAR_GP_PIN(5, 7), RCAR_GP_PIN(5, 19),
1605};
1606
1607static const unsigned int drif0_ctrl_a_mux[] = {
1608 RIF0_CLK_A_MARK, RIF0_SYNC_A_MARK,
1609};
1610
1611static const unsigned int drif0_data0_a_pins[] = {
1612 /* D0 */
1613 RCAR_GP_PIN(5, 17),
1614};
1615
1616static const unsigned int drif0_data0_a_mux[] = {
1617 RIF0_D0_A_MARK,
1618};
1619
1620static const unsigned int drif0_data1_a_pins[] = {
1621 /* D1 */
1622 RCAR_GP_PIN(5, 18),
1623};
1624
1625static const unsigned int drif0_data1_a_mux[] = {
1626 RIF0_D1_A_MARK,
1627};
1628
1629static const unsigned int drif0_ctrl_b_pins[] = {
1630 /* CLK, SYNC */
1631 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 15),
1632};
1633
1634static const unsigned int drif0_ctrl_b_mux[] = {
1635 RIF0_CLK_B_MARK, RIF0_SYNC_B_MARK,
1636};
1637
1638static const unsigned int drif0_data0_b_pins[] = {
1639 /* D0 */
1640 RCAR_GP_PIN(3, 13),
1641};
1642
1643static const unsigned int drif0_data0_b_mux[] = {
1644 RIF0_D0_B_MARK,
1645};
1646
1647static const unsigned int drif0_data1_b_pins[] = {
1648 /* D1 */
1649 RCAR_GP_PIN(3, 14),
1650};
1651
1652static const unsigned int drif0_data1_b_mux[] = {
1653 RIF0_D1_B_MARK,
1654};
1655
1656/* - DRIF1 --------------------------------------------------------------- */
1657static const unsigned int drif1_ctrl_pins[] = {
1658 /* CLK, SYNC */
1659 RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 1),
1660};
1661
1662static const unsigned int drif1_ctrl_mux[] = {
1663 RIF1_CLK_MARK, RIF1_SYNC_MARK,
1664};
1665
1666static const unsigned int drif1_data0_pins[] = {
1667 /* D0 */
1668 RCAR_GP_PIN(5, 2),
1669};
1670
1671static const unsigned int drif1_data0_mux[] = {
1672 RIF1_D0_MARK,
1673};
1674
1675static const unsigned int drif1_data1_pins[] = {
1676 /* D1 */
1677 RCAR_GP_PIN(5, 3),
1678};
1679
1680static const unsigned int drif1_data1_mux[] = {
1681 RIF1_D1_MARK,
1682};
1683
1684/* - DRIF2 --------------------------------------------------------------- */
1685static const unsigned int drif2_ctrl_a_pins[] = {
1686 /* CLK, SYNC */
1687 RCAR_GP_PIN(2, 6), RCAR_GP_PIN(2, 7),
1688};
1689
1690static const unsigned int drif2_ctrl_a_mux[] = {
1691 RIF2_CLK_A_MARK, RIF2_SYNC_A_MARK,
1692};
1693
1694static const unsigned int drif2_data0_a_pins[] = {
1695 /* D0 */
1696 RCAR_GP_PIN(2, 8),
1697};
1698
1699static const unsigned int drif2_data0_a_mux[] = {
1700 RIF2_D0_A_MARK,
1701};
1702
1703static const unsigned int drif2_data1_a_pins[] = {
1704 /* D1 */
1705 RCAR_GP_PIN(2, 9),
1706};
1707
1708static const unsigned int drif2_data1_a_mux[] = {
1709 RIF2_D1_A_MARK,
1710};
1711
1712static const unsigned int drif2_ctrl_b_pins[] = {
1713 /* CLK, SYNC */
1714 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 5),
1715};
1716
1717static const unsigned int drif2_ctrl_b_mux[] = {
1718 RIF2_CLK_B_MARK, RIF2_SYNC_B_MARK,
1719};
1720
1721static const unsigned int drif2_data0_b_pins[] = {
1722 /* D0 */
1723 RCAR_GP_PIN(1, 6),
1724};
1725
1726static const unsigned int drif2_data0_b_mux[] = {
1727 RIF2_D0_B_MARK,
1728};
1729
1730static const unsigned int drif2_data1_b_pins[] = {
1731 /* D1 */
1732 RCAR_GP_PIN(1, 7),
1733};
1734
1735static const unsigned int drif2_data1_b_mux[] = {
1736 RIF2_D1_B_MARK,
1737};
1738
1739/* - DRIF3 --------------------------------------------------------------- */
1740static const unsigned int drif3_ctrl_a_pins[] = {
1741 /* CLK, SYNC */
1742 RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
1743};
1744
1745static const unsigned int drif3_ctrl_a_mux[] = {
1746 RIF3_CLK_A_MARK, RIF3_SYNC_A_MARK,
1747};
1748
1749static const unsigned int drif3_data0_a_pins[] = {
1750 /* D0 */
1751 RCAR_GP_PIN(2, 12),
1752};
1753
1754static const unsigned int drif3_data0_a_mux[] = {
1755 RIF3_D0_A_MARK,
1756};
1757
1758static const unsigned int drif3_data1_a_pins[] = {
1759 /* D1 */
1760 RCAR_GP_PIN(2, 13),
1761};
1762
1763static const unsigned int drif3_data1_a_mux[] = {
1764 RIF3_D1_A_MARK,
1765};
1766
1767static const unsigned int drif3_ctrl_b_pins[] = {
1768 /* CLK, SYNC */
1769 RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 9),
1770};
1771
1772static const unsigned int drif3_ctrl_b_mux[] = {
1773 RIF3_CLK_B_MARK, RIF3_SYNC_B_MARK,
1774};
1775
1776static const unsigned int drif3_data0_b_pins[] = {
1777 /* D0 */
1778 RCAR_GP_PIN(0, 10),
1779};
1780
1781static const unsigned int drif3_data0_b_mux[] = {
1782 RIF3_D0_B_MARK,
1783};
1784
1785static const unsigned int drif3_data1_b_pins[] = {
1786 /* D1 */
1787 RCAR_GP_PIN(0, 11),
1788};
1789
1790static const unsigned int drif3_data1_b_mux[] = {
1791 RIF3_D1_B_MARK,
1792};
Lad Prabhakar14c9b042021-03-15 22:24:03 +00001793#endif /* CONFIG_PINCTRL_PFC_R8A77990 */
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001794
1795/* - DU --------------------------------------------------------------------- */
1796static const unsigned int du_rgb666_pins[] = {
1797 /* R[7:2], G[7:2], B[7:2] */
1798 RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 5),
1799 RCAR_GP_PIN(0, 3), RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 0),
1800 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 10),
1801 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 11),
1802 RCAR_GP_PIN(0, 1), RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16),
1803 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
1804};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001805static const unsigned int du_rgb666_mux[] = {
1806 DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK, DU_DR4_MARK,
1807 DU_DR3_MARK, DU_DR2_MARK,
1808 DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK, DU_DG4_MARK,
1809 DU_DG3_MARK, DU_DG2_MARK,
1810 DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK, DU_DB4_MARK,
1811 DU_DB3_MARK, DU_DB2_MARK,
1812};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001813static const unsigned int du_rgb888_pins[] = {
1814 /* R[7:0], G[7:0], B[7:0] */
1815 RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 5),
1816 RCAR_GP_PIN(0, 3), RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 0),
1817 RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 21),
1818 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 10),
1819 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 11),
1820 RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 9),
1821 RCAR_GP_PIN(0, 1), RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16),
1822 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
Marek Vasut88e81ec2019-03-04 22:39:51 +01001823 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001824};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001825static const unsigned int du_rgb888_mux[] = {
1826 DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK, DU_DR4_MARK,
1827 DU_DR3_MARK, DU_DR2_MARK, DU_DR1_MARK, DU_DR0_MARK,
1828 DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK, DU_DG4_MARK,
1829 DU_DG3_MARK, DU_DG2_MARK, DU_DG1_MARK, DU_DG0_MARK,
1830 DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK, DU_DB4_MARK,
1831 DU_DB3_MARK, DU_DB2_MARK, DU_DB1_MARK, DU_DB0_MARK,
1832};
Marek Vasut88e81ec2019-03-04 22:39:51 +01001833static const unsigned int du_clk_in_0_pins[] = {
1834 /* CLKIN0 */
1835 RCAR_GP_PIN(0, 16),
1836};
1837static const unsigned int du_clk_in_0_mux[] = {
1838 DU_DOTCLKIN0_MARK
1839};
1840static const unsigned int du_clk_in_1_pins[] = {
1841 /* CLKIN1 */
1842 RCAR_GP_PIN(1, 1),
1843};
1844static const unsigned int du_clk_in_1_mux[] = {
1845 DU_DOTCLKIN1_MARK
1846};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001847static const unsigned int du_clk_out_0_pins[] = {
1848 /* CLKOUT */
1849 RCAR_GP_PIN(1, 3),
1850};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001851static const unsigned int du_clk_out_0_mux[] = {
1852 DU_DOTCLKOUT0_MARK
1853};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001854static const unsigned int du_sync_pins[] = {
1855 /* VSYNC, HSYNC */
1856 RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 8),
1857};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001858static const unsigned int du_sync_mux[] = {
1859 DU_VSYNC_MARK, DU_HSYNC_MARK
1860};
Marek Vasut88e81ec2019-03-04 22:39:51 +01001861static const unsigned int du_disp_cde_pins[] = {
1862 /* DISP_CDE */
1863 RCAR_GP_PIN(1, 1),
1864};
1865static const unsigned int du_disp_cde_mux[] = {
1866 DU_DISP_CDE_MARK,
1867};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001868static const unsigned int du_cde_pins[] = {
1869 /* CDE */
1870 RCAR_GP_PIN(1, 0),
1871};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001872static const unsigned int du_cde_mux[] = {
1873 DU_CDE_MARK,
1874};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001875static const unsigned int du_disp_pins[] = {
1876 /* DISP */
1877 RCAR_GP_PIN(1, 2),
1878};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001879static const unsigned int du_disp_mux[] = {
1880 DU_DISP_MARK,
1881};
1882
Marek Vasuteb13e0f2018-06-10 16:05:48 +02001883/* - HSCIF0 --------------------------------------------------*/
1884static const unsigned int hscif0_data_a_pins[] = {
1885 /* RX, TX */
1886 RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 9),
1887};
1888
1889static const unsigned int hscif0_data_a_mux[] = {
1890 HRX0_A_MARK, HTX0_A_MARK,
1891};
1892
1893static const unsigned int hscif0_clk_a_pins[] = {
1894 /* SCK */
1895 RCAR_GP_PIN(5, 7),
1896};
1897
1898static const unsigned int hscif0_clk_a_mux[] = {
1899 HSCK0_A_MARK,
1900};
1901
1902static const unsigned int hscif0_ctrl_a_pins[] = {
1903 /* RTS, CTS */
1904 RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 14),
1905};
1906
1907static const unsigned int hscif0_ctrl_a_mux[] = {
1908 HRTS0_N_A_MARK, HCTS0_N_A_MARK,
1909};
1910
1911static const unsigned int hscif0_data_b_pins[] = {
1912 /* RX, TX */
1913 RCAR_GP_PIN(6, 11), RCAR_GP_PIN(6, 12),
1914};
1915
1916static const unsigned int hscif0_data_b_mux[] = {
1917 HRX0_B_MARK, HTX0_B_MARK,
1918};
1919
1920static const unsigned int hscif0_clk_b_pins[] = {
1921 /* SCK */
1922 RCAR_GP_PIN(6, 13),
1923};
1924
1925static const unsigned int hscif0_clk_b_mux[] = {
1926 HSCK0_B_MARK,
1927};
1928
1929/* - HSCIF1 ------------------------------------------------- */
1930static const unsigned int hscif1_data_a_pins[] = {
1931 /* RX, TX */
1932 RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
1933};
1934
1935static const unsigned int hscif1_data_a_mux[] = {
1936 HRX1_A_MARK, HTX1_A_MARK,
1937};
1938
1939static const unsigned int hscif1_clk_a_pins[] = {
1940 /* SCK */
1941 RCAR_GP_PIN(5, 0),
1942};
1943
1944static const unsigned int hscif1_clk_a_mux[] = {
1945 HSCK1_A_MARK,
1946};
1947
1948static const unsigned int hscif1_data_b_pins[] = {
1949 /* RX, TX */
1950 RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 2),
1951};
1952
1953static const unsigned int hscif1_data_b_mux[] = {
1954 HRX1_B_MARK, HTX1_B_MARK,
1955};
1956
1957static const unsigned int hscif1_clk_b_pins[] = {
1958 /* SCK */
1959 RCAR_GP_PIN(3, 0),
1960};
1961
1962static const unsigned int hscif1_clk_b_mux[] = {
1963 HSCK1_B_MARK,
1964};
1965
1966static const unsigned int hscif1_ctrl_b_pins[] = {
1967 /* RTS, CTS */
1968 RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 3),
1969};
1970
1971static const unsigned int hscif1_ctrl_b_mux[] = {
1972 HRTS1_N_B_MARK, HCTS1_N_B_MARK,
1973};
1974
1975/* - HSCIF2 ------------------------------------------------- */
1976static const unsigned int hscif2_data_a_pins[] = {
1977 /* RX, TX */
1978 RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 15),
1979};
1980
1981static const unsigned int hscif2_data_a_mux[] = {
1982 HRX2_A_MARK, HTX2_A_MARK,
1983};
1984
1985static const unsigned int hscif2_clk_a_pins[] = {
1986 /* SCK */
1987 RCAR_GP_PIN(6, 14),
1988};
1989
1990static const unsigned int hscif2_clk_a_mux[] = {
1991 HSCK2_A_MARK,
1992};
1993
1994static const unsigned int hscif2_ctrl_a_pins[] = {
1995 /* RTS, CTS */
1996 RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 15),
1997};
1998
1999static const unsigned int hscif2_ctrl_a_mux[] = {
2000 HRTS2_N_A_MARK, HCTS2_N_A_MARK,
2001};
2002
2003static const unsigned int hscif2_data_b_pins[] = {
2004 /* RX, TX */
2005 RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
2006};
2007
2008static const unsigned int hscif2_data_b_mux[] = {
2009 HRX2_B_MARK, HTX2_B_MARK,
2010};
2011
2012/* - HSCIF3 ------------------------------------------------*/
2013static const unsigned int hscif3_data_a_pins[] = {
2014 /* RX, TX */
2015 RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 15),
2016};
2017
2018static const unsigned int hscif3_data_a_mux[] = {
2019 HRX3_A_MARK, HTX3_A_MARK,
2020};
2021
2022static const unsigned int hscif3_data_b_pins[] = {
2023 /* RX, TX */
2024 RCAR_GP_PIN(0, 5), RCAR_GP_PIN(0, 6),
2025};
2026
2027static const unsigned int hscif3_data_b_mux[] = {
2028 HRX3_B_MARK, HTX3_B_MARK,
2029};
2030
2031static const unsigned int hscif3_clk_b_pins[] = {
2032 /* SCK */
2033 RCAR_GP_PIN(0, 4),
2034};
2035
2036static const unsigned int hscif3_clk_b_mux[] = {
2037 HSCK3_B_MARK,
2038};
2039
2040static const unsigned int hscif3_data_c_pins[] = {
2041 /* RX, TX */
2042 RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 9),
2043};
2044
2045static const unsigned int hscif3_data_c_mux[] = {
2046 HRX3_C_MARK, HTX3_C_MARK,
2047};
2048
2049static const unsigned int hscif3_clk_c_pins[] = {
2050 /* SCK */
2051 RCAR_GP_PIN(2, 11),
2052};
2053
2054static const unsigned int hscif3_clk_c_mux[] = {
2055 HSCK3_C_MARK,
2056};
2057
2058static const unsigned int hscif3_ctrl_c_pins[] = {
2059 /* RTS, CTS */
2060 RCAR_GP_PIN(2, 13), RCAR_GP_PIN(2, 12),
2061};
2062
2063static const unsigned int hscif3_ctrl_c_mux[] = {
2064 HRTS3_N_C_MARK, HCTS3_N_C_MARK,
2065};
2066
2067static const unsigned int hscif3_data_d_pins[] = {
2068 /* RX, TX */
Marek Vasut88e81ec2019-03-04 22:39:51 +01002069 RCAR_GP_PIN(1, 0), RCAR_GP_PIN(1, 3),
Marek Vasuteb13e0f2018-06-10 16:05:48 +02002070};
2071
2072static const unsigned int hscif3_data_d_mux[] = {
2073 HRX3_D_MARK, HTX3_D_MARK,
2074};
2075
2076static const unsigned int hscif3_data_e_pins[] = {
2077 /* RX, TX */
2078 RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 10),
2079};
2080
2081static const unsigned int hscif3_data_e_mux[] = {
2082 HRX3_E_MARK, HTX3_E_MARK,
2083};
2084
2085static const unsigned int hscif3_ctrl_e_pins[] = {
2086 /* RTS, CTS */
2087 RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 8),
2088};
2089
2090static const unsigned int hscif3_ctrl_e_mux[] = {
2091 HRTS3_N_E_MARK, HCTS3_N_E_MARK,
2092};
2093
2094/* - HSCIF4 -------------------------------------------------- */
2095static const unsigned int hscif4_data_a_pins[] = {
2096 /* RX, TX */
2097 RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 3),
2098};
2099
2100static const unsigned int hscif4_data_a_mux[] = {
2101 HRX4_A_MARK, HTX4_A_MARK,
2102};
2103
2104static const unsigned int hscif4_clk_a_pins[] = {
2105 /* SCK */
2106 RCAR_GP_PIN(2, 0),
2107};
2108
2109static const unsigned int hscif4_clk_a_mux[] = {
2110 HSCK4_A_MARK,
2111};
2112
2113static const unsigned int hscif4_ctrl_a_pins[] = {
2114 /* RTS, CTS */
2115 RCAR_GP_PIN(2, 2), RCAR_GP_PIN(2, 1),
2116};
2117
2118static const unsigned int hscif4_ctrl_a_mux[] = {
2119 HRTS4_N_A_MARK, HCTS4_N_A_MARK,
2120};
2121
2122static const unsigned int hscif4_data_b_pins[] = {
2123 /* RX, TX */
2124 RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 7),
2125};
2126
2127static const unsigned int hscif4_data_b_mux[] = {
2128 HRX4_B_MARK, HTX4_B_MARK,
2129};
2130
2131static const unsigned int hscif4_clk_b_pins[] = {
Marek Vasut88e81ec2019-03-04 22:39:51 +01002132 /* SCK */
Marek Vasuteb13e0f2018-06-10 16:05:48 +02002133 RCAR_GP_PIN(2, 6),
2134};
2135
2136static const unsigned int hscif4_clk_b_mux[] = {
2137 HSCK4_B_MARK,
2138};
2139
2140static const unsigned int hscif4_data_c_pins[] = {
2141 /* RX, TX */
2142 RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
2143};
2144
2145static const unsigned int hscif4_data_c_mux[] = {
2146 HRX4_C_MARK, HTX4_C_MARK,
2147};
2148
2149static const unsigned int hscif4_data_d_pins[] = {
2150 /* RX, TX */
2151 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 14),
2152};
2153
2154static const unsigned int hscif4_data_d_mux[] = {
2155 HRX4_D_MARK, HTX4_D_MARK,
2156};
2157
2158static const unsigned int hscif4_data_e_pins[] = {
2159 /* RX, TX */
2160 RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19),
2161};
2162
2163static const unsigned int hscif4_data_e_mux[] = {
2164 HRX4_E_MARK, HTX4_E_MARK,
2165};
2166
2167/* - I2C -------------------------------------------------------------------- */
2168static const unsigned int i2c1_a_pins[] = {
2169 /* SCL, SDA */
2170 RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 9),
2171};
2172
2173static const unsigned int i2c1_a_mux[] = {
2174 SCL1_A_MARK, SDA1_A_MARK,
2175};
2176
2177static const unsigned int i2c1_b_pins[] = {
2178 /* SCL, SDA */
2179 RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 18),
2180};
2181
2182static const unsigned int i2c1_b_mux[] = {
2183 SCL1_B_MARK, SDA1_B_MARK,
2184};
2185
2186static const unsigned int i2c1_c_pins[] = {
2187 /* SCL, SDA */
2188 RCAR_GP_PIN(3, 0), RCAR_GP_PIN(3, 5),
2189};
2190
2191static const unsigned int i2c1_c_mux[] = {
2192 SCL1_C_MARK, SDA1_C_MARK,
2193};
2194
2195static const unsigned int i2c1_d_pins[] = {
2196 /* SCL, SDA */
2197 RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 15),
2198};
2199
2200static const unsigned int i2c1_d_mux[] = {
2201 SCL1_D_MARK, SDA1_D_MARK,
2202};
2203
2204static const unsigned int i2c2_a_pins[] = {
2205 /* SCL, SDA */
2206 RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 0),
2207};
2208
2209static const unsigned int i2c2_a_mux[] = {
2210 SCL2_A_MARK, SDA2_A_MARK,
2211};
2212
2213static const unsigned int i2c2_b_pins[] = {
2214 /* SCL, SDA */
2215 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
2216};
2217
2218static const unsigned int i2c2_b_mux[] = {
2219 SCL2_B_MARK, SDA2_B_MARK,
2220};
2221
2222static const unsigned int i2c2_c_pins[] = {
2223 /* SCL, SDA */
2224 RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 3),
2225};
2226
2227static const unsigned int i2c2_c_mux[] = {
2228 SCL2_C_MARK, SDA2_C_MARK,
2229};
2230
2231static const unsigned int i2c2_d_pins[] = {
2232 /* SCL, SDA */
2233 RCAR_GP_PIN(6, 11), RCAR_GP_PIN(6, 12),
2234};
2235
2236static const unsigned int i2c2_d_mux[] = {
2237 SCL2_D_MARK, SDA2_D_MARK,
2238};
2239
2240static const unsigned int i2c2_e_pins[] = {
2241 /* SCL, SDA */
2242 RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 0),
2243};
2244
2245static const unsigned int i2c2_e_mux[] = {
2246 SCL2_E_MARK, SDA2_E_MARK,
2247};
2248
2249static const unsigned int i2c4_pins[] = {
2250 /* SCL, SDA */
2251 RCAR_GP_PIN(0, 16), RCAR_GP_PIN(0, 17),
2252};
2253
2254static const unsigned int i2c4_mux[] = {
2255 SCL4_MARK, SDA4_MARK,
2256};
2257
2258static const unsigned int i2c5_pins[] = {
2259 /* SCL, SDA */
2260 RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 22),
2261};
2262
2263static const unsigned int i2c5_mux[] = {
2264 SCL5_MARK, SDA5_MARK,
2265};
2266
2267static const unsigned int i2c6_a_pins[] = {
2268 /* SCL, SDA */
2269 RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 8),
2270};
2271
2272static const unsigned int i2c6_a_mux[] = {
2273 SCL6_A_MARK, SDA6_A_MARK,
2274};
2275
2276static const unsigned int i2c6_b_pins[] = {
2277 /* SCL, SDA */
2278 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 1),
2279};
2280
2281static const unsigned int i2c6_b_mux[] = {
2282 SCL6_B_MARK, SDA6_B_MARK,
2283};
2284
2285static const unsigned int i2c7_a_pins[] = {
2286 /* SCL, SDA */
2287 RCAR_GP_PIN(2, 24), RCAR_GP_PIN(2, 25),
2288};
2289
2290static const unsigned int i2c7_a_mux[] = {
2291 SCL7_A_MARK, SDA7_A_MARK,
2292};
2293
2294static const unsigned int i2c7_b_pins[] = {
2295 /* SCL, SDA */
2296 RCAR_GP_PIN(0, 13), RCAR_GP_PIN(0, 14),
2297};
2298
2299static const unsigned int i2c7_b_mux[] = {
2300 SCL7_B_MARK, SDA7_B_MARK,
2301};
2302
2303/* - INTC-EX ---------------------------------------------------------------- */
2304static const unsigned int intc_ex_irq0_pins[] = {
2305 /* IRQ0 */
2306 RCAR_GP_PIN(1, 0),
2307};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02002308static const unsigned int intc_ex_irq0_mux[] = {
2309 IRQ0_MARK,
2310};
Marek Vasut88e81ec2019-03-04 22:39:51 +01002311static const unsigned int intc_ex_irq1_pins[] = {
2312 /* IRQ1 */
2313 RCAR_GP_PIN(1, 1),
2314};
2315static const unsigned int intc_ex_irq1_mux[] = {
2316 IRQ1_MARK,
2317};
2318static const unsigned int intc_ex_irq2_pins[] = {
2319 /* IRQ2 */
2320 RCAR_GP_PIN(1, 2),
2321};
2322static const unsigned int intc_ex_irq2_mux[] = {
2323 IRQ2_MARK,
2324};
2325static const unsigned int intc_ex_irq3_pins[] = {
2326 /* IRQ3 */
2327 RCAR_GP_PIN(1, 9),
2328};
2329static const unsigned int intc_ex_irq3_mux[] = {
2330 IRQ3_MARK,
2331};
2332static const unsigned int intc_ex_irq4_pins[] = {
2333 /* IRQ4 */
2334 RCAR_GP_PIN(1, 10),
2335};
2336static const unsigned int intc_ex_irq4_mux[] = {
2337 IRQ4_MARK,
2338};
2339static const unsigned int intc_ex_irq5_pins[] = {
2340 /* IRQ5 */
2341 RCAR_GP_PIN(0, 7),
2342};
2343static const unsigned int intc_ex_irq5_mux[] = {
2344 IRQ5_MARK,
2345};
Marek Vasuteb13e0f2018-06-10 16:05:48 +02002346
Marek Vasut6af234c2023-01-26 21:01:45 +01002347#ifdef CONFIG_PINCTRL_PFC_R8A77990
2348/* - MLB+ ------------------------------------------------------------------- */
2349static const unsigned int mlb_3pin_pins[] = {
2350 RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 18), RCAR_GP_PIN(5, 19),
2351};
2352static const unsigned int mlb_3pin_mux[] = {
2353 MLB_CLK_MARK, MLB_SIG_MARK, MLB_DAT_MARK,
2354};
2355#endif /* CONFIG_PINCTRL_PFC_R8A77990 */
2356
Marek Vasuteb13e0f2018-06-10 16:05:48 +02002357/* - MSIOF0 ----------------------------------------------------------------- */
2358static const unsigned int msiof0_clk_pins[] = {
2359 /* SCK */
2360 RCAR_GP_PIN(5, 10),
2361};
2362
2363static const unsigned int msiof0_clk_mux[] = {
2364 MSIOF0_SCK_MARK,
2365};
2366
2367static const unsigned int msiof0_sync_pins[] = {
2368 /* SYNC */
2369 RCAR_GP_PIN(5, 13),
2370};
2371
2372static const unsigned int msiof0_sync_mux[] = {
2373 MSIOF0_SYNC_MARK,
2374};
2375
2376static const unsigned int msiof0_ss1_pins[] = {
2377 /* SS1 */
2378 RCAR_GP_PIN(5, 14),
2379};
2380
2381static const unsigned int msiof0_ss1_mux[] = {
2382 MSIOF0_SS1_MARK,
2383};
2384
2385static const unsigned int msiof0_ss2_pins[] = {
2386 /* SS2 */
2387 RCAR_GP_PIN(5, 15),
2388};
2389
2390static const unsigned int msiof0_ss2_mux[] = {
2391 MSIOF0_SS2_MARK,
2392};
2393
2394static const unsigned int msiof0_txd_pins[] = {
2395 /* TXD */
2396 RCAR_GP_PIN(5, 12),
2397};
2398
2399static const unsigned int msiof0_txd_mux[] = {
2400 MSIOF0_TXD_MARK,
2401};
2402
2403static const unsigned int msiof0_rxd_pins[] = {
2404 /* RXD */
2405 RCAR_GP_PIN(5, 11),
2406};
2407
2408static const unsigned int msiof0_rxd_mux[] = {
2409 MSIOF0_RXD_MARK,
2410};
2411
2412/* - MSIOF1 ----------------------------------------------------------------- */
2413static const unsigned int msiof1_clk_pins[] = {
2414 /* SCK */
2415 RCAR_GP_PIN(1, 19),
2416};
2417
2418static const unsigned int msiof1_clk_mux[] = {
2419 MSIOF1_SCK_MARK,
2420};
2421
2422static const unsigned int msiof1_sync_pins[] = {
2423 /* SYNC */
2424 RCAR_GP_PIN(1, 16),
2425};
2426
2427static const unsigned int msiof1_sync_mux[] = {
2428 MSIOF1_SYNC_MARK,
2429};
2430
2431static const unsigned int msiof1_ss1_pins[] = {
2432 /* SS1 */
2433 RCAR_GP_PIN(1, 14),
2434};
2435
2436static const unsigned int msiof1_ss1_mux[] = {
2437 MSIOF1_SS1_MARK,
2438};
2439
2440static const unsigned int msiof1_ss2_pins[] = {
2441 /* SS2 */
2442 RCAR_GP_PIN(1, 15),
2443};
2444
2445static const unsigned int msiof1_ss2_mux[] = {
2446 MSIOF1_SS2_MARK,
2447};
2448
2449static const unsigned int msiof1_txd_pins[] = {
2450 /* TXD */
2451 RCAR_GP_PIN(1, 18),
2452};
2453
2454static const unsigned int msiof1_txd_mux[] = {
2455 MSIOF1_TXD_MARK,
2456};
2457
2458static const unsigned int msiof1_rxd_pins[] = {
2459 /* RXD */
2460 RCAR_GP_PIN(1, 17),
2461};
2462
2463static const unsigned int msiof1_rxd_mux[] = {
2464 MSIOF1_RXD_MARK,
2465};
2466
2467/* - MSIOF2 ----------------------------------------------------------------- */
2468static const unsigned int msiof2_clk_a_pins[] = {
2469 /* SCK */
2470 RCAR_GP_PIN(0, 8),
2471};
2472
2473static const unsigned int msiof2_clk_a_mux[] = {
2474 MSIOF2_SCK_A_MARK,
2475};
2476
2477static const unsigned int msiof2_sync_a_pins[] = {
2478 /* SYNC */
2479 RCAR_GP_PIN(0, 9),
2480};
2481
2482static const unsigned int msiof2_sync_a_mux[] = {
2483 MSIOF2_SYNC_A_MARK,
2484};
2485
2486static const unsigned int msiof2_ss1_a_pins[] = {
2487 /* SS1 */
2488 RCAR_GP_PIN(0, 15),
2489};
2490
2491static const unsigned int msiof2_ss1_a_mux[] = {
2492 MSIOF2_SS1_A_MARK,
2493};
2494
2495static const unsigned int msiof2_ss2_a_pins[] = {
2496 /* SS2 */
2497 RCAR_GP_PIN(0, 14),
2498};
2499
2500static const unsigned int msiof2_ss2_a_mux[] = {
2501 MSIOF2_SS2_A_MARK,
2502};
2503
2504static const unsigned int msiof2_txd_a_pins[] = {
2505 /* TXD */
2506 RCAR_GP_PIN(0, 11),
2507};
2508
2509static const unsigned int msiof2_txd_a_mux[] = {
2510 MSIOF2_TXD_A_MARK,
2511};
2512
2513static const unsigned int msiof2_rxd_a_pins[] = {
2514 /* RXD */
2515 RCAR_GP_PIN(0, 10),
2516};
2517
2518static const unsigned int msiof2_rxd_a_mux[] = {
2519 MSIOF2_RXD_A_MARK,
2520};
2521
2522static const unsigned int msiof2_clk_b_pins[] = {
2523 /* SCK */
2524 RCAR_GP_PIN(1, 13),
2525};
2526
2527static const unsigned int msiof2_clk_b_mux[] = {
2528 MSIOF2_SCK_B_MARK,
2529};
2530
2531static const unsigned int msiof2_sync_b_pins[] = {
2532 /* SYNC */
2533 RCAR_GP_PIN(1, 10),
2534};
2535
2536static const unsigned int msiof2_sync_b_mux[] = {
2537 MSIOF2_SYNC_B_MARK,
2538};
2539
2540static const unsigned int msiof2_ss1_b_pins[] = {
2541 /* SS1 */
2542 RCAR_GP_PIN(1, 16),
2543};
2544
2545static const unsigned int msiof2_ss1_b_mux[] = {
2546 MSIOF2_SS1_B_MARK,
2547};
2548
2549static const unsigned int msiof2_ss2_b_pins[] = {
2550 /* SS2 */
2551 RCAR_GP_PIN(1, 12),
2552};
2553
2554static const unsigned int msiof2_ss2_b_mux[] = {
2555 MSIOF2_SS2_B_MARK,
2556};
2557
2558static const unsigned int msiof2_txd_b_pins[] = {
2559 /* TXD */
2560 RCAR_GP_PIN(1, 15),
2561};
2562
2563static const unsigned int msiof2_txd_b_mux[] = {
2564 MSIOF2_TXD_B_MARK,
2565};
2566
2567static const unsigned int msiof2_rxd_b_pins[] = {
2568 /* RXD */
2569 RCAR_GP_PIN(1, 14),
2570};
2571
2572static const unsigned int msiof2_rxd_b_mux[] = {
2573 MSIOF2_RXD_B_MARK,
2574};
2575
2576/* - MSIOF3 ----------------------------------------------------------------- */
2577static const unsigned int msiof3_clk_a_pins[] = {
2578 /* SCK */
2579 RCAR_GP_PIN(0, 0),
2580};
2581
2582static const unsigned int msiof3_clk_a_mux[] = {
2583 MSIOF3_SCK_A_MARK,
2584};
2585
2586static const unsigned int msiof3_sync_a_pins[] = {
2587 /* SYNC */
2588 RCAR_GP_PIN(0, 1),
2589};
2590
2591static const unsigned int msiof3_sync_a_mux[] = {
2592 MSIOF3_SYNC_A_MARK,
2593};
2594
2595static const unsigned int msiof3_ss1_a_pins[] = {
2596 /* SS1 */
2597 RCAR_GP_PIN(0, 15),
2598};
2599
2600static const unsigned int msiof3_ss1_a_mux[] = {
2601 MSIOF3_SS1_A_MARK,
2602};
2603
2604static const unsigned int msiof3_ss2_a_pins[] = {
2605 /* SS2 */
2606 RCAR_GP_PIN(0, 4),
2607};
2608
2609static const unsigned int msiof3_ss2_a_mux[] = {
2610 MSIOF3_SS2_A_MARK,
2611};
2612
2613static const unsigned int msiof3_txd_a_pins[] = {
2614 /* TXD */
2615 RCAR_GP_PIN(0, 3),
2616};
2617
2618static const unsigned int msiof3_txd_a_mux[] = {
2619 MSIOF3_TXD_A_MARK,
2620};
2621
2622static const unsigned int msiof3_rxd_a_pins[] = {
2623 /* RXD */
2624 RCAR_GP_PIN(0, 2),
2625};
2626
2627static const unsigned int msiof3_rxd_a_mux[] = {
2628 MSIOF3_RXD_A_MARK,
2629};
2630
2631static const unsigned int msiof3_clk_b_pins[] = {
2632 /* SCK */
2633 RCAR_GP_PIN(1, 5),
2634};
2635
2636static const unsigned int msiof3_clk_b_mux[] = {
2637 MSIOF3_SCK_B_MARK,
2638};
2639
2640static const unsigned int msiof3_sync_b_pins[] = {
2641 /* SYNC */
2642 RCAR_GP_PIN(1, 4),
2643};
2644
2645static const unsigned int msiof3_sync_b_mux[] = {
2646 MSIOF3_SYNC_B_MARK,
2647};
2648
2649static const unsigned int msiof3_ss1_b_pins[] = {
2650 /* SS1 */
2651 RCAR_GP_PIN(1, 0),
2652};
2653
2654static const unsigned int msiof3_ss1_b_mux[] = {
2655 MSIOF3_SS1_B_MARK,
2656};
2657
2658static const unsigned int msiof3_txd_b_pins[] = {
2659 /* TXD */
2660 RCAR_GP_PIN(1, 7),
2661};
2662
2663static const unsigned int msiof3_txd_b_mux[] = {
2664 MSIOF3_TXD_B_MARK,
2665};
2666
2667static const unsigned int msiof3_rxd_b_pins[] = {
2668 /* RXD */
2669 RCAR_GP_PIN(1, 6),
2670};
2671
2672static const unsigned int msiof3_rxd_b_mux[] = {
2673 MSIOF3_RXD_B_MARK,
2674};
2675
2676/* - PWM0 --------------------------------------------------------------------*/
2677static const unsigned int pwm0_a_pins[] = {
2678 /* PWM */
2679 RCAR_GP_PIN(2, 22),
2680};
2681
2682static const unsigned int pwm0_a_mux[] = {
2683 PWM0_A_MARK,
2684};
2685
2686static const unsigned int pwm0_b_pins[] = {
2687 /* PWM */
2688 RCAR_GP_PIN(6, 3),
2689};
2690
2691static const unsigned int pwm0_b_mux[] = {
2692 PWM0_B_MARK,
2693};
2694
2695/* - PWM1 --------------------------------------------------------------------*/
2696static const unsigned int pwm1_a_pins[] = {
2697 /* PWM */
2698 RCAR_GP_PIN(2, 23),
2699};
2700
2701static const unsigned int pwm1_a_mux[] = {
2702 PWM1_A_MARK,
2703};
2704
2705static const unsigned int pwm1_b_pins[] = {
2706 /* PWM */
2707 RCAR_GP_PIN(6, 4),
2708};
2709
2710static const unsigned int pwm1_b_mux[] = {
2711 PWM1_B_MARK,
2712};
2713
2714/* - PWM2 --------------------------------------------------------------------*/
2715static const unsigned int pwm2_a_pins[] = {
2716 /* PWM */
2717 RCAR_GP_PIN(1, 0),
2718};
2719
2720static const unsigned int pwm2_a_mux[] = {
2721 PWM2_A_MARK,
2722};
2723
2724static const unsigned int pwm2_b_pins[] = {
2725 /* PWM */
2726 RCAR_GP_PIN(1, 4),
2727};
2728
2729static const unsigned int pwm2_b_mux[] = {
2730 PWM2_B_MARK,
2731};
2732
2733static const unsigned int pwm2_c_pins[] = {
2734 /* PWM */
2735 RCAR_GP_PIN(6, 5),
2736};
2737
2738static const unsigned int pwm2_c_mux[] = {
2739 PWM2_C_MARK,
2740};
2741
2742/* - PWM3 --------------------------------------------------------------------*/
2743static const unsigned int pwm3_a_pins[] = {
2744 /* PWM */
2745 RCAR_GP_PIN(1, 1),
2746};
2747
2748static const unsigned int pwm3_a_mux[] = {
2749 PWM3_A_MARK,
2750};
2751
2752static const unsigned int pwm3_b_pins[] = {
2753 /* PWM */
2754 RCAR_GP_PIN(1, 5),
2755};
2756
2757static const unsigned int pwm3_b_mux[] = {
2758 PWM3_B_MARK,
2759};
2760
2761static const unsigned int pwm3_c_pins[] = {
2762 /* PWM */
2763 RCAR_GP_PIN(6, 6),
2764};
2765
2766static const unsigned int pwm3_c_mux[] = {
2767 PWM3_C_MARK,
2768};
2769
2770/* - PWM4 --------------------------------------------------------------------*/
2771static const unsigned int pwm4_a_pins[] = {
2772 /* PWM */
2773 RCAR_GP_PIN(1, 3),
2774};
2775
2776static const unsigned int pwm4_a_mux[] = {
2777 PWM4_A_MARK,
2778};
2779
2780static const unsigned int pwm4_b_pins[] = {
2781 /* PWM */
2782 RCAR_GP_PIN(6, 7),
2783};
2784
2785static const unsigned int pwm4_b_mux[] = {
2786 PWM4_B_MARK,
2787};
2788
2789/* - PWM5 --------------------------------------------------------------------*/
2790static const unsigned int pwm5_a_pins[] = {
2791 /* PWM */
2792 RCAR_GP_PIN(2, 24),
2793};
2794
2795static const unsigned int pwm5_a_mux[] = {
2796 PWM5_A_MARK,
2797};
2798
2799static const unsigned int pwm5_b_pins[] = {
2800 /* PWM */
2801 RCAR_GP_PIN(6, 10),
2802};
2803
2804static const unsigned int pwm5_b_mux[] = {
2805 PWM5_B_MARK,
2806};
2807
2808/* - PWM6 --------------------------------------------------------------------*/
2809static const unsigned int pwm6_a_pins[] = {
2810 /* PWM */
2811 RCAR_GP_PIN(2, 25),
2812};
2813
2814static const unsigned int pwm6_a_mux[] = {
2815 PWM6_A_MARK,
2816};
2817
2818static const unsigned int pwm6_b_pins[] = {
2819 /* PWM */
2820 RCAR_GP_PIN(6, 11),
2821};
2822
2823static const unsigned int pwm6_b_mux[] = {
2824 PWM6_B_MARK,
2825};
2826
Lad Prabhakar14c9b042021-03-15 22:24:03 +00002827/* - QSPI0 ------------------------------------------------------------------ */
2828static const unsigned int qspi0_ctrl_pins[] = {
2829 /* QSPI0_SPCLK, QSPI0_SSL */
2830 RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 5),
2831};
2832static const unsigned int qspi0_ctrl_mux[] = {
2833 QSPI0_SPCLK_MARK, QSPI0_SSL_MARK,
2834};
Lad Prabhakar14c9b042021-03-15 22:24:03 +00002835/* - QSPI1 ------------------------------------------------------------------ */
2836static const unsigned int qspi1_ctrl_pins[] = {
2837 /* QSPI1_SPCLK, QSPI1_SSL */
2838 RCAR_GP_PIN(2, 6), RCAR_GP_PIN(2, 11),
2839};
2840static const unsigned int qspi1_ctrl_mux[] = {
2841 QSPI1_SPCLK_MARK, QSPI1_SSL_MARK,
2842};
Marek Vasut6af234c2023-01-26 21:01:45 +01002843
2844/* - RPC -------------------------------------------------------------------- */
2845static const unsigned int rpc_clk_pins[] = {
2846 /* Octal-SPI flash: C/SCLK */
2847 /* HyperFlash: CK, CK# */
2848 RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 6),
Lad Prabhakar14c9b042021-03-15 22:24:03 +00002849};
Marek Vasut6af234c2023-01-26 21:01:45 +01002850static const unsigned int rpc_clk_mux[] = {
2851 QSPI0_SPCLK_MARK, QSPI1_SPCLK_MARK,
Lad Prabhakar14c9b042021-03-15 22:24:03 +00002852};
Marek Vasut6af234c2023-01-26 21:01:45 +01002853static const unsigned int rpc_ctrl_pins[] = {
2854 /* Octal-SPI flash: S#/CS, DQS */
2855 /* HyperFlash: CS#, RDS */
2856 RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 11),
2857};
2858static const unsigned int rpc_ctrl_mux[] = {
2859 QSPI0_SSL_MARK, QSPI1_SSL_MARK,
2860};
2861static const unsigned int rpc_data_pins[] = {
2862 /* DQ[0:7] */
2863 RCAR_GP_PIN(2, 1), RCAR_GP_PIN(2, 2),
2864 RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 4),
Lad Prabhakar14c9b042021-03-15 22:24:03 +00002865 RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
Lad Prabhakar14c9b042021-03-15 22:24:03 +00002866 RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 10),
2867};
Marek Vasut6af234c2023-01-26 21:01:45 +01002868static const unsigned int rpc_data_mux[] = {
2869 QSPI0_MOSI_IO0_MARK, QSPI0_MISO_IO1_MARK,
2870 QSPI0_IO2_MARK, QSPI0_IO3_MARK,
Lad Prabhakar14c9b042021-03-15 22:24:03 +00002871 QSPI1_MOSI_IO0_MARK, QSPI1_MISO_IO1_MARK,
2872 QSPI1_IO2_MARK, QSPI1_IO3_MARK,
2873};
Marek Vasut6af234c2023-01-26 21:01:45 +01002874static const unsigned int rpc_reset_pins[] = {
2875 /* RPC_RESET# */
2876 RCAR_GP_PIN(2, 13),
2877};
2878static const unsigned int rpc_reset_mux[] = {
2879 RPC_RESET_N_MARK,
2880};
2881static const unsigned int rpc_int_pins[] = {
2882 /* RPC_INT# */
2883 RCAR_GP_PIN(2, 12),
2884};
2885static const unsigned int rpc_int_mux[] = {
2886 RPC_INT_N_MARK,
2887};
Lad Prabhakar14c9b042021-03-15 22:24:03 +00002888
Marek Vasuteb13e0f2018-06-10 16:05:48 +02002889/* - SCIF0 ------------------------------------------------------------------ */
2890static const unsigned int scif0_data_a_pins[] = {
2891 /* RX, TX */
2892 RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
2893};
2894
2895static const unsigned int scif0_data_a_mux[] = {
2896 RX0_A_MARK, TX0_A_MARK,
2897};
2898
2899static const unsigned int scif0_clk_a_pins[] = {
2900 /* SCK */
2901 RCAR_GP_PIN(5, 0),
2902};
2903
2904static const unsigned int scif0_clk_a_mux[] = {
2905 SCK0_A_MARK,
2906};
2907
2908static const unsigned int scif0_ctrl_a_pins[] = {
2909 /* RTS, CTS */
2910 RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 3),
2911};
2912
2913static const unsigned int scif0_ctrl_a_mux[] = {
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02002914 RTS0_N_A_MARK, CTS0_N_A_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02002915};
2916
2917static const unsigned int scif0_data_b_pins[] = {
2918 /* RX, TX */
2919 RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 19),
2920};
2921
2922static const unsigned int scif0_data_b_mux[] = {
2923 RX0_B_MARK, TX0_B_MARK,
2924};
2925
2926static const unsigned int scif0_clk_b_pins[] = {
2927 /* SCK */
2928 RCAR_GP_PIN(5, 18),
2929};
2930
2931static const unsigned int scif0_clk_b_mux[] = {
2932 SCK0_B_MARK,
2933};
2934
2935/* - SCIF1 ------------------------------------------------------------------ */
2936static const unsigned int scif1_data_pins[] = {
2937 /* RX, TX */
2938 RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
2939};
2940
2941static const unsigned int scif1_data_mux[] = {
2942 RX1_MARK, TX1_MARK,
2943};
2944
2945static const unsigned int scif1_clk_pins[] = {
2946 /* SCK */
2947 RCAR_GP_PIN(5, 16),
2948};
2949
2950static const unsigned int scif1_clk_mux[] = {
2951 SCK1_MARK,
2952};
2953
2954static const unsigned int scif1_ctrl_pins[] = {
2955 /* RTS, CTS */
2956 RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 7),
2957};
2958
2959static const unsigned int scif1_ctrl_mux[] = {
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02002960 RTS1_N_MARK, CTS1_N_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02002961};
2962
2963/* - SCIF2 ------------------------------------------------------------------ */
2964static const unsigned int scif2_data_a_pins[] = {
2965 /* RX, TX */
2966 RCAR_GP_PIN(5, 9), RCAR_GP_PIN(5, 8),
2967};
2968
2969static const unsigned int scif2_data_a_mux[] = {
2970 RX2_A_MARK, TX2_A_MARK,
2971};
2972
2973static const unsigned int scif2_clk_a_pins[] = {
2974 /* SCK */
2975 RCAR_GP_PIN(5, 7),
2976};
2977
2978static const unsigned int scif2_clk_a_mux[] = {
2979 SCK2_A_MARK,
2980};
2981
2982static const unsigned int scif2_data_b_pins[] = {
2983 /* RX, TX */
2984 RCAR_GP_PIN(5, 12), RCAR_GP_PIN(5, 11),
2985};
2986
2987static const unsigned int scif2_data_b_mux[] = {
2988 RX2_B_MARK, TX2_B_MARK,
2989};
2990
2991/* - SCIF3 ------------------------------------------------------------------ */
2992static const unsigned int scif3_data_a_pins[] = {
2993 /* RX, TX */
2994 RCAR_GP_PIN(0, 5), RCAR_GP_PIN(0, 6),
2995};
2996
2997static const unsigned int scif3_data_a_mux[] = {
2998 RX3_A_MARK, TX3_A_MARK,
2999};
3000
3001static const unsigned int scif3_clk_a_pins[] = {
3002 /* SCK */
3003 RCAR_GP_PIN(0, 1),
3004};
3005
3006static const unsigned int scif3_clk_a_mux[] = {
3007 SCK3_A_MARK,
3008};
3009
3010static const unsigned int scif3_ctrl_a_pins[] = {
3011 /* RTS, CTS */
3012 RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 7),
3013};
3014
3015static const unsigned int scif3_ctrl_a_mux[] = {
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02003016 RTS3_N_A_MARK, CTS3_N_A_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003017};
3018
3019static const unsigned int scif3_data_b_pins[] = {
3020 /* RX, TX */
3021 RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
3022};
3023
3024static const unsigned int scif3_data_b_mux[] = {
3025 RX3_B_MARK, TX3_B_MARK,
3026};
3027
3028static const unsigned int scif3_data_c_pins[] = {
3029 /* RX, TX */
3030 RCAR_GP_PIN(2, 23), RCAR_GP_PIN(2, 22),
3031};
3032
3033static const unsigned int scif3_data_c_mux[] = {
3034 RX3_C_MARK, TX3_C_MARK,
3035};
3036
3037static const unsigned int scif3_clk_c_pins[] = {
3038 /* SCK */
3039 RCAR_GP_PIN(2, 24),
3040};
3041
3042static const unsigned int scif3_clk_c_mux[] = {
3043 SCK3_C_MARK,
3044};
3045
3046/* - SCIF4 ------------------------------------------------------------------ */
3047static const unsigned int scif4_data_a_pins[] = {
3048 /* RX, TX */
3049 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
3050};
3051
3052static const unsigned int scif4_data_a_mux[] = {
3053 RX4_A_MARK, TX4_A_MARK,
3054};
3055
3056static const unsigned int scif4_clk_a_pins[] = {
3057 /* SCK */
3058 RCAR_GP_PIN(1, 5),
3059};
3060
3061static const unsigned int scif4_clk_a_mux[] = {
3062 SCK4_A_MARK,
3063};
3064
3065static const unsigned int scif4_ctrl_a_pins[] = {
3066 /* RTS, CTS */
3067 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 3),
3068};
3069
3070static const unsigned int scif4_ctrl_a_mux[] = {
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02003071 RTS4_N_A_MARK, CTS4_N_A_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003072};
3073
3074static const unsigned int scif4_data_b_pins[] = {
3075 /* RX, TX */
3076 RCAR_GP_PIN(0, 13), RCAR_GP_PIN(0, 12),
3077};
3078
3079static const unsigned int scif4_data_b_mux[] = {
3080 RX4_B_MARK, TX4_B_MARK,
3081};
3082
3083static const unsigned int scif4_clk_b_pins[] = {
3084 /* SCK */
3085 RCAR_GP_PIN(0, 8),
3086};
3087
3088static const unsigned int scif4_clk_b_mux[] = {
3089 SCK4_B_MARK,
3090};
3091
3092static const unsigned int scif4_data_c_pins[] = {
3093 /* RX, TX */
3094 RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 3),
3095};
3096
3097static const unsigned int scif4_data_c_mux[] = {
3098 RX4_C_MARK, TX4_C_MARK,
3099};
3100
3101static const unsigned int scif4_ctrl_c_pins[] = {
3102 /* RTS, CTS */
3103 RCAR_GP_PIN(0, 1), RCAR_GP_PIN(0, 0),
3104};
3105
3106static const unsigned int scif4_ctrl_c_mux[] = {
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02003107 RTS4_N_C_MARK, CTS4_N_C_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003108};
3109
3110/* - SCIF5 ------------------------------------------------------------------ */
3111static const unsigned int scif5_data_a_pins[] = {
3112 /* RX, TX */
3113 RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 9),
3114};
3115
3116static const unsigned int scif5_data_a_mux[] = {
3117 RX5_A_MARK, TX5_A_MARK,
3118};
3119
3120static const unsigned int scif5_clk_a_pins[] = {
3121 /* SCK */
3122 RCAR_GP_PIN(1, 13),
3123};
3124
3125static const unsigned int scif5_clk_a_mux[] = {
3126 SCK5_A_MARK,
3127};
3128
3129static const unsigned int scif5_data_b_pins[] = {
3130 /* RX, TX */
3131 RCAR_GP_PIN(2, 25), RCAR_GP_PIN(2, 24),
3132};
3133
3134static const unsigned int scif5_data_b_mux[] = {
3135 RX5_B_MARK, TX5_B_MARK,
3136};
3137
3138static const unsigned int scif5_data_c_pins[] = {
3139 /* RX, TX */
3140 RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 3),
3141};
3142
3143static const unsigned int scif5_data_c_mux[] = {
3144 RX5_C_MARK, TX5_C_MARK,
3145};
3146
3147/* - SCIF Clock ------------------------------------------------------------- */
3148static const unsigned int scif_clk_a_pins[] = {
3149 /* SCIF_CLK */
3150 RCAR_GP_PIN(5, 3),
3151};
3152
3153static const unsigned int scif_clk_a_mux[] = {
3154 SCIF_CLK_A_MARK,
3155};
3156
3157static const unsigned int scif_clk_b_pins[] = {
3158 /* SCIF_CLK */
3159 RCAR_GP_PIN(5, 7),
3160};
3161
3162static const unsigned int scif_clk_b_mux[] = {
3163 SCIF_CLK_B_MARK,
3164};
3165
3166/* - SDHI0 ------------------------------------------------------------------ */
Marek Vasut6af234c2023-01-26 21:01:45 +01003167static const unsigned int sdhi0_data_pins[] = {
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003168 /* D[0:3] */
3169 RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
3170 RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 5),
3171};
3172
Marek Vasut6af234c2023-01-26 21:01:45 +01003173static const unsigned int sdhi0_data_mux[] = {
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003174 SD0_DAT0_MARK, SD0_DAT1_MARK,
3175 SD0_DAT2_MARK, SD0_DAT3_MARK,
3176};
3177
3178static const unsigned int sdhi0_ctrl_pins[] = {
3179 /* CLK, CMD */
3180 RCAR_GP_PIN(3, 0), RCAR_GP_PIN(3, 1),
3181};
3182
3183static const unsigned int sdhi0_ctrl_mux[] = {
3184 SD0_CLK_MARK, SD0_CMD_MARK,
3185};
3186
3187static const unsigned int sdhi0_cd_pins[] = {
3188 /* CD */
3189 RCAR_GP_PIN(3, 12),
3190};
3191
3192static const unsigned int sdhi0_cd_mux[] = {
3193 SD0_CD_MARK,
3194};
3195
3196static const unsigned int sdhi0_wp_pins[] = {
3197 /* WP */
3198 RCAR_GP_PIN(3, 13),
3199};
3200
3201static const unsigned int sdhi0_wp_mux[] = {
3202 SD0_WP_MARK,
3203};
3204
3205/* - SDHI1 ------------------------------------------------------------------ */
Marek Vasut6af234c2023-01-26 21:01:45 +01003206static const unsigned int sdhi1_data_pins[] = {
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003207 /* D[0:3] */
3208 RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
3209 RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
3210};
3211
Marek Vasut6af234c2023-01-26 21:01:45 +01003212static const unsigned int sdhi1_data_mux[] = {
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003213 SD1_DAT0_MARK, SD1_DAT1_MARK,
3214 SD1_DAT2_MARK, SD1_DAT3_MARK,
3215};
3216
3217static const unsigned int sdhi1_ctrl_pins[] = {
3218 /* CLK, CMD */
3219 RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 7),
3220};
3221
3222static const unsigned int sdhi1_ctrl_mux[] = {
3223 SD1_CLK_MARK, SD1_CMD_MARK,
3224};
3225
3226static const unsigned int sdhi1_cd_pins[] = {
3227 /* CD */
3228 RCAR_GP_PIN(3, 14),
3229};
3230
3231static const unsigned int sdhi1_cd_mux[] = {
3232 SD1_CD_MARK,
3233};
3234
3235static const unsigned int sdhi1_wp_pins[] = {
3236 /* WP */
3237 RCAR_GP_PIN(3, 15),
3238};
3239
3240static const unsigned int sdhi1_wp_mux[] = {
3241 SD1_WP_MARK,
3242};
3243
3244/* - SDHI3 ------------------------------------------------------------------ */
Marek Vasut6af234c2023-01-26 21:01:45 +01003245static const unsigned int sdhi3_data_pins[] = {
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003246 /* D[0:7] */
3247 RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 3),
3248 RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 5),
3249 RCAR_GP_PIN(4, 6), RCAR_GP_PIN(4, 7),
3250 RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 9),
3251};
3252
Marek Vasut6af234c2023-01-26 21:01:45 +01003253static const unsigned int sdhi3_data_mux[] = {
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003254 SD3_DAT0_MARK, SD3_DAT1_MARK,
3255 SD3_DAT2_MARK, SD3_DAT3_MARK,
3256 SD3_DAT4_MARK, SD3_DAT5_MARK,
3257 SD3_DAT6_MARK, SD3_DAT7_MARK,
3258};
3259
3260static const unsigned int sdhi3_ctrl_pins[] = {
3261 /* CLK, CMD */
3262 RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1),
3263};
3264
3265static const unsigned int sdhi3_ctrl_mux[] = {
3266 SD3_CLK_MARK, SD3_CMD_MARK,
3267};
3268
3269static const unsigned int sdhi3_cd_pins[] = {
3270 /* CD */
3271 RCAR_GP_PIN(3, 12),
3272};
3273
3274static const unsigned int sdhi3_cd_mux[] = {
3275 SD3_CD_MARK,
3276};
3277
3278static const unsigned int sdhi3_wp_pins[] = {
3279 /* WP */
3280 RCAR_GP_PIN(3, 13),
3281};
3282
3283static const unsigned int sdhi3_wp_mux[] = {
3284 SD3_WP_MARK,
3285};
3286
3287static const unsigned int sdhi3_ds_pins[] = {
3288 /* DS */
3289 RCAR_GP_PIN(4, 10),
3290};
3291
3292static const unsigned int sdhi3_ds_mux[] = {
3293 SD3_DS_MARK,
3294};
3295
3296/* - SSI -------------------------------------------------------------------- */
3297static const unsigned int ssi0_data_pins[] = {
3298 /* SDATA */
3299 RCAR_GP_PIN(6, 2),
3300};
3301
3302static const unsigned int ssi0_data_mux[] = {
3303 SSI_SDATA0_MARK,
3304};
3305
3306static const unsigned int ssi01239_ctrl_pins[] = {
3307 /* SCK, WS */
3308 RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 1),
3309};
3310
3311static const unsigned int ssi01239_ctrl_mux[] = {
3312 SSI_SCK01239_MARK, SSI_WS01239_MARK,
3313};
3314
3315static const unsigned int ssi1_data_pins[] = {
3316 /* SDATA */
3317 RCAR_GP_PIN(6, 3),
3318};
3319
3320static const unsigned int ssi1_data_mux[] = {
3321 SSI_SDATA1_MARK,
3322};
3323
3324static const unsigned int ssi1_ctrl_pins[] = {
3325 /* SCK, WS */
3326 RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 15),
3327};
3328
3329static const unsigned int ssi1_ctrl_mux[] = {
3330 SSI_SCK1_MARK, SSI_WS1_MARK,
3331};
3332
3333static const unsigned int ssi2_data_pins[] = {
3334 /* SDATA */
3335 RCAR_GP_PIN(6, 4),
3336};
3337
3338static const unsigned int ssi2_data_mux[] = {
3339 SSI_SDATA2_MARK,
3340};
3341
3342static const unsigned int ssi2_ctrl_a_pins[] = {
3343 /* SCK, WS */
3344 RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
3345};
3346
3347static const unsigned int ssi2_ctrl_a_mux[] = {
3348 SSI_SCK2_A_MARK, SSI_WS2_A_MARK,
3349};
3350
3351static const unsigned int ssi2_ctrl_b_pins[] = {
3352 /* SCK, WS */
3353 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
3354};
3355
3356static const unsigned int ssi2_ctrl_b_mux[] = {
3357 SSI_SCK2_B_MARK, SSI_WS2_B_MARK,
3358};
3359
3360static const unsigned int ssi3_data_pins[] = {
3361 /* SDATA */
3362 RCAR_GP_PIN(6, 7),
3363};
3364
3365static const unsigned int ssi3_data_mux[] = {
3366 SSI_SDATA3_MARK,
3367};
3368
3369static const unsigned int ssi349_ctrl_pins[] = {
3370 /* SCK, WS */
3371 RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 6),
3372};
3373
3374static const unsigned int ssi349_ctrl_mux[] = {
3375 SSI_SCK349_MARK, SSI_WS349_MARK,
3376};
3377
3378static const unsigned int ssi4_data_pins[] = {
3379 /* SDATA */
3380 RCAR_GP_PIN(6, 10),
3381};
3382
3383static const unsigned int ssi4_data_mux[] = {
3384 SSI_SDATA4_MARK,
3385};
3386
3387static const unsigned int ssi4_ctrl_pins[] = {
3388 /* SCK, WS */
3389 RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 15),
3390};
3391
3392static const unsigned int ssi4_ctrl_mux[] = {
3393 SSI_SCK4_MARK, SSI_WS4_MARK,
3394};
3395
3396static const unsigned int ssi5_data_pins[] = {
3397 /* SDATA */
3398 RCAR_GP_PIN(6, 13),
3399};
3400
3401static const unsigned int ssi5_data_mux[] = {
3402 SSI_SDATA5_MARK,
3403};
3404
3405static const unsigned int ssi5_ctrl_pins[] = {
3406 /* SCK, WS */
3407 RCAR_GP_PIN(6, 11), RCAR_GP_PIN(6, 12),
3408};
3409
3410static const unsigned int ssi5_ctrl_mux[] = {
3411 SSI_SCK5_MARK, SSI_WS5_MARK,
3412};
3413
3414static const unsigned int ssi6_data_pins[] = {
3415 /* SDATA */
3416 RCAR_GP_PIN(6, 16),
3417};
3418
3419static const unsigned int ssi6_data_mux[] = {
3420 SSI_SDATA6_MARK,
3421};
3422
3423static const unsigned int ssi6_ctrl_pins[] = {
3424 /* SCK, WS */
3425 RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15),
3426};
3427
3428static const unsigned int ssi6_ctrl_mux[] = {
3429 SSI_SCK6_MARK, SSI_WS6_MARK,
3430};
3431
3432static const unsigned int ssi7_data_pins[] = {
3433 /* SDATA */
3434 RCAR_GP_PIN(5, 12),
3435};
3436
3437static const unsigned int ssi7_data_mux[] = {
3438 SSI_SDATA7_MARK,
3439};
3440
3441static const unsigned int ssi78_ctrl_pins[] = {
3442 /* SCK, WS */
3443 RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 11),
3444};
3445
3446static const unsigned int ssi78_ctrl_mux[] = {
3447 SSI_SCK78_MARK, SSI_WS78_MARK,
3448};
3449
3450static const unsigned int ssi8_data_pins[] = {
3451 /* SDATA */
3452 RCAR_GP_PIN(5, 13),
3453};
3454
3455static const unsigned int ssi8_data_mux[] = {
3456 SSI_SDATA8_MARK,
3457};
3458
3459static const unsigned int ssi9_data_pins[] = {
3460 /* SDATA */
3461 RCAR_GP_PIN(5, 16),
3462};
3463
3464static const unsigned int ssi9_data_mux[] = {
3465 SSI_SDATA9_MARK,
3466};
3467
3468static const unsigned int ssi9_ctrl_a_pins[] = {
3469 /* SCK, WS */
3470 RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 10),
3471};
3472
3473static const unsigned int ssi9_ctrl_a_mux[] = {
3474 SSI_SCK9_A_MARK, SSI_WS9_A_MARK,
3475};
3476
3477static const unsigned int ssi9_ctrl_b_pins[] = {
3478 /* SCK, WS */
3479 RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
3480};
3481
3482static const unsigned int ssi9_ctrl_b_mux[] = {
3483 SSI_SCK9_B_MARK, SSI_WS9_B_MARK,
3484};
3485
3486/* - TMU -------------------------------------------------------------------- */
3487static const unsigned int tmu_tclk1_a_pins[] = {
3488 /* TCLK */
3489 RCAR_GP_PIN(3, 12),
3490};
3491
3492static const unsigned int tmu_tclk1_a_mux[] = {
3493 TCLK1_A_MARK,
3494};
3495
3496static const unsigned int tmu_tclk1_b_pins[] = {
3497 /* TCLK */
3498 RCAR_GP_PIN(5, 17),
3499};
3500
3501static const unsigned int tmu_tclk1_b_mux[] = {
3502 TCLK1_B_MARK,
3503};
3504
3505static const unsigned int tmu_tclk2_a_pins[] = {
3506 /* TCLK */
3507 RCAR_GP_PIN(3, 13),
3508};
3509
3510static const unsigned int tmu_tclk2_a_mux[] = {
3511 TCLK2_A_MARK,
3512};
3513
3514static const unsigned int tmu_tclk2_b_pins[] = {
3515 /* TCLK */
3516 RCAR_GP_PIN(5, 18),
3517};
3518
3519static const unsigned int tmu_tclk2_b_mux[] = {
3520 TCLK2_B_MARK,
3521};
3522
3523/* - USB0 ------------------------------------------------------------------- */
3524static const unsigned int usb0_a_pins[] = {
3525 /* PWEN, OVC */
3526 RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 9),
3527};
3528
3529static const unsigned int usb0_a_mux[] = {
3530 USB0_PWEN_A_MARK, USB0_OVC_A_MARK,
3531};
3532
3533static const unsigned int usb0_b_pins[] = {
3534 /* PWEN, OVC */
3535 RCAR_GP_PIN(6, 11), RCAR_GP_PIN(6, 12),
3536};
3537
3538static const unsigned int usb0_b_mux[] = {
3539 USB0_PWEN_B_MARK, USB0_OVC_B_MARK,
3540};
3541
3542static const unsigned int usb0_id_pins[] = {
3543 /* ID */
3544 RCAR_GP_PIN(5, 0)
3545};
3546
3547static const unsigned int usb0_id_mux[] = {
Hiroyuki Yokoyama947e20a2019-02-13 14:23:46 +09003548 USB0_ID_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003549};
3550
3551/* - USB30 ------------------------------------------------------------------ */
3552static const unsigned int usb30_pins[] = {
3553 /* PWEN, OVC */
3554 RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 9),
3555};
3556
3557static const unsigned int usb30_mux[] = {
3558 USB30_PWEN_MARK, USB30_OVC_MARK,
3559};
3560
3561static const unsigned int usb30_id_pins[] = {
3562 /* ID */
3563 RCAR_GP_PIN(5, 0),
3564};
3565
3566static const unsigned int usb30_id_mux[] = {
3567 USB3HS0_ID_MARK,
3568};
3569
3570/* - VIN4 ------------------------------------------------------------------- */
Marek Vasut88e81ec2019-03-04 22:39:51 +01003571static const unsigned int vin4_data18_a_pins[] = {
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003572 RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9),
3573 RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
3574 RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003575 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
3576 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 10),
3577 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 14),
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003578 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16),
3579 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
3580 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(0, 1),
3581};
3582
Marek Vasut88e81ec2019-03-04 22:39:51 +01003583static const unsigned int vin4_data18_a_mux[] = {
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003584 VI4_DATA2_A_MARK, VI4_DATA3_A_MARK,
3585 VI4_DATA4_A_MARK, VI4_DATA5_A_MARK,
3586 VI4_DATA6_A_MARK, VI4_DATA7_A_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003587 VI4_DATA10_MARK, VI4_DATA11_MARK,
3588 VI4_DATA12_MARK, VI4_DATA13_MARK,
3589 VI4_DATA14_MARK, VI4_DATA15_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003590 VI4_DATA18_MARK, VI4_DATA19_MARK,
3591 VI4_DATA20_MARK, VI4_DATA21_MARK,
3592 VI4_DATA22_MARK, VI4_DATA23_MARK,
3593};
3594
Marek Vasut6af234c2023-01-26 21:01:45 +01003595static const unsigned int vin4_data_a_pins[] = {
3596 RCAR_GP_PIN(2, 6), RCAR_GP_PIN(2, 7),
3597 RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9),
3598 RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
3599 RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
3600 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 5),
3601 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
3602 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 10),
3603 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 14),
3604 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 12),
3605 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16),
3606 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
3607 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(0, 1),
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003608};
3609
Marek Vasut6af234c2023-01-26 21:01:45 +01003610static const unsigned int vin4_data_a_mux[] = {
3611 VI4_DATA0_A_MARK, VI4_DATA1_A_MARK,
3612 VI4_DATA2_A_MARK, VI4_DATA3_A_MARK,
3613 VI4_DATA4_A_MARK, VI4_DATA5_A_MARK,
3614 VI4_DATA6_A_MARK, VI4_DATA7_A_MARK,
3615 VI4_DATA8_MARK, VI4_DATA9_MARK,
3616 VI4_DATA10_MARK, VI4_DATA11_MARK,
3617 VI4_DATA12_MARK, VI4_DATA13_MARK,
3618 VI4_DATA14_MARK, VI4_DATA15_MARK,
3619 VI4_DATA16_MARK, VI4_DATA17_MARK,
3620 VI4_DATA18_MARK, VI4_DATA19_MARK,
3621 VI4_DATA20_MARK, VI4_DATA21_MARK,
3622 VI4_DATA22_MARK, VI4_DATA23_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003623};
3624
Marek Vasut88e81ec2019-03-04 22:39:51 +01003625static const unsigned int vin4_data18_b_pins[] = {
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003626 RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 22),
3627 RCAR_GP_PIN(0, 5), RCAR_GP_PIN(0, 6),
3628 RCAR_GP_PIN(0, 16), RCAR_GP_PIN(0, 17),
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003629 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
3630 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 10),
3631 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 14),
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003632 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16),
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003633 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
3634 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(0, 1),
3635};
3636
Marek Vasut88e81ec2019-03-04 22:39:51 +01003637static const unsigned int vin4_data18_b_mux[] = {
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003638 VI4_DATA2_B_MARK, VI4_DATA3_B_MARK,
3639 VI4_DATA4_B_MARK, VI4_DATA5_B_MARK,
3640 VI4_DATA6_B_MARK, VI4_DATA7_B_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003641 VI4_DATA10_MARK, VI4_DATA11_MARK,
3642 VI4_DATA12_MARK, VI4_DATA13_MARK,
3643 VI4_DATA14_MARK, VI4_DATA15_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003644 VI4_DATA18_MARK, VI4_DATA19_MARK,
3645 VI4_DATA20_MARK, VI4_DATA21_MARK,
3646 VI4_DATA22_MARK, VI4_DATA23_MARK,
3647};
3648
Marek Vasut6af234c2023-01-26 21:01:45 +01003649static const unsigned int vin4_data_b_pins[] = {
3650 RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
3651 RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 22),
3652 RCAR_GP_PIN(0, 5), RCAR_GP_PIN(0, 6),
3653 RCAR_GP_PIN(0, 16), RCAR_GP_PIN(0, 17),
3654 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 5),
3655 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
3656 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 10),
3657 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 14),
3658 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 12),
3659 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16),
3660 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
3661 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(0, 1),
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003662};
3663
Marek Vasut6af234c2023-01-26 21:01:45 +01003664static const unsigned int vin4_data_b_mux[] = {
3665 VI4_DATA0_B_MARK, VI4_DATA1_B_MARK,
3666 VI4_DATA2_B_MARK, VI4_DATA3_B_MARK,
3667 VI4_DATA4_B_MARK, VI4_DATA5_B_MARK,
3668 VI4_DATA6_B_MARK, VI4_DATA7_B_MARK,
3669 VI4_DATA8_MARK, VI4_DATA9_MARK,
3670 VI4_DATA10_MARK, VI4_DATA11_MARK,
3671 VI4_DATA12_MARK, VI4_DATA13_MARK,
3672 VI4_DATA14_MARK, VI4_DATA15_MARK,
3673 VI4_DATA16_MARK, VI4_DATA17_MARK,
3674 VI4_DATA18_MARK, VI4_DATA19_MARK,
3675 VI4_DATA20_MARK, VI4_DATA21_MARK,
3676 VI4_DATA22_MARK, VI4_DATA23_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003677};
3678
3679static const unsigned int vin4_sync_pins[] = {
3680 /* HSYNC, VSYNC */
3681 RCAR_GP_PIN(2, 25), RCAR_GP_PIN(2, 24),
3682};
3683
3684static const unsigned int vin4_sync_mux[] = {
3685 VI4_HSYNC_N_MARK, VI4_VSYNC_N_MARK,
3686};
3687
3688static const unsigned int vin4_field_pins[] = {
3689 RCAR_GP_PIN(2, 23),
3690};
3691
3692static const unsigned int vin4_field_mux[] = {
3693 VI4_FIELD_MARK,
3694};
3695
3696static const unsigned int vin4_clkenb_pins[] = {
3697 RCAR_GP_PIN(1, 2),
3698};
3699
3700static const unsigned int vin4_clkenb_mux[] = {
3701 VI4_CLKENB_MARK,
3702};
3703
3704static const unsigned int vin4_clk_pins[] = {
3705 RCAR_GP_PIN(2, 22),
3706};
3707
3708static const unsigned int vin4_clk_mux[] = {
3709 VI4_CLK_MARK,
3710};
3711
3712/* - VIN5 ------------------------------------------------------------------- */
Marek Vasut6af234c2023-01-26 21:01:45 +01003713static const unsigned int vin5_data_a_pins[] = {
3714 RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 2),
3715 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 12),
3716 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16),
3717 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
3718 RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
3719 RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 11),
3720 RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 10),
3721 RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 3),
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003722};
3723
Marek Vasut6af234c2023-01-26 21:01:45 +01003724static const unsigned int vin5_data_a_mux[] = {
3725 VI5_DATA0_A_MARK, VI5_DATA1_A_MARK,
3726 VI5_DATA2_A_MARK, VI5_DATA3_A_MARK,
3727 VI5_DATA4_A_MARK, VI5_DATA5_A_MARK,
3728 VI5_DATA6_A_MARK, VI5_DATA7_A_MARK,
3729 VI5_DATA8_A_MARK, VI5_DATA9_A_MARK,
3730 VI5_DATA10_A_MARK, VI5_DATA11_A_MARK,
3731 VI5_DATA12_A_MARK, VI5_DATA13_A_MARK,
3732 VI5_DATA14_A_MARK, VI5_DATA15_A_MARK,
Marek Vasuteb13e0f2018-06-10 16:05:48 +02003733};
3734
3735static const unsigned int vin5_data8_b_pins[] = {
3736 RCAR_GP_PIN(2, 23), RCAR_GP_PIN(0, 4),
3737 RCAR_GP_PIN(0, 7), RCAR_GP_PIN(0, 12),
3738 RCAR_GP_PIN(0, 13), RCAR_GP_PIN(0, 14),
3739 RCAR_GP_PIN(0, 16), RCAR_GP_PIN(0, 17),
3740};
3741
3742static const unsigned int vin5_data8_b_mux[] = {
3743 VI5_DATA0_B_MARK, VI5_DATA1_B_MARK,
3744 VI5_DATA2_B_MARK, VI5_DATA3_B_MARK,
3745 VI5_DATA4_B_MARK, VI5_DATA5_B_MARK,
3746 VI5_DATA6_B_MARK, VI5_DATA7_B_MARK,
3747};
3748
3749static const unsigned int vin5_sync_a_pins[] = {
3750 /* HSYNC_N, VSYNC_N */
3751 RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 9),
3752};
3753
3754static const unsigned int vin5_sync_a_mux[] = {
3755 VI5_HSYNC_N_A_MARK, VI5_VSYNC_N_A_MARK,
3756};
3757
3758static const unsigned int vin5_field_a_pins[] = {
3759 RCAR_GP_PIN(1, 10),
3760};
3761
3762static const unsigned int vin5_field_a_mux[] = {
3763 VI5_FIELD_A_MARK,
3764};
3765
3766static const unsigned int vin5_clkenb_a_pins[] = {
3767 RCAR_GP_PIN(0, 1),
3768};
3769
3770static const unsigned int vin5_clkenb_a_mux[] = {
3771 VI5_CLKENB_A_MARK,
3772};
3773
3774static const unsigned int vin5_clk_a_pins[] = {
3775 RCAR_GP_PIN(1, 0),
3776};
3777
3778static const unsigned int vin5_clk_a_mux[] = {
3779 VI5_CLK_A_MARK,
3780};
3781
3782static const unsigned int vin5_clk_b_pins[] = {
3783 RCAR_GP_PIN(2, 22),
3784};
3785
3786static const unsigned int vin5_clk_b_mux[] = {
3787 VI5_CLK_B_MARK,
3788};
3789
Marek Vasut88e81ec2019-03-04 22:39:51 +01003790static const struct {
Marek Vasut6af234c2023-01-26 21:01:45 +01003791 struct sh_pfc_pin_group common[261];
Lad Prabhakar14c9b042021-03-15 22:24:03 +00003792#ifdef CONFIG_PINCTRL_PFC_R8A77990
Marek Vasut6af234c2023-01-26 21:01:45 +01003793 struct sh_pfc_pin_group automotive[22];
Lad Prabhakar14c9b042021-03-15 22:24:03 +00003794#endif
Marek Vasut88e81ec2019-03-04 22:39:51 +01003795} pinmux_groups = {
3796 .common = {
3797 SH_PFC_PIN_GROUP(audio_clk_a),
3798 SH_PFC_PIN_GROUP(audio_clk_b_a),
3799 SH_PFC_PIN_GROUP(audio_clk_b_b),
3800 SH_PFC_PIN_GROUP(audio_clk_b_c),
3801 SH_PFC_PIN_GROUP(audio_clk_c_a),
3802 SH_PFC_PIN_GROUP(audio_clk_c_b),
3803 SH_PFC_PIN_GROUP(audio_clk_c_c),
3804 SH_PFC_PIN_GROUP(audio_clkout_a),
3805 SH_PFC_PIN_GROUP(audio_clkout_b),
3806 SH_PFC_PIN_GROUP(audio_clkout1_a),
3807 SH_PFC_PIN_GROUP(audio_clkout1_b),
3808 SH_PFC_PIN_GROUP(audio_clkout1_c),
3809 SH_PFC_PIN_GROUP(audio_clkout2_a),
3810 SH_PFC_PIN_GROUP(audio_clkout2_b),
3811 SH_PFC_PIN_GROUP(audio_clkout2_c),
3812 SH_PFC_PIN_GROUP(audio_clkout3_a),
3813 SH_PFC_PIN_GROUP(audio_clkout3_b),
3814 SH_PFC_PIN_GROUP(audio_clkout3_c),
3815 SH_PFC_PIN_GROUP(avb_link),
3816 SH_PFC_PIN_GROUP(avb_magic),
3817 SH_PFC_PIN_GROUP(avb_phy_int),
3818 SH_PFC_PIN_GROUP(avb_mii),
3819 SH_PFC_PIN_GROUP(avb_avtp_pps),
Lad Prabhakare4db7392020-10-14 16:45:59 +01003820 SH_PFC_PIN_GROUP(avb_avtp_match),
3821 SH_PFC_PIN_GROUP(avb_avtp_capture),
Marek Vasut88e81ec2019-03-04 22:39:51 +01003822 SH_PFC_PIN_GROUP(can0_data),
3823 SH_PFC_PIN_GROUP(can1_data),
3824 SH_PFC_PIN_GROUP(can_clk),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02003825 SH_PFC_PIN_GROUP(canfd0_data),
3826 SH_PFC_PIN_GROUP(canfd1_data),
Marek Vasut88e81ec2019-03-04 22:39:51 +01003827 SH_PFC_PIN_GROUP(du_rgb666),
3828 SH_PFC_PIN_GROUP(du_rgb888),
3829 SH_PFC_PIN_GROUP(du_clk_in_0),
3830 SH_PFC_PIN_GROUP(du_clk_in_1),
3831 SH_PFC_PIN_GROUP(du_clk_out_0),
3832 SH_PFC_PIN_GROUP(du_sync),
3833 SH_PFC_PIN_GROUP(du_disp_cde),
3834 SH_PFC_PIN_GROUP(du_cde),
3835 SH_PFC_PIN_GROUP(du_disp),
3836 SH_PFC_PIN_GROUP(hscif0_data_a),
3837 SH_PFC_PIN_GROUP(hscif0_clk_a),
3838 SH_PFC_PIN_GROUP(hscif0_ctrl_a),
3839 SH_PFC_PIN_GROUP(hscif0_data_b),
3840 SH_PFC_PIN_GROUP(hscif0_clk_b),
3841 SH_PFC_PIN_GROUP(hscif1_data_a),
3842 SH_PFC_PIN_GROUP(hscif1_clk_a),
3843 SH_PFC_PIN_GROUP(hscif1_data_b),
3844 SH_PFC_PIN_GROUP(hscif1_clk_b),
3845 SH_PFC_PIN_GROUP(hscif1_ctrl_b),
3846 SH_PFC_PIN_GROUP(hscif2_data_a),
3847 SH_PFC_PIN_GROUP(hscif2_clk_a),
3848 SH_PFC_PIN_GROUP(hscif2_ctrl_a),
3849 SH_PFC_PIN_GROUP(hscif2_data_b),
3850 SH_PFC_PIN_GROUP(hscif3_data_a),
3851 SH_PFC_PIN_GROUP(hscif3_data_b),
3852 SH_PFC_PIN_GROUP(hscif3_clk_b),
3853 SH_PFC_PIN_GROUP(hscif3_data_c),
3854 SH_PFC_PIN_GROUP(hscif3_clk_c),
3855 SH_PFC_PIN_GROUP(hscif3_ctrl_c),
3856 SH_PFC_PIN_GROUP(hscif3_data_d),
3857 SH_PFC_PIN_GROUP(hscif3_data_e),
3858 SH_PFC_PIN_GROUP(hscif3_ctrl_e),
3859 SH_PFC_PIN_GROUP(hscif4_data_a),
3860 SH_PFC_PIN_GROUP(hscif4_clk_a),
3861 SH_PFC_PIN_GROUP(hscif4_ctrl_a),
3862 SH_PFC_PIN_GROUP(hscif4_data_b),
3863 SH_PFC_PIN_GROUP(hscif4_clk_b),
3864 SH_PFC_PIN_GROUP(hscif4_data_c),
3865 SH_PFC_PIN_GROUP(hscif4_data_d),
3866 SH_PFC_PIN_GROUP(hscif4_data_e),
3867 SH_PFC_PIN_GROUP(i2c1_a),
3868 SH_PFC_PIN_GROUP(i2c1_b),
3869 SH_PFC_PIN_GROUP(i2c1_c),
3870 SH_PFC_PIN_GROUP(i2c1_d),
3871 SH_PFC_PIN_GROUP(i2c2_a),
3872 SH_PFC_PIN_GROUP(i2c2_b),
3873 SH_PFC_PIN_GROUP(i2c2_c),
3874 SH_PFC_PIN_GROUP(i2c2_d),
3875 SH_PFC_PIN_GROUP(i2c2_e),
3876 SH_PFC_PIN_GROUP(i2c4),
3877 SH_PFC_PIN_GROUP(i2c5),
3878 SH_PFC_PIN_GROUP(i2c6_a),
3879 SH_PFC_PIN_GROUP(i2c6_b),
3880 SH_PFC_PIN_GROUP(i2c7_a),
3881 SH_PFC_PIN_GROUP(i2c7_b),
3882 SH_PFC_PIN_GROUP(intc_ex_irq0),
3883 SH_PFC_PIN_GROUP(intc_ex_irq1),
3884 SH_PFC_PIN_GROUP(intc_ex_irq2),
3885 SH_PFC_PIN_GROUP(intc_ex_irq3),
3886 SH_PFC_PIN_GROUP(intc_ex_irq4),
3887 SH_PFC_PIN_GROUP(intc_ex_irq5),
3888 SH_PFC_PIN_GROUP(msiof0_clk),
3889 SH_PFC_PIN_GROUP(msiof0_sync),
3890 SH_PFC_PIN_GROUP(msiof0_ss1),
3891 SH_PFC_PIN_GROUP(msiof0_ss2),
3892 SH_PFC_PIN_GROUP(msiof0_txd),
3893 SH_PFC_PIN_GROUP(msiof0_rxd),
3894 SH_PFC_PIN_GROUP(msiof1_clk),
3895 SH_PFC_PIN_GROUP(msiof1_sync),
3896 SH_PFC_PIN_GROUP(msiof1_ss1),
3897 SH_PFC_PIN_GROUP(msiof1_ss2),
3898 SH_PFC_PIN_GROUP(msiof1_txd),
3899 SH_PFC_PIN_GROUP(msiof1_rxd),
3900 SH_PFC_PIN_GROUP(msiof2_clk_a),
3901 SH_PFC_PIN_GROUP(msiof2_sync_a),
3902 SH_PFC_PIN_GROUP(msiof2_ss1_a),
3903 SH_PFC_PIN_GROUP(msiof2_ss2_a),
3904 SH_PFC_PIN_GROUP(msiof2_txd_a),
3905 SH_PFC_PIN_GROUP(msiof2_rxd_a),
3906 SH_PFC_PIN_GROUP(msiof2_clk_b),
3907 SH_PFC_PIN_GROUP(msiof2_sync_b),
3908 SH_PFC_PIN_GROUP(msiof2_ss1_b),
3909 SH_PFC_PIN_GROUP(msiof2_ss2_b),
3910 SH_PFC_PIN_GROUP(msiof2_txd_b),
3911 SH_PFC_PIN_GROUP(msiof2_rxd_b),
3912 SH_PFC_PIN_GROUP(msiof3_clk_a),
3913 SH_PFC_PIN_GROUP(msiof3_sync_a),
3914 SH_PFC_PIN_GROUP(msiof3_ss1_a),
3915 SH_PFC_PIN_GROUP(msiof3_ss2_a),
3916 SH_PFC_PIN_GROUP(msiof3_txd_a),
3917 SH_PFC_PIN_GROUP(msiof3_rxd_a),
3918 SH_PFC_PIN_GROUP(msiof3_clk_b),
3919 SH_PFC_PIN_GROUP(msiof3_sync_b),
3920 SH_PFC_PIN_GROUP(msiof3_ss1_b),
3921 SH_PFC_PIN_GROUP(msiof3_txd_b),
3922 SH_PFC_PIN_GROUP(msiof3_rxd_b),
3923 SH_PFC_PIN_GROUP(pwm0_a),
3924 SH_PFC_PIN_GROUP(pwm0_b),
3925 SH_PFC_PIN_GROUP(pwm1_a),
3926 SH_PFC_PIN_GROUP(pwm1_b),
3927 SH_PFC_PIN_GROUP(pwm2_a),
3928 SH_PFC_PIN_GROUP(pwm2_b),
3929 SH_PFC_PIN_GROUP(pwm2_c),
3930 SH_PFC_PIN_GROUP(pwm3_a),
3931 SH_PFC_PIN_GROUP(pwm3_b),
3932 SH_PFC_PIN_GROUP(pwm3_c),
3933 SH_PFC_PIN_GROUP(pwm4_a),
3934 SH_PFC_PIN_GROUP(pwm4_b),
3935 SH_PFC_PIN_GROUP(pwm5_a),
3936 SH_PFC_PIN_GROUP(pwm5_b),
3937 SH_PFC_PIN_GROUP(pwm6_a),
3938 SH_PFC_PIN_GROUP(pwm6_b),
Lad Prabhakar14c9b042021-03-15 22:24:03 +00003939 SH_PFC_PIN_GROUP(qspi0_ctrl),
Marek Vasut6af234c2023-01-26 21:01:45 +01003940 SH_PFC_PIN_GROUP_SUBSET(qspi0_data2, rpc_data, 0, 2),
3941 SH_PFC_PIN_GROUP_SUBSET(qspi0_data4, rpc_data, 0, 4),
Lad Prabhakar14c9b042021-03-15 22:24:03 +00003942 SH_PFC_PIN_GROUP(qspi1_ctrl),
Marek Vasut6af234c2023-01-26 21:01:45 +01003943 SH_PFC_PIN_GROUP_SUBSET(qspi1_data2, rpc_data, 4, 2),
3944 SH_PFC_PIN_GROUP_SUBSET(qspi1_data4, rpc_data, 4, 4),
3945 BUS_DATA_PIN_GROUP(rpc_clk, 1),
3946 BUS_DATA_PIN_GROUP(rpc_clk, 2),
3947 SH_PFC_PIN_GROUP(rpc_ctrl),
3948 SH_PFC_PIN_GROUP(rpc_data),
3949 SH_PFC_PIN_GROUP(rpc_reset),
3950 SH_PFC_PIN_GROUP(rpc_int),
Marek Vasut88e81ec2019-03-04 22:39:51 +01003951 SH_PFC_PIN_GROUP(scif0_data_a),
3952 SH_PFC_PIN_GROUP(scif0_clk_a),
3953 SH_PFC_PIN_GROUP(scif0_ctrl_a),
3954 SH_PFC_PIN_GROUP(scif0_data_b),
3955 SH_PFC_PIN_GROUP(scif0_clk_b),
3956 SH_PFC_PIN_GROUP(scif1_data),
3957 SH_PFC_PIN_GROUP(scif1_clk),
3958 SH_PFC_PIN_GROUP(scif1_ctrl),
3959 SH_PFC_PIN_GROUP(scif2_data_a),
3960 SH_PFC_PIN_GROUP(scif2_clk_a),
3961 SH_PFC_PIN_GROUP(scif2_data_b),
3962 SH_PFC_PIN_GROUP(scif3_data_a),
3963 SH_PFC_PIN_GROUP(scif3_clk_a),
3964 SH_PFC_PIN_GROUP(scif3_ctrl_a),
3965 SH_PFC_PIN_GROUP(scif3_data_b),
3966 SH_PFC_PIN_GROUP(scif3_data_c),
3967 SH_PFC_PIN_GROUP(scif3_clk_c),
3968 SH_PFC_PIN_GROUP(scif4_data_a),
3969 SH_PFC_PIN_GROUP(scif4_clk_a),
3970 SH_PFC_PIN_GROUP(scif4_ctrl_a),
3971 SH_PFC_PIN_GROUP(scif4_data_b),
3972 SH_PFC_PIN_GROUP(scif4_clk_b),
3973 SH_PFC_PIN_GROUP(scif4_data_c),
3974 SH_PFC_PIN_GROUP(scif4_ctrl_c),
3975 SH_PFC_PIN_GROUP(scif5_data_a),
3976 SH_PFC_PIN_GROUP(scif5_clk_a),
3977 SH_PFC_PIN_GROUP(scif5_data_b),
3978 SH_PFC_PIN_GROUP(scif5_data_c),
3979 SH_PFC_PIN_GROUP(scif_clk_a),
3980 SH_PFC_PIN_GROUP(scif_clk_b),
Marek Vasut6af234c2023-01-26 21:01:45 +01003981 BUS_DATA_PIN_GROUP(sdhi0_data, 1),
3982 BUS_DATA_PIN_GROUP(sdhi0_data, 4),
Marek Vasut88e81ec2019-03-04 22:39:51 +01003983 SH_PFC_PIN_GROUP(sdhi0_ctrl),
3984 SH_PFC_PIN_GROUP(sdhi0_cd),
3985 SH_PFC_PIN_GROUP(sdhi0_wp),
Marek Vasut6af234c2023-01-26 21:01:45 +01003986 BUS_DATA_PIN_GROUP(sdhi1_data, 1),
3987 BUS_DATA_PIN_GROUP(sdhi1_data, 4),
Marek Vasut88e81ec2019-03-04 22:39:51 +01003988 SH_PFC_PIN_GROUP(sdhi1_ctrl),
3989 SH_PFC_PIN_GROUP(sdhi1_cd),
3990 SH_PFC_PIN_GROUP(sdhi1_wp),
Marek Vasut6af234c2023-01-26 21:01:45 +01003991 BUS_DATA_PIN_GROUP(sdhi3_data, 1),
3992 BUS_DATA_PIN_GROUP(sdhi3_data, 4),
3993 BUS_DATA_PIN_GROUP(sdhi3_data, 8),
Marek Vasut88e81ec2019-03-04 22:39:51 +01003994 SH_PFC_PIN_GROUP(sdhi3_ctrl),
3995 SH_PFC_PIN_GROUP(sdhi3_cd),
3996 SH_PFC_PIN_GROUP(sdhi3_wp),
3997 SH_PFC_PIN_GROUP(sdhi3_ds),
3998 SH_PFC_PIN_GROUP(ssi0_data),
3999 SH_PFC_PIN_GROUP(ssi01239_ctrl),
4000 SH_PFC_PIN_GROUP(ssi1_data),
4001 SH_PFC_PIN_GROUP(ssi1_ctrl),
4002 SH_PFC_PIN_GROUP(ssi2_data),
4003 SH_PFC_PIN_GROUP(ssi2_ctrl_a),
4004 SH_PFC_PIN_GROUP(ssi2_ctrl_b),
4005 SH_PFC_PIN_GROUP(ssi3_data),
4006 SH_PFC_PIN_GROUP(ssi349_ctrl),
4007 SH_PFC_PIN_GROUP(ssi4_data),
4008 SH_PFC_PIN_GROUP(ssi4_ctrl),
4009 SH_PFC_PIN_GROUP(ssi5_data),
4010 SH_PFC_PIN_GROUP(ssi5_ctrl),
4011 SH_PFC_PIN_GROUP(ssi6_data),
4012 SH_PFC_PIN_GROUP(ssi6_ctrl),
4013 SH_PFC_PIN_GROUP(ssi7_data),
4014 SH_PFC_PIN_GROUP(ssi78_ctrl),
4015 SH_PFC_PIN_GROUP(ssi8_data),
4016 SH_PFC_PIN_GROUP(ssi9_data),
4017 SH_PFC_PIN_GROUP(ssi9_ctrl_a),
4018 SH_PFC_PIN_GROUP(ssi9_ctrl_b),
4019 SH_PFC_PIN_GROUP(tmu_tclk1_a),
4020 SH_PFC_PIN_GROUP(tmu_tclk1_b),
4021 SH_PFC_PIN_GROUP(tmu_tclk2_a),
4022 SH_PFC_PIN_GROUP(tmu_tclk2_b),
4023 SH_PFC_PIN_GROUP(usb0_a),
4024 SH_PFC_PIN_GROUP(usb0_b),
4025 SH_PFC_PIN_GROUP(usb0_id),
4026 SH_PFC_PIN_GROUP(usb30),
4027 SH_PFC_PIN_GROUP(usb30_id),
Marek Vasut6af234c2023-01-26 21:01:45 +01004028 BUS_DATA_PIN_GROUP(vin4_data, 8, _a),
4029 BUS_DATA_PIN_GROUP(vin4_data, 10, _a),
4030 BUS_DATA_PIN_GROUP(vin4_data, 12, _a),
4031 BUS_DATA_PIN_GROUP(vin4_data, 16, _a),
Marek Vasut88e81ec2019-03-04 22:39:51 +01004032 SH_PFC_PIN_GROUP(vin4_data18_a),
Marek Vasut6af234c2023-01-26 21:01:45 +01004033 BUS_DATA_PIN_GROUP(vin4_data, 20, _a),
4034 BUS_DATA_PIN_GROUP(vin4_data, 24, _a),
4035 BUS_DATA_PIN_GROUP(vin4_data, 8, _b),
4036 BUS_DATA_PIN_GROUP(vin4_data, 10, _b),
4037 BUS_DATA_PIN_GROUP(vin4_data, 12, _b),
4038 BUS_DATA_PIN_GROUP(vin4_data, 16, _b),
Marek Vasut88e81ec2019-03-04 22:39:51 +01004039 SH_PFC_PIN_GROUP(vin4_data18_b),
Marek Vasut6af234c2023-01-26 21:01:45 +01004040 BUS_DATA_PIN_GROUP(vin4_data, 20, _b),
4041 BUS_DATA_PIN_GROUP(vin4_data, 24, _b),
4042 SH_PFC_PIN_GROUP_SUBSET(vin4_g8, vin4_data_a, 8, 8),
Marek Vasut88e81ec2019-03-04 22:39:51 +01004043 SH_PFC_PIN_GROUP(vin4_sync),
4044 SH_PFC_PIN_GROUP(vin4_field),
4045 SH_PFC_PIN_GROUP(vin4_clkenb),
4046 SH_PFC_PIN_GROUP(vin4_clk),
Marek Vasut6af234c2023-01-26 21:01:45 +01004047 BUS_DATA_PIN_GROUP(vin5_data, 8, _a),
4048 BUS_DATA_PIN_GROUP(vin5_data, 10, _a),
4049 BUS_DATA_PIN_GROUP(vin5_data, 12, _a),
4050 BUS_DATA_PIN_GROUP(vin5_data, 16, _a),
Marek Vasut88e81ec2019-03-04 22:39:51 +01004051 SH_PFC_PIN_GROUP(vin5_data8_b),
Marek Vasut6af234c2023-01-26 21:01:45 +01004052 SH_PFC_PIN_GROUP_SUBSET(vin5_high8, vin5_data_a, 8, 8),
Marek Vasut88e81ec2019-03-04 22:39:51 +01004053 SH_PFC_PIN_GROUP(vin5_sync_a),
4054 SH_PFC_PIN_GROUP(vin5_field_a),
4055 SH_PFC_PIN_GROUP(vin5_clkenb_a),
4056 SH_PFC_PIN_GROUP(vin5_clk_a),
4057 SH_PFC_PIN_GROUP(vin5_clk_b),
4058 },
Lad Prabhakar14c9b042021-03-15 22:24:03 +00004059#ifdef CONFIG_PINCTRL_PFC_R8A77990
Marek Vasut88e81ec2019-03-04 22:39:51 +01004060 .automotive = {
Marek Vasut88e81ec2019-03-04 22:39:51 +01004061 SH_PFC_PIN_GROUP(drif0_ctrl_a),
4062 SH_PFC_PIN_GROUP(drif0_data0_a),
4063 SH_PFC_PIN_GROUP(drif0_data1_a),
4064 SH_PFC_PIN_GROUP(drif0_ctrl_b),
4065 SH_PFC_PIN_GROUP(drif0_data0_b),
4066 SH_PFC_PIN_GROUP(drif0_data1_b),
4067 SH_PFC_PIN_GROUP(drif1_ctrl),
4068 SH_PFC_PIN_GROUP(drif1_data0),
4069 SH_PFC_PIN_GROUP(drif1_data1),
4070 SH_PFC_PIN_GROUP(drif2_ctrl_a),
4071 SH_PFC_PIN_GROUP(drif2_data0_a),
4072 SH_PFC_PIN_GROUP(drif2_data1_a),
4073 SH_PFC_PIN_GROUP(drif2_ctrl_b),
4074 SH_PFC_PIN_GROUP(drif2_data0_b),
4075 SH_PFC_PIN_GROUP(drif2_data1_b),
4076 SH_PFC_PIN_GROUP(drif3_ctrl_a),
4077 SH_PFC_PIN_GROUP(drif3_data0_a),
4078 SH_PFC_PIN_GROUP(drif3_data1_a),
4079 SH_PFC_PIN_GROUP(drif3_ctrl_b),
4080 SH_PFC_PIN_GROUP(drif3_data0_b),
4081 SH_PFC_PIN_GROUP(drif3_data1_b),
Marek Vasut6af234c2023-01-26 21:01:45 +01004082 SH_PFC_PIN_GROUP(mlb_3pin),
Marek Vasut88e81ec2019-03-04 22:39:51 +01004083 }
Lad Prabhakar14c9b042021-03-15 22:24:03 +00004084#endif /* CONFIG_PINCTRL_PFC_R8A77990 */
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004085};
4086
4087static const char * const audio_clk_groups[] = {
4088 "audio_clk_a",
4089 "audio_clk_b_a",
4090 "audio_clk_b_b",
4091 "audio_clk_b_c",
4092 "audio_clk_c_a",
4093 "audio_clk_c_b",
4094 "audio_clk_c_c",
4095 "audio_clkout_a",
4096 "audio_clkout_b",
4097 "audio_clkout1_a",
4098 "audio_clkout1_b",
4099 "audio_clkout1_c",
4100 "audio_clkout2_a",
4101 "audio_clkout2_b",
4102 "audio_clkout2_c",
4103 "audio_clkout3_a",
4104 "audio_clkout3_b",
4105 "audio_clkout3_c",
4106};
4107
4108static const char * const avb_groups[] = {
4109 "avb_link",
4110 "avb_magic",
4111 "avb_phy_int",
4112 "avb_mii",
4113 "avb_avtp_pps",
Lad Prabhakare4db7392020-10-14 16:45:59 +01004114 "avb_avtp_match",
4115 "avb_avtp_capture",
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004116};
4117
4118static const char * const can0_groups[] = {
4119 "can0_data",
4120};
4121
4122static const char * const can1_groups[] = {
4123 "can1_data",
4124};
4125
4126static const char * const can_clk_groups[] = {
4127 "can_clk",
4128};
4129
4130static const char * const canfd0_groups[] = {
4131 "canfd0_data",
4132};
4133
4134static const char * const canfd1_groups[] = {
4135 "canfd1_data",
4136};
4137
Lad Prabhakar14c9b042021-03-15 22:24:03 +00004138#ifdef CONFIG_PINCTRL_PFC_R8A77990
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004139static const char * const drif0_groups[] = {
4140 "drif0_ctrl_a",
4141 "drif0_data0_a",
4142 "drif0_data1_a",
4143 "drif0_ctrl_b",
4144 "drif0_data0_b",
4145 "drif0_data1_b",
4146};
4147
4148static const char * const drif1_groups[] = {
4149 "drif1_ctrl",
4150 "drif1_data0",
4151 "drif1_data1",
4152};
4153
4154static const char * const drif2_groups[] = {
4155 "drif2_ctrl_a",
4156 "drif2_data0_a",
4157 "drif2_data1_a",
4158 "drif2_ctrl_b",
4159 "drif2_data0_b",
4160 "drif2_data1_b",
4161};
4162
4163static const char * const drif3_groups[] = {
4164 "drif3_ctrl_a",
4165 "drif3_data0_a",
4166 "drif3_data1_a",
4167 "drif3_ctrl_b",
4168 "drif3_data0_b",
4169 "drif3_data1_b",
4170};
Lad Prabhakar14c9b042021-03-15 22:24:03 +00004171#endif /* CONFIG_PINCTRL_PFC_R8A77990 */
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004172
4173static const char * const du_groups[] = {
4174 "du_rgb666",
4175 "du_rgb888",
Marek Vasut88e81ec2019-03-04 22:39:51 +01004176 "du_clk_in_0",
4177 "du_clk_in_1",
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004178 "du_clk_out_0",
4179 "du_sync",
Marek Vasut88e81ec2019-03-04 22:39:51 +01004180 "du_disp_cde",
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004181 "du_cde",
4182 "du_disp",
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004183};
4184
4185static const char * const hscif0_groups[] = {
4186 "hscif0_data_a",
4187 "hscif0_clk_a",
4188 "hscif0_ctrl_a",
4189 "hscif0_data_b",
4190 "hscif0_clk_b",
4191};
4192
4193static const char * const hscif1_groups[] = {
4194 "hscif1_data_a",
4195 "hscif1_clk_a",
4196 "hscif1_data_b",
4197 "hscif1_clk_b",
4198 "hscif1_ctrl_b",
4199};
4200
4201static const char * const hscif2_groups[] = {
4202 "hscif2_data_a",
4203 "hscif2_clk_a",
4204 "hscif2_ctrl_a",
4205 "hscif2_data_b",
4206};
4207
4208static const char * const hscif3_groups[] = {
4209 "hscif3_data_a",
4210 "hscif3_data_b",
4211 "hscif3_clk_b",
4212 "hscif3_data_c",
4213 "hscif3_clk_c",
4214 "hscif3_ctrl_c",
4215 "hscif3_data_d",
4216 "hscif3_data_e",
4217 "hscif3_ctrl_e",
4218};
4219
4220static const char * const hscif4_groups[] = {
4221 "hscif4_data_a",
4222 "hscif4_clk_a",
4223 "hscif4_ctrl_a",
4224 "hscif4_data_b",
4225 "hscif4_clk_b",
4226 "hscif4_data_c",
4227 "hscif4_data_d",
4228 "hscif4_data_e",
4229};
4230
4231static const char * const i2c1_groups[] = {
4232 "i2c1_a",
4233 "i2c1_b",
4234 "i2c1_c",
4235 "i2c1_d",
4236};
4237
4238static const char * const i2c2_groups[] = {
4239 "i2c2_a",
4240 "i2c2_b",
4241 "i2c2_c",
4242 "i2c2_d",
4243 "i2c2_e",
4244};
4245
4246static const char * const i2c4_groups[] = {
4247 "i2c4",
4248};
4249
4250static const char * const i2c5_groups[] = {
4251 "i2c5",
4252};
4253
4254static const char * const i2c6_groups[] = {
4255 "i2c6_a",
4256 "i2c6_b",
4257};
4258
4259static const char * const i2c7_groups[] = {
4260 "i2c7_a",
4261 "i2c7_b",
4262};
4263
4264static const char * const intc_ex_groups[] = {
4265 "intc_ex_irq0",
Marek Vasut88e81ec2019-03-04 22:39:51 +01004266 "intc_ex_irq1",
4267 "intc_ex_irq2",
4268 "intc_ex_irq3",
4269 "intc_ex_irq4",
4270 "intc_ex_irq5",
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004271};
4272
Marek Vasut6af234c2023-01-26 21:01:45 +01004273#ifdef CONFIG_PINCTRL_PFC_R8A77990
4274static const char * const mlb_3pin_groups[] = {
4275 "mlb_3pin",
4276};
4277#endif /* CONFIG_PINCTRL_PFC_R8A77990 */
4278
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004279static const char * const msiof0_groups[] = {
4280 "msiof0_clk",
4281 "msiof0_sync",
4282 "msiof0_ss1",
4283 "msiof0_ss2",
4284 "msiof0_txd",
4285 "msiof0_rxd",
4286};
4287
4288static const char * const msiof1_groups[] = {
4289 "msiof1_clk",
4290 "msiof1_sync",
4291 "msiof1_ss1",
4292 "msiof1_ss2",
4293 "msiof1_txd",
4294 "msiof1_rxd",
4295};
4296
4297static const char * const msiof2_groups[] = {
4298 "msiof2_clk_a",
4299 "msiof2_sync_a",
4300 "msiof2_ss1_a",
4301 "msiof2_ss2_a",
4302 "msiof2_txd_a",
4303 "msiof2_rxd_a",
4304 "msiof2_clk_b",
4305 "msiof2_sync_b",
4306 "msiof2_ss1_b",
4307 "msiof2_ss2_b",
4308 "msiof2_txd_b",
4309 "msiof2_rxd_b",
4310};
4311
4312static const char * const msiof3_groups[] = {
4313 "msiof3_clk_a",
4314 "msiof3_sync_a",
4315 "msiof3_ss1_a",
4316 "msiof3_ss2_a",
4317 "msiof3_txd_a",
4318 "msiof3_rxd_a",
4319 "msiof3_clk_b",
4320 "msiof3_sync_b",
4321 "msiof3_ss1_b",
4322 "msiof3_txd_b",
4323 "msiof3_rxd_b",
4324};
4325
4326static const char * const pwm0_groups[] = {
4327 "pwm0_a",
4328 "pwm0_b",
4329};
4330
4331static const char * const pwm1_groups[] = {
4332 "pwm1_a",
4333 "pwm1_b",
4334};
4335
4336static const char * const pwm2_groups[] = {
4337 "pwm2_a",
4338 "pwm2_b",
4339 "pwm2_c",
4340};
4341
4342static const char * const pwm3_groups[] = {
4343 "pwm3_a",
4344 "pwm3_b",
4345 "pwm3_c",
4346};
4347
4348static const char * const pwm4_groups[] = {
4349 "pwm4_a",
4350 "pwm4_b",
4351};
4352
4353static const char * const pwm5_groups[] = {
4354 "pwm5_a",
4355 "pwm5_b",
4356};
4357
4358static const char * const pwm6_groups[] = {
4359 "pwm6_a",
4360 "pwm6_b",
4361};
4362
Lad Prabhakar14c9b042021-03-15 22:24:03 +00004363static const char * const qspi0_groups[] = {
4364 "qspi0_ctrl",
4365 "qspi0_data2",
4366 "qspi0_data4",
4367};
4368
4369static const char * const qspi1_groups[] = {
4370 "qspi1_ctrl",
4371 "qspi1_data2",
4372 "qspi1_data4",
4373};
4374
Marek Vasut6af234c2023-01-26 21:01:45 +01004375static const char * const rpc_groups[] = {
4376 "rpc_clk1",
4377 "rpc_clk2",
4378 "rpc_ctrl",
4379 "rpc_data",
4380 "rpc_reset",
4381 "rpc_int",
4382};
4383
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004384static const char * const scif0_groups[] = {
4385 "scif0_data_a",
4386 "scif0_clk_a",
4387 "scif0_ctrl_a",
4388 "scif0_data_b",
4389 "scif0_clk_b",
4390};
4391
4392static const char * const scif1_groups[] = {
4393 "scif1_data",
4394 "scif1_clk",
4395 "scif1_ctrl",
4396};
4397
4398static const char * const scif2_groups[] = {
4399 "scif2_data_a",
4400 "scif2_clk_a",
4401 "scif2_data_b",
4402};
4403
4404static const char * const scif3_groups[] = {
4405 "scif3_data_a",
4406 "scif3_clk_a",
4407 "scif3_ctrl_a",
4408 "scif3_data_b",
4409 "scif3_data_c",
4410 "scif3_clk_c",
4411};
4412
4413static const char * const scif4_groups[] = {
4414 "scif4_data_a",
4415 "scif4_clk_a",
4416 "scif4_ctrl_a",
4417 "scif4_data_b",
4418 "scif4_clk_b",
4419 "scif4_data_c",
4420 "scif4_ctrl_c",
4421};
4422
4423static const char * const scif5_groups[] = {
4424 "scif5_data_a",
4425 "scif5_clk_a",
4426 "scif5_data_b",
4427 "scif5_data_c",
4428};
4429
4430static const char * const scif_clk_groups[] = {
4431 "scif_clk_a",
4432 "scif_clk_b",
4433};
4434
4435static const char * const sdhi0_groups[] = {
4436 "sdhi0_data1",
4437 "sdhi0_data4",
4438 "sdhi0_ctrl",
4439 "sdhi0_cd",
4440 "sdhi0_wp",
4441};
4442
4443static const char * const sdhi1_groups[] = {
4444 "sdhi1_data1",
4445 "sdhi1_data4",
4446 "sdhi1_ctrl",
4447 "sdhi1_cd",
4448 "sdhi1_wp",
4449};
4450
4451static const char * const sdhi3_groups[] = {
4452 "sdhi3_data1",
4453 "sdhi3_data4",
4454 "sdhi3_data8",
4455 "sdhi3_ctrl",
4456 "sdhi3_cd",
4457 "sdhi3_wp",
4458 "sdhi3_ds",
4459};
4460
4461static const char * const ssi_groups[] = {
4462 "ssi0_data",
4463 "ssi01239_ctrl",
4464 "ssi1_data",
4465 "ssi1_ctrl",
4466 "ssi2_data",
4467 "ssi2_ctrl_a",
4468 "ssi2_ctrl_b",
4469 "ssi3_data",
4470 "ssi349_ctrl",
4471 "ssi4_data",
4472 "ssi4_ctrl",
4473 "ssi5_data",
4474 "ssi5_ctrl",
4475 "ssi6_data",
4476 "ssi6_ctrl",
4477 "ssi7_data",
4478 "ssi78_ctrl",
4479 "ssi8_data",
4480 "ssi9_data",
4481 "ssi9_ctrl_a",
4482 "ssi9_ctrl_b",
4483};
4484
4485static const char * const tmu_groups[] = {
4486 "tmu_tclk1_a",
4487 "tmu_tclk1_b",
4488 "tmu_tclk2_a",
4489 "tmu_tclk2_b",
4490};
4491
4492static const char * const usb0_groups[] = {
4493 "usb0_a",
4494 "usb0_b",
4495 "usb0_id",
4496};
4497
4498static const char * const usb30_groups[] = {
4499 "usb30",
4500 "usb30_id",
4501};
4502
4503static const char * const vin4_groups[] = {
4504 "vin4_data8_a",
4505 "vin4_data10_a",
4506 "vin4_data12_a",
4507 "vin4_data16_a",
Marek Vasut88e81ec2019-03-04 22:39:51 +01004508 "vin4_data18_a",
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004509 "vin4_data20_a",
4510 "vin4_data24_a",
4511 "vin4_data8_b",
4512 "vin4_data10_b",
4513 "vin4_data12_b",
4514 "vin4_data16_b",
Marek Vasut88e81ec2019-03-04 22:39:51 +01004515 "vin4_data18_b",
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004516 "vin4_data20_b",
4517 "vin4_data24_b",
Marek Vasut6af234c2023-01-26 21:01:45 +01004518 "vin4_g8",
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004519 "vin4_sync",
4520 "vin4_field",
4521 "vin4_clkenb",
4522 "vin4_clk",
4523};
4524
4525static const char * const vin5_groups[] = {
4526 "vin5_data8_a",
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004527 "vin5_data10_a",
4528 "vin5_data12_a",
4529 "vin5_data16_a",
4530 "vin5_data8_b",
Marek Vasut6af234c2023-01-26 21:01:45 +01004531 "vin5_high8",
Marek Vasuteb13e0f2018-06-10 16:05:48 +02004532 "vin5_sync_a",
4533 "vin5_field_a",
4534 "vin5_clkenb_a",
4535 "vin5_clk_a",
4536 "vin5_clk_b",
Marek Vasut68a77042018-04-26 13:09:20 +02004537};
4538
Marek Vasut88e81ec2019-03-04 22:39:51 +01004539static const struct {
Marek Vasut6af234c2023-01-26 21:01:45 +01004540 struct sh_pfc_function common[50];
Lad Prabhakar14c9b042021-03-15 22:24:03 +00004541#ifdef CONFIG_PINCTRL_PFC_R8A77990
Marek Vasut6af234c2023-01-26 21:01:45 +01004542 struct sh_pfc_function automotive[5];
Lad Prabhakar14c9b042021-03-15 22:24:03 +00004543#endif
Marek Vasut88e81ec2019-03-04 22:39:51 +01004544} pinmux_functions = {
4545 .common = {
4546 SH_PFC_FUNCTION(audio_clk),
4547 SH_PFC_FUNCTION(avb),
4548 SH_PFC_FUNCTION(can0),
4549 SH_PFC_FUNCTION(can1),
4550 SH_PFC_FUNCTION(can_clk),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004551 SH_PFC_FUNCTION(canfd0),
4552 SH_PFC_FUNCTION(canfd1),
Marek Vasut88e81ec2019-03-04 22:39:51 +01004553 SH_PFC_FUNCTION(du),
4554 SH_PFC_FUNCTION(hscif0),
4555 SH_PFC_FUNCTION(hscif1),
4556 SH_PFC_FUNCTION(hscif2),
4557 SH_PFC_FUNCTION(hscif3),
4558 SH_PFC_FUNCTION(hscif4),
4559 SH_PFC_FUNCTION(i2c1),
4560 SH_PFC_FUNCTION(i2c2),
4561 SH_PFC_FUNCTION(i2c4),
4562 SH_PFC_FUNCTION(i2c5),
4563 SH_PFC_FUNCTION(i2c6),
4564 SH_PFC_FUNCTION(i2c7),
4565 SH_PFC_FUNCTION(intc_ex),
4566 SH_PFC_FUNCTION(msiof0),
4567 SH_PFC_FUNCTION(msiof1),
4568 SH_PFC_FUNCTION(msiof2),
4569 SH_PFC_FUNCTION(msiof3),
4570 SH_PFC_FUNCTION(pwm0),
4571 SH_PFC_FUNCTION(pwm1),
4572 SH_PFC_FUNCTION(pwm2),
4573 SH_PFC_FUNCTION(pwm3),
4574 SH_PFC_FUNCTION(pwm4),
4575 SH_PFC_FUNCTION(pwm5),
4576 SH_PFC_FUNCTION(pwm6),
Lad Prabhakar14c9b042021-03-15 22:24:03 +00004577 SH_PFC_FUNCTION(qspi0),
4578 SH_PFC_FUNCTION(qspi1),
Marek Vasut6af234c2023-01-26 21:01:45 +01004579 SH_PFC_FUNCTION(rpc),
Marek Vasut88e81ec2019-03-04 22:39:51 +01004580 SH_PFC_FUNCTION(scif0),
4581 SH_PFC_FUNCTION(scif1),
4582 SH_PFC_FUNCTION(scif2),
4583 SH_PFC_FUNCTION(scif3),
4584 SH_PFC_FUNCTION(scif4),
4585 SH_PFC_FUNCTION(scif5),
4586 SH_PFC_FUNCTION(scif_clk),
4587 SH_PFC_FUNCTION(sdhi0),
4588 SH_PFC_FUNCTION(sdhi1),
4589 SH_PFC_FUNCTION(sdhi3),
4590 SH_PFC_FUNCTION(ssi),
4591 SH_PFC_FUNCTION(tmu),
4592 SH_PFC_FUNCTION(usb0),
4593 SH_PFC_FUNCTION(usb30),
4594 SH_PFC_FUNCTION(vin4),
4595 SH_PFC_FUNCTION(vin5),
4596 },
Lad Prabhakar14c9b042021-03-15 22:24:03 +00004597#ifdef CONFIG_PINCTRL_PFC_R8A77990
Marek Vasut88e81ec2019-03-04 22:39:51 +01004598 .automotive = {
Marek Vasut88e81ec2019-03-04 22:39:51 +01004599 SH_PFC_FUNCTION(drif0),
4600 SH_PFC_FUNCTION(drif1),
4601 SH_PFC_FUNCTION(drif2),
4602 SH_PFC_FUNCTION(drif3),
Marek Vasut6af234c2023-01-26 21:01:45 +01004603 SH_PFC_FUNCTION(mlb_3pin),
Marek Vasut88e81ec2019-03-04 22:39:51 +01004604 }
Lad Prabhakar14c9b042021-03-15 22:24:03 +00004605#endif /* CONFIG_PINCTRL_PFC_R8A77990 */
Marek Vasut68a77042018-04-26 13:09:20 +02004606};
4607
4608static const struct pinmux_cfg_reg pinmux_config_regs[] = {
4609#define F_(x, y) FN_##y
4610#define FM(x) FN_##x
Marek Vasut6af234c2023-01-26 21:01:45 +01004611 { PINMUX_CFG_REG_VAR("GPSR0", 0xe6060100, 32,
4612 GROUP(-14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4613 1, 1, 1, 1, 1, 1, 1),
4614 GROUP(
4615 /* GP0_31_18 RESERVED */
Marek Vasut68a77042018-04-26 13:09:20 +02004616 GP_0_17_FN, GPSR0_17,
4617 GP_0_16_FN, GPSR0_16,
4618 GP_0_15_FN, GPSR0_15,
4619 GP_0_14_FN, GPSR0_14,
4620 GP_0_13_FN, GPSR0_13,
4621 GP_0_12_FN, GPSR0_12,
4622 GP_0_11_FN, GPSR0_11,
4623 GP_0_10_FN, GPSR0_10,
4624 GP_0_9_FN, GPSR0_9,
4625 GP_0_8_FN, GPSR0_8,
4626 GP_0_7_FN, GPSR0_7,
4627 GP_0_6_FN, GPSR0_6,
4628 GP_0_5_FN, GPSR0_5,
4629 GP_0_4_FN, GPSR0_4,
4630 GP_0_3_FN, GPSR0_3,
4631 GP_0_2_FN, GPSR0_2,
4632 GP_0_1_FN, GPSR0_1,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004633 GP_0_0_FN, GPSR0_0, ))
Marek Vasut68a77042018-04-26 13:09:20 +02004634 },
Marek Vasut6af234c2023-01-26 21:01:45 +01004635 { PINMUX_CFG_REG_VAR("GPSR1", 0xe6060104, 32,
4636 GROUP(-9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4637 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
4638 GROUP(
4639 /* GP1_31_23 RESERVED */
Marek Vasut68a77042018-04-26 13:09:20 +02004640 GP_1_22_FN, GPSR1_22,
4641 GP_1_21_FN, GPSR1_21,
4642 GP_1_20_FN, GPSR1_20,
4643 GP_1_19_FN, GPSR1_19,
4644 GP_1_18_FN, GPSR1_18,
4645 GP_1_17_FN, GPSR1_17,
4646 GP_1_16_FN, GPSR1_16,
4647 GP_1_15_FN, GPSR1_15,
4648 GP_1_14_FN, GPSR1_14,
4649 GP_1_13_FN, GPSR1_13,
4650 GP_1_12_FN, GPSR1_12,
4651 GP_1_11_FN, GPSR1_11,
4652 GP_1_10_FN, GPSR1_10,
4653 GP_1_9_FN, GPSR1_9,
4654 GP_1_8_FN, GPSR1_8,
4655 GP_1_7_FN, GPSR1_7,
4656 GP_1_6_FN, GPSR1_6,
4657 GP_1_5_FN, GPSR1_5,
4658 GP_1_4_FN, GPSR1_4,
4659 GP_1_3_FN, GPSR1_3,
4660 GP_1_2_FN, GPSR1_2,
4661 GP_1_1_FN, GPSR1_1,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004662 GP_1_0_FN, GPSR1_0, ))
Marek Vasut68a77042018-04-26 13:09:20 +02004663 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004664 { PINMUX_CFG_REG("GPSR2", 0xe6060108, 32, 1, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004665 0, 0,
4666 0, 0,
4667 0, 0,
4668 0, 0,
4669 0, 0,
4670 0, 0,
4671 GP_2_25_FN, GPSR2_25,
4672 GP_2_24_FN, GPSR2_24,
4673 GP_2_23_FN, GPSR2_23,
4674 GP_2_22_FN, GPSR2_22,
4675 GP_2_21_FN, GPSR2_21,
4676 GP_2_20_FN, GPSR2_20,
4677 GP_2_19_FN, GPSR2_19,
4678 GP_2_18_FN, GPSR2_18,
4679 GP_2_17_FN, GPSR2_17,
4680 GP_2_16_FN, GPSR2_16,
4681 GP_2_15_FN, GPSR2_15,
4682 GP_2_14_FN, GPSR2_14,
4683 GP_2_13_FN, GPSR2_13,
4684 GP_2_12_FN, GPSR2_12,
4685 GP_2_11_FN, GPSR2_11,
4686 GP_2_10_FN, GPSR2_10,
4687 GP_2_9_FN, GPSR2_9,
4688 GP_2_8_FN, GPSR2_8,
4689 GP_2_7_FN, GPSR2_7,
4690 GP_2_6_FN, GPSR2_6,
4691 GP_2_5_FN, GPSR2_5,
4692 GP_2_4_FN, GPSR2_4,
4693 GP_2_3_FN, GPSR2_3,
4694 GP_2_2_FN, GPSR2_2,
4695 GP_2_1_FN, GPSR2_1,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004696 GP_2_0_FN, GPSR2_0, ))
Marek Vasut68a77042018-04-26 13:09:20 +02004697 },
Marek Vasut6af234c2023-01-26 21:01:45 +01004698 { PINMUX_CFG_REG_VAR("GPSR3", 0xe606010c, 32,
4699 GROUP(-16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4700 1, 1, 1, 1, 1),
4701 GROUP(
4702 /* GP3_31_16 RESERVED */
Marek Vasut68a77042018-04-26 13:09:20 +02004703 GP_3_15_FN, GPSR3_15,
4704 GP_3_14_FN, GPSR3_14,
4705 GP_3_13_FN, GPSR3_13,
4706 GP_3_12_FN, GPSR3_12,
4707 GP_3_11_FN, GPSR3_11,
4708 GP_3_10_FN, GPSR3_10,
4709 GP_3_9_FN, GPSR3_9,
4710 GP_3_8_FN, GPSR3_8,
4711 GP_3_7_FN, GPSR3_7,
4712 GP_3_6_FN, GPSR3_6,
4713 GP_3_5_FN, GPSR3_5,
4714 GP_3_4_FN, GPSR3_4,
4715 GP_3_3_FN, GPSR3_3,
4716 GP_3_2_FN, GPSR3_2,
4717 GP_3_1_FN, GPSR3_1,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004718 GP_3_0_FN, GPSR3_0, ))
Marek Vasut68a77042018-04-26 13:09:20 +02004719 },
Marek Vasut6af234c2023-01-26 21:01:45 +01004720 { PINMUX_CFG_REG_VAR("GPSR4", 0xe6060110, 32,
4721 GROUP(-21, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
4722 GROUP(
4723 /* GP4_31_11 RESERVED */
Marek Vasut68a77042018-04-26 13:09:20 +02004724 GP_4_10_FN, GPSR4_10,
4725 GP_4_9_FN, GPSR4_9,
4726 GP_4_8_FN, GPSR4_8,
4727 GP_4_7_FN, GPSR4_7,
4728 GP_4_6_FN, GPSR4_6,
4729 GP_4_5_FN, GPSR4_5,
4730 GP_4_4_FN, GPSR4_4,
4731 GP_4_3_FN, GPSR4_3,
4732 GP_4_2_FN, GPSR4_2,
4733 GP_4_1_FN, GPSR4_1,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004734 GP_4_0_FN, GPSR4_0, ))
Marek Vasut68a77042018-04-26 13:09:20 +02004735 },
Marek Vasut6af234c2023-01-26 21:01:45 +01004736 { PINMUX_CFG_REG_VAR("GPSR5", 0xe6060114, 32,
4737 GROUP(-12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4738 1, 1, 1, 1, 1, 1, 1, 1, 1),
4739 GROUP(
4740 /* GP5_31_20 RESERVED */
Marek Vasut68a77042018-04-26 13:09:20 +02004741 GP_5_19_FN, GPSR5_19,
4742 GP_5_18_FN, GPSR5_18,
4743 GP_5_17_FN, GPSR5_17,
4744 GP_5_16_FN, GPSR5_16,
4745 GP_5_15_FN, GPSR5_15,
4746 GP_5_14_FN, GPSR5_14,
4747 GP_5_13_FN, GPSR5_13,
4748 GP_5_12_FN, GPSR5_12,
4749 GP_5_11_FN, GPSR5_11,
4750 GP_5_10_FN, GPSR5_10,
4751 GP_5_9_FN, GPSR5_9,
4752 GP_5_8_FN, GPSR5_8,
4753 GP_5_7_FN, GPSR5_7,
4754 GP_5_6_FN, GPSR5_6,
4755 GP_5_5_FN, GPSR5_5,
4756 GP_5_4_FN, GPSR5_4,
4757 GP_5_3_FN, GPSR5_3,
4758 GP_5_2_FN, GPSR5_2,
4759 GP_5_1_FN, GPSR5_1,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004760 GP_5_0_FN, GPSR5_0, ))
Marek Vasut68a77042018-04-26 13:09:20 +02004761 },
Marek Vasut6af234c2023-01-26 21:01:45 +01004762 { PINMUX_CFG_REG_VAR("GPSR6", 0xe6060118, 32,
4763 GROUP(-14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4764 1, 1, 1, 1, 1, 1, 1),
4765 GROUP(
4766 /* GP6_31_18 RESERVED */
Marek Vasut68a77042018-04-26 13:09:20 +02004767 GP_6_17_FN, GPSR6_17,
4768 GP_6_16_FN, GPSR6_16,
4769 GP_6_15_FN, GPSR6_15,
4770 GP_6_14_FN, GPSR6_14,
4771 GP_6_13_FN, GPSR6_13,
4772 GP_6_12_FN, GPSR6_12,
4773 GP_6_11_FN, GPSR6_11,
4774 GP_6_10_FN, GPSR6_10,
4775 GP_6_9_FN, GPSR6_9,
4776 GP_6_8_FN, GPSR6_8,
4777 GP_6_7_FN, GPSR6_7,
4778 GP_6_6_FN, GPSR6_6,
4779 GP_6_5_FN, GPSR6_5,
4780 GP_6_4_FN, GPSR6_4,
4781 GP_6_3_FN, GPSR6_3,
4782 GP_6_2_FN, GPSR6_2,
4783 GP_6_1_FN, GPSR6_1,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004784 GP_6_0_FN, GPSR6_0, ))
Marek Vasut68a77042018-04-26 13:09:20 +02004785 },
4786#undef F_
4787#undef FM
4788
4789#define F_(x, y) x,
4790#define FM(x) FN_##x,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004791 { PINMUX_CFG_REG("IPSR0", 0xe6060200, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004792 IP0_31_28
4793 IP0_27_24
4794 IP0_23_20
4795 IP0_19_16
4796 IP0_15_12
4797 IP0_11_8
4798 IP0_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004799 IP0_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004800 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004801 { PINMUX_CFG_REG("IPSR1", 0xe6060204, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004802 IP1_31_28
4803 IP1_27_24
4804 IP1_23_20
4805 IP1_19_16
4806 IP1_15_12
4807 IP1_11_8
4808 IP1_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004809 IP1_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004810 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004811 { PINMUX_CFG_REG("IPSR2", 0xe6060208, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004812 IP2_31_28
4813 IP2_27_24
4814 IP2_23_20
4815 IP2_19_16
4816 IP2_15_12
4817 IP2_11_8
4818 IP2_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004819 IP2_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004820 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004821 { PINMUX_CFG_REG("IPSR3", 0xe606020c, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004822 IP3_31_28
4823 IP3_27_24
4824 IP3_23_20
4825 IP3_19_16
4826 IP3_15_12
4827 IP3_11_8
4828 IP3_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004829 IP3_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004830 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004831 { PINMUX_CFG_REG("IPSR4", 0xe6060210, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004832 IP4_31_28
4833 IP4_27_24
4834 IP4_23_20
4835 IP4_19_16
4836 IP4_15_12
4837 IP4_11_8
4838 IP4_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004839 IP4_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004840 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004841 { PINMUX_CFG_REG("IPSR5", 0xe6060214, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004842 IP5_31_28
4843 IP5_27_24
4844 IP5_23_20
4845 IP5_19_16
4846 IP5_15_12
4847 IP5_11_8
4848 IP5_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004849 IP5_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004850 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004851 { PINMUX_CFG_REG("IPSR6", 0xe6060218, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004852 IP6_31_28
4853 IP6_27_24
4854 IP6_23_20
4855 IP6_19_16
4856 IP6_15_12
4857 IP6_11_8
4858 IP6_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004859 IP6_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004860 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004861 { PINMUX_CFG_REG("IPSR7", 0xe606021c, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004862 IP7_31_28
4863 IP7_27_24
4864 IP7_23_20
4865 IP7_19_16
4866 IP7_15_12
4867 IP7_11_8
4868 IP7_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004869 IP7_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004870 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004871 { PINMUX_CFG_REG("IPSR8", 0xe6060220, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004872 IP8_31_28
4873 IP8_27_24
4874 IP8_23_20
4875 IP8_19_16
4876 IP8_15_12
4877 IP8_11_8
4878 IP8_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004879 IP8_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004880 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004881 { PINMUX_CFG_REG("IPSR9", 0xe6060224, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004882 IP9_31_28
4883 IP9_27_24
4884 IP9_23_20
4885 IP9_19_16
4886 IP9_15_12
4887 IP9_11_8
4888 IP9_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004889 IP9_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004890 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004891 { PINMUX_CFG_REG("IPSR10", 0xe6060228, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004892 IP10_31_28
4893 IP10_27_24
4894 IP10_23_20
4895 IP10_19_16
4896 IP10_15_12
4897 IP10_11_8
4898 IP10_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004899 IP10_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004900 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004901 { PINMUX_CFG_REG("IPSR11", 0xe606022c, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004902 IP11_31_28
4903 IP11_27_24
4904 IP11_23_20
4905 IP11_19_16
4906 IP11_15_12
4907 IP11_11_8
4908 IP11_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004909 IP11_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004910 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004911 { PINMUX_CFG_REG("IPSR12", 0xe6060230, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004912 IP12_31_28
4913 IP12_27_24
4914 IP12_23_20
4915 IP12_19_16
4916 IP12_15_12
4917 IP12_11_8
4918 IP12_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004919 IP12_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004920 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004921 { PINMUX_CFG_REG("IPSR13", 0xe6060234, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004922 IP13_31_28
4923 IP13_27_24
4924 IP13_23_20
4925 IP13_19_16
4926 IP13_15_12
4927 IP13_11_8
4928 IP13_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004929 IP13_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004930 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004931 { PINMUX_CFG_REG("IPSR14", 0xe6060238, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004932 IP14_31_28
4933 IP14_27_24
4934 IP14_23_20
4935 IP14_19_16
4936 IP14_15_12
4937 IP14_11_8
4938 IP14_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004939 IP14_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004940 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004941 { PINMUX_CFG_REG("IPSR15", 0xe606023c, 32, 4, GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004942 IP15_31_28
4943 IP15_27_24
4944 IP15_23_20
4945 IP15_19_16
4946 IP15_15_12
4947 IP15_11_8
4948 IP15_7_4
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004949 IP15_3_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004950 },
4951#undef F_
4952#undef FM
4953
4954#define F_(x, y) x,
4955#define FM(x) FN_##x,
4956 { PINMUX_CFG_REG_VAR("MOD_SEL0", 0xe6060500, 32,
Marek Vasut6af234c2023-01-26 21:01:45 +01004957 GROUP(-1, 2, 1, 2, 1, 1, 1, 1, 2, 3, 1, 1,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004958 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 2),
4959 GROUP(
Marek Vasut68a77042018-04-26 13:09:20 +02004960 /* RESERVED 31 */
Marek Vasut68a77042018-04-26 13:09:20 +02004961 MOD_SEL0_30_29
4962 MOD_SEL0_28
4963 MOD_SEL0_27_26
4964 MOD_SEL0_25
4965 MOD_SEL0_24
4966 MOD_SEL0_23
4967 MOD_SEL0_22
4968 MOD_SEL0_21_20
4969 MOD_SEL0_19_18_17
4970 MOD_SEL0_16
4971 MOD_SEL0_15
4972 MOD_SEL0_14
4973 MOD_SEL0_13_12
4974 MOD_SEL0_11_10
4975 MOD_SEL0_9
4976 MOD_SEL0_8
4977 MOD_SEL0_7
4978 MOD_SEL0_6_5
4979 MOD_SEL0_4
4980 MOD_SEL0_3
4981 MOD_SEL0_2
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004982 MOD_SEL0_1_0 ))
Marek Vasut68a77042018-04-26 13:09:20 +02004983 },
4984 { PINMUX_CFG_REG_VAR("MOD_SEL1", 0xe6060504, 32,
Marek Vasut6af234c2023-01-26 21:01:45 +01004985 GROUP(1, 1, 1, 1, -1, 1, 1, 3, 3, 1, 1, 1,
4986 1, 2, 2, 2, 1, 1, 2, 1, -4),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02004987 GROUP(
Lad Prabhakare4db7392020-10-14 16:45:59 +01004988 MOD_SEL1_31
4989 MOD_SEL1_30
Marek Vasut68a77042018-04-26 13:09:20 +02004990 MOD_SEL1_29
4991 MOD_SEL1_28
4992 /* RESERVED 27 */
Marek Vasut68a77042018-04-26 13:09:20 +02004993 MOD_SEL1_26
4994 MOD_SEL1_25
4995 MOD_SEL1_24_23_22
4996 MOD_SEL1_21_20_19
4997 MOD_SEL1_18
4998 MOD_SEL1_17
4999 MOD_SEL1_16
5000 MOD_SEL1_15
5001 MOD_SEL1_14_13
5002 MOD_SEL1_12_11
5003 MOD_SEL1_10_9
5004 MOD_SEL1_8
5005 MOD_SEL1_7
5006 MOD_SEL1_6_5
5007 MOD_SEL1_4
Marek Vasut6af234c2023-01-26 21:01:45 +01005008 /* RESERVED 3, 2, 1, 0 */ ))
Marek Vasut68a77042018-04-26 13:09:20 +02005009 },
Marek Vasut8fed6732023-09-17 16:08:45 +02005010 { /* sentinel */ }
Marek Vasut68a77042018-04-26 13:09:20 +02005011};
5012
Marek Vasut6af234c2023-01-26 21:01:45 +01005013static const struct pinmux_drive_reg pinmux_drive_regs[] = {
5014 { PINMUX_DRIVE_REG("DRVCTRL8", 0xe6060320) {
5015 { RCAR_GP_PIN(3, 0), 18, 2 }, /* SD0_CLK */
5016 { RCAR_GP_PIN(3, 1), 15, 2 }, /* SD0_CMD */
5017 { RCAR_GP_PIN(3, 2), 12, 2 }, /* SD0_DAT0 */
5018 { RCAR_GP_PIN(3, 3), 9, 2 }, /* SD0_DAT1 */
5019 { RCAR_GP_PIN(3, 4), 6, 2 }, /* SD0_DAT2 */
5020 { RCAR_GP_PIN(3, 5), 3, 2 }, /* SD0_DAT3 */
5021 { RCAR_GP_PIN(3, 6), 0, 2 }, /* SD1_CLK */
5022 } },
5023 { PINMUX_DRIVE_REG("DRVCTRL9", 0xe6060324) {
5024 { RCAR_GP_PIN(3, 7), 29, 2 }, /* SD1_CMD */
5025 { RCAR_GP_PIN(3, 8), 26, 2 }, /* SD1_DAT0 */
5026 { RCAR_GP_PIN(3, 9), 23, 2 }, /* SD1_DAT1 */
5027 { RCAR_GP_PIN(3, 10), 20, 2 }, /* SD1_DAT2 */
5028 { RCAR_GP_PIN(3, 11), 17, 2 }, /* SD1_DAT3 */
5029 { RCAR_GP_PIN(4, 0), 14, 2 }, /* SD3_CLK */
5030 { RCAR_GP_PIN(4, 1), 11, 2 }, /* SD3_CMD */
5031 { RCAR_GP_PIN(4, 2), 8, 2 }, /* SD3_DAT0 */
5032 { RCAR_GP_PIN(4, 3), 5, 2 }, /* SD3_DAT1 */
5033 { RCAR_GP_PIN(4, 4), 2, 2 }, /* SD3_DAT2 */
5034 } },
5035 { PINMUX_DRIVE_REG("DRVCTRL10", 0xe6060328) {
5036 { RCAR_GP_PIN(4, 5), 29, 2 }, /* SD3_DAT3 */
5037 { RCAR_GP_PIN(4, 6), 26, 2 }, /* SD3_DAT4 */
5038 { RCAR_GP_PIN(4, 7), 23, 2 }, /* SD3_DAT5 */
5039 { RCAR_GP_PIN(4, 8), 20, 2 }, /* SD3_DAT6 */
5040 { RCAR_GP_PIN(4, 9), 17, 2 }, /* SD3_DAT7 */
5041 { RCAR_GP_PIN(4, 10), 14, 2 }, /* SD3_DS */
5042 } },
Marek Vasut8fed6732023-09-17 16:08:45 +02005043 { /* sentinel */ }
Marek Vasut6af234c2023-01-26 21:01:45 +01005044};
5045
Marek Vasut46991d52018-10-31 20:34:51 +01005046enum ioctrl_regs {
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005047 POCCTRL0,
Marek Vasut8fed6732023-09-17 16:08:45 +02005048 POCCTRL2,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005049 TDSELCTRL,
Marek Vasut46991d52018-10-31 20:34:51 +01005050};
5051
5052static const struct pinmux_ioctrl_reg pinmux_ioctrl_regs[] = {
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005053 [POCCTRL0] = { 0xe6060380, },
Marek Vasut8fed6732023-09-17 16:08:45 +02005054 [POCCTRL2] = { 0xe6060388, },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005055 [TDSELCTRL] = { 0xe60603c0, },
Marek Vasut8fed6732023-09-17 16:08:45 +02005056 { /* sentinel */ }
Marek Vasut46991d52018-10-31 20:34:51 +01005057};
5058
Marek Vasut6af234c2023-01-26 21:01:45 +01005059static int r8a77990_pin_to_pocctrl(unsigned int pin, u32 *pocctrl)
Marek Vasut46991d52018-10-31 20:34:51 +01005060{
Marek Vasut8fed6732023-09-17 16:08:45 +02005061 switch (pin) {
5062 case RCAR_GP_PIN(3, 0) ... RCAR_GP_PIN(3, 11):
5063 *pocctrl = pinmux_ioctrl_regs[POCCTRL0].reg;
5064 return pin & 0x1f;
Marek Vasut46991d52018-10-31 20:34:51 +01005065
Marek Vasut8fed6732023-09-17 16:08:45 +02005066 case RCAR_GP_PIN(4, 0) ... RCAR_GP_PIN(4, 10):
5067 *pocctrl = pinmux_ioctrl_regs[POCCTRL0].reg;
5068 return (pin & 0x1f) + 19;
Marek Vasut46991d52018-10-31 20:34:51 +01005069
Marek Vasut8fed6732023-09-17 16:08:45 +02005070 case PIN_VDDQ_AVB0:
5071 *pocctrl = pinmux_ioctrl_regs[POCCTRL2].reg;
5072 return 0;
Marek Vasut46991d52018-10-31 20:34:51 +01005073
Marek Vasut8fed6732023-09-17 16:08:45 +02005074 default:
5075 return -EINVAL;
5076 }
Marek Vasut46991d52018-10-31 20:34:51 +01005077}
5078
Marek Vasut88e81ec2019-03-04 22:39:51 +01005079static const struct pinmux_bias_reg pinmux_bias_regs[] = {
5080 { PINMUX_BIAS_REG("PUEN0", 0xe6060400, "PUD0", 0xe6060440) {
5081 [0] = RCAR_GP_PIN(2, 23), /* RD# */
5082 [1] = RCAR_GP_PIN(2, 22), /* BS# */
5083 [2] = RCAR_GP_PIN(2, 21), /* AVB_PHY_INT */
Marek Vasut0e8e9892021-04-26 22:04:11 +02005084 [3] = PIN_AVB_MDC, /* AVB_MDC */
5085 [4] = PIN_AVB_MDIO, /* AVB_MDIO */
Marek Vasut88e81ec2019-03-04 22:39:51 +01005086 [5] = RCAR_GP_PIN(2, 20), /* AVB_TXCREFCLK */
Marek Vasut0e8e9892021-04-26 22:04:11 +02005087 [6] = PIN_AVB_TD3, /* AVB_TD3 */
5088 [7] = PIN_AVB_TD2, /* AVB_TD2 */
5089 [8] = PIN_AVB_TD1, /* AVB_TD1 */
5090 [9] = PIN_AVB_TD0, /* AVB_TD0 */
5091 [10] = PIN_AVB_TXC, /* AVB_TXC */
5092 [11] = PIN_AVB_TX_CTL, /* AVB_TX_CTL */
Marek Vasut88e81ec2019-03-04 22:39:51 +01005093 [12] = RCAR_GP_PIN(2, 19), /* AVB_RD3 */
5094 [13] = RCAR_GP_PIN(2, 18), /* AVB_RD2 */
5095 [14] = RCAR_GP_PIN(2, 17), /* AVB_RD1 */
5096 [15] = RCAR_GP_PIN(2, 16), /* AVB_RD0 */
5097 [16] = RCAR_GP_PIN(2, 15), /* AVB_RXC */
5098 [17] = RCAR_GP_PIN(2, 14), /* AVB_RX_CTL */
5099 [18] = RCAR_GP_PIN(2, 13), /* RPC_RESET# */
5100 [19] = RCAR_GP_PIN(2, 12), /* RPC_INT# */
5101 [20] = RCAR_GP_PIN(2, 11), /* QSPI1_SSL */
5102 [21] = RCAR_GP_PIN(2, 10), /* QSPI1_IO3 */
5103 [22] = RCAR_GP_PIN(2, 9), /* QSPI1_IO2 */
5104 [23] = RCAR_GP_PIN(2, 8), /* QSPI1_MISO/IO1 */
5105 [24] = RCAR_GP_PIN(2, 7), /* QSPI1_MOSI/IO0 */
5106 [25] = RCAR_GP_PIN(2, 6), /* QSPI1_SPCLK */
5107 [26] = RCAR_GP_PIN(2, 5), /* QSPI0_SSL */
5108 [27] = RCAR_GP_PIN(2, 4), /* QSPI0_IO3 */
5109 [28] = RCAR_GP_PIN(2, 3), /* QSPI0_IO2 */
5110 [29] = RCAR_GP_PIN(2, 2), /* QSPI0_MISO/IO1 */
5111 [30] = RCAR_GP_PIN(2, 1), /* QSPI0_MOSI/IO0 */
5112 [31] = RCAR_GP_PIN(2, 0), /* QSPI0_SPCLK */
5113 } },
5114 { PINMUX_BIAS_REG("PUEN1", 0xe6060404, "PUD1", 0xe6060444) {
5115 [0] = RCAR_GP_PIN(0, 4), /* D4 */
5116 [1] = RCAR_GP_PIN(0, 3), /* D3 */
5117 [2] = RCAR_GP_PIN(0, 2), /* D2 */
5118 [3] = RCAR_GP_PIN(0, 1), /* D1 */
5119 [4] = RCAR_GP_PIN(0, 0), /* D0 */
5120 [5] = RCAR_GP_PIN(1, 22), /* WE0# */
5121 [6] = RCAR_GP_PIN(1, 21), /* CS0# */
5122 [7] = RCAR_GP_PIN(1, 20), /* CLKOUT */
5123 [8] = RCAR_GP_PIN(1, 19), /* A19 */
5124 [9] = RCAR_GP_PIN(1, 18), /* A18 */
5125 [10] = RCAR_GP_PIN(1, 17), /* A17 */
5126 [11] = RCAR_GP_PIN(1, 16), /* A16 */
5127 [12] = RCAR_GP_PIN(1, 15), /* A15 */
5128 [13] = RCAR_GP_PIN(1, 14), /* A14 */
5129 [14] = RCAR_GP_PIN(1, 13), /* A13 */
5130 [15] = RCAR_GP_PIN(1, 12), /* A12 */
5131 [16] = RCAR_GP_PIN(1, 11), /* A11 */
5132 [17] = RCAR_GP_PIN(1, 10), /* A10 */
5133 [18] = RCAR_GP_PIN(1, 9), /* A9 */
5134 [19] = RCAR_GP_PIN(1, 8), /* A8 */
5135 [20] = RCAR_GP_PIN(1, 7), /* A7 */
5136 [21] = RCAR_GP_PIN(1, 6), /* A6 */
5137 [22] = RCAR_GP_PIN(1, 5), /* A5 */
5138 [23] = RCAR_GP_PIN(1, 4), /* A4 */
5139 [24] = RCAR_GP_PIN(1, 3), /* A3 */
5140 [25] = RCAR_GP_PIN(1, 2), /* A2 */
5141 [26] = RCAR_GP_PIN(1, 1), /* A1 */
5142 [27] = RCAR_GP_PIN(1, 0), /* A0 */
Marek Vasut0e8e9892021-04-26 22:04:11 +02005143 [28] = SH_PFC_PIN_NONE,
5144 [29] = SH_PFC_PIN_NONE,
Marek Vasut6af234c2023-01-26 21:01:45 +01005145 [30] = RCAR_GP_PIN(2, 25), /* EX_WAIT0 */
5146 [31] = RCAR_GP_PIN(2, 24), /* RD/WR# */
Marek Vasut88e81ec2019-03-04 22:39:51 +01005147 } },
5148 { PINMUX_BIAS_REG("PUEN2", 0xe6060408, "PUD2", 0xe6060448) {
5149 [0] = RCAR_GP_PIN(3, 1), /* SD0_CMD */
5150 [1] = RCAR_GP_PIN(3, 0), /* SD0_CLK */
Marek Vasut0e8e9892021-04-26 22:04:11 +02005151 [2] = PIN_ASEBRK, /* ASEBRK */
5152 [3] = SH_PFC_PIN_NONE,
5153 [4] = PIN_TDI, /* TDI */
5154 [5] = PIN_TMS, /* TMS */
5155 [6] = PIN_TCK, /* TCK */
5156 [7] = PIN_TRST_N, /* TRST# */
5157 [8] = SH_PFC_PIN_NONE,
5158 [9] = SH_PFC_PIN_NONE,
5159 [10] = SH_PFC_PIN_NONE,
5160 [11] = SH_PFC_PIN_NONE,
5161 [12] = SH_PFC_PIN_NONE,
5162 [13] = SH_PFC_PIN_NONE,
5163 [14] = SH_PFC_PIN_NONE,
5164 [15] = PIN_FSCLKST_N, /* FSCLKST# */
Marek Vasut88e81ec2019-03-04 22:39:51 +01005165 [16] = RCAR_GP_PIN(0, 17), /* SDA4 */
5166 [17] = RCAR_GP_PIN(0, 16), /* SCL4 */
Marek Vasut0e8e9892021-04-26 22:04:11 +02005167 [18] = SH_PFC_PIN_NONE,
5168 [19] = SH_PFC_PIN_NONE,
5169 [20] = PIN_PRESETOUT_N, /* PRESETOUT# */
Marek Vasut88e81ec2019-03-04 22:39:51 +01005170 [21] = RCAR_GP_PIN(0, 15), /* D15 */
5171 [22] = RCAR_GP_PIN(0, 14), /* D14 */
5172 [23] = RCAR_GP_PIN(0, 13), /* D13 */
5173 [24] = RCAR_GP_PIN(0, 12), /* D12 */
5174 [25] = RCAR_GP_PIN(0, 11), /* D11 */
5175 [26] = RCAR_GP_PIN(0, 10), /* D10 */
5176 [27] = RCAR_GP_PIN(0, 9), /* D9 */
5177 [28] = RCAR_GP_PIN(0, 8), /* D8 */
5178 [29] = RCAR_GP_PIN(0, 7), /* D7 */
5179 [30] = RCAR_GP_PIN(0, 6), /* D6 */
5180 [31] = RCAR_GP_PIN(0, 5), /* D5 */
5181 } },
5182 { PINMUX_BIAS_REG("PUEN3", 0xe606040c, "PUD3", 0xe606044c) {
5183 [0] = RCAR_GP_PIN(5, 0), /* SCK0_A */
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005184 [1] = RCAR_GP_PIN(5, 4), /* RTS0#_A */
Marek Vasut88e81ec2019-03-04 22:39:51 +01005185 [2] = RCAR_GP_PIN(5, 3), /* CTS0#_A */
5186 [3] = RCAR_GP_PIN(5, 2), /* TX0_A */
5187 [4] = RCAR_GP_PIN(5, 1), /* RX0_A */
Marek Vasut0e8e9892021-04-26 22:04:11 +02005188 [5] = SH_PFC_PIN_NONE,
5189 [6] = SH_PFC_PIN_NONE,
Marek Vasut88e81ec2019-03-04 22:39:51 +01005190 [7] = RCAR_GP_PIN(3, 15), /* SD1_WP */
5191 [8] = RCAR_GP_PIN(3, 14), /* SD1_CD */
5192 [9] = RCAR_GP_PIN(3, 13), /* SD0_WP */
5193 [10] = RCAR_GP_PIN(3, 12), /* SD0_CD */
5194 [11] = RCAR_GP_PIN(4, 10), /* SD3_DS */
5195 [12] = RCAR_GP_PIN(4, 9), /* SD3_DAT7 */
5196 [13] = RCAR_GP_PIN(4, 8), /* SD3_DAT6 */
5197 [14] = RCAR_GP_PIN(4, 7), /* SD3_DAT5 */
5198 [15] = RCAR_GP_PIN(4, 6), /* SD3_DAT4 */
5199 [16] = RCAR_GP_PIN(4, 5), /* SD3_DAT3 */
5200 [17] = RCAR_GP_PIN(4, 4), /* SD3_DAT2 */
5201 [18] = RCAR_GP_PIN(4, 3), /* SD3_DAT1 */
5202 [19] = RCAR_GP_PIN(4, 2), /* SD3_DAT0 */
5203 [20] = RCAR_GP_PIN(4, 1), /* SD3_CMD */
5204 [21] = RCAR_GP_PIN(4, 0), /* SD3_CLK */
5205 [22] = RCAR_GP_PIN(3, 11), /* SD1_DAT3 */
5206 [23] = RCAR_GP_PIN(3, 10), /* SD1_DAT2 */
5207 [24] = RCAR_GP_PIN(3, 9), /* SD1_DAT1 */
5208 [25] = RCAR_GP_PIN(3, 8), /* SD1_DAT0 */
5209 [26] = RCAR_GP_PIN(3, 7), /* SD1_CMD */
5210 [27] = RCAR_GP_PIN(3, 6), /* SD1_CLK */
5211 [28] = RCAR_GP_PIN(3, 5), /* SD0_DAT3 */
5212 [29] = RCAR_GP_PIN(3, 4), /* SD0_DAT2 */
5213 [30] = RCAR_GP_PIN(3, 3), /* SD0_DAT1 */
5214 [31] = RCAR_GP_PIN(3, 2), /* SD0_DAT0 */
5215 } },
5216 { PINMUX_BIAS_REG("PUEN4", 0xe6060410, "PUD4", 0xe6060450) {
5217 [0] = RCAR_GP_PIN(6, 8), /* AUDIO_CLKA */
5218 [1] = RCAR_GP_PIN(6, 16), /* SSI_SDATA6 */
5219 [2] = RCAR_GP_PIN(6, 15), /* SSI_WS6 */
5220 [3] = RCAR_GP_PIN(6, 14), /* SSI_SCK6 */
5221 [4] = RCAR_GP_PIN(6, 13), /* SSI_SDATA5 */
5222 [5] = RCAR_GP_PIN(6, 12), /* SSI_WS5 */
5223 [6] = RCAR_GP_PIN(6, 11), /* SSI_SCK5 */
5224 [7] = RCAR_GP_PIN(6, 10), /* SSI_SDATA4 */
5225 [8] = RCAR_GP_PIN(6, 7), /* SSI_SDATA3 */
5226 [9] = RCAR_GP_PIN(6, 6), /* SSI_WS349 */
5227 [10] = RCAR_GP_PIN(6, 5), /* SSI_SCK349 */
5228 [11] = RCAR_GP_PIN(6, 4), /* SSI_SDATA2 */
5229 [12] = RCAR_GP_PIN(6, 3), /* SSI_SDATA1 */
5230 [13] = RCAR_GP_PIN(6, 2), /* SSI_SDATA0 */
5231 [14] = RCAR_GP_PIN(6, 1), /* SSI_WS01239 */
5232 [15] = RCAR_GP_PIN(6, 0), /* SSI_SCK01239 */
Marek Vasut0e8e9892021-04-26 22:04:11 +02005233 [16] = PIN_MLB_REF, /* MLB_REF */
Marek Vasut88e81ec2019-03-04 22:39:51 +01005234 [17] = RCAR_GP_PIN(5, 19), /* MLB_DAT */
5235 [18] = RCAR_GP_PIN(5, 18), /* MLB_SIG */
5236 [19] = RCAR_GP_PIN(5, 17), /* MLB_CLK */
5237 [20] = RCAR_GP_PIN(5, 16), /* SSI_SDATA9 */
5238 [21] = RCAR_GP_PIN(5, 15), /* MSIOF0_SS2 */
5239 [22] = RCAR_GP_PIN(5, 14), /* MSIOF0_SS1 */
5240 [23] = RCAR_GP_PIN(5, 13), /* MSIOF0_SYNC */
5241 [24] = RCAR_GP_PIN(5, 12), /* MSIOF0_TXD */
5242 [25] = RCAR_GP_PIN(5, 11), /* MSIOF0_RXD */
5243 [26] = RCAR_GP_PIN(5, 10), /* MSIOF0_SCK */
5244 [27] = RCAR_GP_PIN(5, 9), /* RX2_A */
5245 [28] = RCAR_GP_PIN(5, 8), /* TX2_A */
5246 [29] = RCAR_GP_PIN(5, 7), /* SCK2_A */
5247 [30] = RCAR_GP_PIN(5, 6), /* TX1 */
5248 [31] = RCAR_GP_PIN(5, 5), /* RX1 */
5249 } },
5250 { PINMUX_BIAS_REG("PUEN5", 0xe6060414, "PUD5", 0xe6060454) {
Marek Vasut0e8e9892021-04-26 22:04:11 +02005251 [0] = SH_PFC_PIN_NONE,
5252 [1] = SH_PFC_PIN_NONE,
5253 [2] = SH_PFC_PIN_NONE,
5254 [3] = SH_PFC_PIN_NONE,
5255 [4] = SH_PFC_PIN_NONE,
5256 [5] = SH_PFC_PIN_NONE,
5257 [6] = SH_PFC_PIN_NONE,
5258 [7] = SH_PFC_PIN_NONE,
5259 [8] = SH_PFC_PIN_NONE,
5260 [9] = SH_PFC_PIN_NONE,
5261 [10] = SH_PFC_PIN_NONE,
5262 [11] = SH_PFC_PIN_NONE,
5263 [12] = SH_PFC_PIN_NONE,
5264 [13] = SH_PFC_PIN_NONE,
5265 [14] = SH_PFC_PIN_NONE,
5266 [15] = SH_PFC_PIN_NONE,
5267 [16] = SH_PFC_PIN_NONE,
5268 [17] = SH_PFC_PIN_NONE,
5269 [18] = SH_PFC_PIN_NONE,
5270 [19] = SH_PFC_PIN_NONE,
5271 [20] = SH_PFC_PIN_NONE,
5272 [21] = SH_PFC_PIN_NONE,
5273 [22] = SH_PFC_PIN_NONE,
5274 [23] = SH_PFC_PIN_NONE,
5275 [24] = SH_PFC_PIN_NONE,
5276 [25] = SH_PFC_PIN_NONE,
5277 [26] = SH_PFC_PIN_NONE,
5278 [27] = SH_PFC_PIN_NONE,
5279 [28] = SH_PFC_PIN_NONE,
5280 [29] = SH_PFC_PIN_NONE,
Marek Vasut6af234c2023-01-26 21:01:45 +01005281 [30] = RCAR_GP_PIN(6, 9), /* USB30_OVC */
5282 [31] = RCAR_GP_PIN(6, 17), /* USB30_PWEN */
Marek Vasut88e81ec2019-03-04 22:39:51 +01005283 } },
Marek Vasut8fed6732023-09-17 16:08:45 +02005284 { /* sentinel */ }
Marek Vasut88e81ec2019-03-04 22:39:51 +01005285};
5286
Marek Vasut6af234c2023-01-26 21:01:45 +01005287static const struct sh_pfc_soc_operations r8a77990_pfc_ops = {
Marek Vasut46991d52018-10-31 20:34:51 +01005288 .pin_to_pocctrl = r8a77990_pin_to_pocctrl,
Marek Vasut6af234c2023-01-26 21:01:45 +01005289 .get_bias = rcar_pinmux_get_bias,
5290 .set_bias = rcar_pinmux_set_bias,
Marek Vasut88e81ec2019-03-04 22:39:51 +01005291};
5292
5293#ifdef CONFIG_PINCTRL_PFC_R8A774C0
5294const struct sh_pfc_soc_info r8a774c0_pinmux_info = {
5295 .name = "r8a774c0_pfc",
Marek Vasut6af234c2023-01-26 21:01:45 +01005296 .ops = &r8a77990_pfc_ops,
Marek Vasut88e81ec2019-03-04 22:39:51 +01005297 .unlock_reg = 0xe6060000, /* PMMR */
5298
5299 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
5300
5301 .pins = pinmux_pins,
5302 .nr_pins = ARRAY_SIZE(pinmux_pins),
5303 .groups = pinmux_groups.common,
5304 .nr_groups = ARRAY_SIZE(pinmux_groups.common),
5305 .functions = pinmux_functions.common,
5306 .nr_functions = ARRAY_SIZE(pinmux_functions.common),
5307
5308 .cfg_regs = pinmux_config_regs,
Marek Vasut6af234c2023-01-26 21:01:45 +01005309 .drive_regs = pinmux_drive_regs,
Marek Vasut88e81ec2019-03-04 22:39:51 +01005310 .bias_regs = pinmux_bias_regs,
5311 .ioctrl_regs = pinmux_ioctrl_regs,
5312
5313 .pinmux_data = pinmux_data,
5314 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
Marek Vasut46991d52018-10-31 20:34:51 +01005315};
Marek Vasut88e81ec2019-03-04 22:39:51 +01005316#endif
Marek Vasut46991d52018-10-31 20:34:51 +01005317
Marek Vasut88e81ec2019-03-04 22:39:51 +01005318#ifdef CONFIG_PINCTRL_PFC_R8A77990
Marek Vasut68a77042018-04-26 13:09:20 +02005319const struct sh_pfc_soc_info r8a77990_pinmux_info = {
5320 .name = "r8a77990_pfc",
Marek Vasut6af234c2023-01-26 21:01:45 +01005321 .ops = &r8a77990_pfc_ops,
Marek Vasut68a77042018-04-26 13:09:20 +02005322 .unlock_reg = 0xe6060000, /* PMMR */
5323
5324 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
5325
5326 .pins = pinmux_pins,
5327 .nr_pins = ARRAY_SIZE(pinmux_pins),
Marek Vasut88e81ec2019-03-04 22:39:51 +01005328 .groups = pinmux_groups.common,
5329 .nr_groups = ARRAY_SIZE(pinmux_groups.common) +
5330 ARRAY_SIZE(pinmux_groups.automotive),
5331 .functions = pinmux_functions.common,
5332 .nr_functions = ARRAY_SIZE(pinmux_functions.common) +
5333 ARRAY_SIZE(pinmux_functions.automotive),
Marek Vasut68a77042018-04-26 13:09:20 +02005334
5335 .cfg_regs = pinmux_config_regs,
Marek Vasut6af234c2023-01-26 21:01:45 +01005336 .drive_regs = pinmux_drive_regs,
Marek Vasut88e81ec2019-03-04 22:39:51 +01005337 .bias_regs = pinmux_bias_regs,
Marek Vasut46991d52018-10-31 20:34:51 +01005338 .ioctrl_regs = pinmux_ioctrl_regs,
Marek Vasut68a77042018-04-26 13:09:20 +02005339
5340 .pinmux_data = pinmux_data,
5341 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
5342};
Marek Vasut88e81ec2019-03-04 22:39:51 +01005343#endif