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