blob: 20498a1c2f74b01fb89190cde99c262efcd7b053 [file] [log] [blame]
Hai Pham9a8aaa32023-02-28 22:37:03 +01001// SPDX-License-Identifier: GPL-2.0
2/*
3 * R8A779A0 processor support - PFC hardware block.
4 *
5 * Copyright (C) 2021 Renesas Electronics Corp.
6 *
7 * This file is based on the drivers/pinctrl/renesas/pfc-r8a779a0.c
8 */
9
10#include <common.h>
11#include <dm.h>
12#include <errno.h>
13#include <dm/pinctrl.h>
14#include <linux/bitops.h>
15#include <linux/kernel.h>
16
17#include "sh_pfc.h"
18
19#define CFG_FLAGS (SH_PFC_PIN_CFG_DRIVE_STRENGTH | SH_PFC_PIN_CFG_PULL_UP_DOWN)
20
21#define CPU_ALL_GP(fn, sfx) \
22 PORT_GP_CFG_19(0, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
23 PORT_GP_CFG_23(1, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
24 PORT_GP_CFG_1(1, 23, fn, sfx, CFG_FLAGS), \
25 PORT_GP_CFG_1(1, 24, fn, sfx, CFG_FLAGS), \
26 PORT_GP_CFG_1(1, 25, fn, sfx, CFG_FLAGS), \
27 PORT_GP_CFG_1(1, 26, fn, sfx, CFG_FLAGS), \
28 PORT_GP_CFG_1(1, 27, fn, sfx, CFG_FLAGS), \
29 PORT_GP_CFG_1(1, 28, fn, sfx, CFG_FLAGS), \
30 PORT_GP_CFG_20(2, fn, sfx, CFG_FLAGS), \
31 PORT_GP_CFG_13(3, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
32 PORT_GP_CFG_1(3, 13, fn, sfx, CFG_FLAGS), \
33 PORT_GP_CFG_1(3, 14, fn, sfx, CFG_FLAGS), \
34 PORT_GP_CFG_1(3, 15, fn, sfx, CFG_FLAGS), \
35 PORT_GP_CFG_1(3, 16, fn, sfx, CFG_FLAGS), \
36 PORT_GP_CFG_1(3, 17, fn, sfx, CFG_FLAGS), \
37 PORT_GP_CFG_1(3, 18, fn, sfx, CFG_FLAGS), \
38 PORT_GP_CFG_1(3, 19, fn, sfx, CFG_FLAGS), \
39 PORT_GP_CFG_1(3, 20, fn, sfx, CFG_FLAGS), \
40 PORT_GP_CFG_1(3, 21, fn, sfx, CFG_FLAGS), \
41 PORT_GP_CFG_1(3, 22, fn, sfx, CFG_FLAGS), \
42 PORT_GP_CFG_1(3, 23, fn, sfx, CFG_FLAGS), \
43 PORT_GP_CFG_1(3, 24, fn, sfx, CFG_FLAGS), \
44 PORT_GP_CFG_1(3, 25, fn, sfx, CFG_FLAGS), \
45 PORT_GP_CFG_1(3, 26, fn, sfx, CFG_FLAGS), \
46 PORT_GP_CFG_1(3, 27, fn, sfx, CFG_FLAGS), \
47 PORT_GP_CFG_1(3, 28, fn, sfx, CFG_FLAGS), \
48 PORT_GP_CFG_1(3, 29, fn, sfx, CFG_FLAGS), \
49 PORT_GP_CFG_25(4, fn, sfx, CFG_FLAGS), \
50 PORT_GP_CFG_21(5, fn, sfx, CFG_FLAGS), \
51 PORT_GP_CFG_21(6, fn, sfx, CFG_FLAGS), \
52 PORT_GP_CFG_21(7, fn, sfx, CFG_FLAGS), \
53 PORT_GP_CFG_14(8, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33)
54
Marek Vasut8f07e8a2023-09-17 16:08:49 +020055#define CPU_ALL_NOGP(fn) \
56 PIN_NOGP_CFG(VDDQ_AVB0, "VDDQ_AVB0", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25), \
57 PIN_NOGP_CFG(VDDQ_AVB1, "VDDQ_AVB1", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25), \
58 PIN_NOGP_CFG(VDDQ_AVB2, "VDDQ_AVB2", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25), \
59 PIN_NOGP_CFG(VDDQ_TSN0, "VDDQ_TSN0", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25)
60
Hai Pham9a8aaa32023-02-28 22:37:03 +010061/* GPSR0 */
62#define GPSR0_18 F_(MSIOF2_RXD, IP2SR0_11_8)
63#define GPSR0_17 F_(MSIOF2_SCK, IP2SR0_7_4)
64#define GPSR0_16 F_(MSIOF2_TXD, IP2SR0_3_0)
65#define GPSR0_15 F_(MSIOF2_SYNC, IP1SR0_31_28)
66#define GPSR0_14 F_(MSIOF2_SS1, IP1SR0_27_24)
67#define GPSR0_13 F_(MSIOF2_SS2, IP1SR0_23_20)
68#define GPSR0_12 F_(MSIOF5_RXD, IP1SR0_19_16)
69#define GPSR0_11 F_(MSIOF5_SCK, IP1SR0_15_12)
70#define GPSR0_10 F_(MSIOF5_TXD, IP1SR0_11_8)
71#define GPSR0_9 F_(MSIOF5_SYNC, IP1SR0_7_4)
72#define GPSR0_8 F_(MSIOF5_SS1, IP1SR0_3_0)
73#define GPSR0_7 F_(MSIOF5_SS2, IP0SR0_31_28)
74#define GPSR0_6 F_(IRQ0, IP0SR0_27_24)
75#define GPSR0_5 F_(IRQ1, IP0SR0_23_20)
76#define GPSR0_4 F_(IRQ2, IP0SR0_19_16)
77#define GPSR0_3 F_(IRQ3, IP0SR0_15_12)
78#define GPSR0_2 F_(GP0_02, IP0SR0_11_8)
79#define GPSR0_1 F_(GP0_01, IP0SR0_7_4)
80#define GPSR0_0 F_(GP0_00, IP0SR0_3_0)
81
82/* GPSR1 */
83#define GPSR1_28 F_(HTX3, IP3SR1_19_16)
84#define GPSR1_27 F_(HCTS3_N, IP3SR1_15_12)
85#define GPSR1_26 F_(HRTS3_N, IP3SR1_11_8)
86#define GPSR1_25 F_(HSCK3, IP3SR1_7_4)
87#define GPSR1_24 F_(HRX3, IP3SR1_3_0)
88#define GPSR1_23 F_(GP1_23, IP2SR1_31_28)
89#define GPSR1_22 F_(AUDIO_CLKIN, IP2SR1_27_24)
90#define GPSR1_21 F_(AUDIO_CLKOUT, IP2SR1_23_20)
91#define GPSR1_20 F_(SSI_SD, IP2SR1_19_16)
92#define GPSR1_19 F_(SSI_WS, IP2SR1_15_12)
93#define GPSR1_18 F_(SSI_SCK, IP2SR1_11_8)
94#define GPSR1_17 F_(SCIF_CLK, IP2SR1_7_4)
95#define GPSR1_16 F_(HRX0, IP2SR1_3_0)
96#define GPSR1_15 F_(HSCK0, IP1SR1_31_28)
97#define GPSR1_14 F_(HRTS0_N, IP1SR1_27_24)
98#define GPSR1_13 F_(HCTS0_N, IP1SR1_23_20)
99#define GPSR1_12 F_(HTX0, IP1SR1_19_16)
100#define GPSR1_11 F_(MSIOF0_RXD, IP1SR1_15_12)
101#define GPSR1_10 F_(MSIOF0_SCK, IP1SR1_11_8)
102#define GPSR1_9 F_(MSIOF0_TXD, IP1SR1_7_4)
103#define GPSR1_8 F_(MSIOF0_SYNC, IP1SR1_3_0)
104#define GPSR1_7 F_(MSIOF0_SS1, IP0SR1_31_28)
105#define GPSR1_6 F_(MSIOF0_SS2, IP0SR1_27_24)
106#define GPSR1_5 F_(MSIOF1_RXD, IP0SR1_23_20)
107#define GPSR1_4 F_(MSIOF1_TXD, IP0SR1_19_16)
108#define GPSR1_3 F_(MSIOF1_SCK, IP0SR1_15_12)
109#define GPSR1_2 F_(MSIOF1_SYNC, IP0SR1_11_8)
110#define GPSR1_1 F_(MSIOF1_SS1, IP0SR1_7_4)
111#define GPSR1_0 F_(MSIOF1_SS2, IP0SR1_3_0)
112
113/* GPSR2 */
114#define GPSR2_19 F_(CANFD7_RX, IP2SR2_15_12)
115#define GPSR2_18 F_(CANFD7_TX, IP2SR2_11_8)
116#define GPSR2_17 F_(CANFD4_RX, IP2SR2_7_4)
117#define GPSR2_16 F_(CANFD4_TX, IP2SR2_3_0)
118#define GPSR2_15 F_(CANFD3_RX, IP1SR2_31_28)
119#define GPSR2_14 F_(CANFD3_TX, IP1SR2_27_24)
120#define GPSR2_13 F_(CANFD2_RX, IP1SR2_23_20)
121#define GPSR2_12 F_(CANFD2_TX, IP1SR2_19_16)
122#define GPSR2_11 F_(CANFD0_RX, IP1SR2_15_12)
123#define GPSR2_10 F_(CANFD0_TX, IP1SR2_11_8)
124#define GPSR2_9 F_(CAN_CLK, IP1SR2_7_4)
125#define GPSR2_8 F_(TPU0TO0, IP1SR2_3_0)
126#define GPSR2_7 F_(TPU0TO1, IP0SR2_31_28)
127#define GPSR2_6 F_(FXR_TXDB, IP0SR2_27_24)
128#define GPSR2_5 F_(FXR_TXENB_N, IP0SR2_23_20)
129#define GPSR2_4 F_(RXDB_EXTFXR, IP0SR2_19_16)
130#define GPSR2_3 F_(CLK_EXTFXR, IP0SR2_15_12)
131#define GPSR2_2 F_(RXDA_EXTFXR, IP0SR2_11_8)
132#define GPSR2_1 F_(FXR_TXENA_N, IP0SR2_7_4)
133#define GPSR2_0 F_(FXR_TXDA, IP0SR2_3_0)
134
135/* GPSR3 */
136#define GPSR3_29 F_(RPC_INT_N, IP3SR3_23_20)
137#define GPSR3_28 F_(RPC_WP_N, IP3SR3_19_16)
138#define GPSR3_27 F_(RPC_RESET_N, IP3SR3_15_12)
139#define GPSR3_26 F_(QSPI1_IO3, IP3SR3_11_8)
140#define GPSR3_25 F_(QSPI1_SSL, IP3SR3_7_4)
141#define GPSR3_24 F_(QSPI1_IO2, IP3SR3_3_0)
142#define GPSR3_23 F_(QSPI1_MISO_IO1, IP2SR3_31_28)
143#define GPSR3_22 F_(QSPI1_SPCLK, IP2SR3_27_24)
144#define GPSR3_21 F_(QSPI1_MOSI_IO0, IP2SR3_23_20)
145#define GPSR3_20 F_(QSPI0_SPCLK, IP2SR3_19_16)
146#define GPSR3_19 F_(QSPI0_MOSI_IO0, IP2SR3_15_12)
147#define GPSR3_18 F_(QSPI0_MISO_IO1, IP2SR3_11_8)
148#define GPSR3_17 F_(QSPI0_IO2, IP2SR3_7_4)
149#define GPSR3_16 F_(QSPI0_IO3, IP2SR3_3_0)
150#define GPSR3_15 F_(QSPI0_SSL, IP1SR3_31_28)
151#define GPSR3_14 F_(IPC_CLKOUT, IP1SR3_27_24)
152#define GPSR3_13 F_(IPC_CLKIN, IP1SR3_23_20)
153#define GPSR3_12 F_(SD_WP, IP1SR3_19_16)
154#define GPSR3_11 F_(SD_CD, IP1SR3_15_12)
155#define GPSR3_10 F_(MMC_SD_CMD, IP1SR3_11_8)
156#define GPSR3_9 F_(MMC_D6, IP1SR3_7_4)
157#define GPSR3_8 F_(MMC_D7, IP1SR3_3_0)
158#define GPSR3_7 F_(MMC_D4, IP0SR3_31_28)
159#define GPSR3_6 F_(MMC_D5, IP0SR3_27_24)
160#define GPSR3_5 F_(MMC_SD_D3, IP0SR3_23_20)
161#define GPSR3_4 F_(MMC_DS, IP0SR3_19_16)
162#define GPSR3_3 F_(MMC_SD_CLK, IP0SR3_15_12)
163#define GPSR3_2 F_(MMC_SD_D2, IP0SR3_11_8)
164#define GPSR3_1 F_(MMC_SD_D0, IP0SR3_7_4)
165#define GPSR3_0 F_(MMC_SD_D1, IP0SR3_3_0)
166
167/* GPSR4 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200168#define GPSR4_24 F_(AVS1, IP3SR4_3_0)
169#define GPSR4_23 F_(AVS0, IP2SR4_31_28)
170#define GPSR4_22 F_(PCIE1_CLKREQ_N, IP2SR4_27_24)
171#define GPSR4_21 F_(PCIE0_CLKREQ_N, IP2SR4_23_20)
172#define GPSR4_20 F_(TSN0_TXCREFCLK, IP2SR4_19_16)
173#define GPSR4_19 F_(TSN0_TD2, IP2SR4_15_12)
174#define GPSR4_18 F_(TSN0_TD3, IP2SR4_11_8)
175#define GPSR4_17 F_(TSN0_RD2, IP2SR4_7_4)
176#define GPSR4_16 F_(TSN0_RD3, IP2SR4_3_0)
177#define GPSR4_15 F_(TSN0_TD0, IP1SR4_31_28)
178#define GPSR4_14 F_(TSN0_TD1, IP1SR4_27_24)
179#define GPSR4_13 F_(TSN0_RD1, IP1SR4_23_20)
180#define GPSR4_12 F_(TSN0_TXC, IP1SR4_19_16)
181#define GPSR4_11 F_(TSN0_RXC, IP1SR4_15_12)
182#define GPSR4_10 F_(TSN0_RD0, IP1SR4_11_8)
183#define GPSR4_9 F_(TSN0_TX_CTL, IP1SR4_7_4)
184#define GPSR4_8 F_(TSN0_AVTP_PPS0, IP1SR4_3_0)
185#define GPSR4_7 F_(TSN0_RX_CTL, IP0SR4_31_28)
186#define GPSR4_6 F_(TSN0_AVTP_CAPTURE, IP0SR4_27_24)
187#define GPSR4_5 F_(TSN0_AVTP_MATCH, IP0SR4_23_20)
188#define GPSR4_4 F_(TSN0_LINK, IP0SR4_19_16)
189#define GPSR4_3 F_(TSN0_PHY_INT, IP0SR4_15_12)
190#define GPSR4_2 F_(TSN0_AVTP_PPS1, IP0SR4_11_8)
191#define GPSR4_1 F_(TSN0_MDC, IP0SR4_7_4)
192#define GPSR4_0 F_(TSN0_MDIO, IP0SR4_3_0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100193
194/* GPSR 5 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200195#define GPSR5_20 F_(AVB2_RX_CTL, IP2SR5_19_16)
196#define GPSR5_19 F_(AVB2_TX_CTL, IP2SR5_15_12)
197#define GPSR5_18 F_(AVB2_RXC, IP2SR5_11_8)
198#define GPSR5_17 F_(AVB2_RD0, IP2SR5_7_4)
199#define GPSR5_16 F_(AVB2_TXC, IP2SR5_3_0)
200#define GPSR5_15 F_(AVB2_TD0, IP1SR5_31_28)
201#define GPSR5_14 F_(AVB2_RD1, IP1SR5_27_24)
202#define GPSR5_13 F_(AVB2_RD2, IP1SR5_23_20)
203#define GPSR5_12 F_(AVB2_TD1, IP1SR5_19_16)
204#define GPSR5_11 F_(AVB2_TD2, IP1SR5_15_12)
205#define GPSR5_10 F_(AVB2_MDIO, IP1SR5_11_8)
206#define GPSR5_9 F_(AVB2_RD3, IP1SR5_7_4)
207#define GPSR5_8 F_(AVB2_TD3, IP1SR5_3_0)
208#define GPSR5_7 F_(AVB2_TXCREFCLK, IP0SR5_31_28)
209#define GPSR5_6 F_(AVB2_MDC, IP0SR5_27_24)
210#define GPSR5_5 F_(AVB2_MAGIC, IP0SR5_23_20)
211#define GPSR5_4 F_(AVB2_PHY_INT, IP0SR5_19_16)
212#define GPSR5_3 F_(AVB2_LINK, IP0SR5_15_12)
213#define GPSR5_2 F_(AVB2_AVTP_MATCH, IP0SR5_11_8)
214#define GPSR5_1 F_(AVB2_AVTP_CAPTURE, IP0SR5_7_4)
215#define GPSR5_0 F_(AVB2_AVTP_PPS, IP0SR5_3_0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100216
217/* GPSR 6 */
218#define GPSR6_20 F_(AVB1_TXCREFCLK, IP2SR6_19_16)
219#define GPSR6_19 F_(AVB1_RD3, IP2SR6_15_12)
220#define GPSR6_18 F_(AVB1_TD3, IP2SR6_11_8)
221#define GPSR6_17 F_(AVB1_RD2, IP2SR6_7_4)
222#define GPSR6_16 F_(AVB1_TD2, IP2SR6_3_0)
223#define GPSR6_15 F_(AVB1_RD0, IP1SR6_31_28)
224#define GPSR6_14 F_(AVB1_RD1, IP1SR6_27_24)
225#define GPSR6_13 F_(AVB1_TD0, IP1SR6_23_20)
226#define GPSR6_12 F_(AVB1_TD1, IP1SR6_19_16)
227#define GPSR6_11 F_(AVB1_AVTP_CAPTURE, IP1SR6_15_12)
228#define GPSR6_10 F_(AVB1_AVTP_PPS, IP1SR6_11_8)
229#define GPSR6_9 F_(AVB1_RX_CTL, IP1SR6_7_4)
230#define GPSR6_8 F_(AVB1_RXC, IP1SR6_3_0)
231#define GPSR6_7 F_(AVB1_TX_CTL, IP0SR6_31_28)
232#define GPSR6_6 F_(AVB1_TXC, IP0SR6_27_24)
233#define GPSR6_5 F_(AVB1_AVTP_MATCH, IP0SR6_23_20)
234#define GPSR6_4 F_(AVB1_LINK, IP0SR6_19_16)
235#define GPSR6_3 F_(AVB1_PHY_INT, IP0SR6_15_12)
236#define GPSR6_2 F_(AVB1_MDC, IP0SR6_11_8)
237#define GPSR6_1 F_(AVB1_MAGIC, IP0SR6_7_4)
238#define GPSR6_0 F_(AVB1_MDIO, IP0SR6_3_0)
239
240/* GPSR7 */
241#define GPSR7_20 F_(AVB0_RX_CTL, IP2SR7_19_16)
242#define GPSR7_19 F_(AVB0_RXC, IP2SR7_15_12)
243#define GPSR7_18 F_(AVB0_RD0, IP2SR7_11_8)
244#define GPSR7_17 F_(AVB0_RD1, IP2SR7_7_4)
245#define GPSR7_16 F_(AVB0_TX_CTL, IP2SR7_3_0)
246#define GPSR7_15 F_(AVB0_TXC, IP1SR7_31_28)
247#define GPSR7_14 F_(AVB0_MDIO, IP1SR7_27_24)
248#define GPSR7_13 F_(AVB0_MDC, IP1SR7_23_20)
249#define GPSR7_12 F_(AVB0_RD2, IP1SR7_19_16)
250#define GPSR7_11 F_(AVB0_TD0, IP1SR7_15_12)
251#define GPSR7_10 F_(AVB0_MAGIC, IP1SR7_11_8)
252#define GPSR7_9 F_(AVB0_TXCREFCLK, IP1SR7_7_4)
253#define GPSR7_8 F_(AVB0_RD3, IP1SR7_3_0)
254#define GPSR7_7 F_(AVB0_TD1, IP0SR7_31_28)
255#define GPSR7_6 F_(AVB0_TD2, IP0SR7_27_24)
256#define GPSR7_5 F_(AVB0_PHY_INT, IP0SR7_23_20)
257#define GPSR7_4 F_(AVB0_LINK, IP0SR7_19_16)
258#define GPSR7_3 F_(AVB0_TD3, IP0SR7_15_12)
259#define GPSR7_2 F_(AVB0_AVTP_MATCH, IP0SR7_11_8)
260#define GPSR7_1 F_(AVB0_AVTP_CAPTURE, IP0SR7_7_4)
261#define GPSR7_0 F_(AVB0_AVTP_PPS, IP0SR7_3_0)
262
263/* GPSR8 */
264#define GPSR8_13 F_(GP8_13, IP1SR8_23_20)
265#define GPSR8_12 F_(GP8_12, IP1SR8_19_16)
266#define GPSR8_11 F_(SDA5, IP1SR8_15_12)
267#define GPSR8_10 F_(SCL5, IP1SR8_11_8)
268#define GPSR8_9 F_(SDA4, IP1SR8_7_4)
269#define GPSR8_8 F_(SCL4, IP1SR8_3_0)
270#define GPSR8_7 F_(SDA3, IP0SR8_31_28)
271#define GPSR8_6 F_(SCL3, IP0SR8_27_24)
272#define GPSR8_5 F_(SDA2, IP0SR8_23_20)
273#define GPSR8_4 F_(SCL2, IP0SR8_19_16)
274#define GPSR8_3 F_(SDA1, IP0SR8_15_12)
275#define GPSR8_2 F_(SCL1, IP0SR8_11_8)
276#define GPSR8_1 F_(SDA0, IP0SR8_7_4)
277#define GPSR8_0 F_(SCL0, IP0SR8_3_0)
278
279/* SR0 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200280/* IP0SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
281#define IP0SR0_3_0 F_(0, 0) FM(ERROROUTC_N_B) FM(TCLK2_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
282#define IP0SR0_7_4 F_(0, 0) FM(MSIOF3_SS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
283#define IP0SR0_11_8 F_(0, 0) FM(MSIOF3_SS2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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#define IP0SR0_15_12 FM(IRQ3) FM(MSIOF3_SCK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
285#define IP0SR0_19_16 FM(IRQ2) FM(MSIOF3_TXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
286#define IP0SR0_23_20 FM(IRQ1) FM(MSIOF3_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR0_27_24 FM(IRQ0) FM(MSIOF3_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR0_31_28 FM(MSIOF5_SS2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100289
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200290/* IP1SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
291#define IP1SR0_3_0 FM(MSIOF5_SS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR0_7_4 FM(MSIOF5_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR0_11_8 FM(MSIOF5_TXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR0_15_12 FM(MSIOF5_SCK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
295#define IP1SR0_19_16 FM(MSIOF5_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR0_23_20 FM(MSIOF2_SS2) FM(TCLK1) FM(IRQ2_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
297#define IP1SR0_27_24 FM(MSIOF2_SS1) FM(HTX1) FM(TX1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR0_31_28 FM(MSIOF2_SYNC) FM(HRX1) FM(RX1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100299
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200300/* IP2SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
301#define IP2SR0_3_0 FM(MSIOF2_TXD) FM(HCTS1_N) FM(CTS1_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
302#define IP2SR0_7_4 FM(MSIOF2_SCK) FM(HRTS1_N) FM(RTS1_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
303#define IP2SR0_11_8 FM(MSIOF2_RXD) FM(HSCK1) 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) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100304
305/* SR1 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200306/* IP0SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
307#define IP0SR1_3_0 FM(MSIOF1_SS2) FM(HTX3_A) FM(TX3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR1_7_4 FM(MSIOF1_SS1) FM(HCTS3_N_A) FM(RX3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR1_11_8 FM(MSIOF1_SYNC) FM(HRTS3_N_A) FM(RTS3_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)
310#define IP0SR1_15_12 FM(MSIOF1_SCK) FM(HSCK3_A) FM(CTS3_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)
311#define IP0SR1_19_16 FM(MSIOF1_TXD) FM(HRX3_A) FM(SCK3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR1_23_20 FM(MSIOF1_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR1_27_24 FM(MSIOF0_SS2) FM(HTX1_X) FM(TX1_X) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR1_31_28 FM(MSIOF0_SS1) FM(HRX1_X) FM(RX1_X) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100315
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200316/* IP1SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
317#define IP1SR1_3_0 FM(MSIOF0_SYNC) FM(HCTS1_N_X) FM(CTS1_N_X) FM(CANFD5_TX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
318#define IP1SR1_7_4 FM(MSIOF0_TXD) FM(HRTS1_N_X) FM(RTS1_N_X) FM(CANFD5_RX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
319#define IP1SR1_11_8 FM(MSIOF0_SCK) FM(HSCK1_X) FM(SCK1_X) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
320#define IP1SR1_15_12 FM(MSIOF0_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR1_19_16 FM(HTX0) FM(TX0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR1_23_20 FM(HCTS0_N) FM(CTS0_N) FM(PWM8_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)
323#define IP1SR1_27_24 FM(HRTS0_N) FM(RTS0_N) FM(PWM9_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)
324#define IP1SR1_31_28 FM(HSCK0) FM(SCK0) FM(PWM0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100325
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200326/* IP2SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
327#define IP2SR1_3_0 FM(HRX0) FM(RX0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP2SR1_7_4 FM(SCIF_CLK) FM(IRQ4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
329#define IP2SR1_11_8 FM(SSI_SCK) FM(TCLK3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP2SR1_15_12 FM(SSI_WS) FM(TCLK4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP2SR1_19_16 FM(SSI_SD) FM(IRQ0_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)
332#define IP2SR1_23_20 FM(AUDIO_CLKOUT) FM(IRQ1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
333#define IP2SR1_27_24 FM(AUDIO_CLKIN) FM(PWM3_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
334#define IP2SR1_31_28 F_(0, 0) FM(TCLK2) FM(MSIOF4_SS1) FM(IRQ3_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)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100335
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200336/* IP3SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
337#define IP3SR1_3_0 FM(HRX3) FM(SCK3_A) FM(MSIOF4_SS2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP3SR1_7_4 FM(HSCK3) FM(CTS3_N_A) FM(MSIOF4_SCK) FM(TPU0TO0_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)
339#define IP3SR1_11_8 FM(HRTS3_N) FM(RTS3_N_A) FM(MSIOF4_TXD) FM(TPU0TO1_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)
340#define IP3SR1_15_12 FM(HCTS3_N) FM(RX3_A) FM(MSIOF4_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP3SR1_19_16 FM(HTX3) FM(TX3_A) FM(MSIOF4_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100342
343/* SR2 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200344/* IP0SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
345#define IP0SR2_3_0 FM(FXR_TXDA) FM(CANFD1_TX) FM(TPU0TO2_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
346#define IP0SR2_7_4 FM(FXR_TXENA_N) FM(CANFD1_RX) FM(TPU0TO3_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
347#define IP0SR2_11_8 FM(RXDA_EXTFXR) FM(CANFD5_TX) FM(IRQ5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
348#define IP0SR2_15_12 FM(CLK_EXTFXR) FM(CANFD5_RX) FM(IRQ4_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
349#define IP0SR2_19_16 FM(RXDB_EXTFXR) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR2_23_20 FM(FXR_TXENB_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) F_(0, 0)
351#define IP0SR2_27_24 FM(FXR_TXDB) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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#define IP0SR2_31_28 FM(TPU0TO1) FM(CANFD6_TX) F_(0, 0) FM(TCLK2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100353
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200354/* IP1SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
355#define IP1SR2_3_0 FM(TPU0TO0) FM(CANFD6_RX) F_(0, 0) FM(TCLK1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
356#define IP1SR2_7_4 FM(CAN_CLK) FM(FXR_TXENA_N_X) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
357#define IP1SR2_11_8 FM(CANFD0_TX) FM(FXR_TXENB_N_X) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
358#define IP1SR2_15_12 FM(CANFD0_RX) FM(STPWT_EXTFXR) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
359#define IP1SR2_19_16 FM(CANFD2_TX) FM(TPU0TO2) F_(0, 0) FM(TCLK3_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)
360#define IP1SR2_23_20 FM(CANFD2_RX) FM(TPU0TO3) FM(PWM1_B) FM(TCLK4_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)
361#define IP1SR2_27_24 FM(CANFD3_TX) F_(0, 0) FM(PWM2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
362#define IP1SR2_31_28 FM(CANFD3_RX) F_(0, 0) FM(PWM3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100363
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200364/* IP2SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
365#define IP2SR2_3_0 FM(CANFD4_TX) F_(0, 0) FM(PWM4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
366#define IP2SR2_7_4 FM(CANFD4_RX) F_(0, 0) FM(PWM5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
367#define IP2SR2_11_8 FM(CANFD7_TX) F_(0, 0) FM(PWM6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
368#define IP2SR2_15_12 FM(CANFD7_RX) F_(0, 0) FM(PWM7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100369
370/* SR3 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200371/* IP0SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
372#define IP0SR3_3_0 FM(MMC_SD_D1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
373#define IP0SR3_7_4 FM(MMC_SD_D0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
374#define IP0SR3_11_8 FM(MMC_SD_D2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
375#define IP0SR3_15_12 FM(MMC_SD_CLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
376#define IP0SR3_19_16 FM(MMC_DS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
377#define IP0SR3_23_20 FM(MMC_SD_D3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
378#define IP0SR3_27_24 FM(MMC_D5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
379#define IP0SR3_31_28 FM(MMC_D4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
380
381/* IP1SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
382#define IP1SR3_3_0 FM(MMC_D7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
383#define IP1SR3_7_4 FM(MMC_D6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
384#define IP1SR3_11_8 FM(MMC_SD_CMD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
385#define IP1SR3_15_12 FM(SD_CD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
386#define IP1SR3_19_16 FM(SD_WP) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
387#define IP1SR3_23_20 FM(IPC_CLKIN) FM(IPC_CLKEN_IN) FM(PWM1_A) FM(TCLK3_X) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
388#define IP1SR3_27_24 FM(IPC_CLKOUT) FM(IPC_CLKEN_OUT) FM(ERROROUTC_N_A) FM(TCLK4_X) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
389#define IP1SR3_31_28 FM(QSPI0_SSL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
390
391/* IP2SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
392#define IP2SR3_3_0 FM(QSPI0_IO3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
393#define IP2SR3_7_4 FM(QSPI0_IO2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
394#define IP2SR3_11_8 FM(QSPI0_MISO_IO1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
395#define IP2SR3_15_12 FM(QSPI0_MOSI_IO0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
396#define IP2SR3_19_16 FM(QSPI0_SPCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
397#define IP2SR3_23_20 FM(QSPI1_MOSI_IO0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
398#define IP2SR3_27_24 FM(QSPI1_SPCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
399#define IP2SR3_31_28 FM(QSPI1_MISO_IO1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100400
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200401/* IP3SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
402#define IP3SR3_3_0 FM(QSPI1_IO2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
403#define IP3SR3_7_4 FM(QSPI1_SSL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
404#define IP3SR3_11_8 FM(QSPI1_IO3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
405#define IP3SR3_15_12 FM(RPC_RESET_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) F_(0, 0)
406#define IP3SR3_19_16 FM(RPC_WP_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) F_(0, 0)
407#define IP3SR3_23_20 FM(RPC_INT_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) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100408
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200409/* SR4 */
410/* IP0SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
411#define IP0SR4_3_0 FM(TSN0_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)
412#define IP0SR4_7_4 FM(TSN0_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)
413#define IP0SR4_11_8 FM(TSN0_AVTP_PPS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
414#define IP0SR4_15_12 FM(TSN0_PHY_INT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
415#define IP0SR4_19_16 FM(TSN0_LINK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
416#define IP0SR4_23_20 FM(TSN0_AVTP_MATCH) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
417#define IP0SR4_27_24 FM(TSN0_AVTP_CAPTURE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
418#define IP0SR4_31_28 FM(TSN0_RX_CTL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100419
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200420/* IP1SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
421#define IP1SR4_3_0 FM(TSN0_AVTP_PPS0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
422#define IP1SR4_7_4 FM(TSN0_TX_CTL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
423#define IP1SR4_11_8 FM(TSN0_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)
424#define IP1SR4_15_12 FM(TSN0_RXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
425#define IP1SR4_19_16 FM(TSN0_TXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
426#define IP1SR4_23_20 FM(TSN0_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)
427#define IP1SR4_27_24 FM(TSN0_TD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
428#define IP1SR4_31_28 FM(TSN0_TD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
429
430/* IP2SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
431#define IP2SR4_3_0 FM(TSN0_RD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
432#define IP2SR4_7_4 FM(TSN0_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)
433#define IP2SR4_11_8 FM(TSN0_TD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
434#define IP2SR4_15_12 FM(TSN0_TD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
435#define IP2SR4_19_16 FM(TSN0_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)
436#define IP2SR4_23_20 FM(PCIE0_CLKREQ_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) F_(0, 0)
437#define IP2SR4_27_24 FM(PCIE1_CLKREQ_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) F_(0, 0)
438#define IP2SR4_31_28 FM(AVS0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
439
440/* IP3SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
441#define IP3SR4_3_0 FM(AVS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
442
443/* SR5 */
444/* IP0SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
445#define IP0SR5_3_0 FM(AVB2_AVTP_PPS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
446#define IP0SR5_7_4 FM(AVB2_AVTP_CAPTURE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
447#define IP0SR5_11_8 FM(AVB2_AVTP_MATCH) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
448#define IP0SR5_15_12 FM(AVB2_LINK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
449#define IP0SR5_19_16 FM(AVB2_PHY_INT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
450#define IP0SR5_23_20 FM(AVB2_MAGIC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
451#define IP0SR5_27_24 FM(AVB2_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)
452#define IP0SR5_31_28 FM(AVB2_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)
453
454/* IP1SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
455#define IP1SR5_3_0 FM(AVB2_TD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
456#define IP1SR5_7_4 FM(AVB2_RD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
457#define IP1SR5_11_8 FM(AVB2_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)
458#define IP1SR5_15_12 FM(AVB2_TD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
459#define IP1SR5_19_16 FM(AVB2_TD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
460#define IP1SR5_23_20 FM(AVB2_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)
461#define IP1SR5_27_24 FM(AVB2_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)
462#define IP1SR5_31_28 FM(AVB2_TD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
463
464/* IP2SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
465#define IP2SR5_3_0 FM(AVB2_TXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
466#define IP2SR5_7_4 FM(AVB2_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)
467#define IP2SR5_11_8 FM(AVB2_RXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
468#define IP2SR5_15_12 FM(AVB2_TX_CTL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
469#define IP2SR5_19_16 FM(AVB2_RX_CTL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100470
471/* SR6 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200472/* IP0SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
473#define IP0SR6_3_0 FM(AVB1_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)
474#define IP0SR6_7_4 FM(AVB1_MAGIC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
475#define IP0SR6_11_8 FM(AVB1_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)
476#define IP0SR6_15_12 FM(AVB1_PHY_INT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
477#define IP0SR6_19_16 FM(AVB1_LINK) FM(AVB1_MII_TX_ER) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
478#define IP0SR6_23_20 FM(AVB1_AVTP_MATCH) FM(AVB1_MII_RX_ER) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
479#define IP0SR6_27_24 FM(AVB1_TXC) FM(AVB1_MII_TXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
480#define IP0SR6_31_28 FM(AVB1_TX_CTL) FM(AVB1_MII_TX_EN) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100481
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200482/* IP1SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
483#define IP1SR6_3_0 FM(AVB1_RXC) FM(AVB1_MII_RXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
484#define IP1SR6_7_4 FM(AVB1_RX_CTL) FM(AVB1_MII_RX_DV) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
485#define IP1SR6_11_8 FM(AVB1_AVTP_PPS) FM(AVB1_MII_COL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
486#define IP1SR6_15_12 FM(AVB1_AVTP_CAPTURE) FM(AVB1_MII_CRS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
487#define IP1SR6_19_16 FM(AVB1_TD1) FM(AVB1_MII_TD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
488#define IP1SR6_23_20 FM(AVB1_TD0) FM(AVB1_MII_TD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
489#define IP1SR6_27_24 FM(AVB1_RD1) FM(AVB1_MII_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)
490#define IP1SR6_31_28 FM(AVB1_RD0) FM(AVB1_MII_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)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100491
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200492/* IP2SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
493#define IP2SR6_3_0 FM(AVB1_TD2) FM(AVB1_MII_TD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
494#define IP2SR6_7_4 FM(AVB1_RD2) FM(AVB1_MII_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)
495#define IP2SR6_11_8 FM(AVB1_TD3) FM(AVB1_MII_TD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
496#define IP2SR6_15_12 FM(AVB1_RD3) FM(AVB1_MII_RD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
497#define IP2SR6_19_16 FM(AVB1_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)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100498
499/* SR7 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200500/* IP0SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
501#define IP0SR7_3_0 FM(AVB0_AVTP_PPS) FM(AVB0_MII_COL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
502#define IP0SR7_7_4 FM(AVB0_AVTP_CAPTURE) FM(AVB0_MII_CRS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
503#define IP0SR7_11_8 FM(AVB0_AVTP_MATCH) FM(AVB0_MII_RX_ER) FM(CC5_OSCOUT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
504#define IP0SR7_15_12 FM(AVB0_TD3) FM(AVB0_MII_TD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
505#define IP0SR7_19_16 FM(AVB0_LINK) FM(AVB0_MII_TX_ER) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
506#define IP0SR7_23_20 FM(AVB0_PHY_INT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
507#define IP0SR7_27_24 FM(AVB0_TD2) FM(AVB0_MII_TD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
508#define IP0SR7_31_28 FM(AVB0_TD1) FM(AVB0_MII_TD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100509
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200510/* IP1SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
511#define IP1SR7_3_0 FM(AVB0_RD3) FM(AVB0_MII_RD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
512#define IP1SR7_7_4 FM(AVB0_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)
513#define IP1SR7_11_8 FM(AVB0_MAGIC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
514#define IP1SR7_15_12 FM(AVB0_TD0) FM(AVB0_MII_TD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
515#define IP1SR7_19_16 FM(AVB0_RD2) FM(AVB0_MII_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)
516#define IP1SR7_23_20 FM(AVB0_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)
517#define IP1SR7_27_24 FM(AVB0_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)
518#define IP1SR7_31_28 FM(AVB0_TXC) FM(AVB0_MII_TXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100519
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200520/* IP2SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
521#define IP2SR7_3_0 FM(AVB0_TX_CTL) FM(AVB0_MII_TX_EN) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
522#define IP2SR7_7_4 FM(AVB0_RD1) FM(AVB0_MII_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)
523#define IP2SR7_11_8 FM(AVB0_RD0) FM(AVB0_MII_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)
524#define IP2SR7_15_12 FM(AVB0_RXC) FM(AVB0_MII_RXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
525#define IP2SR7_19_16 FM(AVB0_RX_CTL) FM(AVB0_MII_RX_DV) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100526
527/* SR8 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200528/* IP0SR8 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
529#define IP0SR8_3_0 FM(SCL0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
530#define IP0SR8_7_4 FM(SDA0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
531#define IP0SR8_11_8 FM(SCL1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
532#define IP0SR8_15_12 FM(SDA1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
533#define IP0SR8_19_16 FM(SCL2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
534#define IP0SR8_23_20 FM(SDA2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
535#define IP0SR8_27_24 FM(SCL3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
536#define IP0SR8_31_28 FM(SDA3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100537
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200538/* IP1SR8 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
539#define IP1SR8_3_0 FM(SCL4) FM(HRX2) FM(SCK4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
540#define IP1SR8_7_4 FM(SDA4) FM(HTX2) FM(CTS4_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)
541#define IP1SR8_11_8 FM(SCL5) FM(HRTS2_N) FM(RTS4_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)
542#define IP1SR8_15_12 FM(SDA5) FM(SCIF_CLK2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
543#define IP1SR8_19_16 F_(0, 0) FM(HCTS2_N) FM(TX4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
544#define IP1SR8_23_20 F_(0, 0) FM(HSCK2) FM(RX4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham9a8aaa32023-02-28 22:37:03 +0100545
546#define PINMUX_GPSR \
547 GPSR3_29 \
548 GPSR1_28 GPSR3_28 \
549 GPSR1_27 GPSR3_27 \
550 GPSR1_26 GPSR3_26 \
551 GPSR1_25 GPSR3_25 \
552 GPSR1_24 GPSR3_24 GPSR4_24 \
553 GPSR1_23 GPSR3_23 GPSR4_23 \
554 GPSR1_22 GPSR3_22 GPSR4_22 \
555 GPSR1_21 GPSR3_21 GPSR4_21 \
556 GPSR1_20 GPSR3_20 GPSR4_20 GPSR5_20 GPSR6_20 GPSR7_20 \
557 GPSR1_19 GPSR2_19 GPSR3_19 GPSR4_19 GPSR5_19 GPSR6_19 GPSR7_19 \
558GPSR0_18 GPSR1_18 GPSR2_18 GPSR3_18 GPSR4_18 GPSR5_18 GPSR6_18 GPSR7_18 \
559GPSR0_17 GPSR1_17 GPSR2_17 GPSR3_17 GPSR4_17 GPSR5_17 GPSR6_17 GPSR7_17 \
560GPSR0_16 GPSR1_16 GPSR2_16 GPSR3_16 GPSR4_16 GPSR5_16 GPSR6_16 GPSR7_16 \
561GPSR0_15 GPSR1_15 GPSR2_15 GPSR3_15 GPSR4_15 GPSR5_15 GPSR6_15 GPSR7_15 \
562GPSR0_14 GPSR1_14 GPSR2_14 GPSR3_14 GPSR4_14 GPSR5_14 GPSR6_14 GPSR7_14 \
563GPSR0_13 GPSR1_13 GPSR2_13 GPSR3_13 GPSR4_13 GPSR5_13 GPSR6_13 GPSR7_13 GPSR8_13 \
564GPSR0_12 GPSR1_12 GPSR2_12 GPSR3_12 GPSR4_12 GPSR5_12 GPSR6_12 GPSR7_12 GPSR8_12 \
565GPSR0_11 GPSR1_11 GPSR2_11 GPSR3_11 GPSR4_11 GPSR5_11 GPSR6_11 GPSR7_11 GPSR8_11 \
566GPSR0_10 GPSR1_10 GPSR2_10 GPSR3_10 GPSR4_10 GPSR5_10 GPSR6_10 GPSR7_10 GPSR8_10 \
567GPSR0_9 GPSR1_9 GPSR2_9 GPSR3_9 GPSR4_9 GPSR5_9 GPSR6_9 GPSR7_9 GPSR8_9 \
568GPSR0_8 GPSR1_8 GPSR2_8 GPSR3_8 GPSR4_8 GPSR5_8 GPSR6_8 GPSR7_8 GPSR8_8 \
569GPSR0_7 GPSR1_7 GPSR2_7 GPSR3_7 GPSR4_7 GPSR5_7 GPSR6_7 GPSR7_7 GPSR8_7 \
570GPSR0_6 GPSR1_6 GPSR2_6 GPSR3_6 GPSR4_6 GPSR5_6 GPSR6_6 GPSR7_6 GPSR8_6 \
571GPSR0_5 GPSR1_5 GPSR2_5 GPSR3_5 GPSR4_5 GPSR5_5 GPSR6_5 GPSR7_5 GPSR8_5 \
572GPSR0_4 GPSR1_4 GPSR2_4 GPSR3_4 GPSR4_4 GPSR5_4 GPSR6_4 GPSR7_4 GPSR8_4 \
573GPSR0_3 GPSR1_3 GPSR2_3 GPSR3_3 GPSR4_3 GPSR5_3 GPSR6_3 GPSR7_3 GPSR8_3 \
574GPSR0_2 GPSR1_2 GPSR2_2 GPSR3_2 GPSR4_2 GPSR5_2 GPSR6_2 GPSR7_2 GPSR8_2 \
575GPSR0_1 GPSR1_1 GPSR2_1 GPSR3_1 GPSR4_1 GPSR5_1 GPSR6_1 GPSR7_1 GPSR8_1 \
576GPSR0_0 GPSR1_0 GPSR2_0 GPSR3_0 GPSR4_0 GPSR5_0 GPSR6_0 GPSR7_0 GPSR8_0
577
578#define PINMUX_IPSR \
579\
580FM(IP0SR0_3_0) IP0SR0_3_0 FM(IP1SR0_3_0) IP1SR0_3_0 FM(IP2SR0_3_0) IP2SR0_3_0 \
581FM(IP0SR0_7_4) IP0SR0_7_4 FM(IP1SR0_7_4) IP1SR0_7_4 FM(IP2SR0_7_4) IP2SR0_7_4 \
582FM(IP0SR0_11_8) IP0SR0_11_8 FM(IP1SR0_11_8) IP1SR0_11_8 FM(IP2SR0_11_8) IP2SR0_11_8 \
583FM(IP0SR0_15_12) IP0SR0_15_12 FM(IP1SR0_15_12) IP1SR0_15_12 \
584FM(IP0SR0_19_16) IP0SR0_19_16 FM(IP1SR0_19_16) IP1SR0_19_16 \
585FM(IP0SR0_23_20) IP0SR0_23_20 FM(IP1SR0_23_20) IP1SR0_23_20 \
586FM(IP0SR0_27_24) IP0SR0_27_24 FM(IP1SR0_27_24) IP1SR0_27_24 \
587FM(IP0SR0_31_28) IP0SR0_31_28 FM(IP1SR0_31_28) IP1SR0_31_28 \
588\
589FM(IP0SR1_3_0) IP0SR1_3_0 FM(IP1SR1_3_0) IP1SR1_3_0 FM(IP2SR1_3_0) IP2SR1_3_0 FM(IP3SR1_3_0) IP3SR1_3_0 \
590FM(IP0SR1_7_4) IP0SR1_7_4 FM(IP1SR1_7_4) IP1SR1_7_4 FM(IP2SR1_7_4) IP2SR1_7_4 FM(IP3SR1_7_4) IP3SR1_7_4 \
591FM(IP0SR1_11_8) IP0SR1_11_8 FM(IP1SR1_11_8) IP1SR1_11_8 FM(IP2SR1_11_8) IP2SR1_11_8 FM(IP3SR1_11_8) IP3SR1_11_8 \
592FM(IP0SR1_15_12) IP0SR1_15_12 FM(IP1SR1_15_12) IP1SR1_15_12 FM(IP2SR1_15_12) IP2SR1_15_12 FM(IP3SR1_15_12) IP3SR1_15_12 \
593FM(IP0SR1_19_16) IP0SR1_19_16 FM(IP1SR1_19_16) IP1SR1_19_16 FM(IP2SR1_19_16) IP2SR1_19_16 FM(IP3SR1_19_16) IP3SR1_19_16 \
594FM(IP0SR1_23_20) IP0SR1_23_20 FM(IP1SR1_23_20) IP1SR1_23_20 FM(IP2SR1_23_20) IP2SR1_23_20 \
595FM(IP0SR1_27_24) IP0SR1_27_24 FM(IP1SR1_27_24) IP1SR1_27_24 FM(IP2SR1_27_24) IP2SR1_27_24 \
596FM(IP0SR1_31_28) IP0SR1_31_28 FM(IP1SR1_31_28) IP1SR1_31_28 FM(IP2SR1_31_28) IP2SR1_31_28 \
597\
598FM(IP0SR2_3_0) IP0SR2_3_0 FM(IP1SR2_3_0) IP1SR2_3_0 FM(IP2SR2_3_0) IP2SR2_3_0 \
599FM(IP0SR2_7_4) IP0SR2_7_4 FM(IP1SR2_7_4) IP1SR2_7_4 FM(IP2SR2_7_4) IP2SR2_7_4 \
600FM(IP0SR2_11_8) IP0SR2_11_8 FM(IP1SR2_11_8) IP1SR2_11_8 FM(IP2SR2_11_8) IP2SR2_11_8 \
601FM(IP0SR2_15_12) IP0SR2_15_12 FM(IP1SR2_15_12) IP1SR2_15_12 FM(IP2SR2_15_12) IP2SR2_15_12 \
602FM(IP0SR2_19_16) IP0SR2_19_16 FM(IP1SR2_19_16) IP1SR2_19_16 \
603FM(IP0SR2_23_20) IP0SR2_23_20 FM(IP1SR2_23_20) IP1SR2_23_20 \
604FM(IP0SR2_27_24) IP0SR2_27_24 FM(IP1SR2_27_24) IP1SR2_27_24 \
605FM(IP0SR2_31_28) IP0SR2_31_28 FM(IP1SR2_31_28) IP1SR2_31_28 \
606\
607FM(IP0SR3_3_0) IP0SR3_3_0 FM(IP1SR3_3_0) IP1SR3_3_0 FM(IP2SR3_3_0) IP2SR3_3_0 FM(IP3SR3_3_0) IP3SR3_3_0 \
608FM(IP0SR3_7_4) IP0SR3_7_4 FM(IP1SR3_7_4) IP1SR3_7_4 FM(IP2SR3_7_4) IP2SR3_7_4 FM(IP3SR3_7_4) IP3SR3_7_4 \
609FM(IP0SR3_11_8) IP0SR3_11_8 FM(IP1SR3_11_8) IP1SR3_11_8 FM(IP2SR3_11_8) IP2SR3_11_8 FM(IP3SR3_11_8) IP3SR3_11_8 \
610FM(IP0SR3_15_12) IP0SR3_15_12 FM(IP1SR3_15_12) IP1SR3_15_12 FM(IP2SR3_15_12) IP2SR3_15_12 FM(IP3SR3_15_12) IP3SR3_15_12 \
611FM(IP0SR3_19_16) IP0SR3_19_16 FM(IP1SR3_19_16) IP1SR3_19_16 FM(IP2SR3_19_16) IP2SR3_19_16 FM(IP3SR3_19_16) IP3SR3_19_16 \
612FM(IP0SR3_23_20) IP0SR3_23_20 FM(IP1SR3_23_20) IP1SR3_23_20 FM(IP2SR3_23_20) IP2SR3_23_20 FM(IP3SR3_23_20) IP3SR3_23_20 \
613FM(IP0SR3_27_24) IP0SR3_27_24 FM(IP1SR3_27_24) IP1SR3_27_24 FM(IP2SR3_27_24) IP2SR3_27_24 \
614FM(IP0SR3_31_28) IP0SR3_31_28 FM(IP1SR3_31_28) IP1SR3_31_28 FM(IP2SR3_31_28) IP2SR3_31_28 \
615\
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200616FM(IP0SR4_3_0) IP0SR4_3_0 FM(IP1SR4_3_0) IP1SR4_3_0 FM(IP2SR4_3_0) IP2SR4_3_0 FM(IP3SR4_3_0) IP3SR4_3_0 \
617FM(IP0SR4_7_4) IP0SR4_7_4 FM(IP1SR4_7_4) IP1SR4_7_4 FM(IP2SR4_7_4) IP2SR4_7_4 \
618FM(IP0SR4_11_8) IP0SR4_11_8 FM(IP1SR4_11_8) IP1SR4_11_8 FM(IP2SR4_11_8) IP2SR4_11_8 \
619FM(IP0SR4_15_12) IP0SR4_15_12 FM(IP1SR4_15_12) IP1SR4_15_12 FM(IP2SR4_15_12) IP2SR4_15_12 \
620FM(IP0SR4_19_16) IP0SR4_19_16 FM(IP1SR4_19_16) IP1SR4_19_16 FM(IP2SR4_19_16) IP2SR4_19_16 \
621FM(IP0SR4_23_20) IP0SR4_23_20 FM(IP1SR4_23_20) IP1SR4_23_20 FM(IP2SR4_23_20) IP2SR4_23_20 \
622FM(IP0SR4_27_24) IP0SR4_27_24 FM(IP1SR4_27_24) IP1SR4_27_24 FM(IP2SR4_27_24) IP2SR4_27_24 \
623FM(IP0SR4_31_28) IP0SR4_31_28 FM(IP1SR4_31_28) IP1SR4_31_28 FM(IP2SR4_31_28) IP2SR4_31_28 \
624\
625FM(IP0SR5_3_0) IP0SR5_3_0 FM(IP1SR5_3_0) IP1SR5_3_0 FM(IP2SR5_3_0) IP2SR5_3_0 \
626FM(IP0SR5_7_4) IP0SR5_7_4 FM(IP1SR5_7_4) IP1SR5_7_4 FM(IP2SR5_7_4) IP2SR5_7_4 \
627FM(IP0SR5_11_8) IP0SR5_11_8 FM(IP1SR5_11_8) IP1SR5_11_8 FM(IP2SR5_11_8) IP2SR5_11_8 \
628FM(IP0SR5_15_12) IP0SR5_15_12 FM(IP1SR5_15_12) IP1SR5_15_12 FM(IP2SR5_15_12) IP2SR5_15_12 \
629FM(IP0SR5_19_16) IP0SR5_19_16 FM(IP1SR5_19_16) IP1SR5_19_16 FM(IP2SR5_19_16) IP2SR5_19_16 \
630FM(IP0SR5_23_20) IP0SR5_23_20 FM(IP1SR5_23_20) IP1SR5_23_20 \
631FM(IP0SR5_27_24) IP0SR5_27_24 FM(IP1SR5_27_24) IP1SR5_27_24 \
632FM(IP0SR5_31_28) IP0SR5_31_28 FM(IP1SR5_31_28) IP1SR5_31_28 \
633\
Hai Pham9a8aaa32023-02-28 22:37:03 +0100634FM(IP0SR6_3_0) IP0SR6_3_0 FM(IP1SR6_3_0) IP1SR6_3_0 FM(IP2SR6_3_0) IP2SR6_3_0 \
635FM(IP0SR6_7_4) IP0SR6_7_4 FM(IP1SR6_7_4) IP1SR6_7_4 FM(IP2SR6_7_4) IP2SR6_7_4 \
636FM(IP0SR6_11_8) IP0SR6_11_8 FM(IP1SR6_11_8) IP1SR6_11_8 FM(IP2SR6_11_8) IP2SR6_11_8 \
637FM(IP0SR6_15_12) IP0SR6_15_12 FM(IP1SR6_15_12) IP1SR6_15_12 FM(IP2SR6_15_12) IP2SR6_15_12 \
638FM(IP0SR6_19_16) IP0SR6_19_16 FM(IP1SR6_19_16) IP1SR6_19_16 FM(IP2SR6_19_16) IP2SR6_19_16 \
639FM(IP0SR6_23_20) IP0SR6_23_20 FM(IP1SR6_23_20) IP1SR6_23_20 \
640FM(IP0SR6_27_24) IP0SR6_27_24 FM(IP1SR6_27_24) IP1SR6_27_24 \
641FM(IP0SR6_31_28) IP0SR6_31_28 FM(IP1SR6_31_28) IP1SR6_31_28 \
642\
643FM(IP0SR7_3_0) IP0SR7_3_0 FM(IP1SR7_3_0) IP1SR7_3_0 FM(IP2SR7_3_0) IP2SR7_3_0 \
644FM(IP0SR7_7_4) IP0SR7_7_4 FM(IP1SR7_7_4) IP1SR7_7_4 FM(IP2SR7_7_4) IP2SR7_7_4 \
645FM(IP0SR7_11_8) IP0SR7_11_8 FM(IP1SR7_11_8) IP1SR7_11_8 FM(IP2SR7_11_8) IP2SR7_11_8 \
646FM(IP0SR7_15_12) IP0SR7_15_12 FM(IP1SR7_15_12) IP1SR7_15_12 FM(IP2SR7_15_12) IP2SR7_15_12 \
647FM(IP0SR7_19_16) IP0SR7_19_16 FM(IP1SR7_19_16) IP1SR7_19_16 FM(IP2SR7_19_16) IP2SR7_19_16 \
648FM(IP0SR7_23_20) IP0SR7_23_20 FM(IP1SR7_23_20) IP1SR7_23_20 \
649FM(IP0SR7_27_24) IP0SR7_27_24 FM(IP1SR7_27_24) IP1SR7_27_24 \
650FM(IP0SR7_31_28) IP0SR7_31_28 FM(IP1SR7_31_28) IP1SR7_31_28 \
651\
652FM(IP0SR8_3_0) IP0SR8_3_0 FM(IP1SR8_3_0) IP1SR8_3_0 \
653FM(IP0SR8_7_4) IP0SR8_7_4 FM(IP1SR8_7_4) IP1SR8_7_4 \
654FM(IP0SR8_11_8) IP0SR8_11_8 FM(IP1SR8_11_8) IP1SR8_11_8 \
655FM(IP0SR8_15_12) IP0SR8_15_12 FM(IP1SR8_15_12) IP1SR8_15_12 \
656FM(IP0SR8_19_16) IP0SR8_19_16 FM(IP1SR8_19_16) IP1SR8_19_16 \
657FM(IP0SR8_23_20) IP0SR8_23_20 FM(IP1SR8_23_20) IP1SR8_23_20 \
658FM(IP0SR8_27_24) IP0SR8_27_24 \
659FM(IP0SR8_31_28) IP0SR8_31_28
660
Hai Pham9a8aaa32023-02-28 22:37:03 +0100661/* MOD_SEL8 */ /* 0 */ /* 1 */
662#define MOD_SEL8_11 FM(SEL_SDA5_0) FM(SEL_SDA5_1)
663#define MOD_SEL8_10 FM(SEL_SCL5_0) FM(SEL_SCL5_1)
664#define MOD_SEL8_9 FM(SEL_SDA4_0) FM(SEL_SDA4_1)
665#define MOD_SEL8_8 FM(SEL_SCL4_0) FM(SEL_SCL4_1)
666#define MOD_SEL8_7 FM(SEL_SDA3_0) FM(SEL_SDA3_1)
667#define MOD_SEL8_6 FM(SEL_SCL3_0) FM(SEL_SCL3_1)
668#define MOD_SEL8_5 FM(SEL_SDA2_0) FM(SEL_SDA2_1)
669#define MOD_SEL8_4 FM(SEL_SCL2_0) FM(SEL_SCL2_1)
670#define MOD_SEL8_3 FM(SEL_SDA1_0) FM(SEL_SDA1_1)
671#define MOD_SEL8_2 FM(SEL_SCL1_0) FM(SEL_SCL1_1)
672#define MOD_SEL8_1 FM(SEL_SDA0_0) FM(SEL_SDA0_1)
673#define MOD_SEL8_0 FM(SEL_SCL0_0) FM(SEL_SCL0_1)
674
675#define PINMUX_MOD_SELS \
676\
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200677MOD_SEL8_11 \
678MOD_SEL8_10 \
679MOD_SEL8_9 \
680MOD_SEL8_8 \
681MOD_SEL8_7 \
682MOD_SEL8_6 \
683MOD_SEL8_5 \
684MOD_SEL8_4 \
685MOD_SEL8_3 \
686MOD_SEL8_2 \
687MOD_SEL8_1 \
688MOD_SEL8_0
Hai Pham9a8aaa32023-02-28 22:37:03 +0100689
690enum {
691 PINMUX_RESERVED = 0,
692
693 PINMUX_DATA_BEGIN,
694 GP_ALL(DATA),
695 PINMUX_DATA_END,
696
697#define F_(x, y)
698#define FM(x) FN_##x,
699 PINMUX_FUNCTION_BEGIN,
700 GP_ALL(FN),
701 PINMUX_GPSR
702 PINMUX_IPSR
703 PINMUX_MOD_SELS
704 PINMUX_FUNCTION_END,
705#undef F_
706#undef FM
707
708#define F_(x, y)
709#define FM(x) x##_MARK,
710 PINMUX_MARK_BEGIN,
711 PINMUX_GPSR
712 PINMUX_IPSR
713 PINMUX_MOD_SELS
714 PINMUX_MARK_END,
715#undef F_
716#undef FM
717};
718
719static const u16 pinmux_data[] = {
720 PINMUX_DATA_GP_ALL(),
721
Hai Pham9a8aaa32023-02-28 22:37:03 +0100722 /* IP0SR0 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200723 PINMUX_IPSR_GPSR(IP0SR0_3_0, ERROROUTC_N_B),
Hai Pham9a8aaa32023-02-28 22:37:03 +0100724 PINMUX_IPSR_GPSR(IP0SR0_3_0, TCLK2_A),
725
726 PINMUX_IPSR_GPSR(IP0SR0_7_4, MSIOF3_SS1),
727
728 PINMUX_IPSR_GPSR(IP0SR0_11_8, MSIOF3_SS2),
729
730 PINMUX_IPSR_GPSR(IP0SR0_15_12, IRQ3),
731 PINMUX_IPSR_GPSR(IP0SR0_15_12, MSIOF3_SCK),
732
733 PINMUX_IPSR_GPSR(IP0SR0_19_16, IRQ2),
734 PINMUX_IPSR_GPSR(IP0SR0_19_16, MSIOF3_TXD),
735
736 PINMUX_IPSR_GPSR(IP0SR0_23_20, IRQ1),
737 PINMUX_IPSR_GPSR(IP0SR0_23_20, MSIOF3_RXD),
738
739 PINMUX_IPSR_GPSR(IP0SR0_27_24, IRQ0),
740 PINMUX_IPSR_GPSR(IP0SR0_27_24, MSIOF3_SYNC),
741
742 PINMUX_IPSR_GPSR(IP0SR0_31_28, MSIOF5_SS2),
743
744 /* IP1SR0 */
745 PINMUX_IPSR_GPSR(IP1SR0_3_0, MSIOF5_SS1),
746
747 PINMUX_IPSR_GPSR(IP1SR0_7_4, MSIOF5_SYNC),
748
749 PINMUX_IPSR_GPSR(IP1SR0_11_8, MSIOF5_TXD),
750
751 PINMUX_IPSR_GPSR(IP1SR0_15_12, MSIOF5_SCK),
752
753 PINMUX_IPSR_GPSR(IP1SR0_19_16, MSIOF5_RXD),
754
755 PINMUX_IPSR_GPSR(IP1SR0_23_20, MSIOF2_SS2),
756 PINMUX_IPSR_GPSR(IP1SR0_23_20, TCLK1),
757 PINMUX_IPSR_GPSR(IP1SR0_23_20, IRQ2_A),
758
759 PINMUX_IPSR_GPSR(IP1SR0_27_24, MSIOF2_SS1),
760 PINMUX_IPSR_GPSR(IP1SR0_27_24, HTX1),
761 PINMUX_IPSR_GPSR(IP1SR0_27_24, TX1),
762
763 PINMUX_IPSR_GPSR(IP1SR0_31_28, MSIOF2_SYNC),
764 PINMUX_IPSR_GPSR(IP1SR0_31_28, HRX1),
765 PINMUX_IPSR_GPSR(IP1SR0_31_28, RX1),
766
767 /* IP2SR0 */
768 PINMUX_IPSR_GPSR(IP2SR0_3_0, MSIOF2_TXD),
769 PINMUX_IPSR_GPSR(IP2SR0_3_0, HCTS1_N),
770 PINMUX_IPSR_GPSR(IP2SR0_3_0, CTS1_N),
771
772 PINMUX_IPSR_GPSR(IP2SR0_7_4, MSIOF2_SCK),
773 PINMUX_IPSR_GPSR(IP2SR0_7_4, HRTS1_N),
774 PINMUX_IPSR_GPSR(IP2SR0_7_4, RTS1_N),
775
776 PINMUX_IPSR_GPSR(IP2SR0_11_8, MSIOF2_RXD),
777 PINMUX_IPSR_GPSR(IP2SR0_11_8, HSCK1),
778 PINMUX_IPSR_GPSR(IP2SR0_11_8, SCK1),
779
780 /* IP0SR1 */
781 PINMUX_IPSR_GPSR(IP0SR1_3_0, MSIOF1_SS2),
782 PINMUX_IPSR_GPSR(IP0SR1_3_0, HTX3_A),
783 PINMUX_IPSR_GPSR(IP0SR1_3_0, TX3),
784
785 PINMUX_IPSR_GPSR(IP0SR1_7_4, MSIOF1_SS1),
786 PINMUX_IPSR_GPSR(IP0SR1_7_4, HCTS3_N_A),
787 PINMUX_IPSR_GPSR(IP0SR1_7_4, RX3),
788
789 PINMUX_IPSR_GPSR(IP0SR1_11_8, MSIOF1_SYNC),
790 PINMUX_IPSR_GPSR(IP0SR1_11_8, HRTS3_N_A),
791 PINMUX_IPSR_GPSR(IP0SR1_11_8, RTS3_N),
792
793 PINMUX_IPSR_GPSR(IP0SR1_15_12, MSIOF1_SCK),
794 PINMUX_IPSR_GPSR(IP0SR1_15_12, HSCK3_A),
795 PINMUX_IPSR_GPSR(IP0SR1_15_12, CTS3_N),
796
797 PINMUX_IPSR_GPSR(IP0SR1_19_16, MSIOF1_TXD),
798 PINMUX_IPSR_GPSR(IP0SR1_19_16, HRX3_A),
799 PINMUX_IPSR_GPSR(IP0SR1_19_16, SCK3),
800
801 PINMUX_IPSR_GPSR(IP0SR1_23_20, MSIOF1_RXD),
802
803 PINMUX_IPSR_GPSR(IP0SR1_27_24, MSIOF0_SS2),
804 PINMUX_IPSR_GPSR(IP0SR1_27_24, HTX1_X),
805 PINMUX_IPSR_GPSR(IP0SR1_27_24, TX1_X),
806
807 PINMUX_IPSR_GPSR(IP0SR1_31_28, MSIOF0_SS1),
808 PINMUX_IPSR_GPSR(IP0SR1_31_28, HRX1_X),
809 PINMUX_IPSR_GPSR(IP0SR1_31_28, RX1_X),
810
811 /* IP1SR1 */
812 PINMUX_IPSR_GPSR(IP1SR1_3_0, MSIOF0_SYNC),
813 PINMUX_IPSR_GPSR(IP1SR1_3_0, HCTS1_N_X),
814 PINMUX_IPSR_GPSR(IP1SR1_3_0, CTS1_N_X),
815 PINMUX_IPSR_GPSR(IP1SR1_3_0, CANFD5_TX_B),
816
817 PINMUX_IPSR_GPSR(IP1SR1_7_4, MSIOF0_TXD),
818 PINMUX_IPSR_GPSR(IP1SR1_7_4, HRTS1_N_X),
819 PINMUX_IPSR_GPSR(IP1SR1_7_4, RTS1_N_X),
820 PINMUX_IPSR_GPSR(IP1SR1_7_4, CANFD5_RX_B),
821
822 PINMUX_IPSR_GPSR(IP1SR1_11_8, MSIOF0_SCK),
823 PINMUX_IPSR_GPSR(IP1SR1_11_8, HSCK1_X),
824 PINMUX_IPSR_GPSR(IP1SR1_11_8, SCK1_X),
825
826 PINMUX_IPSR_GPSR(IP1SR1_15_12, MSIOF0_RXD),
827
828 PINMUX_IPSR_GPSR(IP1SR1_19_16, HTX0),
829 PINMUX_IPSR_GPSR(IP1SR1_19_16, TX0),
830
831 PINMUX_IPSR_GPSR(IP1SR1_23_20, HCTS0_N),
832 PINMUX_IPSR_GPSR(IP1SR1_23_20, CTS0_N),
833 PINMUX_IPSR_GPSR(IP1SR1_23_20, PWM8_A),
834
835 PINMUX_IPSR_GPSR(IP1SR1_27_24, HRTS0_N),
836 PINMUX_IPSR_GPSR(IP1SR1_27_24, RTS0_N),
837 PINMUX_IPSR_GPSR(IP1SR1_27_24, PWM9_A),
838
839 PINMUX_IPSR_GPSR(IP1SR1_31_28, HSCK0),
840 PINMUX_IPSR_GPSR(IP1SR1_31_28, SCK0),
841 PINMUX_IPSR_GPSR(IP1SR1_31_28, PWM0_A),
842
843 /* IP2SR1 */
844 PINMUX_IPSR_GPSR(IP2SR1_3_0, HRX0),
845 PINMUX_IPSR_GPSR(IP2SR1_3_0, RX0),
846
847 PINMUX_IPSR_GPSR(IP2SR1_7_4, SCIF_CLK),
848 PINMUX_IPSR_GPSR(IP2SR1_7_4, IRQ4_A),
849
850 PINMUX_IPSR_GPSR(IP2SR1_11_8, SSI_SCK),
851 PINMUX_IPSR_GPSR(IP2SR1_11_8, TCLK3),
852
853 PINMUX_IPSR_GPSR(IP2SR1_15_12, SSI_WS),
854 PINMUX_IPSR_GPSR(IP2SR1_15_12, TCLK4),
855
856 PINMUX_IPSR_GPSR(IP2SR1_19_16, SSI_SD),
857 PINMUX_IPSR_GPSR(IP2SR1_19_16, IRQ0_A),
858
859 PINMUX_IPSR_GPSR(IP2SR1_23_20, AUDIO_CLKOUT),
860 PINMUX_IPSR_GPSR(IP2SR1_23_20, IRQ1_A),
861
862 PINMUX_IPSR_GPSR(IP2SR1_27_24, AUDIO_CLKIN),
863 PINMUX_IPSR_GPSR(IP2SR1_27_24, PWM3_A),
864
865 PINMUX_IPSR_GPSR(IP2SR1_31_28, TCLK2),
866 PINMUX_IPSR_GPSR(IP2SR1_31_28, MSIOF4_SS1),
867 PINMUX_IPSR_GPSR(IP2SR1_31_28, IRQ3_B),
868
869 /* IP3SR1 */
870 PINMUX_IPSR_GPSR(IP3SR1_3_0, HRX3),
871 PINMUX_IPSR_GPSR(IP3SR1_3_0, SCK3_A),
872 PINMUX_IPSR_GPSR(IP3SR1_3_0, MSIOF4_SS2),
873
874 PINMUX_IPSR_GPSR(IP3SR1_7_4, HSCK3),
875 PINMUX_IPSR_GPSR(IP3SR1_7_4, CTS3_N_A),
876 PINMUX_IPSR_GPSR(IP3SR1_7_4, MSIOF4_SCK),
877 PINMUX_IPSR_GPSR(IP3SR1_7_4, TPU0TO0_A),
878
879 PINMUX_IPSR_GPSR(IP3SR1_11_8, HRTS3_N),
880 PINMUX_IPSR_GPSR(IP3SR1_11_8, RTS3_N_A),
881 PINMUX_IPSR_GPSR(IP3SR1_11_8, MSIOF4_TXD),
882 PINMUX_IPSR_GPSR(IP3SR1_11_8, TPU0TO1_A),
883
884 PINMUX_IPSR_GPSR(IP3SR1_15_12, HCTS3_N),
885 PINMUX_IPSR_GPSR(IP3SR1_15_12, RX3_A),
886 PINMUX_IPSR_GPSR(IP3SR1_15_12, MSIOF4_RXD),
887
888 PINMUX_IPSR_GPSR(IP3SR1_19_16, HTX3),
889 PINMUX_IPSR_GPSR(IP3SR1_19_16, TX3_A),
890 PINMUX_IPSR_GPSR(IP3SR1_19_16, MSIOF4_SYNC),
891
892 /* IP0SR2 */
893 PINMUX_IPSR_GPSR(IP0SR2_3_0, FXR_TXDA),
894 PINMUX_IPSR_GPSR(IP0SR2_3_0, CANFD1_TX),
895 PINMUX_IPSR_GPSR(IP0SR2_3_0, TPU0TO2_A),
896
897 PINMUX_IPSR_GPSR(IP0SR2_7_4, FXR_TXENA_N),
898 PINMUX_IPSR_GPSR(IP0SR2_7_4, CANFD1_RX),
899 PINMUX_IPSR_GPSR(IP0SR2_7_4, TPU0TO3_A),
900
901 PINMUX_IPSR_GPSR(IP0SR2_11_8, RXDA_EXTFXR),
902 PINMUX_IPSR_GPSR(IP0SR2_11_8, CANFD5_TX),
903 PINMUX_IPSR_GPSR(IP0SR2_11_8, IRQ5),
904
905 PINMUX_IPSR_GPSR(IP0SR2_15_12, CLK_EXTFXR),
906 PINMUX_IPSR_GPSR(IP0SR2_15_12, CANFD5_RX),
907 PINMUX_IPSR_GPSR(IP0SR2_15_12, IRQ4_B),
908
909 PINMUX_IPSR_GPSR(IP0SR2_19_16, RXDB_EXTFXR),
910
911 PINMUX_IPSR_GPSR(IP0SR2_23_20, FXR_TXENB_N),
912
913 PINMUX_IPSR_GPSR(IP0SR2_27_24, FXR_TXDB),
914
915 PINMUX_IPSR_GPSR(IP0SR2_31_28, TPU0TO1),
916 PINMUX_IPSR_GPSR(IP0SR2_31_28, CANFD6_TX),
917 PINMUX_IPSR_GPSR(IP0SR2_31_28, TCLK2_B),
918
919 /* IP1SR2 */
920 PINMUX_IPSR_GPSR(IP1SR2_3_0, TPU0TO0),
921 PINMUX_IPSR_GPSR(IP1SR2_3_0, CANFD6_RX),
922 PINMUX_IPSR_GPSR(IP1SR2_3_0, TCLK1_A),
923
924 PINMUX_IPSR_GPSR(IP1SR2_7_4, CAN_CLK),
925 PINMUX_IPSR_GPSR(IP1SR2_7_4, FXR_TXENA_N_X),
926
927 PINMUX_IPSR_GPSR(IP1SR2_11_8, CANFD0_TX),
928 PINMUX_IPSR_GPSR(IP1SR2_11_8, FXR_TXENB_N_X),
929
930 PINMUX_IPSR_GPSR(IP1SR2_15_12, CANFD0_RX),
931 PINMUX_IPSR_GPSR(IP1SR2_15_12, STPWT_EXTFXR),
932
933 PINMUX_IPSR_GPSR(IP1SR2_19_16, CANFD2_TX),
934 PINMUX_IPSR_GPSR(IP1SR2_19_16, TPU0TO2),
935 PINMUX_IPSR_GPSR(IP1SR2_19_16, TCLK3_A),
936
937 PINMUX_IPSR_GPSR(IP1SR2_23_20, CANFD2_RX),
938 PINMUX_IPSR_GPSR(IP1SR2_23_20, TPU0TO3),
939 PINMUX_IPSR_GPSR(IP1SR2_23_20, PWM1_B),
940 PINMUX_IPSR_GPSR(IP1SR2_23_20, TCLK4_A),
941
942 PINMUX_IPSR_GPSR(IP1SR2_27_24, CANFD3_TX),
943 PINMUX_IPSR_GPSR(IP1SR2_27_24, PWM2_B),
944
945 PINMUX_IPSR_GPSR(IP1SR2_31_28, CANFD3_RX),
946 PINMUX_IPSR_GPSR(IP1SR2_31_28, PWM3_B),
947
948 /* IP2SR2 */
949 PINMUX_IPSR_GPSR(IP2SR2_3_0, CANFD4_TX),
950 PINMUX_IPSR_GPSR(IP2SR2_3_0, PWM4),
951
952 PINMUX_IPSR_GPSR(IP2SR2_7_4, CANFD4_RX),
953 PINMUX_IPSR_GPSR(IP2SR2_7_4, PWM5),
954
955 PINMUX_IPSR_GPSR(IP2SR2_11_8, CANFD7_TX),
956 PINMUX_IPSR_GPSR(IP2SR2_11_8, PWM6),
957
958 PINMUX_IPSR_GPSR(IP2SR2_15_12, CANFD7_RX),
959 PINMUX_IPSR_GPSR(IP2SR2_15_12, PWM7),
960
961 /* IP0SR3 */
962 PINMUX_IPSR_GPSR(IP0SR3_3_0, MMC_SD_D1),
963 PINMUX_IPSR_GPSR(IP0SR3_7_4, MMC_SD_D0),
964 PINMUX_IPSR_GPSR(IP0SR3_11_8, MMC_SD_D2),
965 PINMUX_IPSR_GPSR(IP0SR3_15_12, MMC_SD_CLK),
966 PINMUX_IPSR_GPSR(IP0SR3_19_16, MMC_DS),
967 PINMUX_IPSR_GPSR(IP0SR3_23_20, MMC_SD_D3),
968 PINMUX_IPSR_GPSR(IP0SR3_27_24, MMC_D5),
969 PINMUX_IPSR_GPSR(IP0SR3_31_28, MMC_D4),
970
971 /* IP1SR3 */
972 PINMUX_IPSR_GPSR(IP1SR3_3_0, MMC_D7),
973
974 PINMUX_IPSR_GPSR(IP1SR3_7_4, MMC_D6),
975
976 PINMUX_IPSR_GPSR(IP1SR3_11_8, MMC_SD_CMD),
977
978 PINMUX_IPSR_GPSR(IP1SR3_15_12, SD_CD),
979
980 PINMUX_IPSR_GPSR(IP1SR3_19_16, SD_WP),
981
982 PINMUX_IPSR_GPSR(IP1SR3_23_20, IPC_CLKIN),
983 PINMUX_IPSR_GPSR(IP1SR3_23_20, IPC_CLKEN_IN),
984 PINMUX_IPSR_GPSR(IP1SR3_23_20, PWM1_A),
985 PINMUX_IPSR_GPSR(IP1SR3_23_20, TCLK3_X),
986
987 PINMUX_IPSR_GPSR(IP1SR3_27_24, IPC_CLKOUT),
988 PINMUX_IPSR_GPSR(IP1SR3_27_24, IPC_CLKEN_OUT),
Marek Vasut8f07e8a2023-09-17 16:08:49 +0200989 PINMUX_IPSR_GPSR(IP1SR3_27_24, ERROROUTC_N_A),
Hai Pham9a8aaa32023-02-28 22:37:03 +0100990 PINMUX_IPSR_GPSR(IP1SR3_27_24, TCLK4_X),
991
992 PINMUX_IPSR_GPSR(IP1SR3_31_28, QSPI0_SSL),
993
994 /* IP2SR3 */
995 PINMUX_IPSR_GPSR(IP2SR3_3_0, QSPI0_IO3),
996 PINMUX_IPSR_GPSR(IP2SR3_7_4, QSPI0_IO2),
997 PINMUX_IPSR_GPSR(IP2SR3_11_8, QSPI0_MISO_IO1),
998 PINMUX_IPSR_GPSR(IP2SR3_15_12, QSPI0_MOSI_IO0),
999 PINMUX_IPSR_GPSR(IP2SR3_19_16, QSPI0_SPCLK),
1000 PINMUX_IPSR_GPSR(IP2SR3_23_20, QSPI1_MOSI_IO0),
1001 PINMUX_IPSR_GPSR(IP2SR3_27_24, QSPI1_SPCLK),
1002 PINMUX_IPSR_GPSR(IP2SR3_31_28, QSPI1_MISO_IO1),
1003
1004 /* IP3SR3 */
1005 PINMUX_IPSR_GPSR(IP3SR3_3_0, QSPI1_IO2),
1006 PINMUX_IPSR_GPSR(IP3SR3_7_4, QSPI1_SSL),
1007 PINMUX_IPSR_GPSR(IP3SR3_11_8, QSPI1_IO3),
1008 PINMUX_IPSR_GPSR(IP3SR3_15_12, RPC_RESET_N),
1009 PINMUX_IPSR_GPSR(IP3SR3_19_16, RPC_WP_N),
1010 PINMUX_IPSR_GPSR(IP3SR3_23_20, RPC_INT_N),
1011
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001012 /* IP0SR4 */
1013 PINMUX_IPSR_GPSR(IP0SR4_3_0, TSN0_MDIO),
1014 PINMUX_IPSR_GPSR(IP0SR4_7_4, TSN0_MDC),
1015 PINMUX_IPSR_GPSR(IP0SR4_11_8, TSN0_AVTP_PPS1),
1016 PINMUX_IPSR_GPSR(IP0SR4_15_12, TSN0_PHY_INT),
1017 PINMUX_IPSR_GPSR(IP0SR4_19_16, TSN0_LINK),
1018 PINMUX_IPSR_GPSR(IP0SR4_23_20, TSN0_AVTP_MATCH),
1019 PINMUX_IPSR_GPSR(IP0SR4_27_24, TSN0_AVTP_CAPTURE),
1020 PINMUX_IPSR_GPSR(IP0SR4_31_28, TSN0_RX_CTL),
1021
1022 /* IP1SR4 */
1023 PINMUX_IPSR_GPSR(IP1SR4_3_0, TSN0_AVTP_PPS0),
1024 PINMUX_IPSR_GPSR(IP1SR4_7_4, TSN0_TX_CTL),
1025 PINMUX_IPSR_GPSR(IP1SR4_11_8, TSN0_RD0),
1026 PINMUX_IPSR_GPSR(IP1SR4_15_12, TSN0_RXC),
1027 PINMUX_IPSR_GPSR(IP1SR4_19_16, TSN0_TXC),
1028 PINMUX_IPSR_GPSR(IP1SR4_23_20, TSN0_RD1),
1029 PINMUX_IPSR_GPSR(IP1SR4_27_24, TSN0_TD1),
1030 PINMUX_IPSR_GPSR(IP1SR4_31_28, TSN0_TD0),
1031
1032 /* IP2SR4 */
1033 PINMUX_IPSR_GPSR(IP2SR4_3_0, TSN0_RD3),
1034 PINMUX_IPSR_GPSR(IP2SR4_7_4, TSN0_RD2),
1035 PINMUX_IPSR_GPSR(IP2SR4_11_8, TSN0_TD3),
1036 PINMUX_IPSR_GPSR(IP2SR4_15_12, TSN0_TD2),
1037 PINMUX_IPSR_GPSR(IP2SR4_19_16, TSN0_TXCREFCLK),
1038 PINMUX_IPSR_GPSR(IP2SR4_23_20, PCIE0_CLKREQ_N),
1039 PINMUX_IPSR_GPSR(IP2SR4_27_24, PCIE1_CLKREQ_N),
1040 PINMUX_IPSR_GPSR(IP2SR4_31_28, AVS0),
1041
1042 /* IP3SR4 */
1043 PINMUX_IPSR_GPSR(IP3SR4_3_0, AVS1),
1044
1045 /* IP0SR5 */
1046 PINMUX_IPSR_GPSR(IP0SR5_3_0, AVB2_AVTP_PPS),
1047 PINMUX_IPSR_GPSR(IP0SR5_7_4, AVB2_AVTP_CAPTURE),
1048 PINMUX_IPSR_GPSR(IP0SR5_11_8, AVB2_AVTP_MATCH),
1049 PINMUX_IPSR_GPSR(IP0SR5_15_12, AVB2_LINK),
1050 PINMUX_IPSR_GPSR(IP0SR5_19_16, AVB2_PHY_INT),
1051 PINMUX_IPSR_GPSR(IP0SR5_23_20, AVB2_MAGIC),
1052 PINMUX_IPSR_GPSR(IP0SR5_27_24, AVB2_MDC),
1053 PINMUX_IPSR_GPSR(IP0SR5_31_28, AVB2_TXCREFCLK),
1054
1055 /* IP1SR5 */
1056 PINMUX_IPSR_GPSR(IP1SR5_3_0, AVB2_TD3),
1057 PINMUX_IPSR_GPSR(IP1SR5_7_4, AVB2_RD3),
1058 PINMUX_IPSR_GPSR(IP1SR5_11_8, AVB2_MDIO),
1059 PINMUX_IPSR_GPSR(IP1SR5_15_12, AVB2_TD2),
1060 PINMUX_IPSR_GPSR(IP1SR5_19_16, AVB2_TD1),
1061 PINMUX_IPSR_GPSR(IP1SR5_23_20, AVB2_RD2),
1062 PINMUX_IPSR_GPSR(IP1SR5_27_24, AVB2_RD1),
1063 PINMUX_IPSR_GPSR(IP1SR5_31_28, AVB2_TD0),
1064
1065 /* IP2SR5 */
1066 PINMUX_IPSR_GPSR(IP2SR5_3_0, AVB2_TXC),
1067 PINMUX_IPSR_GPSR(IP2SR5_7_4, AVB2_RD0),
1068 PINMUX_IPSR_GPSR(IP2SR5_11_8, AVB2_RXC),
1069 PINMUX_IPSR_GPSR(IP2SR5_15_12, AVB2_TX_CTL),
1070 PINMUX_IPSR_GPSR(IP2SR5_19_16, AVB2_RX_CTL),
1071
Hai Pham9a8aaa32023-02-28 22:37:03 +01001072 /* IP0SR6 */
1073 PINMUX_IPSR_GPSR(IP0SR6_3_0, AVB1_MDIO),
1074
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001075 PINMUX_IPSR_GPSR(IP0SR6_7_4, AVB1_MAGIC),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001076
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001077 PINMUX_IPSR_GPSR(IP0SR6_11_8, AVB1_MDC),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001078
1079 PINMUX_IPSR_GPSR(IP0SR6_15_12, AVB1_PHY_INT),
1080
1081 PINMUX_IPSR_GPSR(IP0SR6_19_16, AVB1_LINK),
1082 PINMUX_IPSR_GPSR(IP0SR6_19_16, AVB1_MII_TX_ER),
1083
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001084 PINMUX_IPSR_GPSR(IP0SR6_23_20, AVB1_AVTP_MATCH),
1085 PINMUX_IPSR_GPSR(IP0SR6_23_20, AVB1_MII_RX_ER),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001086
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001087 PINMUX_IPSR_GPSR(IP0SR6_27_24, AVB1_TXC),
1088 PINMUX_IPSR_GPSR(IP0SR6_27_24, AVB1_MII_TXC),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001089
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001090 PINMUX_IPSR_GPSR(IP0SR6_31_28, AVB1_TX_CTL),
1091 PINMUX_IPSR_GPSR(IP0SR6_31_28, AVB1_MII_TX_EN),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001092
1093 /* IP1SR6 */
1094 PINMUX_IPSR_GPSR(IP1SR6_3_0, AVB1_RXC),
1095 PINMUX_IPSR_GPSR(IP1SR6_3_0, AVB1_MII_RXC),
1096
1097 PINMUX_IPSR_GPSR(IP1SR6_7_4, AVB1_RX_CTL),
1098 PINMUX_IPSR_GPSR(IP1SR6_7_4, AVB1_MII_RX_DV),
1099
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001100 PINMUX_IPSR_GPSR(IP1SR6_11_8, AVB1_AVTP_PPS),
1101 PINMUX_IPSR_GPSR(IP1SR6_11_8, AVB1_MII_COL),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001102
1103 PINMUX_IPSR_GPSR(IP1SR6_15_12, AVB1_AVTP_CAPTURE),
1104 PINMUX_IPSR_GPSR(IP1SR6_15_12, AVB1_MII_CRS),
1105
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001106 PINMUX_IPSR_GPSR(IP1SR6_19_16, AVB1_TD1),
1107 PINMUX_IPSR_GPSR(IP1SR6_19_16, AVB1_MII_TD1),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001108
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001109 PINMUX_IPSR_GPSR(IP1SR6_23_20, AVB1_TD0),
1110 PINMUX_IPSR_GPSR(IP1SR6_23_20, AVB1_MII_TD0),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001111
1112 PINMUX_IPSR_GPSR(IP1SR6_27_24, AVB1_RD1),
1113 PINMUX_IPSR_GPSR(IP1SR6_27_24, AVB1_MII_RD1),
1114
1115 PINMUX_IPSR_GPSR(IP1SR6_31_28, AVB1_RD0),
1116 PINMUX_IPSR_GPSR(IP1SR6_31_28, AVB1_MII_RD0),
1117
1118 /* IP2SR6 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001119 PINMUX_IPSR_GPSR(IP2SR6_3_0, AVB1_TD2),
1120 PINMUX_IPSR_GPSR(IP2SR6_3_0, AVB1_MII_TD2),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001121
1122 PINMUX_IPSR_GPSR(IP2SR6_7_4, AVB1_RD2),
1123 PINMUX_IPSR_GPSR(IP2SR6_7_4, AVB1_MII_RD2),
1124
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001125 PINMUX_IPSR_GPSR(IP2SR6_11_8, AVB1_TD3),
1126 PINMUX_IPSR_GPSR(IP2SR6_11_8, AVB1_MII_TD3),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001127
1128 PINMUX_IPSR_GPSR(IP2SR6_15_12, AVB1_RD3),
1129 PINMUX_IPSR_GPSR(IP2SR6_15_12, AVB1_MII_RD3),
1130
1131 PINMUX_IPSR_GPSR(IP2SR6_19_16, AVB1_TXCREFCLK),
1132
1133 /* IP0SR7 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001134 PINMUX_IPSR_GPSR(IP0SR7_3_0, AVB0_AVTP_PPS),
1135 PINMUX_IPSR_GPSR(IP0SR7_3_0, AVB0_MII_COL),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001136
1137 PINMUX_IPSR_GPSR(IP0SR7_7_4, AVB0_AVTP_CAPTURE),
1138 PINMUX_IPSR_GPSR(IP0SR7_7_4, AVB0_MII_CRS),
1139
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001140 PINMUX_IPSR_GPSR(IP0SR7_11_8, AVB0_AVTP_MATCH),
1141 PINMUX_IPSR_GPSR(IP0SR7_11_8, AVB0_MII_RX_ER),
1142 PINMUX_IPSR_GPSR(IP0SR7_11_8, CC5_OSCOUT),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001143
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001144 PINMUX_IPSR_GPSR(IP0SR7_15_12, AVB0_TD3),
1145 PINMUX_IPSR_GPSR(IP0SR7_15_12, AVB0_MII_TD3),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001146
1147 PINMUX_IPSR_GPSR(IP0SR7_19_16, AVB0_LINK),
1148 PINMUX_IPSR_GPSR(IP0SR7_19_16, AVB0_MII_TX_ER),
1149
1150 PINMUX_IPSR_GPSR(IP0SR7_23_20, AVB0_PHY_INT),
1151
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001152 PINMUX_IPSR_GPSR(IP0SR7_27_24, AVB0_TD2),
1153 PINMUX_IPSR_GPSR(IP0SR7_27_24, AVB0_MII_TD2),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001154
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001155 PINMUX_IPSR_GPSR(IP0SR7_31_28, AVB0_TD1),
1156 PINMUX_IPSR_GPSR(IP0SR7_31_28, AVB0_MII_TD1),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001157
1158 /* IP1SR7 */
1159 PINMUX_IPSR_GPSR(IP1SR7_3_0, AVB0_RD3),
1160 PINMUX_IPSR_GPSR(IP1SR7_3_0, AVB0_MII_RD3),
1161
1162 PINMUX_IPSR_GPSR(IP1SR7_7_4, AVB0_TXCREFCLK),
1163
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001164 PINMUX_IPSR_GPSR(IP1SR7_11_8, AVB0_MAGIC),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001165
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001166 PINMUX_IPSR_GPSR(IP1SR7_15_12, AVB0_TD0),
1167 PINMUX_IPSR_GPSR(IP1SR7_15_12, AVB0_MII_TD0),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001168
1169 PINMUX_IPSR_GPSR(IP1SR7_19_16, AVB0_RD2),
1170 PINMUX_IPSR_GPSR(IP1SR7_19_16, AVB0_MII_RD2),
1171
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001172 PINMUX_IPSR_GPSR(IP1SR7_23_20, AVB0_MDC),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001173
1174 PINMUX_IPSR_GPSR(IP1SR7_27_24, AVB0_MDIO),
1175
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001176 PINMUX_IPSR_GPSR(IP1SR7_31_28, AVB0_TXC),
1177 PINMUX_IPSR_GPSR(IP1SR7_31_28, AVB0_MII_TXC),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001178
1179 /* IP2SR7 */
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001180 PINMUX_IPSR_GPSR(IP2SR7_3_0, AVB0_TX_CTL),
1181 PINMUX_IPSR_GPSR(IP2SR7_3_0, AVB0_MII_TX_EN),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001182
1183 PINMUX_IPSR_GPSR(IP2SR7_7_4, AVB0_RD1),
1184 PINMUX_IPSR_GPSR(IP2SR7_7_4, AVB0_MII_RD1),
1185
1186 PINMUX_IPSR_GPSR(IP2SR7_11_8, AVB0_RD0),
1187 PINMUX_IPSR_GPSR(IP2SR7_11_8, AVB0_MII_RD0),
1188
1189 PINMUX_IPSR_GPSR(IP2SR7_15_12, AVB0_RXC),
1190 PINMUX_IPSR_GPSR(IP2SR7_15_12, AVB0_MII_RXC),
1191
1192 PINMUX_IPSR_GPSR(IP2SR7_19_16, AVB0_RX_CTL),
1193 PINMUX_IPSR_GPSR(IP2SR7_19_16, AVB0_MII_RX_DV),
1194
1195 /* IP0SR8 */
1196 PINMUX_IPSR_MSEL(IP0SR8_3_0, SCL0, SEL_SCL0_0),
1197 PINMUX_IPSR_MSEL(IP0SR8_7_4, SDA0, SEL_SDA0_0),
1198 PINMUX_IPSR_MSEL(IP0SR8_11_8, SCL1, SEL_SCL1_0),
1199 PINMUX_IPSR_MSEL(IP0SR8_15_12, SDA1, SEL_SDA1_0),
1200 PINMUX_IPSR_MSEL(IP0SR8_19_16, SCL2, SEL_SCL2_0),
1201 PINMUX_IPSR_MSEL(IP0SR8_23_20, SDA2, SEL_SDA2_0),
1202 PINMUX_IPSR_MSEL(IP0SR8_27_24, SCL3, SEL_SCL3_0),
1203 PINMUX_IPSR_MSEL(IP0SR8_31_28, SDA3, SEL_SDA3_0),
1204
1205 /* IP1SR8 */
1206 PINMUX_IPSR_MSEL(IP1SR8_3_0, SCL4, SEL_SCL4_0),
1207 PINMUX_IPSR_MSEL(IP1SR8_3_0, HRX2, SEL_SCL4_0),
1208 PINMUX_IPSR_MSEL(IP1SR8_3_0, SCK4, SEL_SCL4_0),
1209
1210 PINMUX_IPSR_MSEL(IP1SR8_7_4, SDA4, SEL_SDA4_0),
1211 PINMUX_IPSR_MSEL(IP1SR8_7_4, HTX2, SEL_SDA4_0),
1212 PINMUX_IPSR_MSEL(IP1SR8_7_4, CTS4_N, SEL_SDA4_0),
1213
1214 PINMUX_IPSR_MSEL(IP1SR8_11_8, SCL5, SEL_SCL5_0),
1215 PINMUX_IPSR_MSEL(IP1SR8_11_8, HRTS2_N, SEL_SCL5_0),
1216 PINMUX_IPSR_MSEL(IP1SR8_11_8, RTS4_N, SEL_SCL5_0),
1217
1218 PINMUX_IPSR_MSEL(IP1SR8_15_12, SDA5, SEL_SDA5_0),
1219 PINMUX_IPSR_MSEL(IP1SR8_15_12, SCIF_CLK2, SEL_SDA5_0),
1220
1221 PINMUX_IPSR_GPSR(IP1SR8_19_16, HCTS2_N),
1222 PINMUX_IPSR_GPSR(IP1SR8_19_16, TX4),
1223
1224 PINMUX_IPSR_GPSR(IP1SR8_23_20, HSCK2),
1225 PINMUX_IPSR_GPSR(IP1SR8_23_20, RX4),
1226};
1227
1228/*
1229 * Pins not associated with a GPIO port.
1230 */
1231enum {
1232 GP_ASSIGN_LAST(),
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001233 NOGP_ALL(),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001234};
1235
1236static const struct sh_pfc_pin pinmux_pins[] = {
1237 PINMUX_GPIO_GP_ALL(),
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001238 PINMUX_NOGP_ALL(),
Hai Pham9a8aaa32023-02-28 22:37:03 +01001239};
1240
Marek Vasut8f07e8a2023-09-17 16:08:49 +02001241/* - AUDIO CLOCK ----------------------------------------- */
1242static const unsigned int audio_clkin_pins[] = {
1243 /* CLK IN */
1244 RCAR_GP_PIN(1, 22),
1245};
1246static const unsigned int audio_clkin_mux[] = {
1247 AUDIO_CLKIN_MARK,
1248};
1249static const unsigned int audio_clkout_pins[] = {
1250 /* CLK OUT */
1251 RCAR_GP_PIN(1, 21),
1252};
1253static const unsigned int audio_clkout_mux[] = {
1254 AUDIO_CLKOUT_MARK,
1255};
1256
Hai Pham9a8aaa32023-02-28 22:37:03 +01001257/* - AVB0 ------------------------------------------------ */
1258static const unsigned int avb0_link_pins[] = {
1259 /* AVB0_LINK */
1260 RCAR_GP_PIN(7, 4),
1261};
1262static const unsigned int avb0_link_mux[] = {
1263 AVB0_LINK_MARK,
1264};
1265static const unsigned int avb0_magic_pins[] = {
1266 /* AVB0_MAGIC */
1267 RCAR_GP_PIN(7, 10),
1268};
1269static const unsigned int avb0_magic_mux[] = {
1270 AVB0_MAGIC_MARK,
1271};
1272static const unsigned int avb0_phy_int_pins[] = {
1273 /* AVB0_PHY_INT */
1274 RCAR_GP_PIN(7, 5),
1275};
1276static const unsigned int avb0_phy_int_mux[] = {
1277 AVB0_PHY_INT_MARK,
1278};
1279static const unsigned int avb0_mdio_pins[] = {
1280 /* AVB0_MDC, AVB0_MDIO */
1281 RCAR_GP_PIN(7, 13), RCAR_GP_PIN(7, 14),
1282};
1283static const unsigned int avb0_mdio_mux[] = {
1284 AVB0_MDC_MARK, AVB0_MDIO_MARK,
1285};
1286static const unsigned int avb0_rgmii_pins[] = {
1287 /*
1288 * AVB0_TX_CTL, AVB0_TXC, AVB0_TD0, AVB0_TD1, AVB0_TD2, AVB0_TD3,
1289 * AVB0_RX_CTL, AVB0_RXC, AVB0_RD0, AVB0_RD1, AVB0_RD2, AVB0_RD3,
1290 */
1291 RCAR_GP_PIN(7, 16), RCAR_GP_PIN(7, 15),
1292 RCAR_GP_PIN(7, 11), RCAR_GP_PIN(7, 7),
1293 RCAR_GP_PIN(7, 6), RCAR_GP_PIN(7, 3),
1294 RCAR_GP_PIN(7, 20), RCAR_GP_PIN(7, 19),
1295 RCAR_GP_PIN(7, 18), RCAR_GP_PIN(7, 17),
1296 RCAR_GP_PIN(7, 12), RCAR_GP_PIN(7, 8),
1297};
1298static const unsigned int avb0_rgmii_mux[] = {
1299 AVB0_TX_CTL_MARK, AVB0_TXC_MARK,
1300 AVB0_TD0_MARK, AVB0_TD1_MARK,
1301 AVB0_TD2_MARK, AVB0_TD3_MARK,
1302 AVB0_RX_CTL_MARK, AVB0_RXC_MARK,
1303 AVB0_RD0_MARK, AVB0_RD1_MARK,
1304 AVB0_RD2_MARK, AVB0_RD3_MARK,
1305};
1306static const unsigned int avb0_txcrefclk_pins[] = {
1307 /* AVB0_TXCREFCLK */
1308 RCAR_GP_PIN(7, 9),
1309};
1310static const unsigned int avb0_txcrefclk_mux[] = {
1311 AVB0_TXCREFCLK_MARK,
1312};
1313static const unsigned int avb0_avtp_pps_pins[] = {
1314 /* AVB0_AVTP_PPS */
1315 RCAR_GP_PIN(7, 0),
1316};
1317static const unsigned int avb0_avtp_pps_mux[] = {
1318 AVB0_AVTP_PPS_MARK,
1319};
1320static const unsigned int avb0_avtp_capture_pins[] = {
1321 /* AVB0_AVTP_CAPTURE */
1322 RCAR_GP_PIN(7, 1),
1323};
1324static const unsigned int avb0_avtp_capture_mux[] = {
1325 AVB0_AVTP_CAPTURE_MARK,
1326};
1327static const unsigned int avb0_avtp_match_pins[] = {
1328 /* AVB0_AVTP_MATCH */
1329 RCAR_GP_PIN(7, 2),
1330};
1331static const unsigned int avb0_avtp_match_mux[] = {
1332 AVB0_AVTP_MATCH_MARK,
1333};
1334
1335/* - AVB1 ------------------------------------------------ */
1336static const unsigned int avb1_link_pins[] = {
1337 /* AVB1_LINK */
1338 RCAR_GP_PIN(6, 4),
1339};
1340static const unsigned int avb1_link_mux[] = {
1341 AVB1_LINK_MARK,
1342};
1343static const unsigned int avb1_magic_pins[] = {
1344 /* AVB1_MAGIC */
1345 RCAR_GP_PIN(6, 1),
1346};
1347static const unsigned int avb1_magic_mux[] = {
1348 AVB1_MAGIC_MARK,
1349};
1350static const unsigned int avb1_phy_int_pins[] = {
1351 /* AVB1_PHY_INT */
1352 RCAR_GP_PIN(6, 3),
1353};
1354static const unsigned int avb1_phy_int_mux[] = {
1355 AVB1_PHY_INT_MARK,
1356};
1357static const unsigned int avb1_mdio_pins[] = {
1358 /* AVB1_MDC, AVB1_MDIO */
1359 RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 0),
1360};
1361static const unsigned int avb1_mdio_mux[] = {
1362 AVB1_MDC_MARK, AVB1_MDIO_MARK,
1363};
1364static const unsigned int avb1_rgmii_pins[] = {
1365 /*
1366 * AVB1_TX_CTL, AVB1_TXC, AVB1_TD0, AVB1_TD1, AVB1_TD2, AVB1_TD3,
1367 * AVB1_RX_CTL, AVB1_RXC, AVB1_RD0, AVB1_RD1, AVB1_RD2, AVB1_RD3,
1368 */
1369 RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
1370 RCAR_GP_PIN(6, 13), RCAR_GP_PIN(6, 12),
1371 RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 18),
1372 RCAR_GP_PIN(6, 9), RCAR_GP_PIN(6, 8),
1373 RCAR_GP_PIN(6, 15), RCAR_GP_PIN(6, 14),
1374 RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 19),
1375};
1376static const unsigned int avb1_rgmii_mux[] = {
1377 AVB1_TX_CTL_MARK, AVB1_TXC_MARK,
1378 AVB1_TD0_MARK, AVB1_TD1_MARK,
1379 AVB1_TD2_MARK, AVB1_TD3_MARK,
1380 AVB1_RX_CTL_MARK, AVB1_RXC_MARK,
1381 AVB1_RD0_MARK, AVB1_RD1_MARK,
1382 AVB1_RD2_MARK, AVB1_RD3_MARK,
1383};
1384static const unsigned int avb1_txcrefclk_pins[] = {
1385 /* AVB1_TXCREFCLK */
1386 RCAR_GP_PIN(6, 20),
1387};
1388static const unsigned int avb1_txcrefclk_mux[] = {
1389 AVB1_TXCREFCLK_MARK,
1390};
1391static const unsigned int avb1_avtp_pps_pins[] = {
1392 /* AVB1_AVTP_PPS */
1393 RCAR_GP_PIN(6, 10),
1394};
1395static const unsigned int avb1_avtp_pps_mux[] = {
1396 AVB1_AVTP_PPS_MARK,
1397};
1398static const unsigned int avb1_avtp_capture_pins[] = {
1399 /* AVB1_AVTP_CAPTURE */
1400 RCAR_GP_PIN(6, 11),
1401};
1402static const unsigned int avb1_avtp_capture_mux[] = {
1403 AVB1_AVTP_CAPTURE_MARK,
1404};
1405static const unsigned int avb1_avtp_match_pins[] = {
1406 /* AVB1_AVTP_MATCH */
1407 RCAR_GP_PIN(6, 5),
1408};
1409static const unsigned int avb1_avtp_match_mux[] = {
1410 AVB1_AVTP_MATCH_MARK,
1411};
1412
1413/* - AVB2 ------------------------------------------------ */
1414static const unsigned int avb2_link_pins[] = {
1415 /* AVB2_LINK */
1416 RCAR_GP_PIN(5, 3),
1417};
1418static const unsigned int avb2_link_mux[] = {
1419 AVB2_LINK_MARK,
1420};
1421static const unsigned int avb2_magic_pins[] = {
1422 /* AVB2_MAGIC */
1423 RCAR_GP_PIN(5, 5),
1424};
1425static const unsigned int avb2_magic_mux[] = {
1426 AVB2_MAGIC_MARK,
1427};
1428static const unsigned int avb2_phy_int_pins[] = {
1429 /* AVB2_PHY_INT */
1430 RCAR_GP_PIN(5, 4),
1431};
1432static const unsigned int avb2_phy_int_mux[] = {
1433 AVB2_PHY_INT_MARK,
1434};
1435static const unsigned int avb2_mdio_pins[] = {
1436 /* AVB2_MDC, AVB2_MDIO */
1437 RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 10),
1438};
1439static const unsigned int avb2_mdio_mux[] = {
1440 AVB2_MDC_MARK, AVB2_MDIO_MARK,
1441};
1442static const unsigned int avb2_rgmii_pins[] = {
1443 /*
1444 * AVB2_TX_CTL, AVB2_TXC, AVB2_TD0, AVB2_TD1, AVB2_TD2, AVB2_TD3,
1445 * AVB2_RX_CTL, AVB2_RXC, AVB2_RD0, AVB2_RD1, AVB2_RD2, AVB2_RD3,
1446 */
1447 RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 16),
1448 RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 12),
1449 RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 8),
1450 RCAR_GP_PIN(5, 20), RCAR_GP_PIN(5, 18),
1451 RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 14),
1452 RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 9),
1453};
1454static const unsigned int avb2_rgmii_mux[] = {
1455 AVB2_TX_CTL_MARK, AVB2_TXC_MARK,
1456 AVB2_TD0_MARK, AVB2_TD1_MARK,
1457 AVB2_TD2_MARK, AVB2_TD3_MARK,
1458 AVB2_RX_CTL_MARK, AVB2_RXC_MARK,
1459 AVB2_RD0_MARK, AVB2_RD1_MARK,
1460 AVB2_RD2_MARK, AVB2_RD3_MARK,
1461};
1462static const unsigned int avb2_txcrefclk_pins[] = {
1463 /* AVB2_TXCREFCLK */
1464 RCAR_GP_PIN(5, 7),
1465};
1466static const unsigned int avb2_txcrefclk_mux[] = {
1467 AVB2_TXCREFCLK_MARK,
1468};
1469static const unsigned int avb2_avtp_pps_pins[] = {
1470 /* AVB2_AVTP_PPS */
1471 RCAR_GP_PIN(5, 0),
1472};
1473static const unsigned int avb2_avtp_pps_mux[] = {
1474 AVB2_AVTP_PPS_MARK,
1475};
1476static const unsigned int avb2_avtp_capture_pins[] = {
1477 /* AVB2_AVTP_CAPTURE */
1478 RCAR_GP_PIN(5, 1),
1479};
1480static const unsigned int avb2_avtp_capture_mux[] = {
1481 AVB2_AVTP_CAPTURE_MARK,
1482};
1483static const unsigned int avb2_avtp_match_pins[] = {
1484 /* AVB2_AVTP_MATCH */
1485 RCAR_GP_PIN(5, 2),
1486};
1487static const unsigned int avb2_avtp_match_mux[] = {
1488 AVB2_AVTP_MATCH_MARK,
1489};
1490
1491/* - CANFD0 ----------------------------------------------------------------- */
1492static const unsigned int canfd0_data_pins[] = {
1493 /* CANFD0_TX, CANFD0_RX */
1494 RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
1495};
1496static const unsigned int canfd0_data_mux[] = {
1497 CANFD0_TX_MARK, CANFD0_RX_MARK,
1498};
1499
1500/* - CANFD1 ----------------------------------------------------------------- */
1501static const unsigned int canfd1_data_pins[] = {
1502 /* CANFD1_TX, CANFD1_RX */
1503 RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
1504};
1505static const unsigned int canfd1_data_mux[] = {
1506 CANFD1_TX_MARK, CANFD1_RX_MARK,
1507};
1508
1509/* - CANFD2 ----------------------------------------------------------------- */
1510static const unsigned int canfd2_data_pins[] = {
1511 /* CANFD2_TX, CANFD2_RX */
1512 RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
1513};
1514static const unsigned int canfd2_data_mux[] = {
1515 CANFD2_TX_MARK, CANFD2_RX_MARK,
1516};
1517
1518/* - CANFD3 ----------------------------------------------------------------- */
1519static const unsigned int canfd3_data_pins[] = {
1520 /* CANFD3_TX, CANFD3_RX */
1521 RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 15),
1522};
1523static const unsigned int canfd3_data_mux[] = {
1524 CANFD3_TX_MARK, CANFD3_RX_MARK,
1525};
1526
1527/* - CANFD4 ----------------------------------------------------------------- */
1528static const unsigned int canfd4_data_pins[] = {
1529 /* CANFD4_TX, CANFD4_RX */
1530 RCAR_GP_PIN(2, 16), RCAR_GP_PIN(2, 17),
1531};
1532static const unsigned int canfd4_data_mux[] = {
1533 CANFD4_TX_MARK, CANFD4_RX_MARK,
1534};
1535
1536/* - CANFD5 ----------------------------------------------------------------- */
1537static const unsigned int canfd5_data_pins[] = {
1538 /* CANFD5_TX, CANFD5_RX */
1539 RCAR_GP_PIN(2, 2), RCAR_GP_PIN(2, 3),
1540};
1541static const unsigned int canfd5_data_mux[] = {
1542 CANFD5_TX_MARK, CANFD5_RX_MARK,
1543};
1544
1545/* - CANFD5_B ----------------------------------------------------------------- */
1546static const unsigned int canfd5_data_b_pins[] = {
1547 /* CANFD5_TX_B, CANFD5_RX_B */
1548 RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 9),
1549};
1550static const unsigned int canfd5_data_b_mux[] = {
1551 CANFD5_TX_B_MARK, CANFD5_RX_B_MARK,
1552};
1553
1554/* - CANFD6 ----------------------------------------------------------------- */
1555static const unsigned int canfd6_data_pins[] = {
1556 /* CANFD6_TX, CANFD6_RX */
1557 RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
1558};
1559static const unsigned int canfd6_data_mux[] = {
1560 CANFD6_TX_MARK, CANFD6_RX_MARK,
1561};
1562
1563/* - CANFD7 ----------------------------------------------------------------- */
1564static const unsigned int canfd7_data_pins[] = {
1565 /* CANFD7_TX, CANFD7_RX */
1566 RCAR_GP_PIN(2, 18), RCAR_GP_PIN(2, 19),
1567};
1568static const unsigned int canfd7_data_mux[] = {
1569 CANFD7_TX_MARK, CANFD7_RX_MARK,
1570};
1571
1572/* - CANFD Clock ------------------------------------------------------------ */
1573static const unsigned int can_clk_pins[] = {
1574 /* CAN_CLK */
1575 RCAR_GP_PIN(2, 9),
1576};
1577static const unsigned int can_clk_mux[] = {
1578 CAN_CLK_MARK,
1579};
1580
1581/* - HSCIF0 ----------------------------------------------------------------- */
1582static const unsigned int hscif0_data_pins[] = {
1583 /* HRX0, HTX0 */
1584 RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 12),
1585};
1586static const unsigned int hscif0_data_mux[] = {
1587 HRX0_MARK, HTX0_MARK,
1588};
1589static const unsigned int hscif0_clk_pins[] = {
1590 /* HSCK0 */
1591 RCAR_GP_PIN(1, 15),
1592};
1593static const unsigned int hscif0_clk_mux[] = {
1594 HSCK0_MARK,
1595};
1596static const unsigned int hscif0_ctrl_pins[] = {
1597 /* HRTS0_N, HCTS0_N */
1598 RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
1599};
1600static const unsigned int hscif0_ctrl_mux[] = {
1601 HRTS0_N_MARK, HCTS0_N_MARK,
1602};
1603
1604/* - HSCIF1 ----------------------------------------------------------------- */
1605static const unsigned int hscif1_data_pins[] = {
1606 /* HRX1, HTX1 */
1607 RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14),
1608};
1609static const unsigned int hscif1_data_mux[] = {
1610 HRX1_MARK, HTX1_MARK,
1611};
1612static const unsigned int hscif1_clk_pins[] = {
1613 /* HSCK1 */
1614 RCAR_GP_PIN(0, 18),
1615};
1616static const unsigned int hscif1_clk_mux[] = {
1617 HSCK1_MARK,
1618};
1619static const unsigned int hscif1_ctrl_pins[] = {
1620 /* HRTS1_N, HCTS1_N */
1621 RCAR_GP_PIN(0, 17), RCAR_GP_PIN(0, 16),
1622};
1623static const unsigned int hscif1_ctrl_mux[] = {
1624 HRTS1_N_MARK, HCTS1_N_MARK,
1625};
1626
1627/* - HSCIF1_X---------------------------------------------------------------- */
1628static const unsigned int hscif1_data_x_pins[] = {
1629 /* HRX1_X, HTX1_X */
1630 RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
1631};
1632static const unsigned int hscif1_data_x_mux[] = {
1633 HRX1_X_MARK, HTX1_X_MARK,
1634};
1635static const unsigned int hscif1_clk_x_pins[] = {
1636 /* HSCK1_X */
1637 RCAR_GP_PIN(1, 10),
1638};
1639static const unsigned int hscif1_clk_x_mux[] = {
1640 HSCK1_X_MARK,
1641};
1642static const unsigned int hscif1_ctrl_x_pins[] = {
1643 /* HRTS1_N_X, HCTS1_N_X */
1644 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
1645};
1646static const unsigned int hscif1_ctrl_x_mux[] = {
1647 HRTS1_N_X_MARK, HCTS1_N_X_MARK,
1648};
1649
1650/* - HSCIF2 ----------------------------------------------------------------- */
1651static const unsigned int hscif2_data_pins[] = {
1652 /* HRX2, HTX2 */
1653 RCAR_GP_PIN(8, 8), RCAR_GP_PIN(8, 9),
1654};
1655static const unsigned int hscif2_data_mux[] = {
1656 HRX2_MARK, HTX2_MARK,
1657};
1658static const unsigned int hscif2_clk_pins[] = {
1659 /* HSCK2 */
1660 RCAR_GP_PIN(8, 13),
1661};
1662static const unsigned int hscif2_clk_mux[] = {
1663 HSCK2_MARK,
1664};
1665static const unsigned int hscif2_ctrl_pins[] = {
1666 /* HRTS2_N, HCTS2_N */
1667 RCAR_GP_PIN(8, 10), RCAR_GP_PIN(8, 12),
1668};
1669static const unsigned int hscif2_ctrl_mux[] = {
1670 HRTS2_N_MARK, HCTS2_N_MARK,
1671};
1672
1673/* - HSCIF3 ----------------------------------------------------------------- */
1674static const unsigned int hscif3_data_pins[] = {
1675 /* HRX3, HTX3 */
1676 RCAR_GP_PIN(1, 24), RCAR_GP_PIN(1, 28),
1677};
1678static const unsigned int hscif3_data_mux[] = {
1679 HRX3_MARK, HTX3_MARK,
1680};
1681static const unsigned int hscif3_clk_pins[] = {
1682 /* HSCK3 */
1683 RCAR_GP_PIN(1, 25),
1684};
1685static const unsigned int hscif3_clk_mux[] = {
1686 HSCK3_MARK,
1687};
1688static const unsigned int hscif3_ctrl_pins[] = {
1689 /* HRTS3_N, HCTS3_N */
1690 RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 27),
1691};
1692static const unsigned int hscif3_ctrl_mux[] = {
1693 HRTS3_N_MARK, HCTS3_N_MARK,
1694};
1695
1696/* - HSCIF3_A ----------------------------------------------------------------- */
1697static const unsigned int hscif3_data_a_pins[] = {
1698 /* HRX3_A, HTX3_A */
1699 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 0),
1700};
1701static const unsigned int hscif3_data_a_mux[] = {
1702 HRX3_A_MARK, HTX3_A_MARK,
1703};
1704static const unsigned int hscif3_clk_a_pins[] = {
1705 /* HSCK3_A */
1706 RCAR_GP_PIN(1, 3),
1707};
1708static const unsigned int hscif3_clk_a_mux[] = {
1709 HSCK3_A_MARK,
1710};
1711static const unsigned int hscif3_ctrl_a_pins[] = {
1712 /* HRTS3_N_A, HCTS3_N_A */
1713 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 1),
1714};
1715static const unsigned int hscif3_ctrl_a_mux[] = {
1716 HRTS3_N_A_MARK, HCTS3_N_A_MARK,
1717};
1718
1719/* - I2C0 ------------------------------------------------------------------- */
1720static const unsigned int i2c0_pins[] = {
1721 /* SDA0, SCL0 */
1722 RCAR_GP_PIN(8, 1), RCAR_GP_PIN(8, 0),
1723};
1724static const unsigned int i2c0_mux[] = {
1725 SDA0_MARK, SCL0_MARK,
1726};
1727
1728/* - I2C1 ------------------------------------------------------------------- */
1729static const unsigned int i2c1_pins[] = {
1730 /* SDA1, SCL1 */
1731 RCAR_GP_PIN(8, 3), RCAR_GP_PIN(8, 2),
1732};
1733static const unsigned int i2c1_mux[] = {
1734 SDA1_MARK, SCL1_MARK,
1735};
1736
1737/* - I2C2 ------------------------------------------------------------------- */
1738static const unsigned int i2c2_pins[] = {
1739 /* SDA2, SCL2 */
1740 RCAR_GP_PIN(8, 5), RCAR_GP_PIN(8, 4),
1741};
1742static const unsigned int i2c2_mux[] = {
1743 SDA2_MARK, SCL2_MARK,
1744};
1745
1746/* - I2C3 ------------------------------------------------------------------- */
1747static const unsigned int i2c3_pins[] = {
1748 /* SDA3, SCL3 */
1749 RCAR_GP_PIN(8, 7), RCAR_GP_PIN(8, 6),
1750};
1751static const unsigned int i2c3_mux[] = {
1752 SDA3_MARK, SCL3_MARK,
1753};
1754
1755/* - I2C4 ------------------------------------------------------------------- */
1756static const unsigned int i2c4_pins[] = {
1757 /* SDA4, SCL4 */
1758 RCAR_GP_PIN(8, 9), RCAR_GP_PIN(8, 8),
1759};
1760static const unsigned int i2c4_mux[] = {
1761 SDA4_MARK, SCL4_MARK,
1762};
1763
1764/* - I2C5 ------------------------------------------------------------------- */
1765static const unsigned int i2c5_pins[] = {
1766 /* SDA5, SCL5 */
1767 RCAR_GP_PIN(8, 11), RCAR_GP_PIN(8, 10),
1768};
1769static const unsigned int i2c5_mux[] = {
1770 SDA5_MARK, SCL5_MARK,
1771};
1772
1773/* - MMC -------------------------------------------------------------------- */
1774static const unsigned int mmc_data_pins[] = {
1775 /* MMC_SD_D[0:3], MMC_D[4:7] */
1776 RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 0),
1777 RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 5),
1778 RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 6),
1779 RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 8),
1780};
1781static const unsigned int mmc_data_mux[] = {
1782 MMC_SD_D0_MARK, MMC_SD_D1_MARK,
1783 MMC_SD_D2_MARK, MMC_SD_D3_MARK,
1784 MMC_D4_MARK, MMC_D5_MARK,
1785 MMC_D6_MARK, MMC_D7_MARK,
1786};
1787static const unsigned int mmc_ctrl_pins[] = {
1788 /* MMC_SD_CLK, MMC_SD_CMD */
1789 RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 10),
1790};
1791static const unsigned int mmc_ctrl_mux[] = {
1792 MMC_SD_CLK_MARK, MMC_SD_CMD_MARK,
1793};
1794static const unsigned int mmc_cd_pins[] = {
1795 /* SD_CD */
1796 RCAR_GP_PIN(3, 11),
1797};
1798static const unsigned int mmc_cd_mux[] = {
1799 SD_CD_MARK,
1800};
1801static const unsigned int mmc_wp_pins[] = {
1802 /* SD_WP */
1803 RCAR_GP_PIN(3, 12),
1804};
1805static const unsigned int mmc_wp_mux[] = {
1806 SD_WP_MARK,
1807};
1808static const unsigned int mmc_ds_pins[] = {
1809 /* MMC_DS */
1810 RCAR_GP_PIN(3, 4),
1811};
1812static const unsigned int mmc_ds_mux[] = {
1813 MMC_DS_MARK,
1814};
1815
1816/* - MSIOF0 ----------------------------------------------------------------- */
1817static const unsigned int msiof0_clk_pins[] = {
1818 /* MSIOF0_SCK */
1819 RCAR_GP_PIN(1, 10),
1820};
1821static const unsigned int msiof0_clk_mux[] = {
1822 MSIOF0_SCK_MARK,
1823};
1824static const unsigned int msiof0_sync_pins[] = {
1825 /* MSIOF0_SYNC */
1826 RCAR_GP_PIN(1, 8),
1827};
1828static const unsigned int msiof0_sync_mux[] = {
1829 MSIOF0_SYNC_MARK,
1830};
1831static const unsigned int msiof0_ss1_pins[] = {
1832 /* MSIOF0_SS1 */
1833 RCAR_GP_PIN(1, 7),
1834};
1835static const unsigned int msiof0_ss1_mux[] = {
1836 MSIOF0_SS1_MARK,
1837};
1838static const unsigned int msiof0_ss2_pins[] = {
1839 /* MSIOF0_SS2 */
1840 RCAR_GP_PIN(1, 6),
1841};
1842static const unsigned int msiof0_ss2_mux[] = {
1843 MSIOF0_SS2_MARK,
1844};
1845static const unsigned int msiof0_txd_pins[] = {
1846 /* MSIOF0_TXD */
1847 RCAR_GP_PIN(1, 9),
1848};
1849static const unsigned int msiof0_txd_mux[] = {
1850 MSIOF0_TXD_MARK,
1851};
1852static const unsigned int msiof0_rxd_pins[] = {
1853 /* MSIOF0_RXD */
1854 RCAR_GP_PIN(1, 11),
1855};
1856static const unsigned int msiof0_rxd_mux[] = {
1857 MSIOF0_RXD_MARK,
1858};
1859
1860/* - MSIOF1 ----------------------------------------------------------------- */
1861static const unsigned int msiof1_clk_pins[] = {
1862 /* MSIOF1_SCK */
1863 RCAR_GP_PIN(1, 3),
1864};
1865static const unsigned int msiof1_clk_mux[] = {
1866 MSIOF1_SCK_MARK,
1867};
1868static const unsigned int msiof1_sync_pins[] = {
1869 /* MSIOF1_SYNC */
1870 RCAR_GP_PIN(1, 2),
1871};
1872static const unsigned int msiof1_sync_mux[] = {
1873 MSIOF1_SYNC_MARK,
1874};
1875static const unsigned int msiof1_ss1_pins[] = {
1876 /* MSIOF1_SS1 */
1877 RCAR_GP_PIN(1, 1),
1878};
1879static const unsigned int msiof1_ss1_mux[] = {
1880 MSIOF1_SS1_MARK,
1881};
1882static const unsigned int msiof1_ss2_pins[] = {
1883 /* MSIOF1_SS2 */
1884 RCAR_GP_PIN(1, 0),
1885};
1886static const unsigned int msiof1_ss2_mux[] = {
1887 MSIOF1_SS2_MARK,
1888};
1889static const unsigned int msiof1_txd_pins[] = {
1890 /* MSIOF1_TXD */
1891 RCAR_GP_PIN(1, 4),
1892};
1893static const unsigned int msiof1_txd_mux[] = {
1894 MSIOF1_TXD_MARK,
1895};
1896static const unsigned int msiof1_rxd_pins[] = {
1897 /* MSIOF1_RXD */
1898 RCAR_GP_PIN(1, 5),
1899};
1900static const unsigned int msiof1_rxd_mux[] = {
1901 MSIOF1_RXD_MARK,
1902};
1903
1904/* - MSIOF2 ----------------------------------------------------------------- */
1905static const unsigned int msiof2_clk_pins[] = {
1906 /* MSIOF2_SCK */
1907 RCAR_GP_PIN(0, 17),
1908};
1909static const unsigned int msiof2_clk_mux[] = {
1910 MSIOF2_SCK_MARK,
1911};
1912static const unsigned int msiof2_sync_pins[] = {
1913 /* MSIOF2_SYNC */
1914 RCAR_GP_PIN(0, 15),
1915};
1916static const unsigned int msiof2_sync_mux[] = {
1917 MSIOF2_SYNC_MARK,
1918};
1919static const unsigned int msiof2_ss1_pins[] = {
1920 /* MSIOF2_SS1 */
1921 RCAR_GP_PIN(0, 14),
1922};
1923static const unsigned int msiof2_ss1_mux[] = {
1924 MSIOF2_SS1_MARK,
1925};
1926static const unsigned int msiof2_ss2_pins[] = {
1927 /* MSIOF2_SS2 */
1928 RCAR_GP_PIN(0, 13),
1929};
1930static const unsigned int msiof2_ss2_mux[] = {
1931 MSIOF2_SS2_MARK,
1932};
1933static const unsigned int msiof2_txd_pins[] = {
1934 /* MSIOF2_TXD */
1935 RCAR_GP_PIN(0, 16),
1936};
1937static const unsigned int msiof2_txd_mux[] = {
1938 MSIOF2_TXD_MARK,
1939};
1940static const unsigned int msiof2_rxd_pins[] = {
1941 /* MSIOF2_RXD */
1942 RCAR_GP_PIN(0, 18),
1943};
1944static const unsigned int msiof2_rxd_mux[] = {
1945 MSIOF2_RXD_MARK,
1946};
1947
1948/* - MSIOF3 ----------------------------------------------------------------- */
1949static const unsigned int msiof3_clk_pins[] = {
1950 /* MSIOF3_SCK */
1951 RCAR_GP_PIN(0, 3),
1952};
1953static const unsigned int msiof3_clk_mux[] = {
1954 MSIOF3_SCK_MARK,
1955};
1956static const unsigned int msiof3_sync_pins[] = {
1957 /* MSIOF3_SYNC */
1958 RCAR_GP_PIN(0, 6),
1959};
1960static const unsigned int msiof3_sync_mux[] = {
1961 MSIOF3_SYNC_MARK,
1962};
1963static const unsigned int msiof3_ss1_pins[] = {
1964 /* MSIOF3_SS1 */
1965 RCAR_GP_PIN(0, 1),
1966};
1967static const unsigned int msiof3_ss1_mux[] = {
1968 MSIOF3_SS1_MARK,
1969};
1970static const unsigned int msiof3_ss2_pins[] = {
1971 /* MSIOF3_SS2 */
1972 RCAR_GP_PIN(0, 2),
1973};
1974static const unsigned int msiof3_ss2_mux[] = {
1975 MSIOF3_SS2_MARK,
1976};
1977static const unsigned int msiof3_txd_pins[] = {
1978 /* MSIOF3_TXD */
1979 RCAR_GP_PIN(0, 4),
1980};
1981static const unsigned int msiof3_txd_mux[] = {
1982 MSIOF3_TXD_MARK,
1983};
1984static const unsigned int msiof3_rxd_pins[] = {
1985 /* MSIOF3_RXD */
1986 RCAR_GP_PIN(0, 5),
1987};
1988static const unsigned int msiof3_rxd_mux[] = {
1989 MSIOF3_RXD_MARK,
1990};
1991
1992/* - MSIOF4 ----------------------------------------------------------------- */
1993static const unsigned int msiof4_clk_pins[] = {
1994 /* MSIOF4_SCK */
1995 RCAR_GP_PIN(1, 25),
1996};
1997static const unsigned int msiof4_clk_mux[] = {
1998 MSIOF4_SCK_MARK,
1999};
2000static const unsigned int msiof4_sync_pins[] = {
2001 /* MSIOF4_SYNC */
2002 RCAR_GP_PIN(1, 28),
2003};
2004static const unsigned int msiof4_sync_mux[] = {
2005 MSIOF4_SYNC_MARK,
2006};
2007static const unsigned int msiof4_ss1_pins[] = {
2008 /* MSIOF4_SS1 */
2009 RCAR_GP_PIN(1, 23),
2010};
2011static const unsigned int msiof4_ss1_mux[] = {
2012 MSIOF4_SS1_MARK,
2013};
2014static const unsigned int msiof4_ss2_pins[] = {
2015 /* MSIOF4_SS2 */
2016 RCAR_GP_PIN(1, 24),
2017};
2018static const unsigned int msiof4_ss2_mux[] = {
2019 MSIOF4_SS2_MARK,
2020};
2021static const unsigned int msiof4_txd_pins[] = {
2022 /* MSIOF4_TXD */
2023 RCAR_GP_PIN(1, 26),
2024};
2025static const unsigned int msiof4_txd_mux[] = {
2026 MSIOF4_TXD_MARK,
2027};
2028static const unsigned int msiof4_rxd_pins[] = {
2029 /* MSIOF4_RXD */
2030 RCAR_GP_PIN(1, 27),
2031};
2032static const unsigned int msiof4_rxd_mux[] = {
2033 MSIOF4_RXD_MARK,
2034};
2035
2036/* - MSIOF5 ----------------------------------------------------------------- */
2037static const unsigned int msiof5_clk_pins[] = {
2038 /* MSIOF5_SCK */
2039 RCAR_GP_PIN(0, 11),
2040};
2041static const unsigned int msiof5_clk_mux[] = {
2042 MSIOF5_SCK_MARK,
2043};
2044static const unsigned int msiof5_sync_pins[] = {
2045 /* MSIOF5_SYNC */
2046 RCAR_GP_PIN(0, 9),
2047};
2048static const unsigned int msiof5_sync_mux[] = {
2049 MSIOF5_SYNC_MARK,
2050};
2051static const unsigned int msiof5_ss1_pins[] = {
2052 /* MSIOF5_SS1 */
2053 RCAR_GP_PIN(0, 8),
2054};
2055static const unsigned int msiof5_ss1_mux[] = {
2056 MSIOF5_SS1_MARK,
2057};
2058static const unsigned int msiof5_ss2_pins[] = {
2059 /* MSIOF5_SS2 */
2060 RCAR_GP_PIN(0, 7),
2061};
2062static const unsigned int msiof5_ss2_mux[] = {
2063 MSIOF5_SS2_MARK,
2064};
2065static const unsigned int msiof5_txd_pins[] = {
2066 /* MSIOF5_TXD */
2067 RCAR_GP_PIN(0, 10),
2068};
2069static const unsigned int msiof5_txd_mux[] = {
2070 MSIOF5_TXD_MARK,
2071};
2072static const unsigned int msiof5_rxd_pins[] = {
2073 /* MSIOF5_RXD */
2074 RCAR_GP_PIN(0, 12),
2075};
2076static const unsigned int msiof5_rxd_mux[] = {
2077 MSIOF5_RXD_MARK,
2078};
2079
2080/* - PCIE ------------------------------------------------------------------- */
2081static const unsigned int pcie0_clkreq_n_pins[] = {
2082 /* PCIE0_CLKREQ_N */
2083 RCAR_GP_PIN(4, 21),
2084};
2085
2086static const unsigned int pcie0_clkreq_n_mux[] = {
2087 PCIE0_CLKREQ_N_MARK,
2088};
2089
2090static const unsigned int pcie1_clkreq_n_pins[] = {
2091 /* PCIE1_CLKREQ_N */
2092 RCAR_GP_PIN(4, 22),
2093};
2094
2095static const unsigned int pcie1_clkreq_n_mux[] = {
2096 PCIE1_CLKREQ_N_MARK,
2097};
2098
2099/* - PWM0_A ------------------------------------------------------------------- */
2100static const unsigned int pwm0_a_pins[] = {
2101 /* PWM0_A */
2102 RCAR_GP_PIN(1, 15),
2103};
2104static const unsigned int pwm0_a_mux[] = {
2105 PWM0_A_MARK,
2106};
2107
2108/* - PWM1_A ------------------------------------------------------------------- */
2109static const unsigned int pwm1_a_pins[] = {
2110 /* PWM1_A */
2111 RCAR_GP_PIN(3, 13),
2112};
2113static const unsigned int pwm1_a_mux[] = {
2114 PWM1_A_MARK,
2115};
2116
2117/* - PWM1_B ------------------------------------------------------------------- */
2118static const unsigned int pwm1_b_pins[] = {
2119 /* PWM1_B */
2120 RCAR_GP_PIN(2, 13),
2121};
2122static const unsigned int pwm1_b_mux[] = {
2123 PWM1_B_MARK,
2124};
2125
2126/* - PWM2_B ------------------------------------------------------------------- */
2127static const unsigned int pwm2_b_pins[] = {
2128 /* PWM2_B */
2129 RCAR_GP_PIN(2, 14),
2130};
2131static const unsigned int pwm2_b_mux[] = {
2132 PWM2_B_MARK,
2133};
2134
2135/* - PWM3_A ------------------------------------------------------------------- */
2136static const unsigned int pwm3_a_pins[] = {
2137 /* PWM3_A */
2138 RCAR_GP_PIN(1, 22),
2139};
2140static const unsigned int pwm3_a_mux[] = {
2141 PWM3_A_MARK,
2142};
2143
2144/* - PWM3_B ------------------------------------------------------------------- */
2145static const unsigned int pwm3_b_pins[] = {
2146 /* PWM3_B */
2147 RCAR_GP_PIN(2, 15),
2148};
2149static const unsigned int pwm3_b_mux[] = {
2150 PWM3_B_MARK,
2151};
2152
2153/* - PWM4 ------------------------------------------------------------------- */
2154static const unsigned int pwm4_pins[] = {
2155 /* PWM4 */
2156 RCAR_GP_PIN(2, 16),
2157};
2158static const unsigned int pwm4_mux[] = {
2159 PWM4_MARK,
2160};
2161
2162/* - PWM5 ------------------------------------------------------------------- */
2163static const unsigned int pwm5_pins[] = {
2164 /* PWM5 */
2165 RCAR_GP_PIN(2, 17),
2166};
2167static const unsigned int pwm5_mux[] = {
2168 PWM5_MARK,
2169};
2170
2171/* - PWM6 ------------------------------------------------------------------- */
2172static const unsigned int pwm6_pins[] = {
2173 /* PWM6 */
2174 RCAR_GP_PIN(2, 18),
2175};
2176static const unsigned int pwm6_mux[] = {
2177 PWM6_MARK,
2178};
2179
2180/* - PWM7 ------------------------------------------------------------------- */
2181static const unsigned int pwm7_pins[] = {
2182 /* PWM7 */
2183 RCAR_GP_PIN(2, 19),
2184};
2185static const unsigned int pwm7_mux[] = {
2186 PWM7_MARK,
2187};
2188
2189/* - PWM8_A ------------------------------------------------------------------- */
2190static const unsigned int pwm8_a_pins[] = {
2191 /* PWM8_A */
2192 RCAR_GP_PIN(1, 13),
2193};
2194static const unsigned int pwm8_a_mux[] = {
2195 PWM8_A_MARK,
2196};
2197
2198/* - PWM9_A ------------------------------------------------------------------- */
2199static const unsigned int pwm9_a_pins[] = {
2200 /* PWM9_A */
2201 RCAR_GP_PIN(1, 14),
2202};
2203static const unsigned int pwm9_a_mux[] = {
2204 PWM9_A_MARK,
2205};
2206
2207/* - QSPI0 ------------------------------------------------------------------ */
2208static const unsigned int qspi0_ctrl_pins[] = {
2209 /* SPCLK, SSL */
2210 RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 15),
2211};
2212static const unsigned int qspi0_ctrl_mux[] = {
2213 QSPI0_SPCLK_MARK, QSPI0_SSL_MARK,
2214};
2215static const unsigned int qspi0_data_pins[] = {
2216 /* MOSI_IO0, MISO_IO1, IO2, IO3 */
2217 RCAR_GP_PIN(3, 19), RCAR_GP_PIN(3, 18),
2218 RCAR_GP_PIN(3, 17), RCAR_GP_PIN(3, 16),
2219};
2220static const unsigned int qspi0_data_mux[] = {
2221 QSPI0_MOSI_IO0_MARK, QSPI0_MISO_IO1_MARK,
2222 QSPI0_IO2_MARK, QSPI0_IO3_MARK
2223};
2224
2225/* - QSPI1 ------------------------------------------------------------------ */
2226static const unsigned int qspi1_ctrl_pins[] = {
2227 /* SPCLK, SSL */
2228 RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 25),
2229};
2230static const unsigned int qspi1_ctrl_mux[] = {
2231 QSPI1_SPCLK_MARK, QSPI1_SSL_MARK,
2232};
2233static const unsigned int qspi1_data_pins[] = {
2234 /* MOSI_IO0, MISO_IO1, IO2, IO3 */
2235 RCAR_GP_PIN(3, 21), RCAR_GP_PIN(3, 23),
2236 RCAR_GP_PIN(3, 24), RCAR_GP_PIN(3, 26),
2237};
2238static const unsigned int qspi1_data_mux[] = {
2239 QSPI1_MOSI_IO0_MARK, QSPI1_MISO_IO1_MARK,
2240 QSPI1_IO2_MARK, QSPI1_IO3_MARK
2241};
2242
2243/* - SCIF0 ------------------------------------------------------------------ */
2244static const unsigned int scif0_data_pins[] = {
2245 /* RX0, TX0 */
2246 RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 12),
2247};
2248static const unsigned int scif0_data_mux[] = {
2249 RX0_MARK, TX0_MARK,
2250};
2251static const unsigned int scif0_clk_pins[] = {
2252 /* SCK0 */
2253 RCAR_GP_PIN(1, 15),
2254};
2255static const unsigned int scif0_clk_mux[] = {
2256 SCK0_MARK,
2257};
2258static const unsigned int scif0_ctrl_pins[] = {
2259 /* RTS0_N, CTS0_N */
2260 RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
2261};
2262static const unsigned int scif0_ctrl_mux[] = {
2263 RTS0_N_MARK, CTS0_N_MARK,
2264};
2265
2266/* - SCIF1 ------------------------------------------------------------------ */
2267static const unsigned int scif1_data_pins[] = {
2268 /* RX1, TX1 */
2269 RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14),
2270};
2271static const unsigned int scif1_data_mux[] = {
2272 RX1_MARK, TX1_MARK,
2273};
2274static const unsigned int scif1_clk_pins[] = {
2275 /* SCK1 */
2276 RCAR_GP_PIN(0, 18),
2277};
2278static const unsigned int scif1_clk_mux[] = {
2279 SCK1_MARK,
2280};
2281static const unsigned int scif1_ctrl_pins[] = {
2282 /* RTS1_N, CTS1_N */
2283 RCAR_GP_PIN(0, 17), RCAR_GP_PIN(0, 16),
2284};
2285static const unsigned int scif1_ctrl_mux[] = {
2286 RTS1_N_MARK, CTS1_N_MARK,
2287};
2288
2289/* - SCIF1_X ------------------------------------------------------------------ */
2290static const unsigned int scif1_data_x_pins[] = {
2291 /* RX1_X, TX1_X */
2292 RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
2293};
2294static const unsigned int scif1_data_x_mux[] = {
2295 RX1_X_MARK, TX1_X_MARK,
2296};
2297static const unsigned int scif1_clk_x_pins[] = {
2298 /* SCK1_X */
2299 RCAR_GP_PIN(1, 10),
2300};
2301static const unsigned int scif1_clk_x_mux[] = {
2302 SCK1_X_MARK,
2303};
2304static const unsigned int scif1_ctrl_x_pins[] = {
2305 /* RTS1_N_X, CTS1_N_X */
2306 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
2307};
2308static const unsigned int scif1_ctrl_x_mux[] = {
2309 RTS1_N_X_MARK, CTS1_N_X_MARK,
2310};
2311
2312/* - SCIF3 ------------------------------------------------------------------ */
2313static const unsigned int scif3_data_pins[] = {
2314 /* RX3, TX3 */
2315 RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 0),
2316};
2317static const unsigned int scif3_data_mux[] = {
2318 RX3_MARK, TX3_MARK,
2319};
2320static const unsigned int scif3_clk_pins[] = {
2321 /* SCK3 */
2322 RCAR_GP_PIN(1, 4),
2323};
2324static const unsigned int scif3_clk_mux[] = {
2325 SCK3_MARK,
2326};
2327static const unsigned int scif3_ctrl_pins[] = {
2328 /* RTS3_N, CTS3_N */
2329 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 3),
2330};
2331static const unsigned int scif3_ctrl_mux[] = {
2332 RTS3_N_MARK, CTS3_N_MARK,
2333};
2334
2335/* - SCIF3_A ------------------------------------------------------------------ */
2336static const unsigned int scif3_data_a_pins[] = {
2337 /* RX3_A, TX3_A */
2338 RCAR_GP_PIN(1, 27), RCAR_GP_PIN(1, 28),
2339};
2340static const unsigned int scif3_data_a_mux[] = {
2341 RX3_A_MARK, TX3_A_MARK,
2342};
2343static const unsigned int scif3_clk_a_pins[] = {
2344 /* SCK3_A */
2345 RCAR_GP_PIN(1, 24),
2346};
2347static const unsigned int scif3_clk_a_mux[] = {
2348 SCK3_A_MARK,
2349};
2350static const unsigned int scif3_ctrl_a_pins[] = {
2351 /* RTS3_N_A, CTS3_N_A */
2352 RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
2353};
2354static const unsigned int scif3_ctrl_a_mux[] = {
2355 RTS3_N_A_MARK, CTS3_N_A_MARK,
2356};
2357
2358/* - SCIF4 ------------------------------------------------------------------ */
2359static const unsigned int scif4_data_pins[] = {
2360 /* RX4, TX4 */
2361 RCAR_GP_PIN(8, 13), RCAR_GP_PIN(8, 12),
2362};
2363static const unsigned int scif4_data_mux[] = {
2364 RX4_MARK, TX4_MARK,
2365};
2366static const unsigned int scif4_clk_pins[] = {
2367 /* SCK4 */
2368 RCAR_GP_PIN(8, 8),
2369};
2370static const unsigned int scif4_clk_mux[] = {
2371 SCK4_MARK,
2372};
2373static const unsigned int scif4_ctrl_pins[] = {
2374 /* RTS4_N, CTS4_N */
2375 RCAR_GP_PIN(8, 10), RCAR_GP_PIN(8, 9),
2376};
2377static const unsigned int scif4_ctrl_mux[] = {
2378 RTS4_N_MARK, CTS4_N_MARK,
2379};
2380
2381/* - SCIF Clock ------------------------------------------------------------- */
2382static const unsigned int scif_clk_pins[] = {
2383 /* SCIF_CLK */
2384 RCAR_GP_PIN(1, 17),
2385};
2386static const unsigned int scif_clk_mux[] = {
2387 SCIF_CLK_MARK,
2388};
2389
Marek Vasut8f07e8a2023-09-17 16:08:49 +02002390/* - SSI ------------------------------------------------- */
2391static const unsigned int ssi_data_pins[] = {
2392 /* SSI_SD */
2393 RCAR_GP_PIN(1, 20),
2394};
2395static const unsigned int ssi_data_mux[] = {
2396 SSI_SD_MARK,
2397};
2398static const unsigned int ssi_ctrl_pins[] = {
2399 /* SSI_SCK, SSI_WS */
2400 RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19),
2401};
2402static const unsigned int ssi_ctrl_mux[] = {
2403 SSI_SCK_MARK, SSI_WS_MARK,
2404};
2405
Hai Pham9a8aaa32023-02-28 22:37:03 +01002406/* - TPU ------------------------------------------------------------------- */
2407static const unsigned int tpu_to0_pins[] = {
2408 /* TPU0TO0 */
2409 RCAR_GP_PIN(2, 8),
2410};
2411static const unsigned int tpu_to0_mux[] = {
2412 TPU0TO0_MARK,
2413};
2414static const unsigned int tpu_to1_pins[] = {
2415 /* TPU0TO1 */
2416 RCAR_GP_PIN(2, 7),
2417};
2418static const unsigned int tpu_to1_mux[] = {
2419 TPU0TO1_MARK,
2420};
2421static const unsigned int tpu_to2_pins[] = {
2422 /* TPU0TO2 */
2423 RCAR_GP_PIN(2, 12),
2424};
2425static const unsigned int tpu_to2_mux[] = {
2426 TPU0TO2_MARK,
2427};
2428static const unsigned int tpu_to3_pins[] = {
2429 /* TPU0TO3 */
2430 RCAR_GP_PIN(2, 13),
2431};
2432static const unsigned int tpu_to3_mux[] = {
2433 TPU0TO3_MARK,
2434};
2435
2436/* - TPU_A ------------------------------------------------------------------- */
2437static const unsigned int tpu_to0_a_pins[] = {
2438 /* TPU0TO0_A */
2439 RCAR_GP_PIN(1, 25),
2440};
2441static const unsigned int tpu_to0_a_mux[] = {
2442 TPU0TO0_A_MARK,
2443};
2444static const unsigned int tpu_to1_a_pins[] = {
2445 /* TPU0TO1_A */
2446 RCAR_GP_PIN(1, 26),
2447};
2448static const unsigned int tpu_to1_a_mux[] = {
2449 TPU0TO1_A_MARK,
2450};
2451static const unsigned int tpu_to2_a_pins[] = {
2452 /* TPU0TO2_A */
2453 RCAR_GP_PIN(2, 0),
2454};
2455static const unsigned int tpu_to2_a_mux[] = {
2456 TPU0TO2_A_MARK,
2457};
2458static const unsigned int tpu_to3_a_pins[] = {
2459 /* TPU0TO3_A */
2460 RCAR_GP_PIN(2, 1),
2461};
2462static const unsigned int tpu_to3_a_mux[] = {
2463 TPU0TO3_A_MARK,
2464};
2465
2466/* - TSN0 ------------------------------------------------ */
2467static const unsigned int tsn0_link_pins[] = {
2468 /* TSN0_LINK */
2469 RCAR_GP_PIN(4, 4),
2470};
2471static const unsigned int tsn0_link_mux[] = {
2472 TSN0_LINK_MARK,
2473};
2474static const unsigned int tsn0_phy_int_pins[] = {
2475 /* TSN0_PHY_INT */
2476 RCAR_GP_PIN(4, 3),
2477};
2478static const unsigned int tsn0_phy_int_mux[] = {
2479 TSN0_PHY_INT_MARK,
2480};
2481static const unsigned int tsn0_mdio_pins[] = {
2482 /* TSN0_MDC, TSN0_MDIO */
2483 RCAR_GP_PIN(4, 1), RCAR_GP_PIN(4, 0),
2484};
2485static const unsigned int tsn0_mdio_mux[] = {
2486 TSN0_MDC_MARK, TSN0_MDIO_MARK,
2487};
2488static const unsigned int tsn0_rgmii_pins[] = {
2489 /*
2490 * TSN0_TX_CTL, TSN0_TXC, TSN0_TD0, TSN0_TD1, TSN0_TD2, TSN0_TD3,
2491 * TSN0_RX_CTL, TSN0_RXC, TSN0_RD0, TSN0_RD1, TSN0_RD2, TSN0_RD3,
2492 */
2493 RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 12),
2494 RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 14),
2495 RCAR_GP_PIN(4, 19), RCAR_GP_PIN(4, 18),
2496 RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 11),
2497 RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 13),
2498 RCAR_GP_PIN(4, 17), RCAR_GP_PIN(4, 16),
2499};
2500static const unsigned int tsn0_rgmii_mux[] = {
2501 TSN0_TX_CTL_MARK, TSN0_TXC_MARK,
2502 TSN0_TD0_MARK, TSN0_TD1_MARK,
2503 TSN0_TD2_MARK, TSN0_TD3_MARK,
2504 TSN0_RX_CTL_MARK, TSN0_RXC_MARK,
2505 TSN0_RD0_MARK, TSN0_RD1_MARK,
2506 TSN0_RD2_MARK, TSN0_RD3_MARK,
2507};
2508static const unsigned int tsn0_txcrefclk_pins[] = {
2509 /* TSN0_TXCREFCLK */
2510 RCAR_GP_PIN(4, 20),
2511};
2512static const unsigned int tsn0_txcrefclk_mux[] = {
2513 TSN0_TXCREFCLK_MARK,
2514};
2515static const unsigned int tsn0_avtp_pps_pins[] = {
2516 /* TSN0_AVTP_PPS0, TSN0_AVTP_PPS1 */
2517 RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 2),
2518};
2519static const unsigned int tsn0_avtp_pps_mux[] = {
2520 TSN0_AVTP_PPS0_MARK, TSN0_AVTP_PPS1_MARK,
2521};
2522static const unsigned int tsn0_avtp_capture_pins[] = {
2523 /* TSN0_AVTP_CAPTURE */
2524 RCAR_GP_PIN(4, 6),
2525};
2526static const unsigned int tsn0_avtp_capture_mux[] = {
2527 TSN0_AVTP_CAPTURE_MARK,
2528};
2529static const unsigned int tsn0_avtp_match_pins[] = {
2530 /* TSN0_AVTP_MATCH */
2531 RCAR_GP_PIN(4, 5),
2532};
2533static const unsigned int tsn0_avtp_match_mux[] = {
2534 TSN0_AVTP_MATCH_MARK,
2535};
2536
2537static const struct sh_pfc_pin_group pinmux_groups[] = {
Marek Vasut8f07e8a2023-09-17 16:08:49 +02002538 SH_PFC_PIN_GROUP(audio_clkin),
2539 SH_PFC_PIN_GROUP(audio_clkout),
2540
Hai Pham9a8aaa32023-02-28 22:37:03 +01002541 SH_PFC_PIN_GROUP(avb0_link),
2542 SH_PFC_PIN_GROUP(avb0_magic),
2543 SH_PFC_PIN_GROUP(avb0_phy_int),
2544 SH_PFC_PIN_GROUP(avb0_mdio),
2545 SH_PFC_PIN_GROUP(avb0_rgmii),
2546 SH_PFC_PIN_GROUP(avb0_txcrefclk),
2547 SH_PFC_PIN_GROUP(avb0_avtp_pps),
2548 SH_PFC_PIN_GROUP(avb0_avtp_capture),
2549 SH_PFC_PIN_GROUP(avb0_avtp_match),
2550
2551 SH_PFC_PIN_GROUP(avb1_link),
2552 SH_PFC_PIN_GROUP(avb1_magic),
2553 SH_PFC_PIN_GROUP(avb1_phy_int),
2554 SH_PFC_PIN_GROUP(avb1_mdio),
2555 SH_PFC_PIN_GROUP(avb1_rgmii),
2556 SH_PFC_PIN_GROUP(avb1_txcrefclk),
2557 SH_PFC_PIN_GROUP(avb1_avtp_pps),
2558 SH_PFC_PIN_GROUP(avb1_avtp_capture),
2559 SH_PFC_PIN_GROUP(avb1_avtp_match),
2560
2561 SH_PFC_PIN_GROUP(avb2_link),
2562 SH_PFC_PIN_GROUP(avb2_magic),
2563 SH_PFC_PIN_GROUP(avb2_phy_int),
2564 SH_PFC_PIN_GROUP(avb2_mdio),
2565 SH_PFC_PIN_GROUP(avb2_rgmii),
2566 SH_PFC_PIN_GROUP(avb2_txcrefclk),
2567 SH_PFC_PIN_GROUP(avb2_avtp_pps),
2568 SH_PFC_PIN_GROUP(avb2_avtp_capture),
2569 SH_PFC_PIN_GROUP(avb2_avtp_match),
2570
2571 SH_PFC_PIN_GROUP(canfd0_data),
2572 SH_PFC_PIN_GROUP(canfd1_data),
2573 SH_PFC_PIN_GROUP(canfd2_data),
2574 SH_PFC_PIN_GROUP(canfd3_data),
2575 SH_PFC_PIN_GROUP(canfd4_data),
2576 SH_PFC_PIN_GROUP(canfd5_data), /* suffix might be updated */
2577 SH_PFC_PIN_GROUP(canfd5_data_b), /* suffix might be updated */
2578 SH_PFC_PIN_GROUP(canfd6_data),
2579 SH_PFC_PIN_GROUP(canfd7_data),
2580 SH_PFC_PIN_GROUP(can_clk),
2581
2582 SH_PFC_PIN_GROUP(hscif0_data),
2583 SH_PFC_PIN_GROUP(hscif0_clk),
2584 SH_PFC_PIN_GROUP(hscif0_ctrl),
2585 SH_PFC_PIN_GROUP(hscif1_data), /* suffix might be updated */
2586 SH_PFC_PIN_GROUP(hscif1_clk), /* suffix might be updated */
2587 SH_PFC_PIN_GROUP(hscif1_ctrl), /* suffix might be updated */
2588 SH_PFC_PIN_GROUP(hscif1_data_x), /* suffix might be updated */
2589 SH_PFC_PIN_GROUP(hscif1_clk_x), /* suffix might be updated */
2590 SH_PFC_PIN_GROUP(hscif1_ctrl_x), /* suffix might be updated */
2591 SH_PFC_PIN_GROUP(hscif2_data),
2592 SH_PFC_PIN_GROUP(hscif2_clk),
2593 SH_PFC_PIN_GROUP(hscif2_ctrl),
2594 SH_PFC_PIN_GROUP(hscif3_data), /* suffix might be updated */
2595 SH_PFC_PIN_GROUP(hscif3_clk), /* suffix might be updated */
2596 SH_PFC_PIN_GROUP(hscif3_ctrl), /* suffix might be updated */
2597 SH_PFC_PIN_GROUP(hscif3_data_a), /* suffix might be updated */
2598 SH_PFC_PIN_GROUP(hscif3_clk_a), /* suffix might be updated */
2599 SH_PFC_PIN_GROUP(hscif3_ctrl_a), /* suffix might be updated */
2600
2601 SH_PFC_PIN_GROUP(i2c0),
2602 SH_PFC_PIN_GROUP(i2c1),
2603 SH_PFC_PIN_GROUP(i2c2),
2604 SH_PFC_PIN_GROUP(i2c3),
2605 SH_PFC_PIN_GROUP(i2c4),
2606 SH_PFC_PIN_GROUP(i2c5),
2607
2608 BUS_DATA_PIN_GROUP(mmc_data, 1),
2609 BUS_DATA_PIN_GROUP(mmc_data, 4),
2610 BUS_DATA_PIN_GROUP(mmc_data, 8),
2611 SH_PFC_PIN_GROUP(mmc_ctrl),
2612 SH_PFC_PIN_GROUP(mmc_cd),
2613 SH_PFC_PIN_GROUP(mmc_wp),
2614 SH_PFC_PIN_GROUP(mmc_ds),
2615
2616 SH_PFC_PIN_GROUP(msiof0_clk),
2617 SH_PFC_PIN_GROUP(msiof0_sync),
2618 SH_PFC_PIN_GROUP(msiof0_ss1),
2619 SH_PFC_PIN_GROUP(msiof0_ss2),
2620 SH_PFC_PIN_GROUP(msiof0_txd),
2621 SH_PFC_PIN_GROUP(msiof0_rxd),
2622
2623 SH_PFC_PIN_GROUP(msiof1_clk),
2624 SH_PFC_PIN_GROUP(msiof1_sync),
2625 SH_PFC_PIN_GROUP(msiof1_ss1),
2626 SH_PFC_PIN_GROUP(msiof1_ss2),
2627 SH_PFC_PIN_GROUP(msiof1_txd),
2628 SH_PFC_PIN_GROUP(msiof1_rxd),
2629
2630 SH_PFC_PIN_GROUP(msiof2_clk),
2631 SH_PFC_PIN_GROUP(msiof2_sync),
2632 SH_PFC_PIN_GROUP(msiof2_ss1),
2633 SH_PFC_PIN_GROUP(msiof2_ss2),
2634 SH_PFC_PIN_GROUP(msiof2_txd),
2635 SH_PFC_PIN_GROUP(msiof2_rxd),
2636
2637 SH_PFC_PIN_GROUP(msiof3_clk),
2638 SH_PFC_PIN_GROUP(msiof3_sync),
2639 SH_PFC_PIN_GROUP(msiof3_ss1),
2640 SH_PFC_PIN_GROUP(msiof3_ss2),
2641 SH_PFC_PIN_GROUP(msiof3_txd),
2642 SH_PFC_PIN_GROUP(msiof3_rxd),
2643
2644 SH_PFC_PIN_GROUP(msiof4_clk),
2645 SH_PFC_PIN_GROUP(msiof4_sync),
2646 SH_PFC_PIN_GROUP(msiof4_ss1),
2647 SH_PFC_PIN_GROUP(msiof4_ss2),
2648 SH_PFC_PIN_GROUP(msiof4_txd),
2649 SH_PFC_PIN_GROUP(msiof4_rxd),
2650
2651 SH_PFC_PIN_GROUP(msiof5_clk),
2652 SH_PFC_PIN_GROUP(msiof5_sync),
2653 SH_PFC_PIN_GROUP(msiof5_ss1),
2654 SH_PFC_PIN_GROUP(msiof5_ss2),
2655 SH_PFC_PIN_GROUP(msiof5_txd),
2656 SH_PFC_PIN_GROUP(msiof5_rxd),
2657
2658 SH_PFC_PIN_GROUP(pcie0_clkreq_n),
2659 SH_PFC_PIN_GROUP(pcie1_clkreq_n),
2660
2661 SH_PFC_PIN_GROUP(pwm0_a), /* suffix might be updated */
2662 SH_PFC_PIN_GROUP(pwm1_a),
2663 SH_PFC_PIN_GROUP(pwm1_b),
2664 SH_PFC_PIN_GROUP(pwm2_b), /* suffix might be updated */
2665 SH_PFC_PIN_GROUP(pwm3_a),
2666 SH_PFC_PIN_GROUP(pwm3_b),
2667 SH_PFC_PIN_GROUP(pwm4),
2668 SH_PFC_PIN_GROUP(pwm5),
2669 SH_PFC_PIN_GROUP(pwm6),
2670 SH_PFC_PIN_GROUP(pwm7),
2671 SH_PFC_PIN_GROUP(pwm8_a), /* suffix might be updated */
2672 SH_PFC_PIN_GROUP(pwm9_a), /* suffix might be updated */
2673
2674 SH_PFC_PIN_GROUP(qspi0_ctrl),
2675 BUS_DATA_PIN_GROUP(qspi0_data, 2),
2676 BUS_DATA_PIN_GROUP(qspi0_data, 4),
2677 SH_PFC_PIN_GROUP(qspi1_ctrl),
2678 BUS_DATA_PIN_GROUP(qspi1_data, 2),
2679 BUS_DATA_PIN_GROUP(qspi1_data, 4),
2680
2681 SH_PFC_PIN_GROUP(scif0_data),
2682 SH_PFC_PIN_GROUP(scif0_clk),
2683 SH_PFC_PIN_GROUP(scif0_ctrl),
2684 SH_PFC_PIN_GROUP(scif1_data), /* suffix might be updated */
2685 SH_PFC_PIN_GROUP(scif1_clk), /* suffix might be updated */
2686 SH_PFC_PIN_GROUP(scif1_ctrl), /* suffix might be updated */
2687 SH_PFC_PIN_GROUP(scif1_data_x), /* suffix might be updated */
2688 SH_PFC_PIN_GROUP(scif1_clk_x), /* suffix might be updated */
2689 SH_PFC_PIN_GROUP(scif1_ctrl_x), /* suffix might be updated */
2690 SH_PFC_PIN_GROUP(scif3_data), /* suffix might be updated */
2691 SH_PFC_PIN_GROUP(scif3_clk), /* suffix might be updated */
2692 SH_PFC_PIN_GROUP(scif3_ctrl), /* suffix might be updated */
2693 SH_PFC_PIN_GROUP(scif3_data_a), /* suffix might be updated */
2694 SH_PFC_PIN_GROUP(scif3_clk_a), /* suffix might be updated */
2695 SH_PFC_PIN_GROUP(scif3_ctrl_a), /* suffix might be updated */
2696 SH_PFC_PIN_GROUP(scif4_data),
2697 SH_PFC_PIN_GROUP(scif4_clk),
2698 SH_PFC_PIN_GROUP(scif4_ctrl),
2699 SH_PFC_PIN_GROUP(scif_clk),
2700
Marek Vasut8f07e8a2023-09-17 16:08:49 +02002701 SH_PFC_PIN_GROUP(ssi_data),
2702 SH_PFC_PIN_GROUP(ssi_ctrl),
2703
Hai Pham9a8aaa32023-02-28 22:37:03 +01002704 SH_PFC_PIN_GROUP(tpu_to0), /* suffix might be updated */
2705 SH_PFC_PIN_GROUP(tpu_to0_a), /* suffix might be updated */
2706 SH_PFC_PIN_GROUP(tpu_to1), /* suffix might be updated */
2707 SH_PFC_PIN_GROUP(tpu_to1_a), /* suffix might be updated */
2708 SH_PFC_PIN_GROUP(tpu_to2), /* suffix might be updated */
2709 SH_PFC_PIN_GROUP(tpu_to2_a), /* suffix might be updated */
2710 SH_PFC_PIN_GROUP(tpu_to3), /* suffix might be updated */
2711 SH_PFC_PIN_GROUP(tpu_to3_a), /* suffix might be updated */
2712
2713 SH_PFC_PIN_GROUP(tsn0_link),
2714 SH_PFC_PIN_GROUP(tsn0_phy_int),
2715 SH_PFC_PIN_GROUP(tsn0_mdio),
2716 SH_PFC_PIN_GROUP(tsn0_rgmii),
2717 SH_PFC_PIN_GROUP(tsn0_txcrefclk),
2718 SH_PFC_PIN_GROUP(tsn0_avtp_pps),
2719 SH_PFC_PIN_GROUP(tsn0_avtp_capture),
2720 SH_PFC_PIN_GROUP(tsn0_avtp_match),
2721};
2722
Marek Vasut8f07e8a2023-09-17 16:08:49 +02002723static const char * const audio_clk_groups[] = {
2724 "audio_clkin",
2725 "audio_clkout",
2726};
2727
Hai Pham9a8aaa32023-02-28 22:37:03 +01002728static const char * const avb0_groups[] = {
2729 "avb0_link",
2730 "avb0_magic",
2731 "avb0_phy_int",
2732 "avb0_mdio",
2733 "avb0_rgmii",
2734 "avb0_txcrefclk",
2735 "avb0_avtp_pps",
2736 "avb0_avtp_capture",
2737 "avb0_avtp_match",
2738};
2739
2740static const char * const avb1_groups[] = {
2741 "avb1_link",
2742 "avb1_magic",
2743 "avb1_phy_int",
2744 "avb1_mdio",
2745 "avb1_rgmii",
2746 "avb1_txcrefclk",
2747 "avb1_avtp_pps",
2748 "avb1_avtp_capture",
2749 "avb1_avtp_match",
2750};
2751
2752static const char * const avb2_groups[] = {
2753 "avb2_link",
2754 "avb2_magic",
2755 "avb2_phy_int",
2756 "avb2_mdio",
2757 "avb2_rgmii",
2758 "avb2_txcrefclk",
2759 "avb2_avtp_pps",
2760 "avb2_avtp_capture",
2761 "avb2_avtp_match",
2762};
2763
2764static const char * const canfd0_groups[] = {
2765 "canfd0_data",
2766};
2767
2768static const char * const canfd1_groups[] = {
2769 "canfd1_data",
2770};
2771
2772static const char * const canfd2_groups[] = {
2773 "canfd2_data",
2774};
2775
2776static const char * const canfd3_groups[] = {
2777 "canfd3_data",
2778};
2779
2780static const char * const canfd4_groups[] = {
2781 "canfd4_data",
2782};
2783
2784static const char * const canfd5_groups[] = {
2785 /* suffix might be updated */
2786 "canfd5_data",
2787 "canfd5_data_b",
2788};
2789
2790static const char * const canfd6_groups[] = {
2791 "canfd6_data",
2792};
2793
2794static const char * const canfd7_groups[] = {
2795 "canfd7_data",
2796};
2797
2798static const char * const can_clk_groups[] = {
2799 "can_clk",
2800};
2801
2802static const char * const hscif0_groups[] = {
2803 "hscif0_data",
2804 "hscif0_clk",
2805 "hscif0_ctrl",
2806};
2807
2808static const char * const hscif1_groups[] = {
2809 /* suffix might be updated */
2810 "hscif1_data",
2811 "hscif1_clk",
2812 "hscif1_ctrl",
2813 "hscif1_data_x",
2814 "hscif1_clk_x",
2815 "hscif1_ctrl_x",
2816};
2817
2818static const char * const hscif2_groups[] = {
2819 "hscif2_data",
2820 "hscif2_clk",
2821 "hscif2_ctrl",
2822};
2823
2824static const char * const hscif3_groups[] = {
2825 /* suffix might be updated */
2826 "hscif3_data",
2827 "hscif3_clk",
2828 "hscif3_ctrl",
2829 "hscif3_data_a",
2830 "hscif3_clk_a",
2831 "hscif3_ctrl_a",
2832};
2833
2834static const char * const i2c0_groups[] = {
2835 "i2c0",
2836};
2837
2838static const char * const i2c1_groups[] = {
2839 "i2c1",
2840};
2841
2842static const char * const i2c2_groups[] = {
2843 "i2c2",
2844};
2845
2846static const char * const i2c3_groups[] = {
2847 "i2c3",
2848};
2849
2850static const char * const i2c4_groups[] = {
2851 "i2c4",
2852};
2853
2854static const char * const i2c5_groups[] = {
2855 "i2c5",
2856};
2857
2858static const char * const mmc_groups[] = {
2859 "mmc_data1",
2860 "mmc_data4",
2861 "mmc_data8",
2862 "mmc_ctrl",
2863 "mmc_cd",
2864 "mmc_wp",
2865 "mmc_ds",
2866};
2867
2868static const char * const msiof0_groups[] = {
2869 "msiof0_clk",
2870 "msiof0_sync",
2871 "msiof0_ss1",
2872 "msiof0_ss2",
2873 "msiof0_txd",
2874 "msiof0_rxd",
2875};
2876
2877static const char * const msiof1_groups[] = {
2878 "msiof1_clk",
2879 "msiof1_sync",
2880 "msiof1_ss1",
2881 "msiof1_ss2",
2882 "msiof1_txd",
2883 "msiof1_rxd",
2884};
2885
2886static const char * const msiof2_groups[] = {
2887 "msiof2_clk",
2888 "msiof2_sync",
2889 "msiof2_ss1",
2890 "msiof2_ss2",
2891 "msiof2_txd",
2892 "msiof2_rxd",
2893};
2894
2895static const char * const msiof3_groups[] = {
2896 "msiof3_clk",
2897 "msiof3_sync",
2898 "msiof3_ss1",
2899 "msiof3_ss2",
2900 "msiof3_txd",
2901 "msiof3_rxd",
2902};
2903
2904static const char * const msiof4_groups[] = {
2905 "msiof4_clk",
2906 "msiof4_sync",
2907 "msiof4_ss1",
2908 "msiof4_ss2",
2909 "msiof4_txd",
2910 "msiof4_rxd",
2911};
2912
2913static const char * const msiof5_groups[] = {
2914 "msiof5_clk",
2915 "msiof5_sync",
2916 "msiof5_ss1",
2917 "msiof5_ss2",
2918 "msiof5_txd",
2919 "msiof5_rxd",
2920};
2921
2922static const char * const pcie_groups[] = {
2923 "pcie0_clkreq_n",
2924 "pcie1_clkreq_n",
2925};
2926
2927static const char * const pwm0_groups[] = {
2928 /* suffix might be updated */
2929 "pwm0_a",
2930};
2931
2932static const char * const pwm1_groups[] = {
2933 "pwm1_a",
2934 "pwm1_b",
2935};
2936
2937static const char * const pwm2_groups[] = {
2938 /* suffix might be updated */
2939 "pwm2_b",
2940};
2941
2942static const char * const pwm3_groups[] = {
2943 "pwm3_a",
2944 "pwm3_b",
2945};
2946
2947static const char * const pwm4_groups[] = {
2948 "pwm4",
2949};
2950
2951static const char * const pwm5_groups[] = {
2952 "pwm5",
2953};
2954
2955static const char * const pwm6_groups[] = {
2956 "pwm6",
2957};
2958
2959static const char * const pwm7_groups[] = {
2960 "pwm7",
2961};
2962
2963static const char * const pwm8_groups[] = {
2964 /* suffix might be updated */
2965 "pwm8_a",
2966};
2967
2968static const char * const pwm9_groups[] = {
2969 /* suffix might be updated */
2970 "pwm9_a",
2971};
2972
2973static const char * const qspi0_groups[] = {
2974 "qspi0_ctrl",
2975 "qspi0_data2",
2976 "qspi0_data4",
2977};
2978
2979static const char * const qspi1_groups[] = {
2980 "qspi1_ctrl",
2981 "qspi1_data2",
2982 "qspi1_data4",
2983};
2984
2985static const char * const scif0_groups[] = {
2986 "scif0_data",
2987 "scif0_clk",
2988 "scif0_ctrl",
2989};
2990
2991static const char * const scif1_groups[] = {
2992 /* suffix might be updated */
2993 "scif1_data",
2994 "scif1_clk",
2995 "scif1_ctrl",
2996 "scif1_data_x",
2997 "scif1_clk_x",
2998 "scif1_ctrl_x",
2999};
3000
3001static const char * const scif3_groups[] = {
3002 /* suffix might be updated */
3003 "scif3_data",
3004 "scif3_clk",
3005 "scif3_ctrl",
3006 "scif3_data_a",
3007 "scif3_clk_a",
3008 "scif3_ctrl_a",
3009};
3010
3011static const char * const scif4_groups[] = {
3012 "scif4_data",
3013 "scif4_clk",
3014 "scif4_ctrl",
3015};
3016
3017static const char * const scif_clk_groups[] = {
3018 "scif_clk",
3019};
3020
Marek Vasut8f07e8a2023-09-17 16:08:49 +02003021static const char * const ssi_groups[] = {
3022 "ssi_data",
3023 "ssi_ctrl",
3024};
3025
Hai Pham9a8aaa32023-02-28 22:37:03 +01003026static const char * const tpu_groups[] = {
3027 /* suffix might be updated */
3028 "tpu_to0",
3029 "tpu_to0_a",
3030 "tpu_to1",
3031 "tpu_to1_a",
3032 "tpu_to2",
3033 "tpu_to2_a",
3034 "tpu_to3",
3035 "tpu_to3_a",
3036};
3037
3038static const char * const tsn0_groups[] = {
3039 "tsn0_link",
3040 "tsn0_phy_int",
3041 "tsn0_mdio",
3042 "tsn0_rgmii",
3043 "tsn0_txcrefclk",
3044 "tsn0_avtp_pps",
3045 "tsn0_avtp_capture",
3046 "tsn0_avtp_match",
3047};
3048
3049static const struct sh_pfc_function pinmux_functions[] = {
Marek Vasut8f07e8a2023-09-17 16:08:49 +02003050 SH_PFC_FUNCTION(audio_clk),
3051
Hai Pham9a8aaa32023-02-28 22:37:03 +01003052 SH_PFC_FUNCTION(avb0),
3053 SH_PFC_FUNCTION(avb1),
3054 SH_PFC_FUNCTION(avb2),
3055
3056 SH_PFC_FUNCTION(canfd0),
3057 SH_PFC_FUNCTION(canfd1),
3058 SH_PFC_FUNCTION(canfd2),
3059 SH_PFC_FUNCTION(canfd3),
3060 SH_PFC_FUNCTION(canfd4),
3061 SH_PFC_FUNCTION(canfd5),
3062 SH_PFC_FUNCTION(canfd6),
3063 SH_PFC_FUNCTION(canfd7),
3064 SH_PFC_FUNCTION(can_clk),
3065
3066 SH_PFC_FUNCTION(hscif0),
3067 SH_PFC_FUNCTION(hscif1),
3068 SH_PFC_FUNCTION(hscif2),
3069 SH_PFC_FUNCTION(hscif3),
3070
3071 SH_PFC_FUNCTION(i2c0),
3072 SH_PFC_FUNCTION(i2c1),
3073 SH_PFC_FUNCTION(i2c2),
3074 SH_PFC_FUNCTION(i2c3),
3075 SH_PFC_FUNCTION(i2c4),
3076 SH_PFC_FUNCTION(i2c5),
3077
3078 SH_PFC_FUNCTION(mmc),
3079
3080 SH_PFC_FUNCTION(msiof0),
3081 SH_PFC_FUNCTION(msiof1),
3082 SH_PFC_FUNCTION(msiof2),
3083 SH_PFC_FUNCTION(msiof3),
3084 SH_PFC_FUNCTION(msiof4),
3085 SH_PFC_FUNCTION(msiof5),
3086
3087 SH_PFC_FUNCTION(pcie),
3088
3089 SH_PFC_FUNCTION(pwm0),
3090 SH_PFC_FUNCTION(pwm1),
3091 SH_PFC_FUNCTION(pwm2),
3092 SH_PFC_FUNCTION(pwm3),
3093 SH_PFC_FUNCTION(pwm4),
3094 SH_PFC_FUNCTION(pwm5),
3095 SH_PFC_FUNCTION(pwm6),
3096 SH_PFC_FUNCTION(pwm7),
3097 SH_PFC_FUNCTION(pwm8),
3098 SH_PFC_FUNCTION(pwm9),
3099
3100 SH_PFC_FUNCTION(qspi0),
3101 SH_PFC_FUNCTION(qspi1),
3102
3103 SH_PFC_FUNCTION(scif0),
3104 SH_PFC_FUNCTION(scif1),
3105 SH_PFC_FUNCTION(scif3),
3106 SH_PFC_FUNCTION(scif4),
3107 SH_PFC_FUNCTION(scif_clk),
3108
Marek Vasut8f07e8a2023-09-17 16:08:49 +02003109 SH_PFC_FUNCTION(ssi),
3110
Hai Pham9a8aaa32023-02-28 22:37:03 +01003111 SH_PFC_FUNCTION(tpu),
3112
3113 SH_PFC_FUNCTION(tsn0),
3114};
3115
3116static const struct pinmux_cfg_reg pinmux_config_regs[] = {
3117#define F_(x, y) FN_##y
3118#define FM(x) FN_##x
3119 { PINMUX_CFG_REG_VAR("GPSR0", 0xE6050040, 32,
3120 GROUP(-13, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3121 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3122 GROUP(
3123 /* GP0_31_19 RESERVED */
3124 GP_0_18_FN, GPSR0_18,
3125 GP_0_17_FN, GPSR0_17,
3126 GP_0_16_FN, GPSR0_16,
3127 GP_0_15_FN, GPSR0_15,
3128 GP_0_14_FN, GPSR0_14,
3129 GP_0_13_FN, GPSR0_13,
3130 GP_0_12_FN, GPSR0_12,
3131 GP_0_11_FN, GPSR0_11,
3132 GP_0_10_FN, GPSR0_10,
3133 GP_0_9_FN, GPSR0_9,
3134 GP_0_8_FN, GPSR0_8,
3135 GP_0_7_FN, GPSR0_7,
3136 GP_0_6_FN, GPSR0_6,
3137 GP_0_5_FN, GPSR0_5,
3138 GP_0_4_FN, GPSR0_4,
3139 GP_0_3_FN, GPSR0_3,
3140 GP_0_2_FN, GPSR0_2,
3141 GP_0_1_FN, GPSR0_1,
3142 GP_0_0_FN, GPSR0_0, ))
3143 },
3144 { PINMUX_CFG_REG("GPSR1", 0xE6050840, 32, 1, GROUP(
3145 0, 0,
3146 0, 0,
3147 0, 0,
3148 GP_1_28_FN, GPSR1_28,
3149 GP_1_27_FN, GPSR1_27,
3150 GP_1_26_FN, GPSR1_26,
3151 GP_1_25_FN, GPSR1_25,
3152 GP_1_24_FN, GPSR1_24,
3153 GP_1_23_FN, GPSR1_23,
3154 GP_1_22_FN, GPSR1_22,
3155 GP_1_21_FN, GPSR1_21,
3156 GP_1_20_FN, GPSR1_20,
3157 GP_1_19_FN, GPSR1_19,
3158 GP_1_18_FN, GPSR1_18,
3159 GP_1_17_FN, GPSR1_17,
3160 GP_1_16_FN, GPSR1_16,
3161 GP_1_15_FN, GPSR1_15,
3162 GP_1_14_FN, GPSR1_14,
3163 GP_1_13_FN, GPSR1_13,
3164 GP_1_12_FN, GPSR1_12,
3165 GP_1_11_FN, GPSR1_11,
3166 GP_1_10_FN, GPSR1_10,
3167 GP_1_9_FN, GPSR1_9,
3168 GP_1_8_FN, GPSR1_8,
3169 GP_1_7_FN, GPSR1_7,
3170 GP_1_6_FN, GPSR1_6,
3171 GP_1_5_FN, GPSR1_5,
3172 GP_1_4_FN, GPSR1_4,
3173 GP_1_3_FN, GPSR1_3,
3174 GP_1_2_FN, GPSR1_2,
3175 GP_1_1_FN, GPSR1_1,
3176 GP_1_0_FN, GPSR1_0, ))
3177 },
3178 { PINMUX_CFG_REG_VAR("GPSR2", 0xE6058040, 32,
3179 GROUP(-12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3180 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3181 GROUP(
3182 /* GP2_31_20 RESERVED */
3183 GP_2_19_FN, GPSR2_19,
3184 GP_2_18_FN, GPSR2_18,
3185 GP_2_17_FN, GPSR2_17,
3186 GP_2_16_FN, GPSR2_16,
3187 GP_2_15_FN, GPSR2_15,
3188 GP_2_14_FN, GPSR2_14,
3189 GP_2_13_FN, GPSR2_13,
3190 GP_2_12_FN, GPSR2_12,
3191 GP_2_11_FN, GPSR2_11,
3192 GP_2_10_FN, GPSR2_10,
3193 GP_2_9_FN, GPSR2_9,
3194 GP_2_8_FN, GPSR2_8,
3195 GP_2_7_FN, GPSR2_7,
3196 GP_2_6_FN, GPSR2_6,
3197 GP_2_5_FN, GPSR2_5,
3198 GP_2_4_FN, GPSR2_4,
3199 GP_2_3_FN, GPSR2_3,
3200 GP_2_2_FN, GPSR2_2,
3201 GP_2_1_FN, GPSR2_1,
3202 GP_2_0_FN, GPSR2_0, ))
3203 },
3204 { PINMUX_CFG_REG("GPSR3", 0xE6058840, 32, 1, GROUP(
3205 0, 0,
3206 0, 0,
3207 GP_3_29_FN, GPSR3_29,
3208 GP_3_28_FN, GPSR3_28,
3209 GP_3_27_FN, GPSR3_27,
3210 GP_3_26_FN, GPSR3_26,
3211 GP_3_25_FN, GPSR3_25,
3212 GP_3_24_FN, GPSR3_24,
3213 GP_3_23_FN, GPSR3_23,
3214 GP_3_22_FN, GPSR3_22,
3215 GP_3_21_FN, GPSR3_21,
3216 GP_3_20_FN, GPSR3_20,
3217 GP_3_19_FN, GPSR3_19,
3218 GP_3_18_FN, GPSR3_18,
3219 GP_3_17_FN, GPSR3_17,
3220 GP_3_16_FN, GPSR3_16,
3221 GP_3_15_FN, GPSR3_15,
3222 GP_3_14_FN, GPSR3_14,
3223 GP_3_13_FN, GPSR3_13,
3224 GP_3_12_FN, GPSR3_12,
3225 GP_3_11_FN, GPSR3_11,
3226 GP_3_10_FN, GPSR3_10,
3227 GP_3_9_FN, GPSR3_9,
3228 GP_3_8_FN, GPSR3_8,
3229 GP_3_7_FN, GPSR3_7,
3230 GP_3_6_FN, GPSR3_6,
3231 GP_3_5_FN, GPSR3_5,
3232 GP_3_4_FN, GPSR3_4,
3233 GP_3_3_FN, GPSR3_3,
3234 GP_3_2_FN, GPSR3_2,
3235 GP_3_1_FN, GPSR3_1,
3236 GP_3_0_FN, GPSR3_0, ))
3237 },
3238 { PINMUX_CFG_REG("GPSR4", 0xE6060040, 32, 1, GROUP(
3239 0, 0,
3240 0, 0,
3241 0, 0,
3242 0, 0,
3243 0, 0,
3244 0, 0,
3245 0, 0,
3246 GP_4_24_FN, GPSR4_24,
3247 GP_4_23_FN, GPSR4_23,
3248 GP_4_22_FN, GPSR4_22,
3249 GP_4_21_FN, GPSR4_21,
3250 GP_4_20_FN, GPSR4_20,
3251 GP_4_19_FN, GPSR4_19,
3252 GP_4_18_FN, GPSR4_18,
3253 GP_4_17_FN, GPSR4_17,
3254 GP_4_16_FN, GPSR4_16,
3255 GP_4_15_FN, GPSR4_15,
3256 GP_4_14_FN, GPSR4_14,
3257 GP_4_13_FN, GPSR4_13,
3258 GP_4_12_FN, GPSR4_12,
3259 GP_4_11_FN, GPSR4_11,
3260 GP_4_10_FN, GPSR4_10,
3261 GP_4_9_FN, GPSR4_9,
3262 GP_4_8_FN, GPSR4_8,
3263 GP_4_7_FN, GPSR4_7,
3264 GP_4_6_FN, GPSR4_6,
3265 GP_4_5_FN, GPSR4_5,
3266 GP_4_4_FN, GPSR4_4,
3267 GP_4_3_FN, GPSR4_3,
3268 GP_4_2_FN, GPSR4_2,
3269 GP_4_1_FN, GPSR4_1,
3270 GP_4_0_FN, GPSR4_0, ))
3271 },
3272 { PINMUX_CFG_REG_VAR("GPSR5", 0xE6060840, 32,
3273 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3274 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3275 GROUP(
3276 /* GP5_31_21 RESERVED */
3277 GP_5_20_FN, GPSR5_20,
3278 GP_5_19_FN, GPSR5_19,
3279 GP_5_18_FN, GPSR5_18,
3280 GP_5_17_FN, GPSR5_17,
3281 GP_5_16_FN, GPSR5_16,
3282 GP_5_15_FN, GPSR5_15,
3283 GP_5_14_FN, GPSR5_14,
3284 GP_5_13_FN, GPSR5_13,
3285 GP_5_12_FN, GPSR5_12,
3286 GP_5_11_FN, GPSR5_11,
3287 GP_5_10_FN, GPSR5_10,
3288 GP_5_9_FN, GPSR5_9,
3289 GP_5_8_FN, GPSR5_8,
3290 GP_5_7_FN, GPSR5_7,
3291 GP_5_6_FN, GPSR5_6,
3292 GP_5_5_FN, GPSR5_5,
3293 GP_5_4_FN, GPSR5_4,
3294 GP_5_3_FN, GPSR5_3,
3295 GP_5_2_FN, GPSR5_2,
3296 GP_5_1_FN, GPSR5_1,
3297 GP_5_0_FN, GPSR5_0, ))
3298 },
3299 { PINMUX_CFG_REG_VAR("GPSR6", 0xE6061040, 32,
3300 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3301 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3302 GROUP(
3303 /* GP6_31_21 RESERVED */
3304 GP_6_20_FN, GPSR6_20,
3305 GP_6_19_FN, GPSR6_19,
3306 GP_6_18_FN, GPSR6_18,
3307 GP_6_17_FN, GPSR6_17,
3308 GP_6_16_FN, GPSR6_16,
3309 GP_6_15_FN, GPSR6_15,
3310 GP_6_14_FN, GPSR6_14,
3311 GP_6_13_FN, GPSR6_13,
3312 GP_6_12_FN, GPSR6_12,
3313 GP_6_11_FN, GPSR6_11,
3314 GP_6_10_FN, GPSR6_10,
3315 GP_6_9_FN, GPSR6_9,
3316 GP_6_8_FN, GPSR6_8,
3317 GP_6_7_FN, GPSR6_7,
3318 GP_6_6_FN, GPSR6_6,
3319 GP_6_5_FN, GPSR6_5,
3320 GP_6_4_FN, GPSR6_4,
3321 GP_6_3_FN, GPSR6_3,
3322 GP_6_2_FN, GPSR6_2,
3323 GP_6_1_FN, GPSR6_1,
3324 GP_6_0_FN, GPSR6_0, ))
3325 },
3326 { PINMUX_CFG_REG_VAR("GPSR7", 0xE6061840, 32,
3327 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3328 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3329 GROUP(
3330 /* GP7_31_21 RESERVED */
3331 GP_7_20_FN, GPSR7_20,
3332 GP_7_19_FN, GPSR7_19,
3333 GP_7_18_FN, GPSR7_18,
3334 GP_7_17_FN, GPSR7_17,
3335 GP_7_16_FN, GPSR7_16,
3336 GP_7_15_FN, GPSR7_15,
3337 GP_7_14_FN, GPSR7_14,
3338 GP_7_13_FN, GPSR7_13,
3339 GP_7_12_FN, GPSR7_12,
3340 GP_7_11_FN, GPSR7_11,
3341 GP_7_10_FN, GPSR7_10,
3342 GP_7_9_FN, GPSR7_9,
3343 GP_7_8_FN, GPSR7_8,
3344 GP_7_7_FN, GPSR7_7,
3345 GP_7_6_FN, GPSR7_6,
3346 GP_7_5_FN, GPSR7_5,
3347 GP_7_4_FN, GPSR7_4,
3348 GP_7_3_FN, GPSR7_3,
3349 GP_7_2_FN, GPSR7_2,
3350 GP_7_1_FN, GPSR7_1,
3351 GP_7_0_FN, GPSR7_0, ))
3352 },
3353 { PINMUX_CFG_REG_VAR("GPSR8", 0xE6068040, 32,
3354 GROUP(-18, 1, 1, 1, 1,
3355 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3356 GROUP(
3357 /* GP8_31_14 RESERVED */
3358 GP_8_13_FN, GPSR8_13,
3359 GP_8_12_FN, GPSR8_12,
3360 GP_8_11_FN, GPSR8_11,
3361 GP_8_10_FN, GPSR8_10,
3362 GP_8_9_FN, GPSR8_9,
3363 GP_8_8_FN, GPSR8_8,
3364 GP_8_7_FN, GPSR8_7,
3365 GP_8_6_FN, GPSR8_6,
3366 GP_8_5_FN, GPSR8_5,
3367 GP_8_4_FN, GPSR8_4,
3368 GP_8_3_FN, GPSR8_3,
3369 GP_8_2_FN, GPSR8_2,
3370 GP_8_1_FN, GPSR8_1,
3371 GP_8_0_FN, GPSR8_0, ))
3372 },
3373#undef F_
3374#undef FM
3375
3376#define F_(x, y) x,
3377#define FM(x) FN_##x,
3378 { PINMUX_CFG_REG("IP0SR0", 0xE6050060, 32, 4, GROUP(
3379 IP0SR0_31_28
3380 IP0SR0_27_24
3381 IP0SR0_23_20
3382 IP0SR0_19_16
3383 IP0SR0_15_12
3384 IP0SR0_11_8
3385 IP0SR0_7_4
3386 IP0SR0_3_0))
3387 },
3388 { PINMUX_CFG_REG("IP1SR0", 0xE6050064, 32, 4, GROUP(
3389 IP1SR0_31_28
3390 IP1SR0_27_24
3391 IP1SR0_23_20
3392 IP1SR0_19_16
3393 IP1SR0_15_12
3394 IP1SR0_11_8
3395 IP1SR0_7_4
3396 IP1SR0_3_0))
3397 },
3398 { PINMUX_CFG_REG_VAR("IP2SR0", 0xE6050068, 32,
3399 GROUP(-20, 4, 4, 4),
3400 GROUP(
3401 /* IP2SR0_31_12 RESERVED */
3402 IP2SR0_11_8
3403 IP2SR0_7_4
3404 IP2SR0_3_0))
3405 },
3406 { PINMUX_CFG_REG("IP0SR1", 0xE6050860, 32, 4, GROUP(
3407 IP0SR1_31_28
3408 IP0SR1_27_24
3409 IP0SR1_23_20
3410 IP0SR1_19_16
3411 IP0SR1_15_12
3412 IP0SR1_11_8
3413 IP0SR1_7_4
3414 IP0SR1_3_0))
3415 },
3416 { PINMUX_CFG_REG("IP1SR1", 0xE6050864, 32, 4, GROUP(
3417 IP1SR1_31_28
3418 IP1SR1_27_24
3419 IP1SR1_23_20
3420 IP1SR1_19_16
3421 IP1SR1_15_12
3422 IP1SR1_11_8
3423 IP1SR1_7_4
3424 IP1SR1_3_0))
3425 },
3426 { PINMUX_CFG_REG("IP2SR1", 0xE6050868, 32, 4, GROUP(
3427 IP2SR1_31_28
3428 IP2SR1_27_24
3429 IP2SR1_23_20
3430 IP2SR1_19_16
3431 IP2SR1_15_12
3432 IP2SR1_11_8
3433 IP2SR1_7_4
3434 IP2SR1_3_0))
3435 },
3436 { PINMUX_CFG_REG_VAR("IP3SR1", 0xE605086C, 32,
3437 GROUP(-12, 4, 4, 4, 4, 4),
3438 GROUP(
3439 /* IP3SR1_31_20 RESERVED */
3440 IP3SR1_19_16
3441 IP3SR1_15_12
3442 IP3SR1_11_8
3443 IP3SR1_7_4
3444 IP3SR1_3_0))
3445 },
3446 { PINMUX_CFG_REG("IP0SR2", 0xE6058060, 32, 4, GROUP(
3447 IP0SR2_31_28
3448 IP0SR2_27_24
3449 IP0SR2_23_20
3450 IP0SR2_19_16
3451 IP0SR2_15_12
3452 IP0SR2_11_8
3453 IP0SR2_7_4
3454 IP0SR2_3_0))
3455 },
3456 { PINMUX_CFG_REG("IP1SR2", 0xE6058064, 32, 4, GROUP(
3457 IP1SR2_31_28
3458 IP1SR2_27_24
3459 IP1SR2_23_20
3460 IP1SR2_19_16
3461 IP1SR2_15_12
3462 IP1SR2_11_8
3463 IP1SR2_7_4
3464 IP1SR2_3_0))
3465 },
3466 { PINMUX_CFG_REG_VAR("IP2SR2", 0xE6058068, 32,
3467 GROUP(-16, 4, 4, 4, 4),
3468 GROUP(
3469 /* IP2SR2_31_16 RESERVED */
3470 IP2SR2_15_12
3471 IP2SR2_11_8
3472 IP2SR2_7_4
3473 IP2SR2_3_0))
3474 },
3475 { PINMUX_CFG_REG("IP0SR3", 0xE6058860, 32, 4, GROUP(
3476 IP0SR3_31_28
3477 IP0SR3_27_24
3478 IP0SR3_23_20
3479 IP0SR3_19_16
3480 IP0SR3_15_12
3481 IP0SR3_11_8
3482 IP0SR3_7_4
3483 IP0SR3_3_0))
3484 },
3485 { PINMUX_CFG_REG("IP1SR3", 0xE6058864, 32, 4, GROUP(
3486 IP1SR3_31_28
3487 IP1SR3_27_24
3488 IP1SR3_23_20
3489 IP1SR3_19_16
3490 IP1SR3_15_12
3491 IP1SR3_11_8
3492 IP1SR3_7_4
3493 IP1SR3_3_0))
3494 },
3495 { PINMUX_CFG_REG("IP2SR3", 0xE6058868, 32, 4, GROUP(
3496 IP2SR3_31_28
3497 IP2SR3_27_24
3498 IP2SR3_23_20
3499 IP2SR3_19_16
3500 IP2SR3_15_12
3501 IP2SR3_11_8
3502 IP2SR3_7_4
3503 IP2SR3_3_0))
3504 },
3505 { PINMUX_CFG_REG_VAR("IP3SR3", 0xE605886C, 32,
3506 GROUP(-8, 4, 4, 4, 4, 4, 4),
3507 GROUP(
3508 /* IP3SR3_31_24 RESERVED */
3509 IP3SR3_23_20
3510 IP3SR3_19_16
3511 IP3SR3_15_12
3512 IP3SR3_11_8
3513 IP3SR3_7_4
3514 IP3SR3_3_0))
3515 },
Marek Vasut8f07e8a2023-09-17 16:08:49 +02003516 { PINMUX_CFG_REG_VAR("IP0SR4", 0xE6060060, 32,
3517 GROUP(4, 4, 4, 4, 4, 4, 4, 4),
3518 GROUP(
3519 IP0SR4_31_28
3520 IP0SR4_27_24
3521 IP0SR4_23_20
3522 IP0SR4_19_16
3523 IP0SR4_15_12
3524 IP0SR4_11_8
3525 IP0SR4_7_4
3526 IP0SR4_3_0))
3527 },
3528 { PINMUX_CFG_REG_VAR("IP1SR4", 0xE6060064, 32,
3529 GROUP(4, 4, 4, 4, 4, 4, 4, 4),
3530 GROUP(
3531 IP1SR4_31_28
3532 IP1SR4_27_24
3533 IP1SR4_23_20
3534 IP1SR4_19_16
3535 IP1SR4_15_12
3536 IP1SR4_11_8
3537 IP1SR4_7_4
3538 IP1SR4_3_0))
3539 },
3540 { PINMUX_CFG_REG_VAR("IP2SR4", 0xE6060068, 32,
3541 GROUP(4, 4, 4, 4, 4, 4, 4, 4),
3542 GROUP(
3543 IP2SR4_31_28
3544 IP2SR4_27_24
3545 IP2SR4_23_20
3546 IP2SR4_19_16
3547 IP2SR4_15_12
3548 IP2SR4_11_8
3549 IP2SR4_7_4
3550 IP2SR4_3_0))
3551 },
3552 { PINMUX_CFG_REG_VAR("IP3SR4", 0xE606006C, 32,
3553 GROUP(-28, 4),
3554 GROUP(
3555 /* IP3SR4_31_4 RESERVED */
3556 IP3SR4_3_0))
3557 },
3558 { PINMUX_CFG_REG_VAR("IP0SR5", 0xE6060860, 32,
3559 GROUP(4, 4, 4, 4, 4, 4, 4, 4),
3560 GROUP(
3561 IP0SR5_31_28
3562 IP0SR5_27_24
3563 IP0SR5_23_20
3564 IP0SR5_19_16
3565 IP0SR5_15_12
3566 IP0SR5_11_8
3567 IP0SR5_7_4
3568 IP0SR5_3_0))
3569 },
3570 { PINMUX_CFG_REG_VAR("IP1SR5", 0xE6060864, 32,
3571 GROUP(4, 4, 4, 4, 4, 4, 4, 4),
3572 GROUP(
3573 IP1SR5_31_28
3574 IP1SR5_27_24
3575 IP1SR5_23_20
3576 IP1SR5_19_16
3577 IP1SR5_15_12
3578 IP1SR5_11_8
3579 IP1SR5_7_4
3580 IP1SR5_3_0))
3581 },
3582 { PINMUX_CFG_REG_VAR("IP2SR5", 0xE6060868, 32,
3583 GROUP(-12, 4, 4, 4, 4, 4),
3584 GROUP(
3585 /* IP2SR5_31_20 RESERVED */
3586 IP2SR5_19_16
3587 IP2SR5_15_12
3588 IP2SR5_11_8
3589 IP2SR5_7_4
3590 IP2SR5_3_0))
3591 },
Hai Pham9a8aaa32023-02-28 22:37:03 +01003592 { PINMUX_CFG_REG("IP0SR6", 0xE6061060, 32, 4, GROUP(
3593 IP0SR6_31_28
3594 IP0SR6_27_24
3595 IP0SR6_23_20
3596 IP0SR6_19_16
3597 IP0SR6_15_12
3598 IP0SR6_11_8
3599 IP0SR6_7_4
3600 IP0SR6_3_0))
3601 },
3602 { PINMUX_CFG_REG("IP1SR6", 0xE6061064, 32, 4, GROUP(
3603 IP1SR6_31_28
3604 IP1SR6_27_24
3605 IP1SR6_23_20
3606 IP1SR6_19_16
3607 IP1SR6_15_12
3608 IP1SR6_11_8
3609 IP1SR6_7_4
3610 IP1SR6_3_0))
3611 },
3612 { PINMUX_CFG_REG_VAR("IP2SR6", 0xE6061068, 32,
3613 GROUP(-12, 4, 4, 4, 4, 4),
3614 GROUP(
3615 /* IP2SR6_31_20 RESERVED */
3616 IP2SR6_19_16
3617 IP2SR6_15_12
3618 IP2SR6_11_8
3619 IP2SR6_7_4
3620 IP2SR6_3_0))
3621 },
3622 { PINMUX_CFG_REG("IP0SR7", 0xE6061860, 32, 4, GROUP(
3623 IP0SR7_31_28
3624 IP0SR7_27_24
3625 IP0SR7_23_20
3626 IP0SR7_19_16
3627 IP0SR7_15_12
3628 IP0SR7_11_8
3629 IP0SR7_7_4
3630 IP0SR7_3_0))
3631 },
3632 { PINMUX_CFG_REG("IP1SR7", 0xE6061864, 32, 4, GROUP(
3633 IP1SR7_31_28
3634 IP1SR7_27_24
3635 IP1SR7_23_20
3636 IP1SR7_19_16
3637 IP1SR7_15_12
3638 IP1SR7_11_8
3639 IP1SR7_7_4
3640 IP1SR7_3_0))
3641 },
3642 { PINMUX_CFG_REG_VAR("IP2SR7", 0xE6061868, 32,
3643 GROUP(-12, 4, 4, 4, 4, 4),
3644 GROUP(
3645 /* IP2SR7_31_20 RESERVED */
3646 IP2SR7_19_16
3647 IP2SR7_15_12
3648 IP2SR7_11_8
3649 IP2SR7_7_4
3650 IP2SR7_3_0))
3651 },
3652 { PINMUX_CFG_REG("IP0SR8", 0xE6068060, 32, 4, GROUP(
3653 IP0SR8_31_28
3654 IP0SR8_27_24
3655 IP0SR8_23_20
3656 IP0SR8_19_16
3657 IP0SR8_15_12
3658 IP0SR8_11_8
3659 IP0SR8_7_4
3660 IP0SR8_3_0))
3661 },
3662 { PINMUX_CFG_REG_VAR("IP1SR8", 0xE6068064, 32,
3663 GROUP(-8, 4, 4, 4, 4, 4, 4),
3664 GROUP(
3665 /* IP1SR8_31_24 RESERVED */
3666 IP1SR8_23_20
3667 IP1SR8_19_16
3668 IP1SR8_15_12
3669 IP1SR8_11_8
3670 IP1SR8_7_4
3671 IP1SR8_3_0))
3672 },
3673#undef F_
3674#undef FM
3675
3676#define F_(x, y) x,
3677#define FM(x) FN_##x,
Hai Pham9a8aaa32023-02-28 22:37:03 +01003678 { PINMUX_CFG_REG_VAR("MOD_SEL8", 0xE6068100, 32,
3679 GROUP(-20, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3680 GROUP(
3681 /* RESERVED 31-12 */
3682 MOD_SEL8_11
3683 MOD_SEL8_10
3684 MOD_SEL8_9
3685 MOD_SEL8_8
3686 MOD_SEL8_7
3687 MOD_SEL8_6
3688 MOD_SEL8_5
3689 MOD_SEL8_4
3690 MOD_SEL8_3
3691 MOD_SEL8_2
3692 MOD_SEL8_1
3693 MOD_SEL8_0))
3694 },
Marek Vasut8f07e8a2023-09-17 16:08:49 +02003695 { /* sentinel */ }
Hai Pham9a8aaa32023-02-28 22:37:03 +01003696};
3697
3698static const struct pinmux_drive_reg pinmux_drive_regs[] = {
3699 { PINMUX_DRIVE_REG("DRV0CTRL0", 0xE6050080) {
3700 { RCAR_GP_PIN(0, 7), 28, 3 }, /* MSIOF5_SS2 */
3701 { RCAR_GP_PIN(0, 6), 24, 3 }, /* IRQ0 */
3702 { RCAR_GP_PIN(0, 5), 20, 3 }, /* IRQ1 */
3703 { RCAR_GP_PIN(0, 4), 16, 3 }, /* IRQ2 */
3704 { RCAR_GP_PIN(0, 3), 12, 3 }, /* IRQ3 */
3705 { RCAR_GP_PIN(0, 2), 8, 3 }, /* GP0_02 */
3706 { RCAR_GP_PIN(0, 1), 4, 3 }, /* GP0_01 */
3707 { RCAR_GP_PIN(0, 0), 0, 3 }, /* GP0_00 */
3708 } },
3709 { PINMUX_DRIVE_REG("DRV1CTRL0", 0xE6050084) {
3710 { RCAR_GP_PIN(0, 15), 28, 3 }, /* MSIOF2_SYNC */
3711 { RCAR_GP_PIN(0, 14), 24, 3 }, /* MSIOF2_SS1 */
3712 { RCAR_GP_PIN(0, 13), 20, 3 }, /* MSIOF2_SS2 */
3713 { RCAR_GP_PIN(0, 12), 16, 3 }, /* MSIOF5_RXD */
3714 { RCAR_GP_PIN(0, 11), 12, 3 }, /* MSIOF5_SCK */
3715 { RCAR_GP_PIN(0, 10), 8, 3 }, /* MSIOF5_TXD */
3716 { RCAR_GP_PIN(0, 9), 4, 3 }, /* MSIOF5_SYNC */
3717 { RCAR_GP_PIN(0, 8), 0, 3 }, /* MSIOF5_SS1 */
3718 } },
3719 { PINMUX_DRIVE_REG("DRV2CTRL0", 0xE6050088) {
3720 { RCAR_GP_PIN(0, 18), 8, 3 }, /* MSIOF2_RXD */
3721 { RCAR_GP_PIN(0, 17), 4, 3 }, /* MSIOF2_SCK */
3722 { RCAR_GP_PIN(0, 16), 0, 3 }, /* MSIOF2_TXD */
3723 } },
3724 { PINMUX_DRIVE_REG("DRV0CTRL1", 0xE6050880) {
3725 { RCAR_GP_PIN(1, 7), 28, 3 }, /* MSIOF0_SS1 */
3726 { RCAR_GP_PIN(1, 6), 24, 3 }, /* MSIOF0_SS2 */
3727 { RCAR_GP_PIN(1, 5), 20, 3 }, /* MSIOF1_RXD */
3728 { RCAR_GP_PIN(1, 4), 16, 3 }, /* MSIOF1_TXD */
3729 { RCAR_GP_PIN(1, 3), 12, 3 }, /* MSIOF1_SCK */
3730 { RCAR_GP_PIN(1, 2), 8, 3 }, /* MSIOF1_SYNC */
3731 { RCAR_GP_PIN(1, 1), 4, 3 }, /* MSIOF1_SS1 */
3732 { RCAR_GP_PIN(1, 0), 0, 3 }, /* MSIOF1_SS2 */
3733 } },
3734 { PINMUX_DRIVE_REG("DRV1CTRL1", 0xE6050884) {
3735 { RCAR_GP_PIN(1, 15), 28, 3 }, /* HSCK0 */
3736 { RCAR_GP_PIN(1, 14), 24, 3 }, /* HRTS0_N */
3737 { RCAR_GP_PIN(1, 13), 20, 3 }, /* HCTS0_N */
3738 { RCAR_GP_PIN(1, 12), 16, 3 }, /* HTX0 */
3739 { RCAR_GP_PIN(1, 11), 12, 3 }, /* MSIOF0_RXD */
3740 { RCAR_GP_PIN(1, 10), 8, 3 }, /* MSIOF0_SCK */
3741 { RCAR_GP_PIN(1, 9), 4, 3 }, /* MSIOF0_TXD */
3742 { RCAR_GP_PIN(1, 8), 0, 3 }, /* MSIOF0_SYNC */
3743 } },
3744 { PINMUX_DRIVE_REG("DRV2CTRL1", 0xE6050888) {
3745 { RCAR_GP_PIN(1, 23), 28, 3 }, /* GP1_23 */
3746 { RCAR_GP_PIN(1, 22), 24, 3 }, /* AUDIO_CLKIN */
3747 { RCAR_GP_PIN(1, 21), 20, 3 }, /* AUDIO_CLKOUT */
3748 { RCAR_GP_PIN(1, 20), 16, 3 }, /* SSI_SD */
3749 { RCAR_GP_PIN(1, 19), 12, 3 }, /* SSI_WS */
3750 { RCAR_GP_PIN(1, 18), 8, 3 }, /* SSI_SCK */
3751 { RCAR_GP_PIN(1, 17), 4, 3 }, /* SCIF_CLK */
3752 { RCAR_GP_PIN(1, 16), 0, 3 }, /* HRX0 */
3753 } },
3754 { PINMUX_DRIVE_REG("DRV3CTRL1", 0xE605088C) {
3755 { RCAR_GP_PIN(1, 28), 16, 3 }, /* HTX3 */
3756 { RCAR_GP_PIN(1, 27), 12, 3 }, /* HCTS3_N */
3757 { RCAR_GP_PIN(1, 26), 8, 3 }, /* HRTS3_N */
3758 { RCAR_GP_PIN(1, 25), 4, 3 }, /* HSCK3 */
3759 { RCAR_GP_PIN(1, 24), 0, 3 }, /* HRX3 */
3760 } },
3761 { PINMUX_DRIVE_REG("DRV0CTRL2", 0xE6058080) {
3762 { RCAR_GP_PIN(2, 7), 28, 3 }, /* TPU0TO1 */
3763 { RCAR_GP_PIN(2, 6), 24, 3 }, /* FXR_TXDB */
3764 { RCAR_GP_PIN(2, 5), 20, 3 }, /* FXR_TXENB_N */
3765 { RCAR_GP_PIN(2, 4), 16, 3 }, /* RXDB_EXTFXR */
3766 { RCAR_GP_PIN(2, 3), 12, 3 }, /* CLK_EXTFXR */
3767 { RCAR_GP_PIN(2, 2), 8, 3 }, /* RXDA_EXTFXR */
3768 { RCAR_GP_PIN(2, 1), 4, 3 }, /* FXR_TXENA_N */
3769 { RCAR_GP_PIN(2, 0), 0, 3 }, /* FXR_TXDA */
3770 } },
3771 { PINMUX_DRIVE_REG("DRV1CTRL2", 0xE6058084) {
3772 { RCAR_GP_PIN(2, 15), 28, 3 }, /* CANFD3_RX */
3773 { RCAR_GP_PIN(2, 14), 24, 3 }, /* CANFD3_TX */
3774 { RCAR_GP_PIN(2, 13), 20, 3 }, /* CANFD2_RX */
3775 { RCAR_GP_PIN(2, 12), 16, 3 }, /* CANFD2_TX */
3776 { RCAR_GP_PIN(2, 11), 12, 3 }, /* CANFD0_RX */
3777 { RCAR_GP_PIN(2, 10), 8, 3 }, /* CANFD0_TX */
3778 { RCAR_GP_PIN(2, 9), 4, 3 }, /* CAN_CLK */
3779 { RCAR_GP_PIN(2, 8), 0, 3 }, /* TPU0TO0 */
3780 } },
3781 { PINMUX_DRIVE_REG("DRV2CTRL2", 0xE6058088) {
3782 { RCAR_GP_PIN(2, 19), 12, 3 }, /* CANFD7_RX */
3783 { RCAR_GP_PIN(2, 18), 8, 3 }, /* CANFD7_TX */
3784 { RCAR_GP_PIN(2, 17), 4, 3 }, /* CANFD4_RX */
3785 { RCAR_GP_PIN(2, 16), 0, 3 }, /* CANFD4_TX */
3786 } },
3787 { PINMUX_DRIVE_REG("DRV0CTRL3", 0xE6058880) {
3788 { RCAR_GP_PIN(3, 7), 28, 3 }, /* MMC_D4 */
3789 { RCAR_GP_PIN(3, 6), 24, 3 }, /* MMC_D5 */
3790 { RCAR_GP_PIN(3, 5), 20, 3 }, /* MMC_SD_D3 */
3791 { RCAR_GP_PIN(3, 4), 16, 3 }, /* MMC_DS */
3792 { RCAR_GP_PIN(3, 3), 12, 3 }, /* MMC_SD_CLK */
3793 { RCAR_GP_PIN(3, 2), 8, 3 }, /* MMC_SD_D2 */
3794 { RCAR_GP_PIN(3, 1), 4, 3 }, /* MMC_SD_D0 */
3795 { RCAR_GP_PIN(3, 0), 0, 3 }, /* MMC_SD_D1 */
3796 } },
3797 { PINMUX_DRIVE_REG("DRV1CTRL3", 0xE6058884) {
3798 { RCAR_GP_PIN(3, 15), 28, 2 }, /* QSPI0_SSL */
3799 { RCAR_GP_PIN(3, 14), 24, 2 }, /* IPC_CLKOUT */
3800 { RCAR_GP_PIN(3, 13), 20, 2 }, /* IPC_CLKIN */
3801 { RCAR_GP_PIN(3, 12), 16, 3 }, /* SD_WP */
3802 { RCAR_GP_PIN(3, 11), 12, 3 }, /* SD_CD */
3803 { RCAR_GP_PIN(3, 10), 8, 3 }, /* MMC_SD_CMD */
3804 { RCAR_GP_PIN(3, 9), 4, 3 }, /* MMC_D6*/
3805 { RCAR_GP_PIN(3, 8), 0, 3 }, /* MMC_D7 */
3806 } },
3807 { PINMUX_DRIVE_REG("DRV2CTRL3", 0xE6058888) {
3808 { RCAR_GP_PIN(3, 23), 28, 2 }, /* QSPI1_MISO_IO1 */
3809 { RCAR_GP_PIN(3, 22), 24, 2 }, /* QSPI1_SPCLK */
3810 { RCAR_GP_PIN(3, 21), 20, 2 }, /* QSPI1_MOSI_IO0 */
3811 { RCAR_GP_PIN(3, 20), 16, 2 }, /* QSPI0_SPCLK */
3812 { RCAR_GP_PIN(3, 19), 12, 2 }, /* QSPI0_MOSI_IO0 */
3813 { RCAR_GP_PIN(3, 18), 8, 2 }, /* QSPI0_MISO_IO1 */
3814 { RCAR_GP_PIN(3, 17), 4, 2 }, /* QSPI0_IO2 */
3815 { RCAR_GP_PIN(3, 16), 0, 2 }, /* QSPI0_IO3 */
3816 } },
3817 { PINMUX_DRIVE_REG("DRV3CTRL3", 0xE605888C) {
3818 { RCAR_GP_PIN(3, 29), 20, 2 }, /* RPC_INT_N */
3819 { RCAR_GP_PIN(3, 28), 16, 2 }, /* RPC_WP_N */
3820 { RCAR_GP_PIN(3, 27), 12, 2 }, /* RPC_RESET_N */
3821 { RCAR_GP_PIN(3, 26), 8, 2 }, /* QSPI1_IO3 */
3822 { RCAR_GP_PIN(3, 25), 4, 2 }, /* QSPI1_SSL */
3823 { RCAR_GP_PIN(3, 24), 0, 2 }, /* QSPI1_IO2 */
3824 } },
3825 { PINMUX_DRIVE_REG("DRV0CTRL4", 0xE6060080) {
3826 { RCAR_GP_PIN(4, 7), 28, 3 }, /* TSN0_RX_CTL */
3827 { RCAR_GP_PIN(4, 6), 24, 3 }, /* TSN0_AVTP_CAPTURE */
3828 { RCAR_GP_PIN(4, 5), 20, 3 }, /* TSN0_AVTP_MATCH */
3829 { RCAR_GP_PIN(4, 4), 16, 3 }, /* TSN0_LINK */
3830 { RCAR_GP_PIN(4, 3), 12, 3 }, /* TSN0_PHY_INT */
3831 { RCAR_GP_PIN(4, 2), 8, 3 }, /* TSN0_AVTP_PPS1 */
3832 { RCAR_GP_PIN(4, 1), 4, 3 }, /* TSN0_MDC */
3833 { RCAR_GP_PIN(4, 0), 0, 3 }, /* TSN0_MDIO */
3834 } },
3835 { PINMUX_DRIVE_REG("DRV1CTRL4", 0xE6060084) {
3836 { RCAR_GP_PIN(4, 15), 28, 3 }, /* TSN0_TD0 */
3837 { RCAR_GP_PIN(4, 14), 24, 3 }, /* TSN0_TD1 */
3838 { RCAR_GP_PIN(4, 13), 20, 3 }, /* TSN0_RD1 */
3839 { RCAR_GP_PIN(4, 12), 16, 3 }, /* TSN0_TXC */
3840 { RCAR_GP_PIN(4, 11), 12, 3 }, /* TSN0_RXC */
3841 { RCAR_GP_PIN(4, 10), 8, 3 }, /* TSN0_RD0 */
3842 { RCAR_GP_PIN(4, 9), 4, 3 }, /* TSN0_TX_CTL */
3843 { RCAR_GP_PIN(4, 8), 0, 3 }, /* TSN0_AVTP_PPS0 */
3844 } },
3845 { PINMUX_DRIVE_REG("DRV2CTRL4", 0xE6060088) {
3846 { RCAR_GP_PIN(4, 23), 28, 3 }, /* AVS0 */
3847 { RCAR_GP_PIN(4, 22), 24, 3 }, /* PCIE1_CLKREQ_N */
3848 { RCAR_GP_PIN(4, 21), 20, 3 }, /* PCIE0_CLKREQ_N */
3849 { RCAR_GP_PIN(4, 20), 16, 3 }, /* TSN0_TXCREFCLK */
3850 { RCAR_GP_PIN(4, 19), 12, 3 }, /* TSN0_TD2 */
3851 { RCAR_GP_PIN(4, 18), 8, 3 }, /* TSN0_TD3 */
3852 { RCAR_GP_PIN(4, 17), 4, 3 }, /* TSN0_RD2 */
3853 { RCAR_GP_PIN(4, 16), 0, 3 }, /* TSN0_RD3 */
3854 } },
3855 { PINMUX_DRIVE_REG("DRV3CTRL4", 0xE606008C) {
3856 { RCAR_GP_PIN(4, 24), 0, 3 }, /* AVS1 */
3857 } },
3858 { PINMUX_DRIVE_REG("DRV0CTRL5", 0xE6060880) {
3859 { RCAR_GP_PIN(5, 7), 28, 3 }, /* AVB2_TXCREFCLK */
3860 { RCAR_GP_PIN(5, 6), 24, 3 }, /* AVB2_MDC */
3861 { RCAR_GP_PIN(5, 5), 20, 3 }, /* AVB2_MAGIC */
3862 { RCAR_GP_PIN(5, 4), 16, 3 }, /* AVB2_PHY_INT */
3863 { RCAR_GP_PIN(5, 3), 12, 3 }, /* AVB2_LINK */
3864 { RCAR_GP_PIN(5, 2), 8, 3 }, /* AVB2_AVTP_MATCH */
3865 { RCAR_GP_PIN(5, 1), 4, 3 }, /* AVB2_AVTP_CAPTURE */
3866 { RCAR_GP_PIN(5, 0), 0, 3 }, /* AVB2_AVTP_PPS */
3867 } },
3868 { PINMUX_DRIVE_REG("DRV1CTRL5", 0xE6060884) {
3869 { RCAR_GP_PIN(5, 15), 28, 3 }, /* AVB2_TD0 */
3870 { RCAR_GP_PIN(5, 14), 24, 3 }, /* AVB2_RD1 */
3871 { RCAR_GP_PIN(5, 13), 20, 3 }, /* AVB2_RD2 */
3872 { RCAR_GP_PIN(5, 12), 16, 3 }, /* AVB2_TD1 */
3873 { RCAR_GP_PIN(5, 11), 12, 3 }, /* AVB2_TD2 */
3874 { RCAR_GP_PIN(5, 10), 8, 3 }, /* AVB2_MDIO */
3875 { RCAR_GP_PIN(5, 9), 4, 3 }, /* AVB2_RD3 */
3876 { RCAR_GP_PIN(5, 8), 0, 3 }, /* AVB2_TD3 */
3877 } },
3878 { PINMUX_DRIVE_REG("DRV2CTRL5", 0xE6060888) {
3879 { RCAR_GP_PIN(5, 20), 16, 3 }, /* AVB2_RX_CTL */
3880 { RCAR_GP_PIN(5, 19), 12, 3 }, /* AVB2_TX_CTL */
3881 { RCAR_GP_PIN(5, 18), 8, 3 }, /* AVB2_RXC */
3882 { RCAR_GP_PIN(5, 17), 4, 3 }, /* AVB2_RD0 */
3883 { RCAR_GP_PIN(5, 16), 0, 3 }, /* AVB2_TXC */
3884 } },
3885 { PINMUX_DRIVE_REG("DRV0CTRL6", 0xE6061080) {
3886 { RCAR_GP_PIN(6, 7), 28, 3 }, /* AVB1_TX_CTL */
3887 { RCAR_GP_PIN(6, 6), 24, 3 }, /* AVB1_TXC */
3888 { RCAR_GP_PIN(6, 5), 20, 3 }, /* AVB1_AVTP_MATCH */
3889 { RCAR_GP_PIN(6, 4), 16, 3 }, /* AVB1_LINK */
3890 { RCAR_GP_PIN(6, 3), 12, 3 }, /* AVB1_PHY_INT */
3891 { RCAR_GP_PIN(6, 2), 8, 3 }, /* AVB1_MDC */
3892 { RCAR_GP_PIN(6, 1), 4, 3 }, /* AVB1_MAGIC */
3893 { RCAR_GP_PIN(6, 0), 0, 3 }, /* AVB1_MDIO */
3894 } },
3895 { PINMUX_DRIVE_REG("DRV1CTRL6", 0xE6061084) {
3896 { RCAR_GP_PIN(6, 15), 28, 3 }, /* AVB1_RD0 */
3897 { RCAR_GP_PIN(6, 14), 24, 3 }, /* AVB1_RD1 */
3898 { RCAR_GP_PIN(6, 13), 20, 3 }, /* AVB1_TD0 */
3899 { RCAR_GP_PIN(6, 12), 16, 3 }, /* AVB1_TD1 */
3900 { RCAR_GP_PIN(6, 11), 12, 3 }, /* AVB1_AVTP_CAPTURE */
3901 { RCAR_GP_PIN(6, 10), 8, 3 }, /* AVB1_AVTP_PPS */
3902 { RCAR_GP_PIN(6, 9), 4, 3 }, /* AVB1_RX_CTL */
3903 { RCAR_GP_PIN(6, 8), 0, 3 }, /* AVB1_RXC */
3904 } },
3905 { PINMUX_DRIVE_REG("DRV2CTRL6", 0xE6061088) {
3906 { RCAR_GP_PIN(6, 20), 16, 3 }, /* AVB1_TXCREFCLK */
3907 { RCAR_GP_PIN(6, 19), 12, 3 }, /* AVB1_RD3 */
3908 { RCAR_GP_PIN(6, 18), 8, 3 }, /* AVB1_TD3 */
3909 { RCAR_GP_PIN(6, 17), 4, 3 }, /* AVB1_RD2 */
3910 { RCAR_GP_PIN(6, 16), 0, 3 }, /* AVB1_TD2 */
3911 } },
3912 { PINMUX_DRIVE_REG("DRV0CTRL7", 0xE6061880) {
3913 { RCAR_GP_PIN(7, 7), 28, 3 }, /* AVB0_TD1 */
3914 { RCAR_GP_PIN(7, 6), 24, 3 }, /* AVB0_TD2 */
3915 { RCAR_GP_PIN(7, 5), 20, 3 }, /* AVB0_PHY_INT */
3916 { RCAR_GP_PIN(7, 4), 16, 3 }, /* AVB0_LINK */
3917 { RCAR_GP_PIN(7, 3), 12, 3 }, /* AVB0_TD3 */
3918 { RCAR_GP_PIN(7, 2), 8, 3 }, /* AVB0_AVTP_MATCH */
3919 { RCAR_GP_PIN(7, 1), 4, 3 }, /* AVB0_AVTP_CAPTURE */
3920 { RCAR_GP_PIN(7, 0), 0, 3 }, /* AVB0_AVTP_PPS */
3921 } },
3922 { PINMUX_DRIVE_REG("DRV1CTRL7", 0xE6061884) {
3923 { RCAR_GP_PIN(7, 15), 28, 3 }, /* AVB0_TXC */
3924 { RCAR_GP_PIN(7, 14), 24, 3 }, /* AVB0_MDIO */
3925 { RCAR_GP_PIN(7, 13), 20, 3 }, /* AVB0_MDC */
3926 { RCAR_GP_PIN(7, 12), 16, 3 }, /* AVB0_RD2 */
3927 { RCAR_GP_PIN(7, 11), 12, 3 }, /* AVB0_TD0 */
3928 { RCAR_GP_PIN(7, 10), 8, 3 }, /* AVB0_MAGIC */
3929 { RCAR_GP_PIN(7, 9), 4, 3 }, /* AVB0_TXCREFCLK */
3930 { RCAR_GP_PIN(7, 8), 0, 3 }, /* AVB0_RD3 */
3931 } },
3932 { PINMUX_DRIVE_REG("DRV2CTRL7", 0xE6061888) {
3933 { RCAR_GP_PIN(7, 20), 16, 3 }, /* AVB0_RX_CTL */
3934 { RCAR_GP_PIN(7, 19), 12, 3 }, /* AVB0_RXC */
3935 { RCAR_GP_PIN(7, 18), 8, 3 }, /* AVB0_RD0 */
3936 { RCAR_GP_PIN(7, 17), 4, 3 }, /* AVB0_RD1 */
3937 { RCAR_GP_PIN(7, 16), 0, 3 }, /* AVB0_TX_CTL */
3938 } },
3939 { PINMUX_DRIVE_REG("DRV0CTRL8", 0xE6068080) {
3940 { RCAR_GP_PIN(8, 7), 28, 3 }, /* SDA3 */
3941 { RCAR_GP_PIN(8, 6), 24, 3 }, /* SCL3 */
3942 { RCAR_GP_PIN(8, 5), 20, 3 }, /* SDA2 */
3943 { RCAR_GP_PIN(8, 4), 16, 3 }, /* SCL2 */
3944 { RCAR_GP_PIN(8, 3), 12, 3 }, /* SDA1 */
3945 { RCAR_GP_PIN(8, 2), 8, 3 }, /* SCL1 */
3946 { RCAR_GP_PIN(8, 1), 4, 3 }, /* SDA0 */
3947 { RCAR_GP_PIN(8, 0), 0, 3 }, /* SCL0 */
3948 } },
3949 { PINMUX_DRIVE_REG("DRV1CTRL8", 0xE6068084) {
3950 { RCAR_GP_PIN(8, 13), 20, 3 }, /* GP8_13 */
3951 { RCAR_GP_PIN(8, 12), 16, 3 }, /* GP8_12 */
3952 { RCAR_GP_PIN(8, 11), 12, 3 }, /* SDA5 */
3953 { RCAR_GP_PIN(8, 10), 8, 3 }, /* SCL5 */
3954 { RCAR_GP_PIN(8, 9), 4, 3 }, /* SDA4 */
3955 { RCAR_GP_PIN(8, 8), 0, 3 }, /* SCL4 */
3956 } },
Marek Vasut8f07e8a2023-09-17 16:08:49 +02003957 { /* sentinel */ }
Hai Pham9a8aaa32023-02-28 22:37:03 +01003958};
3959
3960enum ioctrl_regs {
3961 POC0,
3962 POC1,
3963 POC3,
3964 POC4,
3965 POC5,
3966 POC6,
3967 POC7,
3968 POC8,
3969};
3970
3971static const struct pinmux_ioctrl_reg pinmux_ioctrl_regs[] = {
3972 [POC0] = { 0xE60500A0, },
3973 [POC1] = { 0xE60508A0, },
3974 [POC3] = { 0xE60588A0, },
3975 [POC4] = { 0xE60600A0, },
3976 [POC5] = { 0xE60608A0, },
3977 [POC6] = { 0xE60610A0, },
3978 [POC7] = { 0xE60618A0, },
3979 [POC8] = { 0xE60680A0, },
Marek Vasut8f07e8a2023-09-17 16:08:49 +02003980 { /* sentinel */ }
Hai Pham9a8aaa32023-02-28 22:37:03 +01003981};
3982
3983static int r8a779g0_pin_to_pocctrl(unsigned int pin, u32 *pocctrl)
3984{
3985 int bit = pin & 0x1f;
3986
Marek Vasut8f07e8a2023-09-17 16:08:49 +02003987 switch (pin) {
3988 case RCAR_GP_PIN(0, 0) ... RCAR_GP_PIN(0, 18):
3989 *pocctrl = pinmux_ioctrl_regs[POC0].reg;
Hai Pham9a8aaa32023-02-28 22:37:03 +01003990 return bit;
3991
Marek Vasut8f07e8a2023-09-17 16:08:49 +02003992 case RCAR_GP_PIN(1, 0) ... RCAR_GP_PIN(1, 22):
3993 *pocctrl = pinmux_ioctrl_regs[POC1].reg;
Hai Pham9a8aaa32023-02-28 22:37:03 +01003994 return bit;
3995
Marek Vasut8f07e8a2023-09-17 16:08:49 +02003996 case RCAR_GP_PIN(3, 0) ... RCAR_GP_PIN(3, 12):
3997 *pocctrl = pinmux_ioctrl_regs[POC3].reg;
Hai Pham9a8aaa32023-02-28 22:37:03 +01003998 return bit;
3999
Marek Vasut8f07e8a2023-09-17 16:08:49 +02004000 case PIN_VDDQ_TSN0:
4001 *pocctrl = pinmux_ioctrl_regs[POC4].reg;
4002 return 0;
4003
4004 case PIN_VDDQ_AVB2:
4005 *pocctrl = pinmux_ioctrl_regs[POC5].reg;
4006 return 0;
4007
4008 case PIN_VDDQ_AVB1:
4009 *pocctrl = pinmux_ioctrl_regs[POC6].reg;
4010 return 0;
4011
4012 case PIN_VDDQ_AVB0:
4013 *pocctrl = pinmux_ioctrl_regs[POC7].reg;
4014 return 0;
4015
4016 case RCAR_GP_PIN(8, 0) ... RCAR_GP_PIN(8, 13):
4017 *pocctrl = pinmux_ioctrl_regs[POC8].reg;
Hai Pham9a8aaa32023-02-28 22:37:03 +01004018 return bit;
4019
Marek Vasut8f07e8a2023-09-17 16:08:49 +02004020 default:
4021 return -EINVAL;
4022 }
Hai Pham9a8aaa32023-02-28 22:37:03 +01004023}
4024
4025static const struct pinmux_bias_reg pinmux_bias_regs[] = {
4026 { PINMUX_BIAS_REG("PUEN0", 0xE60500C0, "PUD0", 0xE60500E0) {
4027 [ 0] = RCAR_GP_PIN(0, 0), /* GP0_00 */
4028 [ 1] = RCAR_GP_PIN(0, 1), /* GP0_01 */
4029 [ 2] = RCAR_GP_PIN(0, 2), /* GP0_02 */
4030 [ 3] = RCAR_GP_PIN(0, 3), /* IRQ3 */
4031 [ 4] = RCAR_GP_PIN(0, 4), /* IRQ2 */
4032 [ 5] = RCAR_GP_PIN(0, 5), /* IRQ1 */
4033 [ 6] = RCAR_GP_PIN(0, 6), /* IRQ0 */
4034 [ 7] = RCAR_GP_PIN(0, 7), /* MSIOF5_SS2 */
4035 [ 8] = RCAR_GP_PIN(0, 8), /* MSIOF5_SS1 */
4036 [ 9] = RCAR_GP_PIN(0, 9), /* MSIOF5_SYNC */
4037 [10] = RCAR_GP_PIN(0, 10), /* MSIOF5_TXD */
4038 [11] = RCAR_GP_PIN(0, 11), /* MSIOF5_SCK */
4039 [12] = RCAR_GP_PIN(0, 12), /* MSIOF5_RXD */
4040 [13] = RCAR_GP_PIN(0, 13), /* MSIOF2_SS2 */
4041 [14] = RCAR_GP_PIN(0, 14), /* MSIOF2_SS1 */
4042 [15] = RCAR_GP_PIN(0, 15), /* MSIOF2_SYNC */
4043 [16] = RCAR_GP_PIN(0, 16), /* MSIOF2_TXD */
4044 [17] = RCAR_GP_PIN(0, 17), /* MSIOF2_SCK */
4045 [18] = RCAR_GP_PIN(0, 18), /* MSIOF2_RXD */
4046 [19] = SH_PFC_PIN_NONE,
4047 [20] = SH_PFC_PIN_NONE,
4048 [21] = SH_PFC_PIN_NONE,
4049 [22] = SH_PFC_PIN_NONE,
4050 [23] = SH_PFC_PIN_NONE,
4051 [24] = SH_PFC_PIN_NONE,
4052 [25] = SH_PFC_PIN_NONE,
4053 [26] = SH_PFC_PIN_NONE,
4054 [27] = SH_PFC_PIN_NONE,
4055 [28] = SH_PFC_PIN_NONE,
4056 [29] = SH_PFC_PIN_NONE,
4057 [30] = SH_PFC_PIN_NONE,
4058 [31] = SH_PFC_PIN_NONE,
4059 } },
4060 { PINMUX_BIAS_REG("PUEN1", 0xE60508C0, "PUD1", 0xE60508E0) {
4061 [ 0] = RCAR_GP_PIN(1, 0), /* MSIOF1_SS2 */
4062 [ 1] = RCAR_GP_PIN(1, 1), /* MSIOF1_SS1 */
4063 [ 2] = RCAR_GP_PIN(1, 2), /* MSIOF1_SYNC */
4064 [ 3] = RCAR_GP_PIN(1, 3), /* MSIOF1_SCK */
4065 [ 4] = RCAR_GP_PIN(1, 4), /* MSIOF1_TXD */
4066 [ 5] = RCAR_GP_PIN(1, 5), /* MSIOF1_RXD */
4067 [ 6] = RCAR_GP_PIN(1, 6), /* MSIOF0_SS2 */
4068 [ 7] = RCAR_GP_PIN(1, 7), /* MSIOF0_SS1 */
4069 [ 8] = RCAR_GP_PIN(1, 8), /* MSIOF0_SYNC */
4070 [ 9] = RCAR_GP_PIN(1, 9), /* MSIOF0_TXD */
4071 [10] = RCAR_GP_PIN(1, 10), /* MSIOF0_SCK */
4072 [11] = RCAR_GP_PIN(1, 11), /* MSIOF0_RXD */
4073 [12] = RCAR_GP_PIN(1, 12), /* HTX0 */
4074 [13] = RCAR_GP_PIN(1, 13), /* HCTS0_N */
4075 [14] = RCAR_GP_PIN(1, 14), /* HRTS0_N */
4076 [15] = RCAR_GP_PIN(1, 15), /* HSCK0 */
4077 [16] = RCAR_GP_PIN(1, 16), /* HRX0 */
4078 [17] = RCAR_GP_PIN(1, 17), /* SCIF_CLK */
4079 [18] = RCAR_GP_PIN(1, 18), /* SSI_SCK */
4080 [19] = RCAR_GP_PIN(1, 19), /* SSI_WS */
4081 [20] = RCAR_GP_PIN(1, 20), /* SSI_SD */
4082 [21] = RCAR_GP_PIN(1, 21), /* AUDIO_CLKOUT */
4083 [22] = RCAR_GP_PIN(1, 22), /* AUDIO_CLKIN */
4084 [23] = RCAR_GP_PIN(1, 23), /* GP1_23 */
4085 [24] = RCAR_GP_PIN(1, 24), /* HRX3 */
4086 [25] = RCAR_GP_PIN(1, 25), /* HSCK3 */
4087 [26] = RCAR_GP_PIN(1, 26), /* HRTS3_N */
4088 [27] = RCAR_GP_PIN(1, 27), /* HCTS3_N */
4089 [28] = RCAR_GP_PIN(1, 28), /* HTX3 */
4090 [29] = SH_PFC_PIN_NONE,
4091 [30] = SH_PFC_PIN_NONE,
4092 [31] = SH_PFC_PIN_NONE,
4093 } },
4094 { PINMUX_BIAS_REG("PUEN2", 0xE60580C0, "PUD2", 0xE60580E0) {
4095 [ 0] = RCAR_GP_PIN(2, 0), /* FXR_TXDA */
4096 [ 1] = RCAR_GP_PIN(2, 1), /* FXR_TXENA_N */
4097 [ 2] = RCAR_GP_PIN(2, 2), /* RXDA_EXTFXR */
4098 [ 3] = RCAR_GP_PIN(2, 3), /* CLK_EXTFXR */
4099 [ 4] = RCAR_GP_PIN(2, 4), /* RXDB_EXTFXR */
4100 [ 5] = RCAR_GP_PIN(2, 5), /* FXR_TXENB_N */
4101 [ 6] = RCAR_GP_PIN(2, 6), /* FXR_TXDB */
4102 [ 7] = RCAR_GP_PIN(2, 7), /* TPU0TO1 */
4103 [ 8] = RCAR_GP_PIN(2, 8), /* TPU0TO0 */
4104 [ 9] = RCAR_GP_PIN(2, 9), /* CAN_CLK */
4105 [10] = RCAR_GP_PIN(2, 10), /* CANFD0_TX */
4106 [11] = RCAR_GP_PIN(2, 11), /* CANFD0_RX */
4107 [12] = RCAR_GP_PIN(2, 12), /* CANFD2_TX */
4108 [13] = RCAR_GP_PIN(2, 13), /* CANFD2_RX */
4109 [14] = RCAR_GP_PIN(2, 14), /* CANFD3_TX */
4110 [15] = RCAR_GP_PIN(2, 15), /* CANFD3_RX */
4111 [16] = RCAR_GP_PIN(2, 16), /* CANFD4_TX */
4112 [17] = RCAR_GP_PIN(2, 17), /* CANFD4_RX */
4113 [18] = RCAR_GP_PIN(2, 18), /* CANFD7_TX */
4114 [19] = RCAR_GP_PIN(2, 19), /* CANFD7_RX */
4115 [20] = SH_PFC_PIN_NONE,
4116 [21] = SH_PFC_PIN_NONE,
4117 [22] = SH_PFC_PIN_NONE,
4118 [23] = SH_PFC_PIN_NONE,
4119 [24] = SH_PFC_PIN_NONE,
4120 [25] = SH_PFC_PIN_NONE,
4121 [26] = SH_PFC_PIN_NONE,
4122 [27] = SH_PFC_PIN_NONE,
4123 [28] = SH_PFC_PIN_NONE,
4124 [29] = SH_PFC_PIN_NONE,
4125 [30] = SH_PFC_PIN_NONE,
4126 [31] = SH_PFC_PIN_NONE,
4127 } },
4128 { PINMUX_BIAS_REG("PUEN3", 0xE60588C0, "PUD3", 0xE60588E0) {
4129 [ 0] = RCAR_GP_PIN(3, 0), /* MMC_SD_D1 */
4130 [ 1] = RCAR_GP_PIN(3, 1), /* MMC_SD_D0 */
4131 [ 2] = RCAR_GP_PIN(3, 2), /* MMC_SD_D2 */
4132 [ 3] = RCAR_GP_PIN(3, 3), /* MMC_SD_CLK */
4133 [ 4] = RCAR_GP_PIN(3, 4), /* MMC_DS */
4134 [ 5] = RCAR_GP_PIN(3, 5), /* MMC_SD_D3 */
4135 [ 6] = RCAR_GP_PIN(3, 6), /* MMC_D5 */
4136 [ 7] = RCAR_GP_PIN(3, 7), /* MMC_D4 */
4137 [ 8] = RCAR_GP_PIN(3, 8), /* MMC_D7 */
4138 [ 9] = RCAR_GP_PIN(3, 9), /* MMC_D6 */
4139 [10] = RCAR_GP_PIN(3, 10), /* MMC_SD_CMD */
4140 [11] = RCAR_GP_PIN(3, 11), /* SD_CD */
4141 [12] = RCAR_GP_PIN(3, 12), /* SD_WP */
4142 [13] = RCAR_GP_PIN(3, 13), /* IPC_CLKIN */
4143 [14] = RCAR_GP_PIN(3, 14), /* IPC_CLKOUT */
4144 [15] = RCAR_GP_PIN(3, 15), /* QSPI0_SSL */
4145 [16] = RCAR_GP_PIN(3, 16), /* QSPI0_IO3 */
4146 [17] = RCAR_GP_PIN(3, 17), /* QSPI0_IO2 */
4147 [18] = RCAR_GP_PIN(3, 18), /* QSPI0_MISO_IO1 */
4148 [19] = RCAR_GP_PIN(3, 19), /* QSPI0_MOSI_IO0 */
4149 [20] = RCAR_GP_PIN(3, 20), /* QSPI0_SPCLK */
4150 [21] = RCAR_GP_PIN(3, 21), /* QSPI1_MOSI_IO0 */
4151 [22] = RCAR_GP_PIN(3, 22), /* QSPI1_SPCLK */
4152 [23] = RCAR_GP_PIN(3, 23), /* QSPI1_MISO_IO1 */
4153 [24] = RCAR_GP_PIN(3, 24), /* QSPI1_IO2 */
4154 [25] = RCAR_GP_PIN(3, 25), /* QSPI1_SSL */
4155 [26] = RCAR_GP_PIN(3, 26), /* QSPI1_IO3 */
4156 [27] = RCAR_GP_PIN(3, 27), /* RPC_RESET_N */
4157 [28] = RCAR_GP_PIN(3, 28), /* RPC_WP_N */
4158 [29] = RCAR_GP_PIN(3, 29), /* RPC_INT_N */
4159 [30] = SH_PFC_PIN_NONE,
4160 [31] = SH_PFC_PIN_NONE,
4161 } },
4162 { PINMUX_BIAS_REG("PUEN4", 0xE60600C0, "PUD4", 0xE60600E0) {
4163 [ 0] = RCAR_GP_PIN(4, 0), /* TSN0_MDIO */
4164 [ 1] = RCAR_GP_PIN(4, 1), /* TSN0_MDC */
4165 [ 2] = RCAR_GP_PIN(4, 2), /* TSN0_AVTP_PPS1 */
4166 [ 3] = RCAR_GP_PIN(4, 3), /* TSN0_PHY_INT */
4167 [ 4] = RCAR_GP_PIN(4, 4), /* TSN0_LINK */
4168 [ 5] = RCAR_GP_PIN(4, 5), /* TSN0_AVTP_MATCH */
4169 [ 6] = RCAR_GP_PIN(4, 6), /* TSN0_AVTP_CAPTURE */
4170 [ 7] = RCAR_GP_PIN(4, 7), /* TSN0_RX_CTL */
4171 [ 8] = RCAR_GP_PIN(4, 8), /* TSN0_AVTP_PPS0 */
4172 [ 9] = RCAR_GP_PIN(4, 9), /* TSN0_TX_CTL */
4173 [10] = RCAR_GP_PIN(4, 10), /* TSN0_RD0 */
4174 [11] = RCAR_GP_PIN(4, 11), /* TSN0_RXC */
4175 [12] = RCAR_GP_PIN(4, 12), /* TSN0_TXC */
4176 [13] = RCAR_GP_PIN(4, 13), /* TSN0_RD1 */
4177 [14] = RCAR_GP_PIN(4, 14), /* TSN0_TD1 */
4178 [15] = RCAR_GP_PIN(4, 15), /* TSN0_TD0 */
4179 [16] = RCAR_GP_PIN(4, 16), /* TSN0_RD3 */
4180 [17] = RCAR_GP_PIN(4, 17), /* TSN0_RD2 */
4181 [18] = RCAR_GP_PIN(4, 18), /* TSN0_TD3 */
4182 [19] = RCAR_GP_PIN(4, 19), /* TSN0_TD2 */
4183 [20] = RCAR_GP_PIN(4, 20), /* TSN0_TXCREFCLK */
4184 [21] = RCAR_GP_PIN(4, 21), /* PCIE0_CLKREQ_N */
4185 [22] = RCAR_GP_PIN(4, 22), /* PCIE1_CLKREQ_N */
4186 [23] = RCAR_GP_PIN(4, 23), /* AVS0 */
4187 [24] = RCAR_GP_PIN(4, 24), /* AVS1 */
4188 [25] = SH_PFC_PIN_NONE,
4189 [26] = SH_PFC_PIN_NONE,
4190 [27] = SH_PFC_PIN_NONE,
4191 [28] = SH_PFC_PIN_NONE,
4192 [29] = SH_PFC_PIN_NONE,
4193 [30] = SH_PFC_PIN_NONE,
4194 [31] = SH_PFC_PIN_NONE,
4195 } },
4196 { PINMUX_BIAS_REG("PUEN5", 0xE60608C0, "PUD5", 0xE60608E0) {
4197 [ 0] = RCAR_GP_PIN(5, 0), /* AVB2_AVTP_PPS */
4198 [ 1] = RCAR_GP_PIN(5, 1), /* AVB0_AVTP_CAPTURE */
4199 [ 2] = RCAR_GP_PIN(5, 2), /* AVB2_AVTP_MATCH */
4200 [ 3] = RCAR_GP_PIN(5, 3), /* AVB2_LINK */
4201 [ 4] = RCAR_GP_PIN(5, 4), /* AVB2_PHY_INT */
4202 [ 5] = RCAR_GP_PIN(5, 5), /* AVB2_MAGIC */
4203 [ 6] = RCAR_GP_PIN(5, 6), /* AVB2_MDC */
4204 [ 7] = RCAR_GP_PIN(5, 7), /* AVB2_TXCREFCLK */
4205 [ 8] = RCAR_GP_PIN(5, 8), /* AVB2_TD3 */
4206 [ 9] = RCAR_GP_PIN(5, 9), /* AVB2_RD3 */
4207 [10] = RCAR_GP_PIN(5, 10), /* AVB2_MDIO */
4208 [11] = RCAR_GP_PIN(5, 11), /* AVB2_TD2 */
4209 [12] = RCAR_GP_PIN(5, 12), /* AVB2_TD1 */
4210 [13] = RCAR_GP_PIN(5, 13), /* AVB2_RD2 */
4211 [14] = RCAR_GP_PIN(5, 14), /* AVB2_RD1 */
4212 [15] = RCAR_GP_PIN(5, 15), /* AVB2_TD0 */
4213 [16] = RCAR_GP_PIN(5, 16), /* AVB2_TXC */
4214 [17] = RCAR_GP_PIN(5, 17), /* AVB2_RD0 */
4215 [18] = RCAR_GP_PIN(5, 18), /* AVB2_RXC */
4216 [19] = RCAR_GP_PIN(5, 19), /* AVB2_TX_CTL */
4217 [20] = RCAR_GP_PIN(5, 20), /* AVB2_RX_CTL */
4218 [21] = SH_PFC_PIN_NONE,
4219 [22] = SH_PFC_PIN_NONE,
4220 [23] = SH_PFC_PIN_NONE,
4221 [24] = SH_PFC_PIN_NONE,
4222 [25] = SH_PFC_PIN_NONE,
4223 [26] = SH_PFC_PIN_NONE,
4224 [27] = SH_PFC_PIN_NONE,
4225 [28] = SH_PFC_PIN_NONE,
4226 [29] = SH_PFC_PIN_NONE,
4227 [30] = SH_PFC_PIN_NONE,
4228 [31] = SH_PFC_PIN_NONE,
4229 } },
4230 { PINMUX_BIAS_REG("PUEN6", 0xE60610C0, "PUD6", 0xE60610E0) {
4231 [ 0] = RCAR_GP_PIN(6, 0), /* AVB1_MDIO */
4232 [ 1] = RCAR_GP_PIN(6, 1), /* AVB1_MAGIC */
4233 [ 2] = RCAR_GP_PIN(6, 2), /* AVB1_MDC */
4234 [ 3] = RCAR_GP_PIN(6, 3), /* AVB1_PHY_INT */
4235 [ 4] = RCAR_GP_PIN(6, 4), /* AVB1_LINK */
4236 [ 5] = RCAR_GP_PIN(6, 5), /* AVB1_AVTP_MATCH */
4237 [ 6] = RCAR_GP_PIN(6, 6), /* AVB1_TXC */
4238 [ 7] = RCAR_GP_PIN(6, 7), /* AVB1_TX_CTL */
4239 [ 8] = RCAR_GP_PIN(6, 8), /* AVB1_RXC */
4240 [ 9] = RCAR_GP_PIN(6, 9), /* AVB1_RX_CTL */
4241 [10] = RCAR_GP_PIN(6, 10), /* AVB1_AVTP_PPS */
4242 [11] = RCAR_GP_PIN(6, 11), /* AVB1_AVTP_CAPTURE */
4243 [12] = RCAR_GP_PIN(6, 12), /* AVB1_TD1 */
4244 [13] = RCAR_GP_PIN(6, 13), /* AVB1_TD0 */
4245 [14] = RCAR_GP_PIN(6, 14), /* AVB1_RD1*/
4246 [15] = RCAR_GP_PIN(6, 15), /* AVB1_RD0 */
4247 [16] = RCAR_GP_PIN(6, 16), /* AVB1_TD2 */
4248 [17] = RCAR_GP_PIN(6, 17), /* AVB1_RD2 */
4249 [18] = RCAR_GP_PIN(6, 18), /* AVB1_TD3 */
4250 [19] = RCAR_GP_PIN(6, 19), /* AVB1_RD3 */
4251 [20] = RCAR_GP_PIN(6, 20), /* AVB1_TXCREFCLK */
4252 [21] = SH_PFC_PIN_NONE,
4253 [22] = SH_PFC_PIN_NONE,
4254 [23] = SH_PFC_PIN_NONE,
4255 [24] = SH_PFC_PIN_NONE,
4256 [25] = SH_PFC_PIN_NONE,
4257 [26] = SH_PFC_PIN_NONE,
4258 [27] = SH_PFC_PIN_NONE,
4259 [28] = SH_PFC_PIN_NONE,
4260 [29] = SH_PFC_PIN_NONE,
4261 [30] = SH_PFC_PIN_NONE,
4262 [31] = SH_PFC_PIN_NONE,
4263 } },
4264 { PINMUX_BIAS_REG("PUEN7", 0xE60618C0, "PUD7", 0xE60618E0) {
4265 [ 0] = RCAR_GP_PIN(7, 0), /* AVB0_AVTP_PPS */
4266 [ 1] = RCAR_GP_PIN(7, 1), /* AVB0_AVTP_CAPTURE */
4267 [ 2] = RCAR_GP_PIN(7, 2), /* AVB0_AVTP_MATCH */
4268 [ 3] = RCAR_GP_PIN(7, 3), /* AVB0_TD3 */
4269 [ 4] = RCAR_GP_PIN(7, 4), /* AVB0_LINK */
4270 [ 5] = RCAR_GP_PIN(7, 5), /* AVB0_PHY_INT */
4271 [ 6] = RCAR_GP_PIN(7, 6), /* AVB0_TD2 */
4272 [ 7] = RCAR_GP_PIN(7, 7), /* AVB0_TD1 */
4273 [ 8] = RCAR_GP_PIN(7, 8), /* AVB0_RD3 */
4274 [ 9] = RCAR_GP_PIN(7, 9), /* AVB0_TXCREFCLK */
4275 [10] = RCAR_GP_PIN(7, 10), /* AVB0_MAGIC */
4276 [11] = RCAR_GP_PIN(7, 11), /* AVB0_TD0 */
4277 [12] = RCAR_GP_PIN(7, 12), /* AVB0_RD2 */
4278 [13] = RCAR_GP_PIN(7, 13), /* AVB0_MDC */
4279 [14] = RCAR_GP_PIN(7, 14), /* AVB0_MDIO */
4280 [15] = RCAR_GP_PIN(7, 15), /* AVB0_TXC */
4281 [16] = RCAR_GP_PIN(7, 16), /* AVB0_TX_CTL */
4282 [17] = RCAR_GP_PIN(7, 17), /* AVB0_RD1 */
4283 [18] = RCAR_GP_PIN(7, 18), /* AVB0_RD0 */
4284 [19] = RCAR_GP_PIN(7, 19), /* AVB0_RXC */
4285 [20] = RCAR_GP_PIN(7, 20), /* AVB0_RX_CTL */
4286 [21] = SH_PFC_PIN_NONE,
4287 [22] = SH_PFC_PIN_NONE,
4288 [23] = SH_PFC_PIN_NONE,
4289 [24] = SH_PFC_PIN_NONE,
4290 [25] = SH_PFC_PIN_NONE,
4291 [26] = SH_PFC_PIN_NONE,
4292 [27] = SH_PFC_PIN_NONE,
4293 [28] = SH_PFC_PIN_NONE,
4294 [29] = SH_PFC_PIN_NONE,
4295 [30] = SH_PFC_PIN_NONE,
4296 [31] = SH_PFC_PIN_NONE,
4297 } },
4298 { PINMUX_BIAS_REG("PUEN8", 0xE60680C0, "PUD8", 0xE60680E0) {
4299 [ 0] = RCAR_GP_PIN(8, 0), /* SCL0 */
4300 [ 1] = RCAR_GP_PIN(8, 1), /* SDA0 */
4301 [ 2] = RCAR_GP_PIN(8, 2), /* SCL1 */
4302 [ 3] = RCAR_GP_PIN(8, 3), /* SDA1 */
4303 [ 4] = RCAR_GP_PIN(8, 4), /* SCL2 */
4304 [ 5] = RCAR_GP_PIN(8, 5), /* SDA2 */
4305 [ 6] = RCAR_GP_PIN(8, 6), /* SCL3 */
4306 [ 7] = RCAR_GP_PIN(8, 7), /* SDA3 */
4307 [ 8] = RCAR_GP_PIN(8, 8), /* SCL4 */
4308 [ 9] = RCAR_GP_PIN(8, 9), /* SDA4 */
4309 [10] = RCAR_GP_PIN(8, 10), /* SCL5 */
4310 [11] = RCAR_GP_PIN(8, 11), /* SDA5 */
4311 [12] = RCAR_GP_PIN(8, 12), /* GP8_12 */
4312 [13] = RCAR_GP_PIN(8, 13), /* GP8_13 */
4313 [14] = SH_PFC_PIN_NONE,
4314 [15] = SH_PFC_PIN_NONE,
4315 [16] = SH_PFC_PIN_NONE,
4316 [17] = SH_PFC_PIN_NONE,
4317 [18] = SH_PFC_PIN_NONE,
4318 [19] = SH_PFC_PIN_NONE,
4319 [20] = SH_PFC_PIN_NONE,
4320 [21] = SH_PFC_PIN_NONE,
4321 [22] = SH_PFC_PIN_NONE,
4322 [23] = SH_PFC_PIN_NONE,
4323 [24] = SH_PFC_PIN_NONE,
4324 [25] = SH_PFC_PIN_NONE,
4325 [26] = SH_PFC_PIN_NONE,
4326 [27] = SH_PFC_PIN_NONE,
4327 [28] = SH_PFC_PIN_NONE,
4328 [29] = SH_PFC_PIN_NONE,
4329 [30] = SH_PFC_PIN_NONE,
4330 [31] = SH_PFC_PIN_NONE,
4331 } },
Marek Vasut8f07e8a2023-09-17 16:08:49 +02004332 { /* sentinel */ }
Hai Pham9a8aaa32023-02-28 22:37:03 +01004333};
4334
4335static const struct sh_pfc_soc_operations r8a779g0_pin_ops = {
4336 .pin_to_pocctrl = r8a779g0_pin_to_pocctrl,
4337 .get_bias = rcar_pinmux_get_bias,
4338 .set_bias = rcar_pinmux_set_bias,
4339};
4340
4341const struct sh_pfc_soc_info r8a779g0_pinmux_info = {
4342 .name = "r8a779g0_pfc",
4343 .ops = &r8a779g0_pin_ops,
4344 .unlock_reg = 0x1ff, /* PMMRn mask */
4345
4346 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
4347
4348 .pins = pinmux_pins,
4349 .nr_pins = ARRAY_SIZE(pinmux_pins),
4350 .groups = pinmux_groups,
4351 .nr_groups = ARRAY_SIZE(pinmux_groups),
4352 .functions = pinmux_functions,
4353 .nr_functions = ARRAY_SIZE(pinmux_functions),
4354
4355 .cfg_regs = pinmux_config_regs,
4356 .drive_regs = pinmux_drive_regs,
4357 .bias_regs = pinmux_bias_regs,
4358 .ioctrl_regs = pinmux_ioctrl_regs,
4359
4360 .pinmux_data = pinmux_data,
4361 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
4362};