Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * R8A779A0 processor support - PFC hardware block. |
| 4 | * |
| 5 | * Copyright (C) 2020 Renesas Electronics Corp. |
| 6 | * |
| 7 | * This file is based on the drivers/pinctrl/renesas/pfc-r8a7795.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_15(0, fn, sfx, CFG_FLAGS), \ |
| 23 | PORT_GP_CFG_1(0, 15, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 24 | PORT_GP_CFG_1(0, 16, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 25 | PORT_GP_CFG_1(0, 17, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 26 | PORT_GP_CFG_1(0, 18, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 27 | PORT_GP_CFG_1(0, 19, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 28 | PORT_GP_CFG_1(0, 20, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 29 | PORT_GP_CFG_1(0, 21, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 30 | PORT_GP_CFG_1(0, 22, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 31 | PORT_GP_CFG_1(0, 23, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 32 | PORT_GP_CFG_1(0, 24, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 33 | PORT_GP_CFG_1(0, 25, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 34 | PORT_GP_CFG_1(0, 26, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 35 | PORT_GP_CFG_1(0, 27, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 36 | PORT_GP_CFG_31(1, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 37 | PORT_GP_CFG_2(2, fn, sfx, CFG_FLAGS), \ |
| 38 | PORT_GP_CFG_1(2, 2, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 39 | PORT_GP_CFG_1(2, 3, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 40 | PORT_GP_CFG_1(2, 4, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 41 | PORT_GP_CFG_1(2, 5, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 42 | PORT_GP_CFG_1(2, 6, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 43 | PORT_GP_CFG_1(2, 7, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 44 | PORT_GP_CFG_1(2, 8, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 45 | PORT_GP_CFG_1(2, 9, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 46 | PORT_GP_CFG_1(2, 10, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 47 | PORT_GP_CFG_1(2, 11, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 48 | PORT_GP_CFG_1(2, 12, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 49 | PORT_GP_CFG_1(2, 13, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 50 | PORT_GP_CFG_1(2, 14, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 51 | PORT_GP_CFG_1(2, 15, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \ |
| 52 | PORT_GP_CFG_1(2, 16, fn, sfx, CFG_FLAGS), \ |
| 53 | PORT_GP_CFG_1(2, 17, fn, sfx, CFG_FLAGS), \ |
| 54 | PORT_GP_CFG_1(2, 18, fn, sfx, CFG_FLAGS), \ |
| 55 | PORT_GP_CFG_1(2, 19, fn, sfx, CFG_FLAGS), \ |
| 56 | PORT_GP_CFG_1(2, 20, fn, sfx, CFG_FLAGS), \ |
| 57 | PORT_GP_CFG_1(2, 21, fn, sfx, CFG_FLAGS), \ |
| 58 | PORT_GP_CFG_1(2, 22, fn, sfx, CFG_FLAGS), \ |
| 59 | PORT_GP_CFG_1(2, 23, fn, sfx, CFG_FLAGS), \ |
| 60 | PORT_GP_CFG_1(2, 24, fn, sfx, CFG_FLAGS), \ |
| 61 | PORT_GP_CFG_17(3, fn, sfx, CFG_FLAGS), \ |
| 62 | PORT_GP_CFG_18(4, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\ |
| 63 | PORT_GP_CFG_1(4, 18, fn, sfx, CFG_FLAGS), \ |
| 64 | PORT_GP_CFG_1(4, 19, fn, sfx, CFG_FLAGS), \ |
| 65 | PORT_GP_CFG_1(4, 20, fn, sfx, CFG_FLAGS), \ |
| 66 | PORT_GP_CFG_1(4, 21, fn, sfx, CFG_FLAGS), \ |
| 67 | PORT_GP_CFG_1(4, 22, fn, sfx, CFG_FLAGS), \ |
| 68 | PORT_GP_CFG_1(4, 23, fn, sfx, CFG_FLAGS), \ |
| 69 | PORT_GP_CFG_1(4, 24, fn, sfx, CFG_FLAGS), \ |
| 70 | PORT_GP_CFG_1(4, 25, fn, sfx, CFG_FLAGS), \ |
| 71 | PORT_GP_CFG_1(4, 26, fn, sfx, CFG_FLAGS), \ |
| 72 | PORT_GP_CFG_18(5, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\ |
| 73 | PORT_GP_CFG_1(5, 18, fn, sfx, CFG_FLAGS), \ |
| 74 | PORT_GP_CFG_1(5, 19, fn, sfx, CFG_FLAGS), \ |
| 75 | PORT_GP_CFG_1(5, 20, fn, sfx, CFG_FLAGS), \ |
| 76 | PORT_GP_CFG_18(6, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\ |
| 77 | PORT_GP_CFG_1(6, 18, fn, sfx, CFG_FLAGS), \ |
| 78 | PORT_GP_CFG_1(6, 19, fn, sfx, CFG_FLAGS), \ |
| 79 | PORT_GP_CFG_1(6, 20, fn, sfx, CFG_FLAGS), \ |
| 80 | PORT_GP_CFG_18(7, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\ |
| 81 | PORT_GP_CFG_1(7, 18, fn, sfx, CFG_FLAGS), \ |
| 82 | PORT_GP_CFG_1(7, 19, fn, sfx, CFG_FLAGS), \ |
| 83 | PORT_GP_CFG_1(7, 20, fn, sfx, CFG_FLAGS), \ |
| 84 | PORT_GP_CFG_18(8, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\ |
| 85 | PORT_GP_CFG_1(8, 18, fn, sfx, CFG_FLAGS), \ |
| 86 | PORT_GP_CFG_1(8, 19, fn, sfx, CFG_FLAGS), \ |
| 87 | PORT_GP_CFG_1(8, 20, fn, sfx, CFG_FLAGS), \ |
| 88 | PORT_GP_CFG_18(9, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\ |
| 89 | PORT_GP_CFG_1(9, 18, fn, sfx, CFG_FLAGS), \ |
| 90 | PORT_GP_CFG_1(9, 19, fn, sfx, CFG_FLAGS), \ |
| 91 | PORT_GP_CFG_1(9, 20, fn, sfx, CFG_FLAGS) |
| 92 | |
| 93 | #define CPU_ALL_NOGP(fn) \ |
| 94 | PIN_NOGP_CFG(PRESETOUT_N, "PRESETOUT#", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN), \ |
| 95 | PIN_NOGP_CFG(EXTALR, "EXTALR", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN), \ |
| 96 | PIN_NOGP_CFG(DCUTRST_N_LPDRST_N, "DCUTRST#_LPDRST#", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN), \ |
| 97 | PIN_NOGP_CFG(DCUTCK_LPDCLK, "DCUTCK_LPDCLK", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN), \ |
| 98 | PIN_NOGP_CFG(DCUTMS, "DCUTMS", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN), \ |
| 99 | PIN_NOGP_CFG(DCUTDI_LPDI, "DCUTDI_LPDI", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN) |
| 100 | |
| 101 | /* |
| 102 | * F_() : just information |
| 103 | * FM() : macro for FN_xxx / xxx_MARK |
| 104 | */ |
| 105 | |
| 106 | /* GPSR0 */ |
| 107 | #define GPSR0_27 FM(MMC_D7) |
| 108 | #define GPSR0_26 FM(MMC_D6) |
| 109 | #define GPSR0_25 FM(MMC_D5) |
| 110 | #define GPSR0_24 FM(MMC_D4) |
| 111 | #define GPSR0_23 FM(MMC_SD_CLK) |
| 112 | #define GPSR0_22 FM(MMC_SD_D3) |
| 113 | #define GPSR0_21 FM(MMC_SD_D2) |
| 114 | #define GPSR0_20 FM(MMC_SD_D1) |
| 115 | #define GPSR0_19 FM(MMC_SD_D0) |
| 116 | #define GPSR0_18 FM(MMC_SD_CMD) |
| 117 | #define GPSR0_17 FM(MMC_DS) |
| 118 | #define GPSR0_16 FM(SD_CD) |
| 119 | #define GPSR0_15 FM(SD_WP) |
| 120 | #define GPSR0_14 FM(RPC_INT_N) |
| 121 | #define GPSR0_13 FM(RPC_WP_N) |
| 122 | #define GPSR0_12 FM(RPC_RESET_N) |
| 123 | #define GPSR0_11 FM(QSPI1_SSL) |
| 124 | #define GPSR0_10 FM(QSPI1_IO3) |
| 125 | #define GPSR0_9 FM(QSPI1_IO2) |
| 126 | #define GPSR0_8 FM(QSPI1_MISO_IO1) |
| 127 | #define GPSR0_7 FM(QSPI1_MOSI_IO0) |
| 128 | #define GPSR0_6 FM(QSPI1_SPCLK) |
| 129 | #define GPSR0_5 FM(QSPI0_SSL) |
| 130 | #define GPSR0_4 FM(QSPI0_IO3) |
| 131 | #define GPSR0_3 FM(QSPI0_IO2) |
| 132 | #define GPSR0_2 FM(QSPI0_MISO_IO1) |
| 133 | #define GPSR0_1 FM(QSPI0_MOSI_IO0) |
| 134 | #define GPSR0_0 FM(QSPI0_SPCLK) |
| 135 | |
| 136 | /* GPSR1 */ |
| 137 | #define GPSR1_30 F_(GP1_30, IP3SR1_27_24) |
| 138 | #define GPSR1_29 F_(GP1_29, IP3SR1_23_20) |
| 139 | #define GPSR1_28 F_(GP1_28, IP3SR1_19_16) |
| 140 | #define GPSR1_27 F_(IRQ3, IP3SR1_15_12) |
| 141 | #define GPSR1_26 F_(IRQ2, IP3SR1_11_8) |
| 142 | #define GPSR1_25 F_(IRQ1, IP3SR1_7_4) |
| 143 | #define GPSR1_24 F_(IRQ0, IP3SR1_3_0) |
| 144 | #define GPSR1_23 F_(MSIOF2_SS2, IP2SR1_31_28) |
| 145 | #define GPSR1_22 F_(MSIOF2_SS1, IP2SR1_27_24) |
| 146 | #define GPSR1_21 F_(MSIOF2_SYNC, IP2SR1_23_20) |
| 147 | #define GPSR1_20 F_(MSIOF2_SCK, IP2SR1_19_16) |
| 148 | #define GPSR1_19 F_(MSIOF2_TXD, IP2SR1_15_12) |
| 149 | #define GPSR1_18 F_(MSIOF2_RXD, IP2SR1_11_8) |
| 150 | #define GPSR1_17 F_(MSIOF1_SS2, IP2SR1_7_4) |
| 151 | #define GPSR1_16 F_(MSIOF1_SS1, IP2SR1_3_0) |
| 152 | #define GPSR1_15 F_(MSIOF1_SYNC, IP1SR1_31_28) |
| 153 | #define GPSR1_14 F_(MSIOF1_SCK, IP1SR1_27_24) |
| 154 | #define GPSR1_13 F_(MSIOF1_TXD, IP1SR1_23_20) |
| 155 | #define GPSR1_12 F_(MSIOF1_RXD, IP1SR1_19_16) |
| 156 | #define GPSR1_11 F_(MSIOF0_SS2, IP1SR1_15_12) |
| 157 | #define GPSR1_10 F_(MSIOF0_SS1, IP1SR1_11_8) |
| 158 | #define GPSR1_9 F_(MSIOF0_SYNC, IP1SR1_7_4) |
| 159 | #define GPSR1_8 F_(MSIOF0_SCK, IP1SR1_3_0) |
| 160 | #define GPSR1_7 F_(MSIOF0_TXD, IP0SR1_31_28) |
| 161 | #define GPSR1_6 F_(MSIOF0_RXD, IP0SR1_27_24) |
| 162 | #define GPSR1_5 F_(HTX0, IP0SR1_23_20) |
| 163 | #define GPSR1_4 F_(HCTS0_N, IP0SR1_19_16) |
| 164 | #define GPSR1_3 F_(HRTS0_N, IP0SR1_15_12) |
| 165 | #define GPSR1_2 F_(HSCK0, IP0SR1_11_8) |
| 166 | #define GPSR1_1 F_(HRX0, IP0SR1_7_4) |
| 167 | #define GPSR1_0 F_(SCIF_CLK, IP0SR1_3_0) |
| 168 | |
| 169 | /* GPSR2 */ |
| 170 | #define GPSR2_24 FM(TCLK2_A) |
| 171 | #define GPSR2_23 F_(TCLK1_A, IP2SR2_31_28) |
| 172 | #define GPSR2_22 F_(TPU0TO1, IP2SR2_27_24) |
| 173 | #define GPSR2_21 F_(TPU0TO0, IP2SR2_23_20) |
| 174 | #define GPSR2_20 F_(CLK_EXTFXR, IP2SR2_19_16) |
| 175 | #define GPSR2_19 F_(RXDB_EXTFXR, IP2SR2_15_12) |
| 176 | #define GPSR2_18 F_(FXR_TXDB, IP2SR2_11_8) |
| 177 | #define GPSR2_17 F_(RXDA_EXTFXR_A, IP2SR2_7_4) |
| 178 | #define GPSR2_16 F_(FXR_TXDA_A, IP2SR2_3_0) |
| 179 | #define GPSR2_15 F_(GP2_15, IP1SR2_31_28) |
| 180 | #define GPSR2_14 F_(GP2_14, IP1SR2_27_24) |
| 181 | #define GPSR2_13 F_(GP2_13, IP1SR2_23_20) |
| 182 | #define GPSR2_12 F_(GP2_12, IP1SR2_19_16) |
| 183 | #define GPSR2_11 F_(GP2_11, IP1SR2_15_12) |
| 184 | #define GPSR2_10 F_(GP2_10, IP1SR2_11_8) |
| 185 | #define GPSR2_9 F_(GP2_09, IP1SR2_7_4) |
| 186 | #define GPSR2_8 F_(GP2_08, IP1SR2_3_0) |
| 187 | #define GPSR2_7 F_(GP2_07, IP0SR2_31_28) |
| 188 | #define GPSR2_6 F_(GP2_06, IP0SR2_27_24) |
| 189 | #define GPSR2_5 F_(GP2_05, IP0SR2_23_20) |
| 190 | #define GPSR2_4 F_(GP2_04, IP0SR2_19_16) |
| 191 | #define GPSR2_3 F_(GP2_03, IP0SR2_15_12) |
| 192 | #define GPSR2_2 F_(GP2_02, IP0SR2_11_8) |
| 193 | #define GPSR2_1 F_(IPC_CLKOUT, IP0SR2_7_4) |
| 194 | #define GPSR2_0 F_(IPC_CLKIN, IP0SR2_3_0) |
| 195 | |
| 196 | /* GPSR3 */ |
| 197 | #define GPSR3_16 FM(CANFD7_RX) |
| 198 | #define GPSR3_15 FM(CANFD7_TX) |
| 199 | #define GPSR3_14 FM(CANFD6_RX) |
| 200 | #define GPSR3_13 F_(CANFD6_TX, IP1SR3_23_20) |
| 201 | #define GPSR3_12 F_(CANFD5_RX, IP1SR3_19_16) |
| 202 | #define GPSR3_11 F_(CANFD5_TX, IP1SR3_15_12) |
| 203 | #define GPSR3_10 F_(CANFD4_RX, IP1SR3_11_8) |
| 204 | #define GPSR3_9 F_(CANFD4_TX, IP1SR3_7_4) |
| 205 | #define GPSR3_8 F_(CANFD3_RX, IP1SR3_3_0) |
| 206 | #define GPSR3_7 F_(CANFD3_TX, IP0SR3_31_28) |
| 207 | #define GPSR3_6 F_(CANFD2_RX, IP0SR3_27_24) |
| 208 | #define GPSR3_5 F_(CANFD2_TX, IP0SR3_23_20) |
| 209 | #define GPSR3_4 FM(CANFD1_RX) |
| 210 | #define GPSR3_3 FM(CANFD1_TX) |
| 211 | #define GPSR3_2 F_(CANFD0_RX, IP0SR3_11_8) |
| 212 | #define GPSR3_1 F_(CANFD0_TX, IP0SR3_7_4) |
| 213 | #define GPSR3_0 FM(CAN_CLK) |
| 214 | |
| 215 | /* GPSR4 */ |
| 216 | #define GPSR4_26 FM(AVS1) |
| 217 | #define GPSR4_25 FM(AVS0) |
| 218 | #define GPSR4_24 FM(PCIE3_CLKREQ_N) |
| 219 | #define GPSR4_23 FM(PCIE2_CLKREQ_N) |
| 220 | #define GPSR4_22 FM(PCIE1_CLKREQ_N) |
| 221 | #define GPSR4_21 FM(PCIE0_CLKREQ_N) |
| 222 | #define GPSR4_20 F_(AVB0_AVTP_PPS, IP2SR4_19_16) |
| 223 | #define GPSR4_19 F_(AVB0_AVTP_CAPTURE, IP2SR4_15_12) |
| 224 | #define GPSR4_18 F_(AVB0_AVTP_MATCH, IP2SR4_11_8) |
| 225 | #define GPSR4_17 F_(AVB0_LINK, IP2SR4_7_4) |
| 226 | #define GPSR4_16 FM(AVB0_PHY_INT) |
| 227 | #define GPSR4_15 F_(AVB0_MAGIC, IP1SR4_31_28) |
| 228 | #define GPSR4_14 F_(AVB0_MDC, IP1SR4_27_24) |
| 229 | #define GPSR4_13 F_(AVB0_MDIO, IP1SR4_23_20) |
| 230 | #define GPSR4_12 F_(AVB0_TXCREFCLK, IP1SR4_19_16) |
| 231 | #define GPSR4_11 F_(AVB0_TD3, IP1SR4_15_12) |
| 232 | #define GPSR4_10 F_(AVB0_TD2, IP1SR4_11_8) |
| 233 | #define GPSR4_9 F_(AVB0_TD1, IP1SR4_7_4) |
| 234 | #define GPSR4_8 F_(AVB0_TD0, IP1SR4_3_0) |
| 235 | #define GPSR4_7 F_(AVB0_TXC, IP0SR4_31_28) |
| 236 | #define GPSR4_6 F_(AVB0_TX_CTL, IP0SR4_27_24) |
| 237 | #define GPSR4_5 F_(AVB0_RD3, IP0SR4_23_20) |
| 238 | #define GPSR4_4 F_(AVB0_RD2, IP0SR4_19_16) |
| 239 | #define GPSR4_3 F_(AVB0_RD1, IP0SR4_15_12) |
| 240 | #define GPSR4_2 F_(AVB0_RD0, IP0SR4_11_8) |
| 241 | #define GPSR4_1 F_(AVB0_RXC, IP0SR4_7_4) |
| 242 | #define GPSR4_0 F_(AVB0_RX_CTL, IP0SR4_3_0) |
| 243 | |
| 244 | /* GPSR5 */ |
| 245 | #define GPSR5_20 F_(AVB1_AVTP_PPS, IP2SR5_19_16) |
| 246 | #define GPSR5_19 F_(AVB1_AVTP_CAPTURE, IP2SR5_15_12) |
| 247 | #define GPSR5_18 F_(AVB1_AVTP_MATCH, IP2SR5_11_8) |
| 248 | #define GPSR5_17 F_(AVB1_LINK, IP2SR5_7_4) |
| 249 | #define GPSR5_16 FM(AVB1_PHY_INT) |
| 250 | #define GPSR5_15 F_(AVB1_MAGIC, IP1SR5_31_28) |
| 251 | #define GPSR5_14 F_(AVB1_MDC, IP1SR5_27_24) |
| 252 | #define GPSR5_13 F_(AVB1_MDIO, IP1SR5_23_20) |
| 253 | #define GPSR5_12 F_(AVB1_TXCREFCLK, IP1SR5_19_16) |
| 254 | #define GPSR5_11 F_(AVB1_TD3, IP1SR5_15_12) |
| 255 | #define GPSR5_10 F_(AVB1_TD2, IP1SR5_11_8) |
| 256 | #define GPSR5_9 F_(AVB1_TD1, IP1SR5_7_4) |
| 257 | #define GPSR5_8 F_(AVB1_TD0, IP1SR5_3_0) |
| 258 | #define GPSR5_7 F_(AVB1_TXC, IP0SR5_31_28) |
| 259 | #define GPSR5_6 F_(AVB1_TX_CTL, IP0SR5_27_24) |
| 260 | #define GPSR5_5 F_(AVB1_RD3, IP0SR5_23_20) |
| 261 | #define GPSR5_4 F_(AVB1_RD2, IP0SR5_19_16) |
| 262 | #define GPSR5_3 F_(AVB1_RD1, IP0SR5_15_12) |
| 263 | #define GPSR5_2 F_(AVB1_RD0, IP0SR5_11_8) |
| 264 | #define GPSR5_1 F_(AVB1_RXC, IP0SR5_7_4) |
| 265 | #define GPSR5_0 F_(AVB1_RX_CTL, IP0SR5_3_0) |
| 266 | |
| 267 | /* GPSR6 */ |
| 268 | #define GPSR6_20 FM(AVB2_AVTP_PPS) |
| 269 | #define GPSR6_19 FM(AVB2_AVTP_CAPTURE) |
| 270 | #define GPSR6_18 FM(AVB2_AVTP_MATCH) |
| 271 | #define GPSR6_17 FM(AVB2_LINK) |
| 272 | #define GPSR6_16 FM(AVB2_PHY_INT) |
| 273 | #define GPSR6_15 FM(AVB2_MAGIC) |
| 274 | #define GPSR6_14 FM(AVB2_MDC) |
| 275 | #define GPSR6_13 FM(AVB2_MDIO) |
| 276 | #define GPSR6_12 FM(AVB2_TXCREFCLK) |
| 277 | #define GPSR6_11 FM(AVB2_TD3) |
| 278 | #define GPSR6_10 FM(AVB2_TD2) |
| 279 | #define GPSR6_9 FM(AVB2_TD1) |
| 280 | #define GPSR6_8 FM(AVB2_TD0) |
| 281 | #define GPSR6_7 FM(AVB2_TXC) |
| 282 | #define GPSR6_6 FM(AVB2_TX_CTL) |
| 283 | #define GPSR6_5 FM(AVB2_RD3) |
| 284 | #define GPSR6_4 FM(AVB2_RD2) |
| 285 | #define GPSR6_3 FM(AVB2_RD1) |
| 286 | #define GPSR6_2 FM(AVB2_RD0) |
| 287 | #define GPSR6_1 FM(AVB2_RXC) |
| 288 | #define GPSR6_0 FM(AVB2_RX_CTL) |
| 289 | |
| 290 | /* GPSR7 */ |
| 291 | #define GPSR7_20 FM(AVB3_AVTP_PPS) |
| 292 | #define GPSR7_19 FM(AVB3_AVTP_CAPTURE) |
| 293 | #define GPSR7_18 FM(AVB3_AVTP_MATCH) |
| 294 | #define GPSR7_17 FM(AVB3_LINK) |
| 295 | #define GPSR7_16 FM(AVB3_PHY_INT) |
| 296 | #define GPSR7_15 FM(AVB3_MAGIC) |
| 297 | #define GPSR7_14 FM(AVB3_MDC) |
| 298 | #define GPSR7_13 FM(AVB3_MDIO) |
| 299 | #define GPSR7_12 FM(AVB3_TXCREFCLK) |
| 300 | #define GPSR7_11 FM(AVB3_TD3) |
| 301 | #define GPSR7_10 FM(AVB3_TD2) |
| 302 | #define GPSR7_9 FM(AVB3_TD1) |
| 303 | #define GPSR7_8 FM(AVB3_TD0) |
| 304 | #define GPSR7_7 FM(AVB3_TXC) |
| 305 | #define GPSR7_6 FM(AVB3_TX_CTL) |
| 306 | #define GPSR7_5 FM(AVB3_RD3) |
| 307 | #define GPSR7_4 FM(AVB3_RD2) |
| 308 | #define GPSR7_3 FM(AVB3_RD1) |
| 309 | #define GPSR7_2 FM(AVB3_RD0) |
| 310 | #define GPSR7_1 FM(AVB3_RXC) |
| 311 | #define GPSR7_0 FM(AVB3_RX_CTL) |
| 312 | |
| 313 | /* GPSR8 */ |
| 314 | #define GPSR8_20 FM(AVB4_AVTP_PPS) |
| 315 | #define GPSR8_19 FM(AVB4_AVTP_CAPTURE) |
| 316 | #define GPSR8_18 FM(AVB4_AVTP_MATCH) |
| 317 | #define GPSR8_17 FM(AVB4_LINK) |
| 318 | #define GPSR8_16 FM(AVB4_PHY_INT) |
| 319 | #define GPSR8_15 FM(AVB4_MAGIC) |
| 320 | #define GPSR8_14 FM(AVB4_MDC) |
| 321 | #define GPSR8_13 FM(AVB4_MDIO) |
| 322 | #define GPSR8_12 FM(AVB4_TXCREFCLK) |
| 323 | #define GPSR8_11 FM(AVB4_TD3) |
| 324 | #define GPSR8_10 FM(AVB4_TD2) |
| 325 | #define GPSR8_9 FM(AVB4_TD1) |
| 326 | #define GPSR8_8 FM(AVB4_TD0) |
| 327 | #define GPSR8_7 FM(AVB4_TXC) |
| 328 | #define GPSR8_6 FM(AVB4_TX_CTL) |
| 329 | #define GPSR8_5 FM(AVB4_RD3) |
| 330 | #define GPSR8_4 FM(AVB4_RD2) |
| 331 | #define GPSR8_3 FM(AVB4_RD1) |
| 332 | #define GPSR8_2 FM(AVB4_RD0) |
| 333 | #define GPSR8_1 FM(AVB4_RXC) |
| 334 | #define GPSR8_0 FM(AVB4_RX_CTL) |
| 335 | |
| 336 | /* GPSR9 */ |
| 337 | #define GPSR9_20 FM(AVB5_AVTP_PPS) |
| 338 | #define GPSR9_19 FM(AVB5_AVTP_CAPTURE) |
| 339 | #define GPSR9_18 FM(AVB5_AVTP_MATCH) |
| 340 | #define GPSR9_17 FM(AVB5_LINK) |
| 341 | #define GPSR9_16 FM(AVB5_PHY_INT) |
| 342 | #define GPSR9_15 FM(AVB5_MAGIC) |
| 343 | #define GPSR9_14 FM(AVB5_MDC) |
| 344 | #define GPSR9_13 FM(AVB5_MDIO) |
| 345 | #define GPSR9_12 FM(AVB5_TXCREFCLK) |
| 346 | #define GPSR9_11 FM(AVB5_TD3) |
| 347 | #define GPSR9_10 FM(AVB5_TD2) |
| 348 | #define GPSR9_9 FM(AVB5_TD1) |
| 349 | #define GPSR9_8 FM(AVB5_TD0) |
| 350 | #define GPSR9_7 FM(AVB5_TXC) |
| 351 | #define GPSR9_6 FM(AVB5_TX_CTL) |
| 352 | #define GPSR9_5 FM(AVB5_RD3) |
| 353 | #define GPSR9_4 FM(AVB5_RD2) |
| 354 | #define GPSR9_3 FM(AVB5_RD1) |
| 355 | #define GPSR9_2 FM(AVB5_RD0) |
| 356 | #define GPSR9_1 FM(AVB5_RXC) |
| 357 | #define GPSR9_0 FM(AVB5_RX_CTL) |
| 358 | |
| 359 | /* IP0SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 360 | #define IP0SR1_3_0 FM(SCIF_CLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(A0) F_(0, 0) F_(0, 0) 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 IP0SR1_7_4 FM(HRX0) FM(RX0) F_(0, 0) F_(0, 0) F_(0, 0) FM(A1) F_(0, 0) F_(0, 0) 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 IP0SR1_11_8 FM(HSCK0) FM(SCK0) F_(0, 0) F_(0, 0) F_(0, 0) FM(A2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 363 | #define IP0SR1_15_12 FM(HRTS0_N) FM(RTS0_N) F_(0, 0) F_(0, 0) F_(0, 0) FM(A3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 364 | #define IP0SR1_19_16 FM(HCTS0_N) FM(CTS0_N) F_(0, 0) F_(0, 0) F_(0, 0) FM(A4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 365 | #define IP0SR1_23_20 FM(HTX0) FM(TX0) F_(0, 0) F_(0, 0) F_(0, 0) FM(A5) F_(0, 0) F_(0, 0) 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 IP0SR1_27_24 FM(MSIOF0_RXD) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR2) FM(A6) F_(0, 0) F_(0, 0) 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 IP0SR1_31_28 FM(MSIOF0_TXD) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR3) FM(A7) F_(0, 0) F_(0, 0) 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 | /* IP1SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 369 | #define IP1SR1_3_0 FM(MSIOF0_SCK) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR4) FM(A8) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 370 | #define IP1SR1_7_4 FM(MSIOF0_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR5) FM(A9) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 371 | #define IP1SR1_11_8 FM(MSIOF0_SS1) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR6) FM(A10) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 372 | #define IP1SR1_15_12 FM(MSIOF0_SS2) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR7) FM(A11) F_(0, 0) F_(0, 0) 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 IP1SR1_19_16 FM(MSIOF1_RXD) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DG2) FM(A12) F_(0, 0) F_(0, 0) 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 IP1SR1_23_20 FM(MSIOF1_TXD) FM(HRX3) FM(SCK3) F_(0, 0) FM(DU_DG3) FM(A13) F_(0, 0) F_(0, 0) 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 IP1SR1_27_24 FM(MSIOF1_SCK) FM(HSCK3) FM(CTS3_N) F_(0, 0) FM(DU_DG4) FM(A14) F_(0, 0) F_(0, 0) 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 IP1SR1_31_28 FM(MSIOF1_SYNC) FM(HRTS3_N) FM(RTS3_N) F_(0, 0) FM(DU_DG5) FM(A15) F_(0, 0) F_(0, 0) 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 | /* IP2SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 378 | #define IP2SR1_3_0 FM(MSIOF1_SS1) FM(HCTS3_N) FM(RX3) F_(0, 0) FM(DU_DG6) FM(A16) F_(0, 0) F_(0, 0) 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 IP2SR1_7_4 FM(MSIOF1_SS2) FM(HTX3) FM(TX3) F_(0, 0) FM(DU_DG7) FM(A17) F_(0, 0) F_(0, 0) 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 | #define IP2SR1_11_8 FM(MSIOF2_RXD) FM(HSCK1) FM(SCK1) F_(0, 0) FM(DU_DB2) FM(A18) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 381 | #define IP2SR1_15_12 FM(MSIOF2_TXD) FM(HCTS1_N) FM(CTS1_N) F_(0, 0) FM(DU_DB3) FM(A19) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 382 | #define IP2SR1_19_16 FM(MSIOF2_SCK) FM(HRTS1_N) FM(RTS1_N) F_(0, 0) FM(DU_DB4) FM(A20) F_(0, 0) F_(0, 0) 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 IP2SR1_23_20 FM(MSIOF2_SYNC) FM(HRX1) FM(RX1_A) F_(0, 0) FM(DU_DB5) FM(A21) F_(0, 0) F_(0, 0) 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 IP2SR1_27_24 FM(MSIOF2_SS1) FM(HTX1) FM(TX1_A) F_(0, 0) FM(DU_DB6) FM(A22) F_(0, 0) F_(0, 0) 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 IP2SR1_31_28 FM(MSIOF2_SS2) FM(TCLK1_B) F_(0, 0) F_(0, 0) FM(DU_DB7) FM(A23) F_(0, 0) F_(0, 0) 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 | |
| 387 | /* IP3SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 388 | #define IP3SR1_3_0 FM(IRQ0) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DOTCLKOUT) FM(A24) F_(0, 0) F_(0, 0) 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 IP3SR1_7_4 FM(IRQ1) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_HSYNC) FM(A25) F_(0, 0) F_(0, 0) 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 | #define IP3SR1_11_8 FM(IRQ2) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_VSYNC) FM(CS1_N_A26) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 391 | #define IP3SR1_15_12 FM(IRQ3) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_ODDF_DISP_CDE) FM(CS0_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) |
| 392 | #define IP3SR1_19_16 FM(GP1_28) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(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) |
| 393 | #define IP3SR1_23_20 FM(GP1_29) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(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) |
| 394 | #define IP3SR1_27_24 FM(GP1_30) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(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) |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 395 | |
| 396 | /* IP0SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 397 | #define IP0SR2_3_0 FM(IPC_CLKIN) FM(IPC_CLKEN_IN) F_(0, 0) F_(0, 0) FM(DU_DOTCLKIN) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR2_7_4 FM(IPC_CLKOUT) FM(IPC_CLKEN_OUT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR2_11_8 FM(GP2_02) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(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) |
| 400 | #define IP0SR2_15_12 FM(GP2_03) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(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) |
| 401 | #define IP0SR2_19_16 FM(GP2_04) F_(0, 0) FM(MSIOF4_RXD) F_(0, 0) F_(0, 0) FM(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) |
| 402 | #define IP0SR2_23_20 FM(GP2_05) FM(HSCK2) FM(MSIOF4_TXD) FM(SCK4) F_(0, 0) FM(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) |
| 403 | #define IP0SR2_27_24 FM(GP2_06) FM(HCTS2_N) FM(MSIOF4_SCK) FM(CTS4_N) F_(0, 0) FM(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) |
| 404 | #define IP0SR2_31_28 FM(GP2_07) FM(HRTS2_N) FM(MSIOF4_SYNC) FM(RTS4_N) F_(0, 0) FM(D8) F_(0, 0) F_(0, 0) 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 | /* IP1SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 406 | #define IP1SR2_3_0 FM(GP2_08) FM(HRX2) FM(MSIOF4_SS1) FM(RX4) F_(0, 0) FM(D9) F_(0, 0) F_(0, 0) 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 IP1SR2_7_4 FM(GP2_09) FM(HTX2) FM(MSIOF4_SS2) FM(TX4) F_(0, 0) FM(D10) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 408 | #define IP1SR2_11_8 FM(GP2_10) FM(TCLK2_B) FM(MSIOF5_RXD) F_(0, 0) F_(0, 0) FM(D11) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 409 | #define IP1SR2_15_12 FM(GP2_11) FM(TCLK3) FM(MSIOF5_TXD) F_(0, 0) F_(0, 0) FM(D12) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 410 | #define IP1SR2_19_16 FM(GP2_12) FM(TCLK4) FM(MSIOF5_SCK) F_(0, 0) F_(0, 0) FM(D13) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 411 | #define IP1SR2_23_20 FM(GP2_13) F_(0, 0) FM(MSIOF5_SYNC) F_(0, 0) F_(0, 0) FM(D14) F_(0, 0) F_(0, 0) 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 IP1SR2_27_24 FM(GP2_14) FM(IRQ4) FM(MSIOF5_SS1) F_(0, 0) F_(0, 0) FM(D15) F_(0, 0) F_(0, 0) 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 IP1SR2_31_28 FM(GP2_15) FM(IRQ5) FM(MSIOF5_SS2) FM(CPG_CPCKOUT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 | /* IP2SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 415 | #define IP2SR2_3_0 FM(FXR_TXDA_A) 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) |
| 416 | #define IP2SR2_7_4 FM(RXDA_EXTFXR_A) FM(MSIOF3_SS2) F_(0, 0) F_(0, 0) F_(0, 0) FM(BS_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) |
| 417 | #define IP2SR2_11_8 FM(FXR_TXDB) FM(MSIOF3_RXD) F_(0, 0) F_(0, 0) F_(0, 0) FM(RD_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) |
| 418 | #define IP2SR2_15_12 FM(RXDB_EXTFXR) FM(MSIOF3_TXD) F_(0, 0) F_(0, 0) F_(0, 0) FM(WE0_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) |
| 419 | #define IP2SR2_19_16 FM(CLK_EXTFXR) FM(MSIOF3_SCK) F_(0, 0) F_(0, 0) F_(0, 0) FM(WE1_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) |
| 420 | #define IP2SR2_23_20 FM(TPU0TO0) FM(MSIOF3_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) FM(RD_WR_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) |
| 421 | #define IP2SR2_27_24 FM(TPU0TO1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(CLKOUT) F_(0, 0) F_(0, 0) 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 IP2SR2_31_28 FM(TCLK1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(EX_WAIT0) F_(0, 0) F_(0, 0) 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 | |
| 424 | /* IP0SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 425 | #define IP0SR3_7_4 FM(CANFD0_TX) FM(FXR_TXDA_B) FM(TX1_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) |
| 426 | #define IP0SR3_11_8 FM(CANFD0_RX) FM(RXDA_EXTFXR_B) FM(RX1_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) |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 427 | #define IP0SR3_23_20 FM(CANFD2_TX) FM(TPU0TO2) FM(PWM0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR3_27_24 FM(CANFD2_RX) FM(TPU0TO3) FM(PWM1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 | #define IP0SR3_31_28 FM(CANFD3_TX) F_(0, 0) FM(PWM2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 430 | /* IP1SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 431 | #define IP1SR3_3_0 FM(CANFD3_RX) F_(0, 0) FM(PWM3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR3_7_4 FM(CANFD4_TX) F_(0, 0) FM(PWM4) FM(FXR_CLKOUT1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) |
| 433 | #define IP1SR3_11_8 FM(CANFD4_RX) F_(0, 0) F_(0, 0) FM(FXR_CLKOUT2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR3_15_12 FM(CANFD5_TX) F_(0, 0) F_(0, 0) FM(FXR_TXENA_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) |
| 435 | #define IP1SR3_19_16 FM(CANFD5_RX) F_(0, 0) F_(0, 0) 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) |
| 436 | #define IP1SR3_23_20 FM(CANFD6_TX) F_(0, 0) F_(0, 0) 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) |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 437 | |
| 438 | /* IP0SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 439 | #define IP0SR4_3_0 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) |
| 440 | #define IP0SR4_7_4 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) |
| 441 | #define IP0SR4_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) |
| 442 | #define IP0SR4_15_12 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) |
| 443 | #define IP0SR4_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) |
| 444 | #define IP0SR4_23_20 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) |
| 445 | #define IP0SR4_27_24 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) |
| 446 | #define IP0SR4_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) |
| 447 | /* IP1SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 448 | #define IP1SR4_3_0 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) |
| 449 | #define IP1SR4_7_4 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) |
| 450 | #define IP1SR4_11_8 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) |
| 451 | #define IP1SR4_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) |
| 452 | #define IP1SR4_19_16 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) |
| 453 | #define IP1SR4_23_20 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) |
| 454 | #define IP1SR4_27_24 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) |
| 455 | #define IP1SR4_31_28 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) |
| 456 | /* IP2SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 457 | #define IP2SR4_7_4 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) |
| 458 | #define IP2SR4_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) |
| 459 | #define IP2SR4_15_12 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) |
| 460 | #define IP2SR4_19_16 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) |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 461 | |
| 462 | /* IP0SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 463 | #define IP0SR5_3_0 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) |
| 464 | #define IP0SR5_7_4 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) |
| 465 | #define IP0SR5_11_8 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) |
| 466 | #define IP0SR5_15_12 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) |
| 467 | #define IP0SR5_19_16 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) |
| 468 | #define IP0SR5_23_20 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) |
| 469 | #define IP0SR5_27_24 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) |
| 470 | #define IP0SR5_31_28 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) |
| 471 | /* IP1SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
| 472 | #define IP1SR5_3_0 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) |
| 473 | #define IP1SR5_7_4 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) |
| 474 | #define IP1SR5_11_8 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) |
| 475 | #define IP1SR5_15_12 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) |
| 476 | #define IP1SR5_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) |
| 477 | #define IP1SR5_23_20 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) |
| 478 | #define IP1SR5_27_24 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) |
| 479 | #define IP1SR5_31_28 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) |
| 480 | /* IP2SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 481 | #define IP2SR5_7_4 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) |
| 482 | #define IP2SR5_11_8 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) |
| 483 | #define IP2SR5_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) |
| 484 | #define IP2SR5_19_16 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) |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 485 | |
| 486 | #define PINMUX_GPSR \ |
| 487 | \ |
| 488 | GPSR1_30 \ |
| 489 | GPSR1_29 \ |
| 490 | GPSR1_28 \ |
| 491 | GPSR0_27 GPSR1_27 \ |
| 492 | GPSR0_26 GPSR1_26 GPSR4_26 \ |
| 493 | GPSR0_25 GPSR1_25 GPSR4_25 \ |
| 494 | GPSR0_24 GPSR1_24 GPSR2_24 GPSR4_24 \ |
| 495 | GPSR0_23 GPSR1_23 GPSR2_23 GPSR4_23 \ |
| 496 | GPSR0_22 GPSR1_22 GPSR2_22 GPSR4_22 \ |
| 497 | GPSR0_21 GPSR1_21 GPSR2_21 GPSR4_21 \ |
| 498 | GPSR0_20 GPSR1_20 GPSR2_20 GPSR4_20 GPSR5_20 GPSR6_20 GPSR7_20 GPSR8_20 GPSR9_20 \ |
| 499 | GPSR0_19 GPSR1_19 GPSR2_19 GPSR4_19 GPSR5_19 GPSR6_19 GPSR7_19 GPSR8_19 GPSR9_19 \ |
| 500 | GPSR0_18 GPSR1_18 GPSR2_18 GPSR4_18 GPSR5_18 GPSR6_18 GPSR7_18 GPSR8_18 GPSR9_18 \ |
| 501 | GPSR0_17 GPSR1_17 GPSR2_17 GPSR4_17 GPSR5_17 GPSR6_17 GPSR7_17 GPSR8_17 GPSR9_17 \ |
| 502 | GPSR0_16 GPSR1_16 GPSR2_16 GPSR3_16 GPSR4_16 GPSR5_16 GPSR6_16 GPSR7_16 GPSR8_16 GPSR9_16 \ |
| 503 | GPSR0_15 GPSR1_15 GPSR2_15 GPSR3_15 GPSR4_15 GPSR5_15 GPSR6_15 GPSR7_15 GPSR8_15 GPSR9_15 \ |
| 504 | GPSR0_14 GPSR1_14 GPSR2_14 GPSR3_14 GPSR4_14 GPSR5_14 GPSR6_14 GPSR7_14 GPSR8_14 GPSR9_14 \ |
| 505 | GPSR0_13 GPSR1_13 GPSR2_13 GPSR3_13 GPSR4_13 GPSR5_13 GPSR6_13 GPSR7_13 GPSR8_13 GPSR9_13 \ |
| 506 | GPSR0_12 GPSR1_12 GPSR2_12 GPSR3_12 GPSR4_12 GPSR5_12 GPSR6_12 GPSR7_12 GPSR8_12 GPSR9_12 \ |
| 507 | GPSR0_11 GPSR1_11 GPSR2_11 GPSR3_11 GPSR4_11 GPSR5_11 GPSR6_11 GPSR7_11 GPSR8_11 GPSR9_11 \ |
| 508 | GPSR0_10 GPSR1_10 GPSR2_10 GPSR3_10 GPSR4_10 GPSR5_10 GPSR6_10 GPSR7_10 GPSR8_10 GPSR9_10 \ |
| 509 | GPSR0_9 GPSR1_9 GPSR2_9 GPSR3_9 GPSR4_9 GPSR5_9 GPSR6_9 GPSR7_9 GPSR8_9 GPSR9_9 \ |
| 510 | GPSR0_8 GPSR1_8 GPSR2_8 GPSR3_8 GPSR4_8 GPSR5_8 GPSR6_8 GPSR7_8 GPSR8_8 GPSR9_8 \ |
| 511 | GPSR0_7 GPSR1_7 GPSR2_7 GPSR3_7 GPSR4_7 GPSR5_7 GPSR6_7 GPSR7_7 GPSR8_7 GPSR9_7 \ |
| 512 | GPSR0_6 GPSR1_6 GPSR2_6 GPSR3_6 GPSR4_6 GPSR5_6 GPSR6_6 GPSR7_6 GPSR8_6 GPSR9_6 \ |
| 513 | GPSR0_5 GPSR1_5 GPSR2_5 GPSR3_5 GPSR4_5 GPSR5_5 GPSR6_5 GPSR7_5 GPSR8_5 GPSR9_5 \ |
| 514 | GPSR0_4 GPSR1_4 GPSR2_4 GPSR3_4 GPSR4_4 GPSR5_4 GPSR6_4 GPSR7_4 GPSR8_4 GPSR9_4 \ |
| 515 | GPSR0_3 GPSR1_3 GPSR2_3 GPSR3_3 GPSR4_3 GPSR5_3 GPSR6_3 GPSR7_3 GPSR8_3 GPSR9_3 \ |
| 516 | GPSR0_2 GPSR1_2 GPSR2_2 GPSR3_2 GPSR4_2 GPSR5_2 GPSR6_2 GPSR7_2 GPSR8_2 GPSR9_2 \ |
| 517 | GPSR0_1 GPSR1_1 GPSR2_1 GPSR3_1 GPSR4_1 GPSR5_1 GPSR6_1 GPSR7_1 GPSR8_1 GPSR9_1 \ |
| 518 | GPSR0_0 GPSR1_0 GPSR2_0 GPSR3_0 GPSR4_0 GPSR5_0 GPSR6_0 GPSR7_0 GPSR8_0 GPSR9_0 |
| 519 | |
| 520 | #define PINMUX_IPSR \ |
| 521 | \ |
| 522 | FM(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 \ |
| 523 | FM(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 \ |
| 524 | FM(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 \ |
| 525 | FM(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 \ |
| 526 | FM(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 \ |
| 527 | FM(IP0SR1_23_20) IP0SR1_23_20 FM(IP1SR1_23_20) IP1SR1_23_20 FM(IP2SR1_23_20) IP2SR1_23_20 FM(IP3SR1_23_20) IP3SR1_23_20 \ |
| 528 | FM(IP0SR1_27_24) IP0SR1_27_24 FM(IP1SR1_27_24) IP1SR1_27_24 FM(IP2SR1_27_24) IP2SR1_27_24 FM(IP3SR1_27_24) IP3SR1_27_24 \ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 529 | FM(IP0SR1_31_28) IP0SR1_31_28 FM(IP1SR1_31_28) IP1SR1_31_28 FM(IP2SR1_31_28) IP2SR1_31_28 \ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 530 | \ |
| 531 | FM(IP0SR2_3_0) IP0SR2_3_0 FM(IP1SR2_3_0) IP1SR2_3_0 FM(IP2SR2_3_0) IP2SR2_3_0 \ |
| 532 | FM(IP0SR2_7_4) IP0SR2_7_4 FM(IP1SR2_7_4) IP1SR2_7_4 FM(IP2SR2_7_4) IP2SR2_7_4 \ |
| 533 | FM(IP0SR2_11_8) IP0SR2_11_8 FM(IP1SR2_11_8) IP1SR2_11_8 FM(IP2SR2_11_8) IP2SR2_11_8 \ |
| 534 | FM(IP0SR2_15_12) IP0SR2_15_12 FM(IP1SR2_15_12) IP1SR2_15_12 FM(IP2SR2_15_12) IP2SR2_15_12 \ |
| 535 | FM(IP0SR2_19_16) IP0SR2_19_16 FM(IP1SR2_19_16) IP1SR2_19_16 FM(IP2SR2_19_16) IP2SR2_19_16 \ |
| 536 | FM(IP0SR2_23_20) IP0SR2_23_20 FM(IP1SR2_23_20) IP1SR2_23_20 FM(IP2SR2_23_20) IP2SR2_23_20 \ |
| 537 | FM(IP0SR2_27_24) IP0SR2_27_24 FM(IP1SR2_27_24) IP1SR2_27_24 FM(IP2SR2_27_24) IP2SR2_27_24 \ |
| 538 | FM(IP0SR2_31_28) IP0SR2_31_28 FM(IP1SR2_31_28) IP1SR2_31_28 FM(IP2SR2_31_28) IP2SR2_31_28 \ |
| 539 | \ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 540 | FM(IP1SR3_3_0) IP1SR3_3_0 \ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 541 | FM(IP0SR3_7_4) IP0SR3_7_4 FM(IP1SR3_7_4) IP1SR3_7_4 \ |
| 542 | FM(IP0SR3_11_8) IP0SR3_11_8 FM(IP1SR3_11_8) IP1SR3_11_8 \ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 543 | FM(IP1SR3_15_12) IP1SR3_15_12 \ |
| 544 | FM(IP1SR3_19_16) IP1SR3_19_16 \ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 545 | FM(IP0SR3_23_20) IP0SR3_23_20 FM(IP1SR3_23_20) IP1SR3_23_20 \ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 546 | FM(IP0SR3_27_24) IP0SR3_27_24 \ |
| 547 | FM(IP0SR3_31_28) IP0SR3_31_28 \ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 548 | \ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 549 | FM(IP0SR4_3_0) IP0SR4_3_0 FM(IP1SR4_3_0) IP1SR4_3_0 \ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 550 | FM(IP0SR4_7_4) IP0SR4_7_4 FM(IP1SR4_7_4) IP1SR4_7_4 FM(IP2SR4_7_4) IP2SR4_7_4 \ |
| 551 | FM(IP0SR4_11_8) IP0SR4_11_8 FM(IP1SR4_11_8) IP1SR4_11_8 FM(IP2SR4_11_8) IP2SR4_11_8 \ |
| 552 | FM(IP0SR4_15_12) IP0SR4_15_12 FM(IP1SR4_15_12) IP1SR4_15_12 FM(IP2SR4_15_12) IP2SR4_15_12 \ |
| 553 | FM(IP0SR4_19_16) IP0SR4_19_16 FM(IP1SR4_19_16) IP1SR4_19_16 FM(IP2SR4_19_16) IP2SR4_19_16 \ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 554 | FM(IP0SR4_23_20) IP0SR4_23_20 FM(IP1SR4_23_20) IP1SR4_23_20 \ |
| 555 | FM(IP0SR4_27_24) IP0SR4_27_24 FM(IP1SR4_27_24) IP1SR4_27_24 \ |
| 556 | FM(IP0SR4_31_28) IP0SR4_31_28 FM(IP1SR4_31_28) IP1SR4_31_28 \ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 557 | \ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 558 | FM(IP0SR5_3_0) IP0SR5_3_0 FM(IP1SR5_3_0) IP1SR5_3_0 \ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 559 | FM(IP0SR5_7_4) IP0SR5_7_4 FM(IP1SR5_7_4) IP1SR5_7_4 FM(IP2SR5_7_4) IP2SR5_7_4 \ |
| 560 | FM(IP0SR5_11_8) IP0SR5_11_8 FM(IP1SR5_11_8) IP1SR5_11_8 FM(IP2SR5_11_8) IP2SR5_11_8 \ |
| 561 | FM(IP0SR5_15_12) IP0SR5_15_12 FM(IP1SR5_15_12) IP1SR5_15_12 FM(IP2SR5_15_12) IP2SR5_15_12 \ |
| 562 | FM(IP0SR5_19_16) IP0SR5_19_16 FM(IP1SR5_19_16) IP1SR5_19_16 FM(IP2SR5_19_16) IP2SR5_19_16 \ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 563 | FM(IP0SR5_23_20) IP0SR5_23_20 FM(IP1SR5_23_20) IP1SR5_23_20 \ |
| 564 | FM(IP0SR5_27_24) IP0SR5_27_24 FM(IP1SR5_27_24) IP1SR5_27_24 \ |
| 565 | FM(IP0SR5_31_28) IP0SR5_31_28 FM(IP1SR5_31_28) IP1SR5_31_28 |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 566 | |
| 567 | /* MOD_SEL2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 568 | #define MOD_SEL2_15_14 FM(SEL_I2C6_0) F_(0, 0) F_(0, 0) FM(SEL_I2C6_3) |
| 569 | #define MOD_SEL2_13_12 FM(SEL_I2C5_0) F_(0, 0) F_(0, 0) FM(SEL_I2C5_3) |
| 570 | #define MOD_SEL2_11_10 FM(SEL_I2C4_0) F_(0, 0) F_(0, 0) FM(SEL_I2C4_3) |
| 571 | #define MOD_SEL2_9_8 FM(SEL_I2C3_0) F_(0, 0) F_(0, 0) FM(SEL_I2C3_3) |
| 572 | #define MOD_SEL2_7_6 FM(SEL_I2C2_0) F_(0, 0) F_(0, 0) FM(SEL_I2C2_3) |
| 573 | #define MOD_SEL2_5_4 FM(SEL_I2C1_0) F_(0, 0) F_(0, 0) FM(SEL_I2C1_3) |
| 574 | #define MOD_SEL2_3_2 FM(SEL_I2C0_0) F_(0, 0) F_(0, 0) FM(SEL_I2C0_3) |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 575 | |
| 576 | #define PINMUX_MOD_SELS \ |
| 577 | \ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 578 | MOD_SEL2_15_14 \ |
| 579 | MOD_SEL2_13_12 \ |
| 580 | MOD_SEL2_11_10 \ |
| 581 | MOD_SEL2_9_8 \ |
| 582 | MOD_SEL2_7_6 \ |
| 583 | MOD_SEL2_5_4 \ |
| 584 | MOD_SEL2_3_2 |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 585 | |
| 586 | #define PINMUX_PHYS \ |
| 587 | FM(SCL0) FM(SDA0) FM(SCL1) FM(SDA1) FM(SCL2) FM(SDA2) FM(SCL3) FM(SDA3) \ |
| 588 | FM(SCL4) FM(SDA4) FM(SCL5) FM(SDA5) FM(SCL6) FM(SDA6) |
| 589 | |
| 590 | enum { |
| 591 | PINMUX_RESERVED = 0, |
| 592 | |
| 593 | PINMUX_DATA_BEGIN, |
| 594 | GP_ALL(DATA), |
| 595 | PINMUX_DATA_END, |
| 596 | |
| 597 | #define F_(x, y) |
| 598 | #define FM(x) FN_##x, |
| 599 | PINMUX_FUNCTION_BEGIN, |
| 600 | GP_ALL(FN), |
| 601 | PINMUX_GPSR |
| 602 | PINMUX_IPSR |
| 603 | PINMUX_MOD_SELS |
| 604 | PINMUX_FUNCTION_END, |
| 605 | #undef F_ |
| 606 | #undef FM |
| 607 | |
| 608 | #define F_(x, y) |
| 609 | #define FM(x) x##_MARK, |
| 610 | PINMUX_MARK_BEGIN, |
| 611 | PINMUX_GPSR |
| 612 | PINMUX_IPSR |
| 613 | PINMUX_MOD_SELS |
| 614 | PINMUX_PHYS |
| 615 | PINMUX_MARK_END, |
| 616 | #undef F_ |
| 617 | #undef FM |
| 618 | }; |
| 619 | |
| 620 | static const u16 pinmux_data[] = { |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 621 | /* Using GP_2_[2-15] requires disabling I2C in MOD_SEL2 */ |
| 622 | #define GP_2_2_FN GP_2_2_FN, FN_SEL_I2C0_0 |
| 623 | #define GP_2_3_FN GP_2_3_FN, FN_SEL_I2C0_0 |
| 624 | #define GP_2_4_FN GP_2_4_FN, FN_SEL_I2C1_0 |
| 625 | #define GP_2_5_FN GP_2_5_FN, FN_SEL_I2C1_0 |
| 626 | #define GP_2_6_FN GP_2_6_FN, FN_SEL_I2C2_0 |
| 627 | #define GP_2_7_FN GP_2_7_FN, FN_SEL_I2C2_0 |
| 628 | #define GP_2_8_FN GP_2_8_FN, FN_SEL_I2C3_0 |
| 629 | #define GP_2_9_FN GP_2_9_FN, FN_SEL_I2C3_0 |
| 630 | #define GP_2_10_FN GP_2_10_FN, FN_SEL_I2C4_0 |
| 631 | #define GP_2_11_FN GP_2_11_FN, FN_SEL_I2C4_0 |
| 632 | #define GP_2_12_FN GP_2_12_FN, FN_SEL_I2C5_0 |
| 633 | #define GP_2_13_FN GP_2_13_FN, FN_SEL_I2C5_0 |
| 634 | #define GP_2_14_FN GP_2_14_FN, FN_SEL_I2C6_0 |
| 635 | #define GP_2_15_FN GP_2_15_FN, FN_SEL_I2C6_0 |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 636 | PINMUX_DATA_GP_ALL(), |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 637 | #undef GP_2_2_FN |
| 638 | #undef GP_2_3_FN |
| 639 | #undef GP_2_4_FN |
| 640 | #undef GP_2_5_FN |
| 641 | #undef GP_2_6_FN |
| 642 | #undef GP_2_7_FN |
| 643 | #undef GP_2_8_FN |
| 644 | #undef GP_2_9_FN |
| 645 | #undef GP_2_10_FN |
| 646 | #undef GP_2_11_FN |
| 647 | #undef GP_2_12_FN |
| 648 | #undef GP_2_13_FN |
| 649 | #undef GP_2_14_FN |
| 650 | #undef GP_2_15_FN |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 651 | |
| 652 | PINMUX_SINGLE(MMC_D7), |
| 653 | PINMUX_SINGLE(MMC_D6), |
| 654 | PINMUX_SINGLE(MMC_D5), |
| 655 | PINMUX_SINGLE(MMC_D4), |
| 656 | PINMUX_SINGLE(MMC_SD_CLK), |
| 657 | PINMUX_SINGLE(MMC_SD_D3), |
| 658 | PINMUX_SINGLE(MMC_SD_D2), |
| 659 | PINMUX_SINGLE(MMC_SD_D1), |
| 660 | PINMUX_SINGLE(MMC_SD_D0), |
| 661 | PINMUX_SINGLE(MMC_SD_CMD), |
| 662 | PINMUX_SINGLE(MMC_DS), |
| 663 | |
| 664 | PINMUX_SINGLE(SD_CD), |
| 665 | PINMUX_SINGLE(SD_WP), |
| 666 | |
| 667 | PINMUX_SINGLE(RPC_INT_N), |
| 668 | PINMUX_SINGLE(RPC_WP_N), |
| 669 | PINMUX_SINGLE(RPC_RESET_N), |
| 670 | |
| 671 | PINMUX_SINGLE(QSPI1_SSL), |
| 672 | PINMUX_SINGLE(QSPI1_IO3), |
| 673 | PINMUX_SINGLE(QSPI1_IO2), |
| 674 | PINMUX_SINGLE(QSPI1_MISO_IO1), |
| 675 | PINMUX_SINGLE(QSPI1_MOSI_IO0), |
| 676 | PINMUX_SINGLE(QSPI1_SPCLK), |
| 677 | PINMUX_SINGLE(QSPI0_SSL), |
| 678 | PINMUX_SINGLE(QSPI0_IO3), |
| 679 | PINMUX_SINGLE(QSPI0_IO2), |
| 680 | PINMUX_SINGLE(QSPI0_MISO_IO1), |
| 681 | PINMUX_SINGLE(QSPI0_MOSI_IO0), |
| 682 | PINMUX_SINGLE(QSPI0_SPCLK), |
| 683 | |
| 684 | PINMUX_SINGLE(TCLK2_A), |
| 685 | |
| 686 | PINMUX_SINGLE(CANFD7_RX), |
| 687 | PINMUX_SINGLE(CANFD7_TX), |
| 688 | PINMUX_SINGLE(CANFD6_RX), |
| 689 | PINMUX_SINGLE(CANFD1_RX), |
| 690 | PINMUX_SINGLE(CANFD1_TX), |
| 691 | PINMUX_SINGLE(CAN_CLK), |
| 692 | |
| 693 | PINMUX_SINGLE(AVS1), |
| 694 | PINMUX_SINGLE(AVS0), |
| 695 | |
| 696 | PINMUX_SINGLE(PCIE3_CLKREQ_N), |
| 697 | PINMUX_SINGLE(PCIE2_CLKREQ_N), |
| 698 | PINMUX_SINGLE(PCIE1_CLKREQ_N), |
| 699 | PINMUX_SINGLE(PCIE0_CLKREQ_N), |
| 700 | |
| 701 | PINMUX_SINGLE(AVB0_PHY_INT), |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 702 | |
| 703 | PINMUX_SINGLE(AVB1_PHY_INT), |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 704 | |
| 705 | PINMUX_SINGLE(AVB2_AVTP_PPS), |
| 706 | PINMUX_SINGLE(AVB2_AVTP_CAPTURE), |
| 707 | PINMUX_SINGLE(AVB2_AVTP_MATCH), |
| 708 | PINMUX_SINGLE(AVB2_LINK), |
| 709 | PINMUX_SINGLE(AVB2_PHY_INT), |
| 710 | PINMUX_SINGLE(AVB2_MAGIC), |
| 711 | PINMUX_SINGLE(AVB2_MDC), |
| 712 | PINMUX_SINGLE(AVB2_MDIO), |
| 713 | PINMUX_SINGLE(AVB2_TXCREFCLK), |
| 714 | PINMUX_SINGLE(AVB2_TD3), |
| 715 | PINMUX_SINGLE(AVB2_TD2), |
| 716 | PINMUX_SINGLE(AVB2_TD1), |
| 717 | PINMUX_SINGLE(AVB2_TD0), |
| 718 | PINMUX_SINGLE(AVB2_TXC), |
| 719 | PINMUX_SINGLE(AVB2_TX_CTL), |
| 720 | PINMUX_SINGLE(AVB2_RD3), |
| 721 | PINMUX_SINGLE(AVB2_RD2), |
| 722 | PINMUX_SINGLE(AVB2_RD1), |
| 723 | PINMUX_SINGLE(AVB2_RD0), |
| 724 | PINMUX_SINGLE(AVB2_RXC), |
| 725 | PINMUX_SINGLE(AVB2_RX_CTL), |
| 726 | |
| 727 | PINMUX_SINGLE(AVB3_AVTP_PPS), |
| 728 | PINMUX_SINGLE(AVB3_AVTP_CAPTURE), |
| 729 | PINMUX_SINGLE(AVB3_AVTP_MATCH), |
| 730 | PINMUX_SINGLE(AVB3_LINK), |
| 731 | PINMUX_SINGLE(AVB3_PHY_INT), |
| 732 | PINMUX_SINGLE(AVB3_MAGIC), |
| 733 | PINMUX_SINGLE(AVB3_MDC), |
| 734 | PINMUX_SINGLE(AVB3_MDIO), |
| 735 | PINMUX_SINGLE(AVB3_TXCREFCLK), |
| 736 | PINMUX_SINGLE(AVB3_TD3), |
| 737 | PINMUX_SINGLE(AVB3_TD2), |
| 738 | PINMUX_SINGLE(AVB3_TD1), |
| 739 | PINMUX_SINGLE(AVB3_TD0), |
| 740 | PINMUX_SINGLE(AVB3_TXC), |
| 741 | PINMUX_SINGLE(AVB3_TX_CTL), |
| 742 | PINMUX_SINGLE(AVB3_RD3), |
| 743 | PINMUX_SINGLE(AVB3_RD2), |
| 744 | PINMUX_SINGLE(AVB3_RD1), |
| 745 | PINMUX_SINGLE(AVB3_RD0), |
| 746 | PINMUX_SINGLE(AVB3_RXC), |
| 747 | PINMUX_SINGLE(AVB3_RX_CTL), |
| 748 | |
| 749 | PINMUX_SINGLE(AVB4_AVTP_PPS), |
| 750 | PINMUX_SINGLE(AVB4_AVTP_CAPTURE), |
| 751 | PINMUX_SINGLE(AVB4_AVTP_MATCH), |
| 752 | PINMUX_SINGLE(AVB4_LINK), |
| 753 | PINMUX_SINGLE(AVB4_PHY_INT), |
| 754 | PINMUX_SINGLE(AVB4_MAGIC), |
| 755 | PINMUX_SINGLE(AVB4_MDC), |
| 756 | PINMUX_SINGLE(AVB4_MDIO), |
| 757 | PINMUX_SINGLE(AVB4_TXCREFCLK), |
| 758 | PINMUX_SINGLE(AVB4_TD3), |
| 759 | PINMUX_SINGLE(AVB4_TD2), |
| 760 | PINMUX_SINGLE(AVB4_TD1), |
| 761 | PINMUX_SINGLE(AVB4_TD0), |
| 762 | PINMUX_SINGLE(AVB4_TXC), |
| 763 | PINMUX_SINGLE(AVB4_TX_CTL), |
| 764 | PINMUX_SINGLE(AVB4_RD3), |
| 765 | PINMUX_SINGLE(AVB4_RD2), |
| 766 | PINMUX_SINGLE(AVB4_RD1), |
| 767 | PINMUX_SINGLE(AVB4_RD0), |
| 768 | PINMUX_SINGLE(AVB4_RXC), |
| 769 | PINMUX_SINGLE(AVB4_RX_CTL), |
| 770 | |
| 771 | PINMUX_SINGLE(AVB5_AVTP_PPS), |
| 772 | PINMUX_SINGLE(AVB5_AVTP_CAPTURE), |
| 773 | PINMUX_SINGLE(AVB5_AVTP_MATCH), |
| 774 | PINMUX_SINGLE(AVB5_LINK), |
| 775 | PINMUX_SINGLE(AVB5_PHY_INT), |
| 776 | PINMUX_SINGLE(AVB5_MAGIC), |
| 777 | PINMUX_SINGLE(AVB5_MDC), |
| 778 | PINMUX_SINGLE(AVB5_MDIO), |
| 779 | PINMUX_SINGLE(AVB5_TXCREFCLK), |
| 780 | PINMUX_SINGLE(AVB5_TD3), |
| 781 | PINMUX_SINGLE(AVB5_TD2), |
| 782 | PINMUX_SINGLE(AVB5_TD1), |
| 783 | PINMUX_SINGLE(AVB5_TD0), |
| 784 | PINMUX_SINGLE(AVB5_TXC), |
| 785 | PINMUX_SINGLE(AVB5_TX_CTL), |
| 786 | PINMUX_SINGLE(AVB5_RD3), |
| 787 | PINMUX_SINGLE(AVB5_RD2), |
| 788 | PINMUX_SINGLE(AVB5_RD1), |
| 789 | PINMUX_SINGLE(AVB5_RD0), |
| 790 | PINMUX_SINGLE(AVB5_RXC), |
| 791 | PINMUX_SINGLE(AVB5_RX_CTL), |
| 792 | |
| 793 | /* IP0SR1 */ |
| 794 | PINMUX_IPSR_GPSR(IP0SR1_3_0, SCIF_CLK), |
| 795 | PINMUX_IPSR_GPSR(IP0SR1_3_0, A0), |
| 796 | |
| 797 | PINMUX_IPSR_GPSR(IP0SR1_7_4, HRX0), |
| 798 | PINMUX_IPSR_GPSR(IP0SR1_7_4, RX0), |
| 799 | PINMUX_IPSR_GPSR(IP0SR1_7_4, A1), |
| 800 | |
| 801 | PINMUX_IPSR_GPSR(IP0SR1_11_8, HSCK0), |
| 802 | PINMUX_IPSR_GPSR(IP0SR1_11_8, SCK0), |
| 803 | PINMUX_IPSR_GPSR(IP0SR1_11_8, A2), |
| 804 | |
| 805 | PINMUX_IPSR_GPSR(IP0SR1_15_12, HRTS0_N), |
| 806 | PINMUX_IPSR_GPSR(IP0SR1_15_12, RTS0_N), |
| 807 | PINMUX_IPSR_GPSR(IP0SR1_15_12, A3), |
| 808 | |
| 809 | PINMUX_IPSR_GPSR(IP0SR1_19_16, HCTS0_N), |
| 810 | PINMUX_IPSR_GPSR(IP0SR1_19_16, CTS0_N), |
| 811 | PINMUX_IPSR_GPSR(IP0SR1_19_16, A4), |
| 812 | |
| 813 | PINMUX_IPSR_GPSR(IP0SR1_23_20, HTX0), |
| 814 | PINMUX_IPSR_GPSR(IP0SR1_23_20, TX0), |
| 815 | PINMUX_IPSR_GPSR(IP0SR1_23_20, A5), |
| 816 | |
| 817 | PINMUX_IPSR_GPSR(IP0SR1_27_24, MSIOF0_RXD), |
| 818 | PINMUX_IPSR_GPSR(IP0SR1_27_24, DU_DR2), |
| 819 | PINMUX_IPSR_GPSR(IP0SR1_27_24, A6), |
| 820 | |
| 821 | PINMUX_IPSR_GPSR(IP0SR1_31_28, MSIOF0_TXD), |
| 822 | PINMUX_IPSR_GPSR(IP0SR1_31_28, DU_DR3), |
| 823 | PINMUX_IPSR_GPSR(IP0SR1_31_28, A7), |
| 824 | |
| 825 | /* IP1SR1 */ |
| 826 | PINMUX_IPSR_GPSR(IP1SR1_3_0, MSIOF0_SCK), |
| 827 | PINMUX_IPSR_GPSR(IP1SR1_3_0, DU_DR4), |
| 828 | PINMUX_IPSR_GPSR(IP1SR1_3_0, A8), |
| 829 | |
| 830 | PINMUX_IPSR_GPSR(IP1SR1_7_4, MSIOF0_SYNC), |
| 831 | PINMUX_IPSR_GPSR(IP1SR1_7_4, DU_DR5), |
| 832 | PINMUX_IPSR_GPSR(IP1SR1_7_4, A9), |
| 833 | |
| 834 | PINMUX_IPSR_GPSR(IP1SR1_11_8, MSIOF0_SS1), |
| 835 | PINMUX_IPSR_GPSR(IP1SR1_11_8, DU_DR6), |
| 836 | PINMUX_IPSR_GPSR(IP1SR1_11_8, A10), |
| 837 | |
| 838 | PINMUX_IPSR_GPSR(IP1SR1_15_12, MSIOF0_SS2), |
| 839 | PINMUX_IPSR_GPSR(IP1SR1_15_12, DU_DR7), |
| 840 | PINMUX_IPSR_GPSR(IP1SR1_15_12, A11), |
| 841 | |
| 842 | PINMUX_IPSR_GPSR(IP1SR1_19_16, MSIOF1_RXD), |
| 843 | PINMUX_IPSR_GPSR(IP1SR1_19_16, DU_DG2), |
| 844 | PINMUX_IPSR_GPSR(IP1SR1_19_16, A12), |
| 845 | |
| 846 | PINMUX_IPSR_GPSR(IP1SR1_23_20, MSIOF1_TXD), |
| 847 | PINMUX_IPSR_GPSR(IP1SR1_23_20, HRX3), |
| 848 | PINMUX_IPSR_GPSR(IP1SR1_23_20, SCK3), |
| 849 | PINMUX_IPSR_GPSR(IP1SR1_23_20, DU_DG3), |
| 850 | PINMUX_IPSR_GPSR(IP1SR1_23_20, A13), |
| 851 | |
| 852 | PINMUX_IPSR_GPSR(IP1SR1_27_24, MSIOF1_SCK), |
| 853 | PINMUX_IPSR_GPSR(IP1SR1_27_24, HSCK3), |
| 854 | PINMUX_IPSR_GPSR(IP1SR1_27_24, CTS3_N), |
| 855 | PINMUX_IPSR_GPSR(IP1SR1_27_24, DU_DG4), |
| 856 | PINMUX_IPSR_GPSR(IP1SR1_27_24, A14), |
| 857 | |
| 858 | PINMUX_IPSR_GPSR(IP1SR1_31_28, MSIOF1_SYNC), |
| 859 | PINMUX_IPSR_GPSR(IP1SR1_31_28, HRTS3_N), |
| 860 | PINMUX_IPSR_GPSR(IP1SR1_31_28, RTS3_N), |
| 861 | PINMUX_IPSR_GPSR(IP1SR1_31_28, DU_DG5), |
| 862 | PINMUX_IPSR_GPSR(IP1SR1_31_28, A15), |
| 863 | |
| 864 | /* IP2SR1 */ |
| 865 | PINMUX_IPSR_GPSR(IP2SR1_3_0, MSIOF1_SS1), |
| 866 | PINMUX_IPSR_GPSR(IP2SR1_3_0, HCTS3_N), |
| 867 | PINMUX_IPSR_GPSR(IP2SR1_3_0, RX3), |
| 868 | PINMUX_IPSR_GPSR(IP2SR1_3_0, DU_DG6), |
| 869 | PINMUX_IPSR_GPSR(IP2SR1_3_0, A16), |
| 870 | |
| 871 | PINMUX_IPSR_GPSR(IP2SR1_7_4, MSIOF1_SS2), |
| 872 | PINMUX_IPSR_GPSR(IP2SR1_7_4, HTX3), |
| 873 | PINMUX_IPSR_GPSR(IP2SR1_7_4, TX3), |
| 874 | PINMUX_IPSR_GPSR(IP2SR1_7_4, DU_DG7), |
| 875 | PINMUX_IPSR_GPSR(IP2SR1_7_4, A17), |
| 876 | |
| 877 | PINMUX_IPSR_GPSR(IP2SR1_11_8, MSIOF2_RXD), |
| 878 | PINMUX_IPSR_GPSR(IP2SR1_11_8, HSCK1), |
| 879 | PINMUX_IPSR_GPSR(IP2SR1_11_8, SCK1), |
| 880 | PINMUX_IPSR_GPSR(IP2SR1_11_8, DU_DB2), |
| 881 | PINMUX_IPSR_GPSR(IP2SR1_11_8, A18), |
| 882 | |
| 883 | PINMUX_IPSR_GPSR(IP2SR1_15_12, MSIOF2_TXD), |
| 884 | PINMUX_IPSR_GPSR(IP2SR1_15_12, HCTS1_N), |
| 885 | PINMUX_IPSR_GPSR(IP2SR1_15_12, CTS1_N), |
| 886 | PINMUX_IPSR_GPSR(IP2SR1_15_12, DU_DB3), |
| 887 | PINMUX_IPSR_GPSR(IP2SR1_15_12, A19), |
| 888 | |
| 889 | PINMUX_IPSR_GPSR(IP2SR1_19_16, MSIOF2_SCK), |
| 890 | PINMUX_IPSR_GPSR(IP2SR1_19_16, HRTS1_N), |
| 891 | PINMUX_IPSR_GPSR(IP2SR1_19_16, RTS1_N), |
| 892 | PINMUX_IPSR_GPSR(IP2SR1_19_16, DU_DB4), |
| 893 | PINMUX_IPSR_GPSR(IP2SR1_19_16, A20), |
| 894 | |
| 895 | PINMUX_IPSR_GPSR(IP2SR1_23_20, MSIOF2_SYNC), |
| 896 | PINMUX_IPSR_GPSR(IP2SR1_23_20, HRX1), |
| 897 | PINMUX_IPSR_GPSR(IP2SR1_23_20, RX1_A), |
| 898 | PINMUX_IPSR_GPSR(IP2SR1_23_20, DU_DB5), |
| 899 | PINMUX_IPSR_GPSR(IP2SR1_23_20, A21), |
| 900 | |
| 901 | PINMUX_IPSR_GPSR(IP2SR1_27_24, MSIOF2_SS1), |
| 902 | PINMUX_IPSR_GPSR(IP2SR1_27_24, HTX1), |
| 903 | PINMUX_IPSR_GPSR(IP2SR1_27_24, TX1_A), |
| 904 | PINMUX_IPSR_GPSR(IP2SR1_27_24, DU_DB6), |
| 905 | PINMUX_IPSR_GPSR(IP2SR1_27_24, A22), |
| 906 | |
| 907 | PINMUX_IPSR_GPSR(IP2SR1_31_28, MSIOF2_SS2), |
| 908 | PINMUX_IPSR_GPSR(IP2SR1_31_28, TCLK1_B), |
| 909 | PINMUX_IPSR_GPSR(IP2SR1_31_28, DU_DB7), |
| 910 | PINMUX_IPSR_GPSR(IP2SR1_31_28, A23), |
| 911 | |
| 912 | /* IP3SR1 */ |
| 913 | PINMUX_IPSR_GPSR(IP3SR1_3_0, IRQ0), |
| 914 | PINMUX_IPSR_GPSR(IP3SR1_3_0, DU_DOTCLKOUT), |
| 915 | PINMUX_IPSR_GPSR(IP3SR1_3_0, A24), |
| 916 | |
| 917 | PINMUX_IPSR_GPSR(IP3SR1_7_4, IRQ1), |
| 918 | PINMUX_IPSR_GPSR(IP3SR1_7_4, DU_HSYNC), |
| 919 | PINMUX_IPSR_GPSR(IP3SR1_7_4, A25), |
| 920 | |
| 921 | PINMUX_IPSR_GPSR(IP3SR1_11_8, IRQ2), |
| 922 | PINMUX_IPSR_GPSR(IP3SR1_11_8, DU_VSYNC), |
| 923 | PINMUX_IPSR_GPSR(IP3SR1_11_8, CS1_N_A26), |
| 924 | |
| 925 | PINMUX_IPSR_GPSR(IP3SR1_15_12, IRQ3), |
| 926 | PINMUX_IPSR_GPSR(IP3SR1_15_12, DU_ODDF_DISP_CDE), |
| 927 | PINMUX_IPSR_GPSR(IP3SR1_15_12, CS0_N), |
| 928 | |
| 929 | PINMUX_IPSR_GPSR(IP3SR1_19_16, GP1_28), |
| 930 | PINMUX_IPSR_GPSR(IP3SR1_19_16, D0), |
| 931 | |
| 932 | PINMUX_IPSR_GPSR(IP3SR1_23_20, GP1_29), |
| 933 | PINMUX_IPSR_GPSR(IP3SR1_23_20, D1), |
| 934 | |
| 935 | PINMUX_IPSR_GPSR(IP3SR1_27_24, GP1_30), |
| 936 | PINMUX_IPSR_GPSR(IP3SR1_27_24, D2), |
| 937 | |
| 938 | /* IP0SR2 */ |
| 939 | PINMUX_IPSR_GPSR(IP0SR2_3_0, IPC_CLKIN), |
| 940 | PINMUX_IPSR_GPSR(IP0SR2_3_0, IPC_CLKEN_IN), |
| 941 | PINMUX_IPSR_GPSR(IP0SR2_3_0, DU_DOTCLKIN), |
| 942 | |
| 943 | PINMUX_IPSR_GPSR(IP0SR2_7_4, IPC_CLKOUT), |
| 944 | PINMUX_IPSR_GPSR(IP0SR2_7_4, IPC_CLKEN_OUT), |
| 945 | |
| 946 | /* GP2_02 = SCL0 */ |
| 947 | PINMUX_IPSR_MSEL(IP0SR2_11_8, GP2_02, SEL_I2C0_0), |
| 948 | PINMUX_IPSR_MSEL(IP0SR2_11_8, D3, SEL_I2C0_0), |
| 949 | PINMUX_IPSR_PHYS(IP0SR2_11_8, SCL0, SEL_I2C0_3), |
| 950 | |
| 951 | /* GP2_03 = SDA0 */ |
| 952 | PINMUX_IPSR_MSEL(IP0SR2_15_12, GP2_03, SEL_I2C0_0), |
| 953 | PINMUX_IPSR_MSEL(IP0SR2_15_12, D4, SEL_I2C0_0), |
| 954 | PINMUX_IPSR_PHYS(IP0SR2_15_12, SDA0, SEL_I2C0_3), |
| 955 | |
| 956 | /* GP2_04 = SCL1 */ |
| 957 | PINMUX_IPSR_MSEL(IP0SR2_19_16, GP2_04, SEL_I2C1_0), |
| 958 | PINMUX_IPSR_MSEL(IP0SR2_19_16, MSIOF4_RXD, SEL_I2C1_0), |
| 959 | PINMUX_IPSR_MSEL(IP0SR2_19_16, D5, SEL_I2C1_0), |
| 960 | PINMUX_IPSR_PHYS(IP0SR2_19_16, SCL1, SEL_I2C1_3), |
| 961 | |
| 962 | /* GP2_05 = SDA1 */ |
| 963 | PINMUX_IPSR_MSEL(IP0SR2_23_20, GP2_05, SEL_I2C1_0), |
| 964 | PINMUX_IPSR_MSEL(IP0SR2_23_20, HSCK2, SEL_I2C1_0), |
| 965 | PINMUX_IPSR_MSEL(IP0SR2_23_20, MSIOF4_TXD, SEL_I2C1_0), |
| 966 | PINMUX_IPSR_MSEL(IP0SR2_23_20, SCK4, SEL_I2C1_0), |
| 967 | PINMUX_IPSR_MSEL(IP0SR2_23_20, D6, SEL_I2C1_0), |
| 968 | PINMUX_IPSR_PHYS(IP0SR2_23_20, SDA1, SEL_I2C1_3), |
| 969 | |
| 970 | /* GP2_06 = SCL2 */ |
| 971 | PINMUX_IPSR_MSEL(IP0SR2_27_24, GP2_06, SEL_I2C2_0), |
| 972 | PINMUX_IPSR_MSEL(IP0SR2_27_24, HCTS2_N, SEL_I2C2_0), |
| 973 | PINMUX_IPSR_MSEL(IP0SR2_27_24, MSIOF4_SCK, SEL_I2C2_0), |
| 974 | PINMUX_IPSR_MSEL(IP0SR2_27_24, CTS4_N, SEL_I2C2_0), |
| 975 | PINMUX_IPSR_MSEL(IP0SR2_27_24, D7, SEL_I2C2_0), |
| 976 | PINMUX_IPSR_PHYS(IP0SR2_27_24, SCL2, SEL_I2C2_3), |
| 977 | |
| 978 | /* GP2_07 = SDA2 */ |
| 979 | PINMUX_IPSR_MSEL(IP0SR2_31_28, GP2_07, SEL_I2C2_0), |
| 980 | PINMUX_IPSR_MSEL(IP0SR2_31_28, HRTS2_N, SEL_I2C2_0), |
| 981 | PINMUX_IPSR_MSEL(IP0SR2_31_28, MSIOF4_SYNC, SEL_I2C2_0), |
| 982 | PINMUX_IPSR_MSEL(IP0SR2_31_28, RTS4_N, SEL_I2C2_0), |
| 983 | PINMUX_IPSR_MSEL(IP0SR2_31_28, D8, SEL_I2C2_0), |
| 984 | PINMUX_IPSR_PHYS(IP0SR2_31_28, SDA2, SEL_I2C2_3), |
| 985 | |
| 986 | /* GP2_08 = SCL3 */ |
| 987 | PINMUX_IPSR_MSEL(IP1SR2_3_0, GP2_08, SEL_I2C3_0), |
| 988 | PINMUX_IPSR_MSEL(IP1SR2_3_0, HRX2, SEL_I2C3_0), |
| 989 | PINMUX_IPSR_MSEL(IP1SR2_3_0, MSIOF4_SS1, SEL_I2C3_0), |
| 990 | PINMUX_IPSR_MSEL(IP1SR2_3_0, RX4, SEL_I2C3_0), |
| 991 | PINMUX_IPSR_MSEL(IP1SR2_3_0, D9, SEL_I2C3_0), |
| 992 | PINMUX_IPSR_PHYS(IP1SR2_3_0, SCL3, SEL_I2C3_3), |
| 993 | |
| 994 | /* GP2_09 = SDA3 */ |
| 995 | PINMUX_IPSR_MSEL(IP1SR2_7_4, GP2_09, SEL_I2C3_0), |
| 996 | PINMUX_IPSR_MSEL(IP1SR2_7_4, HTX2, SEL_I2C3_0), |
| 997 | PINMUX_IPSR_MSEL(IP1SR2_7_4, MSIOF4_SS2, SEL_I2C3_0), |
| 998 | PINMUX_IPSR_MSEL(IP1SR2_7_4, TX4, SEL_I2C3_0), |
| 999 | PINMUX_IPSR_MSEL(IP1SR2_7_4, D10, SEL_I2C3_0), |
| 1000 | PINMUX_IPSR_PHYS(IP1SR2_7_4, SDA3, SEL_I2C3_3), |
| 1001 | |
| 1002 | /* GP2_10 = SCL4 */ |
| 1003 | PINMUX_IPSR_MSEL(IP1SR2_11_8, GP2_10, SEL_I2C4_0), |
| 1004 | PINMUX_IPSR_MSEL(IP1SR2_11_8, TCLK2_B, SEL_I2C4_0), |
| 1005 | PINMUX_IPSR_MSEL(IP1SR2_11_8, MSIOF5_RXD, SEL_I2C4_0), |
| 1006 | PINMUX_IPSR_MSEL(IP1SR2_11_8, D11, SEL_I2C4_0), |
| 1007 | PINMUX_IPSR_PHYS(IP1SR2_11_8, SCL4, SEL_I2C4_3), |
| 1008 | |
| 1009 | /* GP2_11 = SDA4 */ |
| 1010 | PINMUX_IPSR_MSEL(IP1SR2_15_12, GP2_11, SEL_I2C4_0), |
| 1011 | PINMUX_IPSR_MSEL(IP1SR2_15_12, TCLK3, SEL_I2C4_0), |
| 1012 | PINMUX_IPSR_MSEL(IP1SR2_15_12, MSIOF5_TXD, SEL_I2C4_0), |
| 1013 | PINMUX_IPSR_MSEL(IP1SR2_15_12, D12, SEL_I2C4_0), |
| 1014 | PINMUX_IPSR_PHYS(IP1SR2_15_12, SDA4, SEL_I2C4_3), |
| 1015 | |
| 1016 | /* GP2_12 = SCL5 */ |
| 1017 | PINMUX_IPSR_MSEL(IP1SR2_19_16, GP2_12, SEL_I2C5_0), |
| 1018 | PINMUX_IPSR_MSEL(IP1SR2_19_16, TCLK4, SEL_I2C5_0), |
| 1019 | PINMUX_IPSR_MSEL(IP1SR2_19_16, MSIOF5_SCK, SEL_I2C5_0), |
| 1020 | PINMUX_IPSR_MSEL(IP1SR2_19_16, D13, SEL_I2C5_0), |
| 1021 | PINMUX_IPSR_PHYS(IP1SR2_19_16, SCL5, SEL_I2C5_3), |
| 1022 | |
| 1023 | /* GP2_13 = SDA5 */ |
| 1024 | PINMUX_IPSR_MSEL(IP1SR2_23_20, GP2_13, SEL_I2C5_0), |
| 1025 | PINMUX_IPSR_MSEL(IP1SR2_23_20, MSIOF5_SYNC, SEL_I2C5_0), |
| 1026 | PINMUX_IPSR_MSEL(IP1SR2_23_20, D14, SEL_I2C5_0), |
| 1027 | PINMUX_IPSR_PHYS(IP1SR2_23_20, SDA5, SEL_I2C5_3), |
| 1028 | |
| 1029 | /* GP2_14 = SCL6 */ |
| 1030 | PINMUX_IPSR_MSEL(IP1SR2_27_24, GP2_14, SEL_I2C6_0), |
| 1031 | PINMUX_IPSR_MSEL(IP1SR2_27_24, IRQ4, SEL_I2C6_0), |
| 1032 | PINMUX_IPSR_MSEL(IP1SR2_27_24, MSIOF5_SS1, SEL_I2C6_0), |
| 1033 | PINMUX_IPSR_MSEL(IP1SR2_27_24, D15, SEL_I2C6_0), |
| 1034 | PINMUX_IPSR_PHYS(IP1SR2_27_24, SCL6, SEL_I2C6_3), |
| 1035 | |
| 1036 | /* GP2_15 = SDA6 */ |
| 1037 | PINMUX_IPSR_MSEL(IP1SR2_31_28, GP2_15, SEL_I2C6_0), |
| 1038 | PINMUX_IPSR_MSEL(IP1SR2_31_28, IRQ5, SEL_I2C6_0), |
| 1039 | PINMUX_IPSR_MSEL(IP1SR2_31_28, MSIOF5_SS2, SEL_I2C6_0), |
| 1040 | PINMUX_IPSR_MSEL(IP1SR2_31_28, CPG_CPCKOUT, SEL_I2C6_0), |
| 1041 | PINMUX_IPSR_PHYS(IP1SR2_31_28, SDA6, SEL_I2C6_3), |
| 1042 | |
| 1043 | /* IP2SR2 */ |
| 1044 | PINMUX_IPSR_GPSR(IP2SR2_3_0, FXR_TXDA_A), |
| 1045 | PINMUX_IPSR_GPSR(IP2SR2_3_0, MSIOF3_SS1), |
| 1046 | |
| 1047 | PINMUX_IPSR_GPSR(IP2SR2_7_4, RXDA_EXTFXR_A), |
| 1048 | PINMUX_IPSR_GPSR(IP2SR2_7_4, MSIOF3_SS2), |
| 1049 | PINMUX_IPSR_GPSR(IP2SR2_7_4, BS_N), |
| 1050 | |
| 1051 | PINMUX_IPSR_GPSR(IP2SR2_11_8, FXR_TXDB), |
| 1052 | PINMUX_IPSR_GPSR(IP2SR2_11_8, MSIOF3_RXD), |
| 1053 | PINMUX_IPSR_GPSR(IP2SR2_11_8, RD_N), |
| 1054 | |
| 1055 | PINMUX_IPSR_GPSR(IP2SR2_15_12, RXDB_EXTFXR), |
| 1056 | PINMUX_IPSR_GPSR(IP2SR2_15_12, MSIOF3_TXD), |
| 1057 | PINMUX_IPSR_GPSR(IP2SR2_15_12, WE0_N), |
| 1058 | |
| 1059 | PINMUX_IPSR_GPSR(IP2SR2_19_16, CLK_EXTFXR), |
| 1060 | PINMUX_IPSR_GPSR(IP2SR2_19_16, MSIOF3_SCK), |
| 1061 | PINMUX_IPSR_GPSR(IP2SR2_19_16, WE1_N), |
| 1062 | |
| 1063 | PINMUX_IPSR_GPSR(IP2SR2_23_20, TPU0TO0), |
| 1064 | PINMUX_IPSR_GPSR(IP2SR2_23_20, MSIOF3_SYNC), |
| 1065 | PINMUX_IPSR_GPSR(IP2SR2_23_20, RD_WR_N), |
| 1066 | |
| 1067 | PINMUX_IPSR_GPSR(IP2SR2_27_24, TPU0TO1), |
| 1068 | PINMUX_IPSR_GPSR(IP2SR2_27_24, CLKOUT), |
| 1069 | |
| 1070 | PINMUX_IPSR_GPSR(IP2SR2_31_28, TCLK1_A), |
| 1071 | PINMUX_IPSR_GPSR(IP2SR2_31_28, EX_WAIT0), |
| 1072 | |
| 1073 | /* IP0SR3 */ |
| 1074 | PINMUX_IPSR_GPSR(IP0SR3_7_4, CANFD0_TX), |
| 1075 | PINMUX_IPSR_GPSR(IP0SR3_7_4, FXR_TXDA_B), |
| 1076 | PINMUX_IPSR_GPSR(IP0SR3_7_4, TX1_B), |
| 1077 | |
| 1078 | PINMUX_IPSR_GPSR(IP0SR3_11_8, CANFD0_RX), |
| 1079 | PINMUX_IPSR_GPSR(IP0SR3_11_8, RXDA_EXTFXR_B), |
| 1080 | PINMUX_IPSR_GPSR(IP0SR3_11_8, RX1_B), |
| 1081 | |
| 1082 | PINMUX_IPSR_GPSR(IP0SR3_23_20, CANFD2_TX), |
| 1083 | PINMUX_IPSR_GPSR(IP0SR3_23_20, TPU0TO2), |
| 1084 | PINMUX_IPSR_GPSR(IP0SR3_23_20, PWM0), |
| 1085 | |
| 1086 | PINMUX_IPSR_GPSR(IP0SR3_27_24, CANFD2_RX), |
| 1087 | PINMUX_IPSR_GPSR(IP0SR3_27_24, TPU0TO3), |
| 1088 | PINMUX_IPSR_GPSR(IP0SR3_27_24, PWM1), |
| 1089 | |
| 1090 | PINMUX_IPSR_GPSR(IP0SR3_31_28, CANFD3_TX), |
| 1091 | PINMUX_IPSR_GPSR(IP0SR3_31_28, PWM2), |
| 1092 | |
| 1093 | /* IP1SR3 */ |
| 1094 | PINMUX_IPSR_GPSR(IP1SR3_3_0, CANFD3_RX), |
| 1095 | PINMUX_IPSR_GPSR(IP1SR3_3_0, PWM3), |
| 1096 | |
| 1097 | PINMUX_IPSR_GPSR(IP1SR3_7_4, CANFD4_TX), |
| 1098 | PINMUX_IPSR_GPSR(IP1SR3_7_4, PWM4), |
| 1099 | PINMUX_IPSR_GPSR(IP1SR3_7_4, FXR_CLKOUT1), |
| 1100 | |
| 1101 | PINMUX_IPSR_GPSR(IP1SR3_11_8, CANFD4_RX), |
| 1102 | PINMUX_IPSR_GPSR(IP1SR3_11_8, FXR_CLKOUT2), |
| 1103 | |
| 1104 | PINMUX_IPSR_GPSR(IP1SR3_15_12, CANFD5_TX), |
| 1105 | PINMUX_IPSR_GPSR(IP1SR3_15_12, FXR_TXENA_N), |
| 1106 | |
| 1107 | PINMUX_IPSR_GPSR(IP1SR3_19_16, CANFD5_RX), |
| 1108 | PINMUX_IPSR_GPSR(IP1SR3_19_16, FXR_TXENB_N), |
| 1109 | |
| 1110 | PINMUX_IPSR_GPSR(IP1SR3_23_20, CANFD6_TX), |
| 1111 | PINMUX_IPSR_GPSR(IP1SR3_23_20, STPWT_EXTFXR), |
| 1112 | |
| 1113 | /* IP0SR4 */ |
| 1114 | PINMUX_IPSR_GPSR(IP0SR4_3_0, AVB0_RX_CTL), |
| 1115 | PINMUX_IPSR_GPSR(IP0SR4_3_0, AVB0_MII_RX_DV), |
| 1116 | |
| 1117 | PINMUX_IPSR_GPSR(IP0SR4_7_4, AVB0_RXC), |
| 1118 | PINMUX_IPSR_GPSR(IP0SR4_7_4, AVB0_MII_RXC), |
| 1119 | |
| 1120 | PINMUX_IPSR_GPSR(IP0SR4_11_8, AVB0_RD0), |
| 1121 | PINMUX_IPSR_GPSR(IP0SR4_11_8, AVB0_MII_RD0), |
| 1122 | |
| 1123 | PINMUX_IPSR_GPSR(IP0SR4_15_12, AVB0_RD1), |
| 1124 | PINMUX_IPSR_GPSR(IP0SR4_15_12, AVB0_MII_RD1), |
| 1125 | |
| 1126 | PINMUX_IPSR_GPSR(IP0SR4_19_16, AVB0_RD2), |
| 1127 | PINMUX_IPSR_GPSR(IP0SR4_19_16, AVB0_MII_RD2), |
| 1128 | |
| 1129 | PINMUX_IPSR_GPSR(IP0SR4_23_20, AVB0_RD3), |
| 1130 | PINMUX_IPSR_GPSR(IP0SR4_23_20, AVB0_MII_RD3), |
| 1131 | |
| 1132 | PINMUX_IPSR_GPSR(IP0SR4_27_24, AVB0_TX_CTL), |
| 1133 | PINMUX_IPSR_GPSR(IP0SR4_27_24, AVB0_MII_TX_EN), |
| 1134 | |
| 1135 | PINMUX_IPSR_GPSR(IP0SR4_31_28, AVB0_TXC), |
| 1136 | PINMUX_IPSR_GPSR(IP0SR4_31_28, AVB0_MII_TXC), |
| 1137 | |
| 1138 | /* IP1SR4 */ |
| 1139 | PINMUX_IPSR_GPSR(IP1SR4_3_0, AVB0_TD0), |
| 1140 | PINMUX_IPSR_GPSR(IP1SR4_3_0, AVB0_MII_TD0), |
| 1141 | |
| 1142 | PINMUX_IPSR_GPSR(IP1SR4_7_4, AVB0_TD1), |
| 1143 | PINMUX_IPSR_GPSR(IP1SR4_7_4, AVB0_MII_TD1), |
| 1144 | |
| 1145 | PINMUX_IPSR_GPSR(IP1SR4_11_8, AVB0_TD2), |
| 1146 | PINMUX_IPSR_GPSR(IP1SR4_11_8, AVB0_MII_TD2), |
| 1147 | |
| 1148 | PINMUX_IPSR_GPSR(IP1SR4_15_12, AVB0_TD3), |
| 1149 | PINMUX_IPSR_GPSR(IP1SR4_15_12, AVB0_MII_TD3), |
| 1150 | |
| 1151 | PINMUX_IPSR_GPSR(IP1SR4_19_16, AVB0_TXCREFCLK), |
| 1152 | |
| 1153 | PINMUX_IPSR_GPSR(IP1SR4_23_20, AVB0_MDIO), |
| 1154 | |
| 1155 | PINMUX_IPSR_GPSR(IP1SR4_27_24, AVB0_MDC), |
| 1156 | |
| 1157 | PINMUX_IPSR_GPSR(IP1SR4_31_28, AVB0_MAGIC), |
| 1158 | |
| 1159 | /* IP2SR4 */ |
| 1160 | PINMUX_IPSR_GPSR(IP2SR4_7_4, AVB0_LINK), |
| 1161 | PINMUX_IPSR_GPSR(IP2SR4_7_4, AVB0_MII_TX_ER), |
| 1162 | |
| 1163 | PINMUX_IPSR_GPSR(IP2SR4_11_8, AVB0_AVTP_MATCH), |
| 1164 | PINMUX_IPSR_GPSR(IP2SR4_11_8, AVB0_MII_RX_ER), |
| 1165 | PINMUX_IPSR_GPSR(IP2SR4_11_8, CC5_OSCOUT), |
| 1166 | |
| 1167 | PINMUX_IPSR_GPSR(IP2SR4_15_12, AVB0_AVTP_CAPTURE), |
| 1168 | PINMUX_IPSR_GPSR(IP2SR4_15_12, AVB0_MII_CRS), |
| 1169 | |
| 1170 | PINMUX_IPSR_GPSR(IP2SR4_19_16, AVB0_AVTP_PPS), |
| 1171 | PINMUX_IPSR_GPSR(IP2SR4_19_16, AVB0_MII_COL), |
| 1172 | |
| 1173 | /* IP0SR5 */ |
| 1174 | PINMUX_IPSR_GPSR(IP0SR5_3_0, AVB1_RX_CTL), |
| 1175 | PINMUX_IPSR_GPSR(IP0SR5_3_0, AVB1_MII_RX_DV), |
| 1176 | |
| 1177 | PINMUX_IPSR_GPSR(IP0SR5_7_4, AVB1_RXC), |
| 1178 | PINMUX_IPSR_GPSR(IP0SR5_7_4, AVB1_MII_RXC), |
| 1179 | |
| 1180 | PINMUX_IPSR_GPSR(IP0SR5_11_8, AVB1_RD0), |
| 1181 | PINMUX_IPSR_GPSR(IP0SR5_11_8, AVB1_MII_RD0), |
| 1182 | |
| 1183 | PINMUX_IPSR_GPSR(IP0SR5_15_12, AVB1_RD1), |
| 1184 | PINMUX_IPSR_GPSR(IP0SR5_15_12, AVB1_MII_RD1), |
| 1185 | |
| 1186 | PINMUX_IPSR_GPSR(IP0SR5_19_16, AVB1_RD2), |
| 1187 | PINMUX_IPSR_GPSR(IP0SR5_19_16, AVB1_MII_RD2), |
| 1188 | |
| 1189 | PINMUX_IPSR_GPSR(IP0SR5_23_20, AVB1_RD3), |
| 1190 | PINMUX_IPSR_GPSR(IP0SR5_23_20, AVB1_MII_RD3), |
| 1191 | |
| 1192 | PINMUX_IPSR_GPSR(IP0SR5_27_24, AVB1_TX_CTL), |
| 1193 | PINMUX_IPSR_GPSR(IP0SR5_27_24, AVB1_MII_TX_EN), |
| 1194 | |
| 1195 | PINMUX_IPSR_GPSR(IP0SR5_31_28, AVB1_TXC), |
| 1196 | PINMUX_IPSR_GPSR(IP0SR5_31_28, AVB1_MII_TXC), |
| 1197 | |
| 1198 | /* IP1SR5 */ |
| 1199 | PINMUX_IPSR_GPSR(IP1SR5_3_0, AVB1_TD0), |
| 1200 | PINMUX_IPSR_GPSR(IP1SR5_3_0, AVB1_MII_TD0), |
| 1201 | |
| 1202 | PINMUX_IPSR_GPSR(IP1SR5_7_4, AVB1_TD1), |
| 1203 | PINMUX_IPSR_GPSR(IP1SR5_7_4, AVB1_MII_TD1), |
| 1204 | |
| 1205 | PINMUX_IPSR_GPSR(IP1SR5_11_8, AVB1_TD2), |
| 1206 | PINMUX_IPSR_GPSR(IP1SR5_11_8, AVB1_MII_TD2), |
| 1207 | |
| 1208 | PINMUX_IPSR_GPSR(IP1SR5_15_12, AVB1_TD3), |
| 1209 | PINMUX_IPSR_GPSR(IP1SR5_15_12, AVB1_MII_TD3), |
| 1210 | |
| 1211 | PINMUX_IPSR_GPSR(IP1SR5_19_16, AVB1_TXCREFCLK), |
| 1212 | |
| 1213 | PINMUX_IPSR_GPSR(IP1SR5_23_20, AVB1_MDIO), |
| 1214 | |
| 1215 | PINMUX_IPSR_GPSR(IP1SR5_27_24, AVB1_MDC), |
| 1216 | |
| 1217 | PINMUX_IPSR_GPSR(IP1SR5_31_28, AVB1_MAGIC), |
| 1218 | |
| 1219 | /* IP2SR5 */ |
| 1220 | PINMUX_IPSR_GPSR(IP2SR5_7_4, AVB1_LINK), |
| 1221 | PINMUX_IPSR_GPSR(IP2SR5_7_4, AVB1_MII_TX_ER), |
| 1222 | |
| 1223 | PINMUX_IPSR_GPSR(IP2SR5_11_8, AVB1_AVTP_MATCH), |
| 1224 | PINMUX_IPSR_GPSR(IP2SR5_11_8, AVB1_MII_RX_ER), |
| 1225 | |
| 1226 | PINMUX_IPSR_GPSR(IP2SR5_15_12, AVB1_AVTP_CAPTURE), |
| 1227 | PINMUX_IPSR_GPSR(IP2SR5_15_12, AVB1_MII_CRS), |
| 1228 | |
| 1229 | PINMUX_IPSR_GPSR(IP2SR5_19_16, AVB1_AVTP_PPS), |
| 1230 | PINMUX_IPSR_GPSR(IP2SR5_19_16, AVB1_MII_COL), |
| 1231 | }; |
| 1232 | |
| 1233 | /* |
| 1234 | * Pins not associated with a GPIO port. |
| 1235 | */ |
| 1236 | enum { |
| 1237 | GP_ASSIGN_LAST(), |
| 1238 | NOGP_ALL(), |
| 1239 | }; |
| 1240 | |
| 1241 | static const struct sh_pfc_pin pinmux_pins[] = { |
| 1242 | PINMUX_GPIO_GP_ALL(), |
| 1243 | }; |
| 1244 | |
| 1245 | /* - AVB0 ------------------------------------------------ */ |
| 1246 | static const unsigned int avb0_link_pins[] = { |
| 1247 | /* AVB0_LINK */ |
| 1248 | RCAR_GP_PIN(4, 17), |
| 1249 | }; |
| 1250 | static const unsigned int avb0_link_mux[] = { |
| 1251 | AVB0_LINK_MARK, |
| 1252 | }; |
| 1253 | static const unsigned int avb0_magic_pins[] = { |
| 1254 | /* AVB0_MAGIC */ |
| 1255 | RCAR_GP_PIN(4, 15), |
| 1256 | }; |
| 1257 | static const unsigned int avb0_magic_mux[] = { |
| 1258 | AVB0_MAGIC_MARK, |
| 1259 | }; |
| 1260 | static const unsigned int avb0_phy_int_pins[] = { |
| 1261 | /* AVB0_PHY_INT */ |
| 1262 | RCAR_GP_PIN(4, 16), |
| 1263 | }; |
| 1264 | static const unsigned int avb0_phy_int_mux[] = { |
| 1265 | AVB0_PHY_INT_MARK, |
| 1266 | }; |
| 1267 | static const unsigned int avb0_mdio_pins[] = { |
| 1268 | /* AVB0_MDC, AVB0_MDIO */ |
| 1269 | RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 13), |
| 1270 | }; |
| 1271 | static const unsigned int avb0_mdio_mux[] = { |
| 1272 | AVB0_MDC_MARK, AVB0_MDIO_MARK, |
| 1273 | }; |
| 1274 | static const unsigned int avb0_rgmii_pins[] = { |
| 1275 | /* |
| 1276 | * AVB0_TX_CTL, AVB0_TXC, AVB0_TD0, AVB0_TD1, AVB0_TD2, AVB0_TD3, |
| 1277 | * AVB0_RX_CTL, AVB0_RXC, AVB0_RD0, AVB0_RD1, AVB0_RD2, AVB0_RD3, |
| 1278 | */ |
| 1279 | RCAR_GP_PIN(4, 6), RCAR_GP_PIN(4, 7), |
| 1280 | RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 9), |
| 1281 | RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 11), |
| 1282 | RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1), |
| 1283 | RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 3), |
| 1284 | RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 5), |
| 1285 | }; |
| 1286 | static const unsigned int avb0_rgmii_mux[] = { |
| 1287 | AVB0_TX_CTL_MARK, AVB0_TXC_MARK, |
| 1288 | AVB0_TD0_MARK, AVB0_TD1_MARK, AVB0_TD2_MARK, AVB0_TD3_MARK, |
| 1289 | AVB0_RX_CTL_MARK, AVB0_RXC_MARK, |
| 1290 | AVB0_RD0_MARK, AVB0_RD1_MARK, AVB0_RD2_MARK, AVB0_RD3_MARK, |
| 1291 | }; |
| 1292 | static const unsigned int avb0_txcrefclk_pins[] = { |
| 1293 | /* AVB0_TXCREFCLK */ |
| 1294 | RCAR_GP_PIN(4, 12), |
| 1295 | }; |
| 1296 | static const unsigned int avb0_txcrefclk_mux[] = { |
| 1297 | AVB0_TXCREFCLK_MARK, |
| 1298 | }; |
| 1299 | static const unsigned int avb0_avtp_pps_pins[] = { |
| 1300 | /* AVB0_AVTP_PPS */ |
| 1301 | RCAR_GP_PIN(4, 20), |
| 1302 | }; |
| 1303 | static const unsigned int avb0_avtp_pps_mux[] = { |
| 1304 | AVB0_AVTP_PPS_MARK, |
| 1305 | }; |
| 1306 | static const unsigned int avb0_avtp_capture_pins[] = { |
| 1307 | /* AVB0_AVTP_CAPTURE */ |
| 1308 | RCAR_GP_PIN(4, 19), |
| 1309 | }; |
| 1310 | static const unsigned int avb0_avtp_capture_mux[] = { |
| 1311 | AVB0_AVTP_CAPTURE_MARK, |
| 1312 | }; |
| 1313 | static const unsigned int avb0_avtp_match_pins[] = { |
| 1314 | /* AVB0_AVTP_MATCH */ |
| 1315 | RCAR_GP_PIN(4, 18), |
| 1316 | }; |
| 1317 | static const unsigned int avb0_avtp_match_mux[] = { |
| 1318 | AVB0_AVTP_MATCH_MARK, |
| 1319 | }; |
| 1320 | |
| 1321 | /* - AVB1 ------------------------------------------------ */ |
| 1322 | static const unsigned int avb1_link_pins[] = { |
| 1323 | /* AVB1_LINK */ |
| 1324 | RCAR_GP_PIN(5, 17), |
| 1325 | }; |
| 1326 | static const unsigned int avb1_link_mux[] = { |
| 1327 | AVB1_LINK_MARK, |
| 1328 | }; |
| 1329 | static const unsigned int avb1_magic_pins[] = { |
| 1330 | /* AVB1_MAGIC */ |
| 1331 | RCAR_GP_PIN(5, 15), |
| 1332 | }; |
| 1333 | static const unsigned int avb1_magic_mux[] = { |
| 1334 | AVB1_MAGIC_MARK, |
| 1335 | }; |
| 1336 | static const unsigned int avb1_phy_int_pins[] = { |
| 1337 | /* AVB1_PHY_INT */ |
| 1338 | RCAR_GP_PIN(5, 16), |
| 1339 | }; |
| 1340 | static const unsigned int avb1_phy_int_mux[] = { |
| 1341 | AVB1_PHY_INT_MARK, |
| 1342 | }; |
| 1343 | static const unsigned int avb1_mdio_pins[] = { |
| 1344 | /* AVB1_MDC, AVB1_MDIO */ |
| 1345 | RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 13), |
| 1346 | }; |
| 1347 | static const unsigned int avb1_mdio_mux[] = { |
| 1348 | AVB1_MDC_MARK, AVB1_MDIO_MARK, |
| 1349 | }; |
| 1350 | static const unsigned int avb1_rgmii_pins[] = { |
| 1351 | /* |
| 1352 | * AVB1_TX_CTL, AVB1_TXC, AVB1_TD0, AVB1_TD1, AVB1_TD2, AVB1_TD3, |
| 1353 | * AVB1_RX_CTL, AVB1_RXC, AVB1_RD0, AVB1_RD1, AVB1_RD2, AVB1_RD3, |
| 1354 | */ |
| 1355 | RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 7), |
| 1356 | RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 9), |
| 1357 | RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 11), |
| 1358 | RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 1), |
| 1359 | RCAR_GP_PIN(5, 2), RCAR_GP_PIN(5, 3), |
| 1360 | RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 5), |
| 1361 | }; |
| 1362 | static const unsigned int avb1_rgmii_mux[] = { |
| 1363 | AVB1_TX_CTL_MARK, AVB1_TXC_MARK, |
| 1364 | AVB1_TD0_MARK, AVB1_TD1_MARK, AVB1_TD2_MARK, AVB1_TD3_MARK, |
| 1365 | AVB1_RX_CTL_MARK, AVB1_RXC_MARK, |
| 1366 | AVB1_RD0_MARK, AVB1_RD1_MARK, AVB1_RD2_MARK, AVB1_RD3_MARK, |
| 1367 | }; |
| 1368 | static const unsigned int avb1_txcrefclk_pins[] = { |
| 1369 | /* AVB1_TXCREFCLK */ |
| 1370 | RCAR_GP_PIN(5, 12), |
| 1371 | }; |
| 1372 | static const unsigned int avb1_txcrefclk_mux[] = { |
| 1373 | AVB1_TXCREFCLK_MARK, |
| 1374 | }; |
| 1375 | static const unsigned int avb1_avtp_pps_pins[] = { |
| 1376 | /* AVB1_AVTP_PPS */ |
| 1377 | RCAR_GP_PIN(5, 20), |
| 1378 | }; |
| 1379 | static const unsigned int avb1_avtp_pps_mux[] = { |
| 1380 | AVB1_AVTP_PPS_MARK, |
| 1381 | }; |
| 1382 | static const unsigned int avb1_avtp_capture_pins[] = { |
| 1383 | /* AVB1_AVTP_CAPTURE */ |
| 1384 | RCAR_GP_PIN(5, 19), |
| 1385 | }; |
| 1386 | static const unsigned int avb1_avtp_capture_mux[] = { |
| 1387 | AVB1_AVTP_CAPTURE_MARK, |
| 1388 | }; |
| 1389 | static const unsigned int avb1_avtp_match_pins[] = { |
| 1390 | /* AVB1_AVTP_MATCH */ |
| 1391 | RCAR_GP_PIN(5, 18), |
| 1392 | }; |
| 1393 | static const unsigned int avb1_avtp_match_mux[] = { |
| 1394 | AVB1_AVTP_MATCH_MARK, |
| 1395 | }; |
| 1396 | |
| 1397 | /* - AVB2 ------------------------------------------------ */ |
| 1398 | static const unsigned int avb2_link_pins[] = { |
| 1399 | /* AVB2_LINK */ |
| 1400 | RCAR_GP_PIN(6, 17), |
| 1401 | }; |
| 1402 | static const unsigned int avb2_link_mux[] = { |
| 1403 | AVB2_LINK_MARK, |
| 1404 | }; |
| 1405 | static const unsigned int avb2_magic_pins[] = { |
| 1406 | /* AVB2_MAGIC */ |
| 1407 | RCAR_GP_PIN(6, 15), |
| 1408 | }; |
| 1409 | static const unsigned int avb2_magic_mux[] = { |
| 1410 | AVB2_MAGIC_MARK, |
| 1411 | }; |
| 1412 | static const unsigned int avb2_phy_int_pins[] = { |
| 1413 | /* AVB2_PHY_INT */ |
| 1414 | RCAR_GP_PIN(6, 16), |
| 1415 | }; |
| 1416 | static const unsigned int avb2_phy_int_mux[] = { |
| 1417 | AVB2_PHY_INT_MARK, |
| 1418 | }; |
| 1419 | static const unsigned int avb2_mdio_pins[] = { |
| 1420 | /* AVB2_MDC, AVB2_MDIO */ |
| 1421 | RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 13), |
| 1422 | }; |
| 1423 | static const unsigned int avb2_mdio_mux[] = { |
| 1424 | AVB2_MDC_MARK, AVB2_MDIO_MARK, |
| 1425 | }; |
| 1426 | static const unsigned int avb2_rgmii_pins[] = { |
| 1427 | /* |
| 1428 | * AVB2_TX_CTL, AVB2_TXC, AVB2_TD0, AVB2_TD1, AVB2_TD2, AVB2_TD3, |
| 1429 | * AVB2_RX_CTL, AVB2_RXC, AVB2_RD0, AVB2_RD1, AVB2_RD2, AVB2_RD3, |
| 1430 | */ |
| 1431 | RCAR_GP_PIN(6, 6), RCAR_GP_PIN(6, 7), |
| 1432 | RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9), |
| 1433 | RCAR_GP_PIN(6, 10), RCAR_GP_PIN(6, 11), |
| 1434 | RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 1), |
| 1435 | RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 3), |
| 1436 | RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 5), |
| 1437 | }; |
| 1438 | static const unsigned int avb2_rgmii_mux[] = { |
| 1439 | AVB2_TX_CTL_MARK, AVB2_TXC_MARK, |
| 1440 | AVB2_TD0_MARK, AVB2_TD1_MARK, AVB2_TD2_MARK, AVB2_TD3_MARK, |
| 1441 | AVB2_RX_CTL_MARK, AVB2_RXC_MARK, |
| 1442 | AVB2_RD0_MARK, AVB2_RD1_MARK, AVB2_RD2_MARK, AVB2_RD3_MARK, |
| 1443 | }; |
| 1444 | static const unsigned int avb2_txcrefclk_pins[] = { |
| 1445 | /* AVB2_TXCREFCLK */ |
| 1446 | RCAR_GP_PIN(6, 12), |
| 1447 | }; |
| 1448 | static const unsigned int avb2_txcrefclk_mux[] = { |
| 1449 | AVB2_TXCREFCLK_MARK, |
| 1450 | }; |
| 1451 | static const unsigned int avb2_avtp_pps_pins[] = { |
| 1452 | /* AVB2_AVTP_PPS */ |
| 1453 | RCAR_GP_PIN(6, 20), |
| 1454 | }; |
| 1455 | static const unsigned int avb2_avtp_pps_mux[] = { |
| 1456 | AVB2_AVTP_PPS_MARK, |
| 1457 | }; |
| 1458 | static const unsigned int avb2_avtp_capture_pins[] = { |
| 1459 | /* AVB2_AVTP_CAPTURE */ |
| 1460 | RCAR_GP_PIN(6, 19), |
| 1461 | }; |
| 1462 | static const unsigned int avb2_avtp_capture_mux[] = { |
| 1463 | AVB2_AVTP_CAPTURE_MARK, |
| 1464 | }; |
| 1465 | static const unsigned int avb2_avtp_match_pins[] = { |
| 1466 | /* AVB2_AVTP_MATCH */ |
| 1467 | RCAR_GP_PIN(6, 18), |
| 1468 | }; |
| 1469 | static const unsigned int avb2_avtp_match_mux[] = { |
| 1470 | AVB2_AVTP_MATCH_MARK, |
| 1471 | }; |
| 1472 | |
| 1473 | /* - AVB3 ------------------------------------------------ */ |
| 1474 | static const unsigned int avb3_link_pins[] = { |
| 1475 | /* AVB3_LINK */ |
| 1476 | RCAR_GP_PIN(7, 17), |
| 1477 | }; |
| 1478 | static const unsigned int avb3_link_mux[] = { |
| 1479 | AVB3_LINK_MARK, |
| 1480 | }; |
| 1481 | static const unsigned int avb3_magic_pins[] = { |
| 1482 | /* AVB3_MAGIC */ |
| 1483 | RCAR_GP_PIN(7, 15), |
| 1484 | }; |
| 1485 | static const unsigned int avb3_magic_mux[] = { |
| 1486 | AVB3_MAGIC_MARK, |
| 1487 | }; |
| 1488 | static const unsigned int avb3_phy_int_pins[] = { |
| 1489 | /* AVB3_PHY_INT */ |
| 1490 | RCAR_GP_PIN(7, 16), |
| 1491 | }; |
| 1492 | static const unsigned int avb3_phy_int_mux[] = { |
| 1493 | AVB3_PHY_INT_MARK, |
| 1494 | }; |
| 1495 | static const unsigned int avb3_mdio_pins[] = { |
| 1496 | /* AVB3_MDC, AVB3_MDIO */ |
| 1497 | RCAR_GP_PIN(7, 14), RCAR_GP_PIN(7, 13), |
| 1498 | }; |
| 1499 | static const unsigned int avb3_mdio_mux[] = { |
| 1500 | AVB3_MDC_MARK, AVB3_MDIO_MARK, |
| 1501 | }; |
| 1502 | static const unsigned int avb3_rgmii_pins[] = { |
| 1503 | /* |
| 1504 | * AVB3_TX_CTL, AVB3_TXC, AVB3_TD0, AVB3_TD1, AVB3_TD2, AVB3_TD3, |
| 1505 | * AVB3_RX_CTL, AVB3_RXC, AVB3_RD0, AVB3_RD1, AVB3_RD2, AVB3_RD3, |
| 1506 | */ |
| 1507 | RCAR_GP_PIN(7, 6), RCAR_GP_PIN(7, 7), |
| 1508 | RCAR_GP_PIN(7, 8), RCAR_GP_PIN(7, 9), |
| 1509 | RCAR_GP_PIN(7, 10), RCAR_GP_PIN(7, 11), |
| 1510 | RCAR_GP_PIN(7, 0), RCAR_GP_PIN(7, 1), |
| 1511 | RCAR_GP_PIN(7, 2), RCAR_GP_PIN(7, 3), |
| 1512 | RCAR_GP_PIN(7, 4), RCAR_GP_PIN(7, 5), |
| 1513 | }; |
| 1514 | static const unsigned int avb3_rgmii_mux[] = { |
| 1515 | AVB3_TX_CTL_MARK, AVB3_TXC_MARK, |
| 1516 | AVB3_TD0_MARK, AVB3_TD1_MARK, AVB3_TD2_MARK, AVB3_TD3_MARK, |
| 1517 | AVB3_RX_CTL_MARK, AVB3_RXC_MARK, |
| 1518 | AVB3_RD0_MARK, AVB3_RD1_MARK, AVB3_RD2_MARK, AVB3_RD3_MARK, |
| 1519 | }; |
| 1520 | static const unsigned int avb3_txcrefclk_pins[] = { |
| 1521 | /* AVB3_TXCREFCLK */ |
| 1522 | RCAR_GP_PIN(7, 12), |
| 1523 | }; |
| 1524 | static const unsigned int avb3_txcrefclk_mux[] = { |
| 1525 | AVB3_TXCREFCLK_MARK, |
| 1526 | }; |
| 1527 | static const unsigned int avb3_avtp_pps_pins[] = { |
| 1528 | /* AVB3_AVTP_PPS */ |
| 1529 | RCAR_GP_PIN(7, 20), |
| 1530 | }; |
| 1531 | static const unsigned int avb3_avtp_pps_mux[] = { |
| 1532 | AVB3_AVTP_PPS_MARK, |
| 1533 | }; |
| 1534 | static const unsigned int avb3_avtp_capture_pins[] = { |
| 1535 | /* AVB3_AVTP_CAPTURE */ |
| 1536 | RCAR_GP_PIN(7, 19), |
| 1537 | }; |
| 1538 | static const unsigned int avb3_avtp_capture_mux[] = { |
| 1539 | AVB3_AVTP_CAPTURE_MARK, |
| 1540 | }; |
| 1541 | static const unsigned int avb3_avtp_match_pins[] = { |
| 1542 | /* AVB3_AVTP_MATCH */ |
| 1543 | RCAR_GP_PIN(7, 18), |
| 1544 | }; |
| 1545 | static const unsigned int avb3_avtp_match_mux[] = { |
| 1546 | AVB3_AVTP_MATCH_MARK, |
| 1547 | }; |
| 1548 | |
| 1549 | /* - AVB4 ------------------------------------------------ */ |
| 1550 | static const unsigned int avb4_link_pins[] = { |
| 1551 | /* AVB4_LINK */ |
| 1552 | RCAR_GP_PIN(8, 17), |
| 1553 | }; |
| 1554 | static const unsigned int avb4_link_mux[] = { |
| 1555 | AVB4_LINK_MARK, |
| 1556 | }; |
| 1557 | static const unsigned int avb4_magic_pins[] = { |
| 1558 | /* AVB4_MAGIC */ |
| 1559 | RCAR_GP_PIN(8, 15), |
| 1560 | }; |
| 1561 | static const unsigned int avb4_magic_mux[] = { |
| 1562 | AVB4_MAGIC_MARK, |
| 1563 | }; |
| 1564 | static const unsigned int avb4_phy_int_pins[] = { |
| 1565 | /* AVB4_PHY_INT */ |
| 1566 | RCAR_GP_PIN(8, 16), |
| 1567 | }; |
| 1568 | static const unsigned int avb4_phy_int_mux[] = { |
| 1569 | AVB4_PHY_INT_MARK, |
| 1570 | }; |
| 1571 | static const unsigned int avb4_mdio_pins[] = { |
| 1572 | /* AVB4_MDC, AVB4_MDIO */ |
| 1573 | RCAR_GP_PIN(8, 14), RCAR_GP_PIN(8, 13), |
| 1574 | }; |
| 1575 | static const unsigned int avb4_mdio_mux[] = { |
| 1576 | AVB4_MDC_MARK, AVB4_MDIO_MARK, |
| 1577 | }; |
| 1578 | static const unsigned int avb4_rgmii_pins[] = { |
| 1579 | /* |
| 1580 | * AVB4_TX_CTL, AVB4_TXC, AVB4_TD0, AVB4_TD1, AVB4_TD2, AVB4_TD3, |
| 1581 | * AVB4_RX_CTL, AVB4_RXC, AVB4_RD0, AVB4_RD1, AVB4_RD2, AVB4_RD3, |
| 1582 | */ |
| 1583 | RCAR_GP_PIN(8, 6), RCAR_GP_PIN(8, 7), |
| 1584 | RCAR_GP_PIN(8, 8), RCAR_GP_PIN(8, 9), |
| 1585 | RCAR_GP_PIN(8, 10), RCAR_GP_PIN(8, 11), |
| 1586 | RCAR_GP_PIN(8, 0), RCAR_GP_PIN(8, 1), |
| 1587 | RCAR_GP_PIN(8, 2), RCAR_GP_PIN(8, 3), |
| 1588 | RCAR_GP_PIN(8, 4), RCAR_GP_PIN(8, 5), |
| 1589 | }; |
| 1590 | static const unsigned int avb4_rgmii_mux[] = { |
| 1591 | AVB4_TX_CTL_MARK, AVB4_TXC_MARK, |
| 1592 | AVB4_TD0_MARK, AVB4_TD1_MARK, AVB4_TD2_MARK, AVB4_TD3_MARK, |
| 1593 | AVB4_RX_CTL_MARK, AVB4_RXC_MARK, |
| 1594 | AVB4_RD0_MARK, AVB4_RD1_MARK, AVB4_RD2_MARK, AVB4_RD3_MARK, |
| 1595 | }; |
| 1596 | static const unsigned int avb4_txcrefclk_pins[] = { |
| 1597 | /* AVB4_TXCREFCLK */ |
| 1598 | RCAR_GP_PIN(8, 12), |
| 1599 | }; |
| 1600 | static const unsigned int avb4_txcrefclk_mux[] = { |
| 1601 | AVB4_TXCREFCLK_MARK, |
| 1602 | }; |
| 1603 | static const unsigned int avb4_avtp_pps_pins[] = { |
| 1604 | /* AVB4_AVTP_PPS */ |
| 1605 | RCAR_GP_PIN(8, 20), |
| 1606 | }; |
| 1607 | static const unsigned int avb4_avtp_pps_mux[] = { |
| 1608 | AVB4_AVTP_PPS_MARK, |
| 1609 | }; |
| 1610 | static const unsigned int avb4_avtp_capture_pins[] = { |
| 1611 | /* AVB4_AVTP_CAPTURE */ |
| 1612 | RCAR_GP_PIN(8, 19), |
| 1613 | }; |
| 1614 | static const unsigned int avb4_avtp_capture_mux[] = { |
| 1615 | AVB4_AVTP_CAPTURE_MARK, |
| 1616 | }; |
| 1617 | static const unsigned int avb4_avtp_match_pins[] = { |
| 1618 | /* AVB4_AVTP_MATCH */ |
| 1619 | RCAR_GP_PIN(8, 18), |
| 1620 | }; |
| 1621 | static const unsigned int avb4_avtp_match_mux[] = { |
| 1622 | AVB4_AVTP_MATCH_MARK, |
| 1623 | }; |
| 1624 | |
| 1625 | /* - AVB5 ------------------------------------------------ */ |
| 1626 | static const unsigned int avb5_link_pins[] = { |
| 1627 | /* AVB5_LINK */ |
| 1628 | RCAR_GP_PIN(9, 17), |
| 1629 | }; |
| 1630 | static const unsigned int avb5_link_mux[] = { |
| 1631 | AVB5_LINK_MARK, |
| 1632 | }; |
| 1633 | static const unsigned int avb5_magic_pins[] = { |
| 1634 | /* AVB5_MAGIC */ |
| 1635 | RCAR_GP_PIN(9, 15), |
| 1636 | }; |
| 1637 | static const unsigned int avb5_magic_mux[] = { |
| 1638 | AVB5_MAGIC_MARK, |
| 1639 | }; |
| 1640 | static const unsigned int avb5_phy_int_pins[] = { |
| 1641 | /* AVB5_PHY_INT */ |
| 1642 | RCAR_GP_PIN(9, 16), |
| 1643 | }; |
| 1644 | static const unsigned int avb5_phy_int_mux[] = { |
| 1645 | AVB5_PHY_INT_MARK, |
| 1646 | }; |
| 1647 | static const unsigned int avb5_mdio_pins[] = { |
| 1648 | /* AVB5_MDC, AVB5_MDIO */ |
| 1649 | RCAR_GP_PIN(9, 14), RCAR_GP_PIN(9, 13), |
| 1650 | }; |
| 1651 | static const unsigned int avb5_mdio_mux[] = { |
| 1652 | AVB5_MDC_MARK, AVB5_MDIO_MARK, |
| 1653 | }; |
| 1654 | static const unsigned int avb5_rgmii_pins[] = { |
| 1655 | /* |
| 1656 | * AVB5_TX_CTL, AVB5_TXC, AVB5_TD0, AVB5_TD1, AVB5_TD2, AVB5_TD3, |
| 1657 | * AVB5_RX_CTL, AVB5_RXC, AVB5_RD0, AVB5_RD1, AVB5_RD2, AVB5_RD3, |
| 1658 | */ |
| 1659 | RCAR_GP_PIN(9, 6), RCAR_GP_PIN(9, 7), |
| 1660 | RCAR_GP_PIN(9, 8), RCAR_GP_PIN(9, 9), |
| 1661 | RCAR_GP_PIN(9, 10), RCAR_GP_PIN(9, 11), |
| 1662 | RCAR_GP_PIN(9, 0), RCAR_GP_PIN(9, 1), |
| 1663 | RCAR_GP_PIN(9, 2), RCAR_GP_PIN(9, 3), |
| 1664 | RCAR_GP_PIN(9, 4), RCAR_GP_PIN(9, 5), |
| 1665 | }; |
| 1666 | static const unsigned int avb5_rgmii_mux[] = { |
| 1667 | AVB5_TX_CTL_MARK, AVB5_TXC_MARK, |
| 1668 | AVB5_TD0_MARK, AVB5_TD1_MARK, AVB5_TD2_MARK, AVB5_TD3_MARK, |
| 1669 | AVB5_RX_CTL_MARK, AVB5_RXC_MARK, |
| 1670 | AVB5_RD0_MARK, AVB5_RD1_MARK, AVB5_RD2_MARK, AVB5_RD3_MARK, |
| 1671 | }; |
| 1672 | static const unsigned int avb5_txcrefclk_pins[] = { |
| 1673 | /* AVB5_TXCREFCLK */ |
| 1674 | RCAR_GP_PIN(9, 12), |
| 1675 | }; |
| 1676 | static const unsigned int avb5_txcrefclk_mux[] = { |
| 1677 | AVB5_TXCREFCLK_MARK, |
| 1678 | }; |
| 1679 | static const unsigned int avb5_avtp_pps_pins[] = { |
| 1680 | /* AVB5_AVTP_PPS */ |
| 1681 | RCAR_GP_PIN(9, 20), |
| 1682 | }; |
| 1683 | static const unsigned int avb5_avtp_pps_mux[] = { |
| 1684 | AVB5_AVTP_PPS_MARK, |
| 1685 | }; |
| 1686 | static const unsigned int avb5_avtp_capture_pins[] = { |
| 1687 | /* AVB5_AVTP_CAPTURE */ |
| 1688 | RCAR_GP_PIN(9, 19), |
| 1689 | }; |
| 1690 | static const unsigned int avb5_avtp_capture_mux[] = { |
| 1691 | AVB5_AVTP_CAPTURE_MARK, |
| 1692 | }; |
| 1693 | static const unsigned int avb5_avtp_match_pins[] = { |
| 1694 | /* AVB5_AVTP_MATCH */ |
| 1695 | RCAR_GP_PIN(9, 18), |
| 1696 | }; |
| 1697 | static const unsigned int avb5_avtp_match_mux[] = { |
| 1698 | AVB5_AVTP_MATCH_MARK, |
| 1699 | }; |
| 1700 | |
| 1701 | /* - CANFD0 ----------------------------------------------------------------- */ |
| 1702 | static const unsigned int canfd0_data_pins[] = { |
| 1703 | /* CANFD0_TX, CANFD0_RX */ |
| 1704 | RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 2), |
| 1705 | }; |
| 1706 | static const unsigned int canfd0_data_mux[] = { |
| 1707 | CANFD0_TX_MARK, CANFD0_RX_MARK, |
| 1708 | }; |
| 1709 | |
| 1710 | /* - CANFD1 ----------------------------------------------------------------- */ |
| 1711 | static const unsigned int canfd1_data_pins[] = { |
| 1712 | /* CANFD1_TX, CANFD1_RX */ |
| 1713 | RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 4), |
| 1714 | }; |
| 1715 | static const unsigned int canfd1_data_mux[] = { |
| 1716 | CANFD1_TX_MARK, CANFD1_RX_MARK, |
| 1717 | }; |
| 1718 | |
| 1719 | /* - CANFD2 ----------------------------------------------------------------- */ |
| 1720 | static const unsigned int canfd2_data_pins[] = { |
| 1721 | /* CANFD2_TX, CANFD2_RX */ |
| 1722 | RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 6), |
| 1723 | }; |
| 1724 | static const unsigned int canfd2_data_mux[] = { |
| 1725 | CANFD2_TX_MARK, CANFD2_RX_MARK, |
| 1726 | }; |
| 1727 | |
| 1728 | /* - CANFD3 ----------------------------------------------------------------- */ |
| 1729 | static const unsigned int canfd3_data_pins[] = { |
| 1730 | /* CANFD3_TX, CANFD3_RX */ |
| 1731 | RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 8), |
| 1732 | }; |
| 1733 | static const unsigned int canfd3_data_mux[] = { |
| 1734 | CANFD3_TX_MARK, CANFD3_RX_MARK, |
| 1735 | }; |
| 1736 | |
| 1737 | /* - CANFD4 ----------------------------------------------------------------- */ |
| 1738 | static const unsigned int canfd4_data_pins[] = { |
| 1739 | /* CANFD4_TX, CANFD4_RX */ |
| 1740 | RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 10), |
| 1741 | }; |
| 1742 | static const unsigned int canfd4_data_mux[] = { |
| 1743 | CANFD4_TX_MARK, CANFD4_RX_MARK, |
| 1744 | }; |
| 1745 | |
| 1746 | /* - CANFD5 ----------------------------------------------------------------- */ |
| 1747 | static const unsigned int canfd5_data_pins[] = { |
| 1748 | /* CANFD5_TX, CANFD5_RX */ |
| 1749 | RCAR_GP_PIN(3, 11), RCAR_GP_PIN(3, 12), |
| 1750 | }; |
| 1751 | static const unsigned int canfd5_data_mux[] = { |
| 1752 | CANFD5_TX_MARK, CANFD5_RX_MARK, |
| 1753 | }; |
| 1754 | |
| 1755 | /* - CANFD6 ----------------------------------------------------------------- */ |
| 1756 | static const unsigned int canfd6_data_pins[] = { |
| 1757 | /* CANFD6_TX, CANFD6_RX */ |
| 1758 | RCAR_GP_PIN(3, 13), RCAR_GP_PIN(3, 14), |
| 1759 | }; |
| 1760 | static const unsigned int canfd6_data_mux[] = { |
| 1761 | CANFD6_TX_MARK, CANFD6_RX_MARK, |
| 1762 | }; |
| 1763 | |
| 1764 | /* - CANFD7 ----------------------------------------------------------------- */ |
| 1765 | static const unsigned int canfd7_data_pins[] = { |
| 1766 | /* CANFD7_TX, CANFD7_RX */ |
| 1767 | RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 16), |
| 1768 | }; |
| 1769 | static const unsigned int canfd7_data_mux[] = { |
| 1770 | CANFD7_TX_MARK, CANFD7_RX_MARK, |
| 1771 | }; |
| 1772 | |
| 1773 | /* - CANFD Clock ------------------------------------------------------------ */ |
| 1774 | static const unsigned int can_clk_pins[] = { |
| 1775 | /* CAN_CLK */ |
| 1776 | RCAR_GP_PIN(3, 0), |
| 1777 | }; |
| 1778 | static const unsigned int can_clk_mux[] = { |
| 1779 | CAN_CLK_MARK, |
| 1780 | }; |
| 1781 | |
| 1782 | /* - DU --------------------------------------------------------------------- */ |
| 1783 | static const unsigned int du_rgb888_pins[] = { |
| 1784 | /* DU_DR[7:2], DU_DG[7:2], DU_DB[7:2] */ |
| 1785 | RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 9), |
| 1786 | RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6), |
| 1787 | RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 15), |
| 1788 | RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 12), |
| 1789 | RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 21), |
| 1790 | RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18), |
| 1791 | }; |
| 1792 | static const unsigned int du_rgb888_mux[] = { |
| 1793 | DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK, |
| 1794 | DU_DR4_MARK, DU_DR3_MARK, DU_DR2_MARK, |
| 1795 | DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK, |
| 1796 | DU_DG4_MARK, DU_DG3_MARK, DU_DG2_MARK, |
| 1797 | DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK, |
| 1798 | DU_DB4_MARK, DU_DB3_MARK, DU_DB2_MARK, |
| 1799 | }; |
| 1800 | static const unsigned int du_clk_out_pins[] = { |
| 1801 | /* DU_DOTCLKOUT */ |
| 1802 | RCAR_GP_PIN(1, 24), |
| 1803 | }; |
| 1804 | static const unsigned int du_clk_out_mux[] = { |
| 1805 | DU_DOTCLKOUT_MARK, |
| 1806 | }; |
| 1807 | static const unsigned int du_sync_pins[] = { |
| 1808 | /* DU_HSYNC, DU_VSYNC */ |
| 1809 | RCAR_GP_PIN(1, 25), RCAR_GP_PIN(1, 26), |
| 1810 | }; |
| 1811 | static const unsigned int du_sync_mux[] = { |
| 1812 | DU_HSYNC_MARK, DU_VSYNC_MARK, |
| 1813 | }; |
| 1814 | static const unsigned int du_oddf_pins[] = { |
| 1815 | /* DU_EXODDF/DU_ODDF/DISP/CDE */ |
| 1816 | RCAR_GP_PIN(1, 27), |
| 1817 | }; |
| 1818 | static const unsigned int du_oddf_mux[] = { |
| 1819 | DU_ODDF_DISP_CDE_MARK, |
| 1820 | }; |
| 1821 | |
| 1822 | /* - HSCIF0 ----------------------------------------------------------------- */ |
| 1823 | static const unsigned int hscif0_data_pins[] = { |
| 1824 | /* HRX0, HTX0 */ |
| 1825 | RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 5), |
| 1826 | }; |
| 1827 | static const unsigned int hscif0_data_mux[] = { |
| 1828 | HRX0_MARK, HTX0_MARK, |
| 1829 | }; |
| 1830 | static const unsigned int hscif0_clk_pins[] = { |
| 1831 | /* HSCK0 */ |
| 1832 | RCAR_GP_PIN(1, 2), |
| 1833 | }; |
| 1834 | static const unsigned int hscif0_clk_mux[] = { |
| 1835 | HSCK0_MARK, |
| 1836 | }; |
| 1837 | static const unsigned int hscif0_ctrl_pins[] = { |
| 1838 | /* HRTS0#, HCTS0# */ |
| 1839 | RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 4), |
| 1840 | }; |
| 1841 | static const unsigned int hscif0_ctrl_mux[] = { |
| 1842 | HRTS0_N_MARK, HCTS0_N_MARK, |
| 1843 | }; |
| 1844 | |
| 1845 | /* - HSCIF1 ----------------------------------------------------------------- */ |
| 1846 | static const unsigned int hscif1_data_pins[] = { |
| 1847 | /* HRX1, HTX1 */ |
| 1848 | RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 22), |
| 1849 | }; |
| 1850 | static const unsigned int hscif1_data_mux[] = { |
| 1851 | HRX1_MARK, HTX1_MARK, |
| 1852 | }; |
| 1853 | static const unsigned int hscif1_clk_pins[] = { |
| 1854 | /* HSCK1 */ |
| 1855 | RCAR_GP_PIN(1, 18), |
| 1856 | }; |
| 1857 | static const unsigned int hscif1_clk_mux[] = { |
| 1858 | HSCK1_MARK, |
| 1859 | }; |
| 1860 | static const unsigned int hscif1_ctrl_pins[] = { |
| 1861 | /* HRTS1#, HCTS1# */ |
| 1862 | RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 19), |
| 1863 | }; |
| 1864 | static const unsigned int hscif1_ctrl_mux[] = { |
| 1865 | HRTS1_N_MARK, HCTS1_N_MARK, |
| 1866 | }; |
| 1867 | |
| 1868 | /* - HSCIF2 ----------------------------------------------------------------- */ |
| 1869 | static const unsigned int hscif2_data_pins[] = { |
| 1870 | /* HRX2, HTX2 */ |
| 1871 | RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9), |
| 1872 | }; |
| 1873 | static const unsigned int hscif2_data_mux[] = { |
| 1874 | HRX2_MARK, HTX2_MARK, |
| 1875 | }; |
| 1876 | static const unsigned int hscif2_clk_pins[] = { |
| 1877 | /* HSCK2 */ |
| 1878 | RCAR_GP_PIN(2, 5), |
| 1879 | }; |
| 1880 | static const unsigned int hscif2_clk_mux[] = { |
| 1881 | HSCK2_MARK, |
| 1882 | }; |
| 1883 | static const unsigned int hscif2_ctrl_pins[] = { |
| 1884 | /* HRTS2#, HCTS2# */ |
| 1885 | RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 6), |
| 1886 | }; |
| 1887 | static const unsigned int hscif2_ctrl_mux[] = { |
| 1888 | HRTS2_N_MARK, HCTS2_N_MARK, |
| 1889 | }; |
| 1890 | |
| 1891 | /* - HSCIF3 ----------------------------------------------------------------- */ |
| 1892 | static const unsigned int hscif3_data_pins[] = { |
| 1893 | /* HRX3, HTX3 */ |
| 1894 | RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 17), |
| 1895 | }; |
| 1896 | static const unsigned int hscif3_data_mux[] = { |
| 1897 | HRX3_MARK, HTX3_MARK, |
| 1898 | }; |
| 1899 | static const unsigned int hscif3_clk_pins[] = { |
| 1900 | /* HSCK3 */ |
| 1901 | RCAR_GP_PIN(1, 14), |
| 1902 | }; |
| 1903 | static const unsigned int hscif3_clk_mux[] = { |
| 1904 | HSCK3_MARK, |
| 1905 | }; |
| 1906 | static const unsigned int hscif3_ctrl_pins[] = { |
| 1907 | /* HRTS3#, HCTS3# */ |
| 1908 | RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16), |
| 1909 | }; |
| 1910 | static const unsigned int hscif3_ctrl_mux[] = { |
| 1911 | HRTS3_N_MARK, HCTS3_N_MARK, |
| 1912 | }; |
| 1913 | |
| 1914 | /* - I2C0 ------------------------------------------------------------------- */ |
| 1915 | static const unsigned int i2c0_pins[] = { |
| 1916 | /* SDA0, SCL0 */ |
| 1917 | RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 2), |
| 1918 | }; |
| 1919 | static const unsigned int i2c0_mux[] = { |
| 1920 | SDA0_MARK, SCL0_MARK, |
| 1921 | }; |
| 1922 | |
| 1923 | /* - I2C1 ------------------------------------------------------------------- */ |
| 1924 | static const unsigned int i2c1_pins[] = { |
| 1925 | /* SDA1, SCL1 */ |
| 1926 | RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 4), |
| 1927 | }; |
| 1928 | static const unsigned int i2c1_mux[] = { |
| 1929 | SDA1_MARK, SCL1_MARK, |
| 1930 | }; |
| 1931 | |
| 1932 | /* - I2C2 ------------------------------------------------------------------- */ |
| 1933 | static const unsigned int i2c2_pins[] = { |
| 1934 | /* SDA2, SCL2 */ |
| 1935 | RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 6), |
| 1936 | }; |
| 1937 | static const unsigned int i2c2_mux[] = { |
| 1938 | SDA2_MARK, SCL2_MARK, |
| 1939 | }; |
| 1940 | |
| 1941 | /* - I2C3 ------------------------------------------------------------------- */ |
| 1942 | static const unsigned int i2c3_pins[] = { |
| 1943 | /* SDA3, SCL3 */ |
| 1944 | RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 8), |
| 1945 | }; |
| 1946 | static const unsigned int i2c3_mux[] = { |
| 1947 | SDA3_MARK, SCL3_MARK, |
| 1948 | }; |
| 1949 | |
| 1950 | /* - I2C4 ------------------------------------------------------------------- */ |
| 1951 | static const unsigned int i2c4_pins[] = { |
| 1952 | /* SDA4, SCL4 */ |
| 1953 | RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 10), |
| 1954 | }; |
| 1955 | static const unsigned int i2c4_mux[] = { |
| 1956 | SDA4_MARK, SCL4_MARK, |
| 1957 | }; |
| 1958 | |
| 1959 | /* - I2C5 ------------------------------------------------------------------- */ |
| 1960 | static const unsigned int i2c5_pins[] = { |
| 1961 | /* SDA5, SCL5 */ |
| 1962 | RCAR_GP_PIN(2, 13), RCAR_GP_PIN(2, 12), |
| 1963 | }; |
| 1964 | static const unsigned int i2c5_mux[] = { |
| 1965 | SDA5_MARK, SCL5_MARK, |
| 1966 | }; |
| 1967 | |
| 1968 | /* - I2C6 ------------------------------------------------------------------- */ |
| 1969 | static const unsigned int i2c6_pins[] = { |
| 1970 | /* SDA6, SCL6 */ |
| 1971 | RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 14), |
| 1972 | }; |
| 1973 | static const unsigned int i2c6_mux[] = { |
| 1974 | SDA6_MARK, SCL6_MARK, |
| 1975 | }; |
| 1976 | |
| 1977 | /* - INTC-EX ---------------------------------------------------------------- */ |
| 1978 | static const unsigned int intc_ex_irq0_pins[] = { |
| 1979 | /* IRQ0 */ |
| 1980 | RCAR_GP_PIN(1, 24), |
| 1981 | }; |
| 1982 | static const unsigned int intc_ex_irq0_mux[] = { |
| 1983 | IRQ0_MARK, |
| 1984 | }; |
| 1985 | static const unsigned int intc_ex_irq1_pins[] = { |
| 1986 | /* IRQ1 */ |
| 1987 | RCAR_GP_PIN(1, 25), |
| 1988 | }; |
| 1989 | static const unsigned int intc_ex_irq1_mux[] = { |
| 1990 | IRQ1_MARK, |
| 1991 | }; |
| 1992 | static const unsigned int intc_ex_irq2_pins[] = { |
| 1993 | /* IRQ2 */ |
| 1994 | RCAR_GP_PIN(1, 26), |
| 1995 | }; |
| 1996 | static const unsigned int intc_ex_irq2_mux[] = { |
| 1997 | IRQ2_MARK, |
| 1998 | }; |
| 1999 | static const unsigned int intc_ex_irq3_pins[] = { |
| 2000 | /* IRQ3 */ |
| 2001 | RCAR_GP_PIN(1, 27), |
| 2002 | }; |
| 2003 | static const unsigned int intc_ex_irq3_mux[] = { |
| 2004 | IRQ3_MARK, |
| 2005 | }; |
| 2006 | static const unsigned int intc_ex_irq4_pins[] = { |
| 2007 | /* IRQ4 */ |
| 2008 | RCAR_GP_PIN(2, 14), |
| 2009 | }; |
| 2010 | static const unsigned int intc_ex_irq4_mux[] = { |
| 2011 | IRQ4_MARK, |
| 2012 | }; |
| 2013 | static const unsigned int intc_ex_irq5_pins[] = { |
| 2014 | /* IRQ5 */ |
| 2015 | RCAR_GP_PIN(2, 15), |
| 2016 | }; |
| 2017 | static const unsigned int intc_ex_irq5_mux[] = { |
| 2018 | IRQ5_MARK, |
| 2019 | }; |
| 2020 | |
| 2021 | /* - MMC -------------------------------------------------------------------- */ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 2022 | static const unsigned int mmc_data_pins[] = { |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 2023 | /* MMC_SD_D[0:3], MMC_D[4:7] */ |
| 2024 | RCAR_GP_PIN(0, 19), RCAR_GP_PIN(0, 20), |
| 2025 | RCAR_GP_PIN(0, 21), RCAR_GP_PIN(0, 22), |
| 2026 | RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 25), |
| 2027 | RCAR_GP_PIN(0, 26), RCAR_GP_PIN(0, 27), |
| 2028 | }; |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 2029 | static const unsigned int mmc_data_mux[] = { |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 2030 | MMC_SD_D0_MARK, MMC_SD_D1_MARK, |
| 2031 | MMC_SD_D2_MARK, MMC_SD_D3_MARK, |
| 2032 | MMC_D4_MARK, MMC_D5_MARK, |
| 2033 | MMC_D6_MARK, MMC_D7_MARK, |
| 2034 | }; |
| 2035 | static const unsigned int mmc_ctrl_pins[] = { |
| 2036 | /* MMC_SD_CLK, MMC_SD_CMD */ |
| 2037 | RCAR_GP_PIN(0, 23), RCAR_GP_PIN(0, 18), |
| 2038 | }; |
| 2039 | static const unsigned int mmc_ctrl_mux[] = { |
| 2040 | MMC_SD_CLK_MARK, MMC_SD_CMD_MARK, |
| 2041 | }; |
| 2042 | static const unsigned int mmc_cd_pins[] = { |
| 2043 | /* SD_CD */ |
| 2044 | RCAR_GP_PIN(0, 16), |
| 2045 | }; |
| 2046 | static const unsigned int mmc_cd_mux[] = { |
| 2047 | SD_CD_MARK, |
| 2048 | }; |
| 2049 | static const unsigned int mmc_wp_pins[] = { |
| 2050 | /* SD_WP */ |
| 2051 | RCAR_GP_PIN(0, 15), |
| 2052 | }; |
| 2053 | static const unsigned int mmc_wp_mux[] = { |
| 2054 | SD_WP_MARK, |
| 2055 | }; |
| 2056 | static const unsigned int mmc_ds_pins[] = { |
| 2057 | /* MMC_DS */ |
| 2058 | RCAR_GP_PIN(0, 17), |
| 2059 | }; |
| 2060 | static const unsigned int mmc_ds_mux[] = { |
| 2061 | MMC_DS_MARK, |
| 2062 | }; |
| 2063 | |
| 2064 | /* - MSIOF0 ----------------------------------------------------------------- */ |
| 2065 | static const unsigned int msiof0_clk_pins[] = { |
| 2066 | /* MSIOF0_SCK */ |
| 2067 | RCAR_GP_PIN(1, 8), |
| 2068 | }; |
| 2069 | static const unsigned int msiof0_clk_mux[] = { |
| 2070 | MSIOF0_SCK_MARK, |
| 2071 | }; |
| 2072 | static const unsigned int msiof0_sync_pins[] = { |
| 2073 | /* MSIOF0_SYNC */ |
| 2074 | RCAR_GP_PIN(1, 9), |
| 2075 | }; |
| 2076 | static const unsigned int msiof0_sync_mux[] = { |
| 2077 | MSIOF0_SYNC_MARK, |
| 2078 | }; |
| 2079 | static const unsigned int msiof0_ss1_pins[] = { |
| 2080 | /* MSIOF0_SS1 */ |
| 2081 | RCAR_GP_PIN(1, 10), |
| 2082 | }; |
| 2083 | static const unsigned int msiof0_ss1_mux[] = { |
| 2084 | MSIOF0_SS1_MARK, |
| 2085 | }; |
| 2086 | static const unsigned int msiof0_ss2_pins[] = { |
| 2087 | /* MSIOF0_SS2 */ |
| 2088 | RCAR_GP_PIN(1, 11), |
| 2089 | }; |
| 2090 | static const unsigned int msiof0_ss2_mux[] = { |
| 2091 | MSIOF0_SS2_MARK, |
| 2092 | }; |
| 2093 | static const unsigned int msiof0_txd_pins[] = { |
| 2094 | /* MSIOF0_TXD */ |
| 2095 | RCAR_GP_PIN(1, 7), |
| 2096 | }; |
| 2097 | static const unsigned int msiof0_txd_mux[] = { |
| 2098 | MSIOF0_TXD_MARK, |
| 2099 | }; |
| 2100 | static const unsigned int msiof0_rxd_pins[] = { |
| 2101 | /* MSIOF0_RXD */ |
| 2102 | RCAR_GP_PIN(1, 6), |
| 2103 | }; |
| 2104 | static const unsigned int msiof0_rxd_mux[] = { |
| 2105 | MSIOF0_RXD_MARK, |
| 2106 | }; |
| 2107 | |
| 2108 | /* - MSIOF1 ----------------------------------------------------------------- */ |
| 2109 | static const unsigned int msiof1_clk_pins[] = { |
| 2110 | /* MSIOF1_SCK */ |
| 2111 | RCAR_GP_PIN(1, 14), |
| 2112 | }; |
| 2113 | static const unsigned int msiof1_clk_mux[] = { |
| 2114 | MSIOF1_SCK_MARK, |
| 2115 | }; |
| 2116 | static const unsigned int msiof1_sync_pins[] = { |
| 2117 | /* MSIOF1_SYNC */ |
| 2118 | RCAR_GP_PIN(1, 15), |
| 2119 | }; |
| 2120 | static const unsigned int msiof1_sync_mux[] = { |
| 2121 | MSIOF1_SYNC_MARK, |
| 2122 | }; |
| 2123 | static const unsigned int msiof1_ss1_pins[] = { |
| 2124 | /* MSIOF1_SS1 */ |
| 2125 | RCAR_GP_PIN(1, 16), |
| 2126 | }; |
| 2127 | static const unsigned int msiof1_ss1_mux[] = { |
| 2128 | MSIOF1_SS1_MARK, |
| 2129 | }; |
| 2130 | static const unsigned int msiof1_ss2_pins[] = { |
| 2131 | /* MSIOF1_SS2 */ |
| 2132 | RCAR_GP_PIN(1, 17), |
| 2133 | }; |
| 2134 | static const unsigned int msiof1_ss2_mux[] = { |
| 2135 | MSIOF1_SS2_MARK, |
| 2136 | }; |
| 2137 | static const unsigned int msiof1_txd_pins[] = { |
| 2138 | /* MSIOF1_TXD */ |
| 2139 | RCAR_GP_PIN(1, 13), |
| 2140 | }; |
| 2141 | static const unsigned int msiof1_txd_mux[] = { |
| 2142 | MSIOF1_TXD_MARK, |
| 2143 | }; |
| 2144 | static const unsigned int msiof1_rxd_pins[] = { |
| 2145 | /* MSIOF1_RXD */ |
| 2146 | RCAR_GP_PIN(1, 12), |
| 2147 | }; |
| 2148 | static const unsigned int msiof1_rxd_mux[] = { |
| 2149 | MSIOF1_RXD_MARK, |
| 2150 | }; |
| 2151 | |
| 2152 | /* - MSIOF2 ----------------------------------------------------------------- */ |
| 2153 | static const unsigned int msiof2_clk_pins[] = { |
| 2154 | /* MSIOF2_SCK */ |
| 2155 | RCAR_GP_PIN(1, 20), |
| 2156 | }; |
| 2157 | static const unsigned int msiof2_clk_mux[] = { |
| 2158 | MSIOF2_SCK_MARK, |
| 2159 | }; |
| 2160 | static const unsigned int msiof2_sync_pins[] = { |
| 2161 | /* MSIOF2_SYNC */ |
| 2162 | RCAR_GP_PIN(1, 21), |
| 2163 | }; |
| 2164 | static const unsigned int msiof2_sync_mux[] = { |
| 2165 | MSIOF2_SYNC_MARK, |
| 2166 | }; |
| 2167 | static const unsigned int msiof2_ss1_pins[] = { |
| 2168 | /* MSIOF2_SS1 */ |
| 2169 | RCAR_GP_PIN(1, 22), |
| 2170 | }; |
| 2171 | static const unsigned int msiof2_ss1_mux[] = { |
| 2172 | MSIOF2_SS1_MARK, |
| 2173 | }; |
| 2174 | static const unsigned int msiof2_ss2_pins[] = { |
| 2175 | /* MSIOF2_SS2 */ |
| 2176 | RCAR_GP_PIN(1, 23), |
| 2177 | }; |
| 2178 | static const unsigned int msiof2_ss2_mux[] = { |
| 2179 | MSIOF2_SS2_MARK, |
| 2180 | }; |
| 2181 | static const unsigned int msiof2_txd_pins[] = { |
| 2182 | /* MSIOF2_TXD */ |
| 2183 | RCAR_GP_PIN(1, 19), |
| 2184 | }; |
| 2185 | static const unsigned int msiof2_txd_mux[] = { |
| 2186 | MSIOF2_TXD_MARK, |
| 2187 | }; |
| 2188 | static const unsigned int msiof2_rxd_pins[] = { |
| 2189 | /* MSIOF2_RXD */ |
| 2190 | RCAR_GP_PIN(1, 18), |
| 2191 | }; |
| 2192 | static const unsigned int msiof2_rxd_mux[] = { |
| 2193 | MSIOF2_RXD_MARK, |
| 2194 | }; |
| 2195 | |
| 2196 | /* - MSIOF3 ----------------------------------------------------------------- */ |
| 2197 | static const unsigned int msiof3_clk_pins[] = { |
| 2198 | /* MSIOF3_SCK */ |
| 2199 | RCAR_GP_PIN(2, 20), |
| 2200 | }; |
| 2201 | static const unsigned int msiof3_clk_mux[] = { |
| 2202 | MSIOF3_SCK_MARK, |
| 2203 | }; |
| 2204 | static const unsigned int msiof3_sync_pins[] = { |
| 2205 | /* MSIOF3_SYNC */ |
| 2206 | RCAR_GP_PIN(2, 21), |
| 2207 | }; |
| 2208 | static const unsigned int msiof3_sync_mux[] = { |
| 2209 | MSIOF3_SYNC_MARK, |
| 2210 | }; |
| 2211 | static const unsigned int msiof3_ss1_pins[] = { |
| 2212 | /* MSIOF3_SS1 */ |
| 2213 | RCAR_GP_PIN(2, 16), |
| 2214 | }; |
| 2215 | static const unsigned int msiof3_ss1_mux[] = { |
| 2216 | MSIOF3_SS1_MARK, |
| 2217 | }; |
| 2218 | static const unsigned int msiof3_ss2_pins[] = { |
| 2219 | /* MSIOF3_SS2 */ |
| 2220 | RCAR_GP_PIN(2, 17), |
| 2221 | }; |
| 2222 | static const unsigned int msiof3_ss2_mux[] = { |
| 2223 | MSIOF3_SS2_MARK, |
| 2224 | }; |
| 2225 | static const unsigned int msiof3_txd_pins[] = { |
| 2226 | /* MSIOF3_TXD */ |
| 2227 | RCAR_GP_PIN(2, 19), |
| 2228 | }; |
| 2229 | static const unsigned int msiof3_txd_mux[] = { |
| 2230 | MSIOF3_TXD_MARK, |
| 2231 | }; |
| 2232 | static const unsigned int msiof3_rxd_pins[] = { |
| 2233 | /* MSIOF3_RXD */ |
| 2234 | RCAR_GP_PIN(2, 18), |
| 2235 | }; |
| 2236 | static const unsigned int msiof3_rxd_mux[] = { |
| 2237 | MSIOF3_RXD_MARK, |
| 2238 | }; |
| 2239 | |
| 2240 | /* - MSIOF4 ----------------------------------------------------------------- */ |
| 2241 | static const unsigned int msiof4_clk_pins[] = { |
| 2242 | /* MSIOF4_SCK */ |
| 2243 | RCAR_GP_PIN(2, 6), |
| 2244 | }; |
| 2245 | static const unsigned int msiof4_clk_mux[] = { |
| 2246 | MSIOF4_SCK_MARK, |
| 2247 | }; |
| 2248 | static const unsigned int msiof4_sync_pins[] = { |
| 2249 | /* MSIOF4_SYNC */ |
| 2250 | RCAR_GP_PIN(2, 7), |
| 2251 | }; |
| 2252 | static const unsigned int msiof4_sync_mux[] = { |
| 2253 | MSIOF4_SYNC_MARK, |
| 2254 | }; |
| 2255 | static const unsigned int msiof4_ss1_pins[] = { |
| 2256 | /* MSIOF4_SS1 */ |
| 2257 | RCAR_GP_PIN(2, 8), |
| 2258 | }; |
| 2259 | static const unsigned int msiof4_ss1_mux[] = { |
| 2260 | MSIOF4_SS1_MARK, |
| 2261 | }; |
| 2262 | static const unsigned int msiof4_ss2_pins[] = { |
| 2263 | /* MSIOF4_SS2 */ |
| 2264 | RCAR_GP_PIN(2, 9), |
| 2265 | }; |
| 2266 | static const unsigned int msiof4_ss2_mux[] = { |
| 2267 | MSIOF4_SS2_MARK, |
| 2268 | }; |
| 2269 | static const unsigned int msiof4_txd_pins[] = { |
| 2270 | /* MSIOF4_TXD */ |
| 2271 | RCAR_GP_PIN(2, 5), |
| 2272 | }; |
| 2273 | static const unsigned int msiof4_txd_mux[] = { |
| 2274 | MSIOF4_TXD_MARK, |
| 2275 | }; |
| 2276 | static const unsigned int msiof4_rxd_pins[] = { |
| 2277 | /* MSIOF4_RXD */ |
| 2278 | RCAR_GP_PIN(2, 4), |
| 2279 | }; |
| 2280 | static const unsigned int msiof4_rxd_mux[] = { |
| 2281 | MSIOF4_RXD_MARK, |
| 2282 | }; |
| 2283 | |
| 2284 | /* - MSIOF5 ----------------------------------------------------------------- */ |
| 2285 | static const unsigned int msiof5_clk_pins[] = { |
| 2286 | /* MSIOF5_SCK */ |
| 2287 | RCAR_GP_PIN(2, 12), |
| 2288 | }; |
| 2289 | static const unsigned int msiof5_clk_mux[] = { |
| 2290 | MSIOF5_SCK_MARK, |
| 2291 | }; |
| 2292 | static const unsigned int msiof5_sync_pins[] = { |
| 2293 | /* MSIOF5_SYNC */ |
| 2294 | RCAR_GP_PIN(2, 13), |
| 2295 | }; |
| 2296 | static const unsigned int msiof5_sync_mux[] = { |
| 2297 | MSIOF5_SYNC_MARK, |
| 2298 | }; |
| 2299 | static const unsigned int msiof5_ss1_pins[] = { |
| 2300 | /* MSIOF5_SS1 */ |
| 2301 | RCAR_GP_PIN(2, 14), |
| 2302 | }; |
| 2303 | static const unsigned int msiof5_ss1_mux[] = { |
| 2304 | MSIOF5_SS1_MARK, |
| 2305 | }; |
| 2306 | static const unsigned int msiof5_ss2_pins[] = { |
| 2307 | /* MSIOF5_SS2 */ |
| 2308 | RCAR_GP_PIN(2, 15), |
| 2309 | }; |
| 2310 | static const unsigned int msiof5_ss2_mux[] = { |
| 2311 | MSIOF5_SS2_MARK, |
| 2312 | }; |
| 2313 | static const unsigned int msiof5_txd_pins[] = { |
| 2314 | /* MSIOF5_TXD */ |
| 2315 | RCAR_GP_PIN(2, 11), |
| 2316 | }; |
| 2317 | static const unsigned int msiof5_txd_mux[] = { |
| 2318 | MSIOF5_TXD_MARK, |
| 2319 | }; |
| 2320 | static const unsigned int msiof5_rxd_pins[] = { |
| 2321 | /* MSIOF5_RXD */ |
| 2322 | RCAR_GP_PIN(2, 10), |
| 2323 | }; |
| 2324 | static const unsigned int msiof5_rxd_mux[] = { |
| 2325 | MSIOF5_RXD_MARK, |
| 2326 | }; |
| 2327 | |
| 2328 | /* - PWM0 ------------------------------------------------------------------- */ |
| 2329 | static const unsigned int pwm0_pins[] = { |
| 2330 | /* PWM0 */ |
| 2331 | RCAR_GP_PIN(3, 5), |
| 2332 | }; |
| 2333 | static const unsigned int pwm0_mux[] = { |
| 2334 | PWM0_MARK, |
| 2335 | }; |
| 2336 | |
| 2337 | /* - PWM1 ------------------------------------------------------------------- */ |
| 2338 | static const unsigned int pwm1_pins[] = { |
| 2339 | /* PWM1 */ |
| 2340 | RCAR_GP_PIN(3, 6), |
| 2341 | }; |
| 2342 | static const unsigned int pwm1_mux[] = { |
| 2343 | PWM1_MARK, |
| 2344 | }; |
| 2345 | |
| 2346 | /* - PWM2 ------------------------------------------------------------------- */ |
| 2347 | static const unsigned int pwm2_pins[] = { |
| 2348 | /* PWM2 */ |
| 2349 | RCAR_GP_PIN(3, 7), |
| 2350 | }; |
| 2351 | static const unsigned int pwm2_mux[] = { |
| 2352 | PWM2_MARK, |
| 2353 | }; |
| 2354 | |
| 2355 | /* - PWM3 ------------------------------------------------------------------- */ |
| 2356 | static const unsigned int pwm3_pins[] = { |
| 2357 | /* PWM3 */ |
| 2358 | RCAR_GP_PIN(3, 8), |
| 2359 | }; |
| 2360 | static const unsigned int pwm3_mux[] = { |
| 2361 | PWM3_MARK, |
| 2362 | }; |
| 2363 | |
| 2364 | /* - PWM4 ------------------------------------------------------------------- */ |
| 2365 | static const unsigned int pwm4_pins[] = { |
| 2366 | /* PWM4 */ |
| 2367 | RCAR_GP_PIN(3, 9), |
| 2368 | }; |
| 2369 | static const unsigned int pwm4_mux[] = { |
| 2370 | PWM4_MARK, |
| 2371 | }; |
| 2372 | |
| 2373 | /* - QSPI0 ------------------------------------------------------------------ */ |
| 2374 | static const unsigned int qspi0_ctrl_pins[] = { |
| 2375 | /* SPCLK, SSL */ |
| 2376 | RCAR_GP_PIN(0, 0), RCAR_GP_PIN(0, 5), |
| 2377 | }; |
| 2378 | static const unsigned int qspi0_ctrl_mux[] = { |
| 2379 | QSPI0_SPCLK_MARK, QSPI0_SSL_MARK, |
| 2380 | }; |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 2381 | static const unsigned int qspi0_data_pins[] = { |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 2382 | /* MOSI_IO0, MISO_IO1, IO2, IO3 */ |
| 2383 | RCAR_GP_PIN(0, 1), RCAR_GP_PIN(0, 2), |
| 2384 | RCAR_GP_PIN(0, 3), RCAR_GP_PIN(0, 4), |
| 2385 | }; |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 2386 | static const unsigned int qspi0_data_mux[] = { |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 2387 | QSPI0_MOSI_IO0_MARK, QSPI0_MISO_IO1_MARK, |
| 2388 | QSPI0_IO2_MARK, QSPI0_IO3_MARK |
| 2389 | }; |
| 2390 | |
| 2391 | /* - QSPI1 ------------------------------------------------------------------ */ |
| 2392 | static const unsigned int qspi1_ctrl_pins[] = { |
| 2393 | /* SPCLK, SSL */ |
| 2394 | RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 11), |
| 2395 | }; |
| 2396 | static const unsigned int qspi1_ctrl_mux[] = { |
| 2397 | QSPI1_SPCLK_MARK, QSPI1_SSL_MARK, |
| 2398 | }; |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 2399 | static const unsigned int qspi1_data_pins[] = { |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 2400 | /* MOSI_IO0, MISO_IO1, IO2, IO3 */ |
| 2401 | RCAR_GP_PIN(0, 7), RCAR_GP_PIN(0, 8), |
| 2402 | RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 10), |
| 2403 | }; |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 2404 | static const unsigned int qspi1_data_mux[] = { |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 2405 | QSPI1_MOSI_IO0_MARK, QSPI1_MISO_IO1_MARK, |
| 2406 | QSPI1_IO2_MARK, QSPI1_IO3_MARK |
| 2407 | }; |
| 2408 | |
| 2409 | /* - SCIF0 ------------------------------------------------------------------ */ |
| 2410 | static const unsigned int scif0_data_pins[] = { |
| 2411 | /* RX0, TX0 */ |
| 2412 | RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 5), |
| 2413 | }; |
| 2414 | static const unsigned int scif0_data_mux[] = { |
| 2415 | RX0_MARK, TX0_MARK, |
| 2416 | }; |
| 2417 | static const unsigned int scif0_clk_pins[] = { |
| 2418 | /* SCK0 */ |
| 2419 | RCAR_GP_PIN(1, 2), |
| 2420 | }; |
| 2421 | static const unsigned int scif0_clk_mux[] = { |
| 2422 | SCK0_MARK, |
| 2423 | }; |
| 2424 | static const unsigned int scif0_ctrl_pins[] = { |
| 2425 | /* RTS0#, CTS0# */ |
| 2426 | RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 4), |
| 2427 | }; |
| 2428 | static const unsigned int scif0_ctrl_mux[] = { |
| 2429 | RTS0_N_MARK, CTS0_N_MARK, |
| 2430 | }; |
| 2431 | |
| 2432 | /* - SCIF1 ------------------------------------------------------------------ */ |
| 2433 | static const unsigned int scif1_data_a_pins[] = { |
| 2434 | /* RX, TX */ |
| 2435 | RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 22), |
| 2436 | }; |
| 2437 | static const unsigned int scif1_data_a_mux[] = { |
| 2438 | RX1_A_MARK, TX1_A_MARK, |
| 2439 | }; |
| 2440 | static const unsigned int scif1_data_b_pins[] = { |
| 2441 | /* RX, TX */ |
| 2442 | RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 1), |
| 2443 | }; |
| 2444 | static const unsigned int scif1_data_b_mux[] = { |
| 2445 | RX1_B_MARK, TX1_B_MARK, |
| 2446 | }; |
| 2447 | static const unsigned int scif1_clk_pins[] = { |
| 2448 | /* SCK1 */ |
| 2449 | RCAR_GP_PIN(1, 18), |
| 2450 | }; |
| 2451 | static const unsigned int scif1_clk_mux[] = { |
| 2452 | SCK1_MARK, |
| 2453 | }; |
| 2454 | static const unsigned int scif1_ctrl_pins[] = { |
| 2455 | /* RTS1#, CTS1# */ |
| 2456 | RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 19), |
| 2457 | }; |
| 2458 | static const unsigned int scif1_ctrl_mux[] = { |
| 2459 | RTS1_N_MARK, CTS1_N_MARK, |
| 2460 | }; |
| 2461 | |
| 2462 | /* - SCIF3 ------------------------------------------------------------------ */ |
| 2463 | static const unsigned int scif3_data_pins[] = { |
| 2464 | /* RX3, TX3 */ |
| 2465 | RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 17), |
| 2466 | }; |
| 2467 | static const unsigned int scif3_data_mux[] = { |
| 2468 | RX3_MARK, TX3_MARK, |
| 2469 | }; |
| 2470 | static const unsigned int scif3_clk_pins[] = { |
| 2471 | /* SCK3 */ |
| 2472 | RCAR_GP_PIN(1, 13), |
| 2473 | }; |
| 2474 | static const unsigned int scif3_clk_mux[] = { |
| 2475 | SCK3_MARK, |
| 2476 | }; |
| 2477 | static const unsigned int scif3_ctrl_pins[] = { |
| 2478 | /* RTS3#, CTS3# */ |
| 2479 | RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), |
| 2480 | }; |
| 2481 | static const unsigned int scif3_ctrl_mux[] = { |
| 2482 | RTS3_N_MARK, CTS3_N_MARK, |
| 2483 | }; |
| 2484 | |
| 2485 | /* - SCIF4 ------------------------------------------------------------------ */ |
| 2486 | static const unsigned int scif4_data_pins[] = { |
| 2487 | /* RX4, TX4 */ |
| 2488 | RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9), |
| 2489 | }; |
| 2490 | static const unsigned int scif4_data_mux[] = { |
| 2491 | RX4_MARK, TX4_MARK, |
| 2492 | }; |
| 2493 | static const unsigned int scif4_clk_pins[] = { |
| 2494 | /* SCK4 */ |
| 2495 | RCAR_GP_PIN(2, 5), |
| 2496 | }; |
| 2497 | static const unsigned int scif4_clk_mux[] = { |
| 2498 | SCK4_MARK, |
| 2499 | }; |
| 2500 | static const unsigned int scif4_ctrl_pins[] = { |
| 2501 | /* RTS4#, CTS4# */ |
| 2502 | RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 6), |
| 2503 | }; |
| 2504 | static const unsigned int scif4_ctrl_mux[] = { |
| 2505 | RTS4_N_MARK, CTS4_N_MARK, |
| 2506 | }; |
| 2507 | |
| 2508 | /* - SCIF Clock ------------------------------------------------------------- */ |
| 2509 | static const unsigned int scif_clk_pins[] = { |
| 2510 | /* SCIF_CLK */ |
| 2511 | RCAR_GP_PIN(1, 0), |
| 2512 | }; |
| 2513 | static const unsigned int scif_clk_mux[] = { |
| 2514 | SCIF_CLK_MARK, |
| 2515 | }; |
| 2516 | |
| 2517 | /* - TMU -------------------------------------------------------------------- */ |
| 2518 | static const unsigned int tmu_tclk1_a_pins[] = { |
| 2519 | /* TCLK1 */ |
| 2520 | RCAR_GP_PIN(2, 23), |
| 2521 | }; |
| 2522 | static const unsigned int tmu_tclk1_a_mux[] = { |
| 2523 | TCLK1_A_MARK, |
| 2524 | }; |
| 2525 | static const unsigned int tmu_tclk1_b_pins[] = { |
| 2526 | /* TCLK1 */ |
| 2527 | RCAR_GP_PIN(1, 23), |
| 2528 | }; |
| 2529 | static const unsigned int tmu_tclk1_b_mux[] = { |
| 2530 | TCLK1_B_MARK, |
| 2531 | }; |
| 2532 | |
| 2533 | static const unsigned int tmu_tclk2_a_pins[] = { |
| 2534 | /* TCLK2 */ |
| 2535 | RCAR_GP_PIN(2, 24), |
| 2536 | }; |
| 2537 | static const unsigned int tmu_tclk2_a_mux[] = { |
| 2538 | TCLK2_A_MARK, |
| 2539 | }; |
| 2540 | static const unsigned int tmu_tclk2_b_pins[] = { |
| 2541 | /* TCLK2 */ |
| 2542 | RCAR_GP_PIN(2, 10), |
| 2543 | }; |
| 2544 | static const unsigned int tmu_tclk2_b_mux[] = { |
| 2545 | TCLK2_B_MARK, |
| 2546 | }; |
| 2547 | |
| 2548 | static const unsigned int tmu_tclk3_pins[] = { |
| 2549 | /* TCLK3 */ |
| 2550 | RCAR_GP_PIN(2, 11), |
| 2551 | }; |
| 2552 | static const unsigned int tmu_tclk3_mux[] = { |
| 2553 | TCLK3_MARK, |
| 2554 | }; |
| 2555 | |
| 2556 | static const unsigned int tmu_tclk4_pins[] = { |
| 2557 | /* TCLK4 */ |
| 2558 | RCAR_GP_PIN(2, 12), |
| 2559 | }; |
| 2560 | static const unsigned int tmu_tclk4_mux[] = { |
| 2561 | TCLK4_MARK, |
| 2562 | }; |
| 2563 | |
| 2564 | /* - TPU ------------------------------------------------------------------- */ |
| 2565 | static const unsigned int tpu_to0_pins[] = { |
| 2566 | /* TPU0TO0 */ |
| 2567 | RCAR_GP_PIN(2, 21), |
| 2568 | }; |
| 2569 | static const unsigned int tpu_to0_mux[] = { |
| 2570 | TPU0TO0_MARK, |
| 2571 | }; |
| 2572 | static const unsigned int tpu_to1_pins[] = { |
| 2573 | /* TPU0TO1 */ |
| 2574 | RCAR_GP_PIN(2, 22), |
| 2575 | }; |
| 2576 | static const unsigned int tpu_to1_mux[] = { |
| 2577 | TPU0TO1_MARK, |
| 2578 | }; |
| 2579 | static const unsigned int tpu_to2_pins[] = { |
| 2580 | /* TPU0TO2 */ |
| 2581 | RCAR_GP_PIN(3, 5), |
| 2582 | }; |
| 2583 | static const unsigned int tpu_to2_mux[] = { |
| 2584 | TPU0TO2_MARK, |
| 2585 | }; |
| 2586 | static const unsigned int tpu_to3_pins[] = { |
| 2587 | /* TPU0TO3 */ |
| 2588 | RCAR_GP_PIN(3, 6), |
| 2589 | }; |
| 2590 | static const unsigned int tpu_to3_mux[] = { |
| 2591 | TPU0TO3_MARK, |
| 2592 | }; |
| 2593 | |
| 2594 | static const struct sh_pfc_pin_group pinmux_groups[] = { |
| 2595 | SH_PFC_PIN_GROUP(avb0_link), |
| 2596 | SH_PFC_PIN_GROUP(avb0_magic), |
| 2597 | SH_PFC_PIN_GROUP(avb0_phy_int), |
| 2598 | SH_PFC_PIN_GROUP(avb0_mdio), |
| 2599 | SH_PFC_PIN_GROUP(avb0_rgmii), |
| 2600 | SH_PFC_PIN_GROUP(avb0_txcrefclk), |
| 2601 | SH_PFC_PIN_GROUP(avb0_avtp_pps), |
| 2602 | SH_PFC_PIN_GROUP(avb0_avtp_capture), |
| 2603 | SH_PFC_PIN_GROUP(avb0_avtp_match), |
| 2604 | |
| 2605 | SH_PFC_PIN_GROUP(avb1_link), |
| 2606 | SH_PFC_PIN_GROUP(avb1_magic), |
| 2607 | SH_PFC_PIN_GROUP(avb1_phy_int), |
| 2608 | SH_PFC_PIN_GROUP(avb1_mdio), |
| 2609 | SH_PFC_PIN_GROUP(avb1_rgmii), |
| 2610 | SH_PFC_PIN_GROUP(avb1_txcrefclk), |
| 2611 | SH_PFC_PIN_GROUP(avb1_avtp_pps), |
| 2612 | SH_PFC_PIN_GROUP(avb1_avtp_capture), |
| 2613 | SH_PFC_PIN_GROUP(avb1_avtp_match), |
| 2614 | |
| 2615 | SH_PFC_PIN_GROUP(avb2_link), |
| 2616 | SH_PFC_PIN_GROUP(avb2_magic), |
| 2617 | SH_PFC_PIN_GROUP(avb2_phy_int), |
| 2618 | SH_PFC_PIN_GROUP(avb2_mdio), |
| 2619 | SH_PFC_PIN_GROUP(avb2_rgmii), |
| 2620 | SH_PFC_PIN_GROUP(avb2_txcrefclk), |
| 2621 | SH_PFC_PIN_GROUP(avb2_avtp_pps), |
| 2622 | SH_PFC_PIN_GROUP(avb2_avtp_capture), |
| 2623 | SH_PFC_PIN_GROUP(avb2_avtp_match), |
| 2624 | |
| 2625 | SH_PFC_PIN_GROUP(avb3_link), |
| 2626 | SH_PFC_PIN_GROUP(avb3_magic), |
| 2627 | SH_PFC_PIN_GROUP(avb3_phy_int), |
| 2628 | SH_PFC_PIN_GROUP(avb3_mdio), |
| 2629 | SH_PFC_PIN_GROUP(avb3_rgmii), |
| 2630 | SH_PFC_PIN_GROUP(avb3_txcrefclk), |
| 2631 | SH_PFC_PIN_GROUP(avb3_avtp_pps), |
| 2632 | SH_PFC_PIN_GROUP(avb3_avtp_capture), |
| 2633 | SH_PFC_PIN_GROUP(avb3_avtp_match), |
| 2634 | |
| 2635 | SH_PFC_PIN_GROUP(avb4_link), |
| 2636 | SH_PFC_PIN_GROUP(avb4_magic), |
| 2637 | SH_PFC_PIN_GROUP(avb4_phy_int), |
| 2638 | SH_PFC_PIN_GROUP(avb4_mdio), |
| 2639 | SH_PFC_PIN_GROUP(avb4_rgmii), |
| 2640 | SH_PFC_PIN_GROUP(avb4_txcrefclk), |
| 2641 | SH_PFC_PIN_GROUP(avb4_avtp_pps), |
| 2642 | SH_PFC_PIN_GROUP(avb4_avtp_capture), |
| 2643 | SH_PFC_PIN_GROUP(avb4_avtp_match), |
| 2644 | |
| 2645 | SH_PFC_PIN_GROUP(avb5_link), |
| 2646 | SH_PFC_PIN_GROUP(avb5_magic), |
| 2647 | SH_PFC_PIN_GROUP(avb5_phy_int), |
| 2648 | SH_PFC_PIN_GROUP(avb5_mdio), |
| 2649 | SH_PFC_PIN_GROUP(avb5_rgmii), |
| 2650 | SH_PFC_PIN_GROUP(avb5_txcrefclk), |
| 2651 | SH_PFC_PIN_GROUP(avb5_avtp_pps), |
| 2652 | SH_PFC_PIN_GROUP(avb5_avtp_capture), |
| 2653 | SH_PFC_PIN_GROUP(avb5_avtp_match), |
| 2654 | |
| 2655 | SH_PFC_PIN_GROUP(canfd0_data), |
| 2656 | SH_PFC_PIN_GROUP(canfd1_data), |
| 2657 | SH_PFC_PIN_GROUP(canfd2_data), |
| 2658 | SH_PFC_PIN_GROUP(canfd3_data), |
| 2659 | SH_PFC_PIN_GROUP(canfd4_data), |
| 2660 | SH_PFC_PIN_GROUP(canfd5_data), |
| 2661 | SH_PFC_PIN_GROUP(canfd6_data), |
| 2662 | SH_PFC_PIN_GROUP(canfd7_data), |
| 2663 | SH_PFC_PIN_GROUP(can_clk), |
| 2664 | |
| 2665 | SH_PFC_PIN_GROUP(du_rgb888), |
| 2666 | SH_PFC_PIN_GROUP(du_clk_out), |
| 2667 | SH_PFC_PIN_GROUP(du_sync), |
| 2668 | SH_PFC_PIN_GROUP(du_oddf), |
| 2669 | |
| 2670 | SH_PFC_PIN_GROUP(hscif0_data), |
| 2671 | SH_PFC_PIN_GROUP(hscif0_clk), |
| 2672 | SH_PFC_PIN_GROUP(hscif0_ctrl), |
| 2673 | SH_PFC_PIN_GROUP(hscif1_data), |
| 2674 | SH_PFC_PIN_GROUP(hscif1_clk), |
| 2675 | SH_PFC_PIN_GROUP(hscif1_ctrl), |
| 2676 | SH_PFC_PIN_GROUP(hscif2_data), |
| 2677 | SH_PFC_PIN_GROUP(hscif2_clk), |
| 2678 | SH_PFC_PIN_GROUP(hscif2_ctrl), |
| 2679 | SH_PFC_PIN_GROUP(hscif3_data), |
| 2680 | SH_PFC_PIN_GROUP(hscif3_clk), |
| 2681 | SH_PFC_PIN_GROUP(hscif3_ctrl), |
| 2682 | |
| 2683 | SH_PFC_PIN_GROUP(i2c0), |
| 2684 | SH_PFC_PIN_GROUP(i2c1), |
| 2685 | SH_PFC_PIN_GROUP(i2c2), |
| 2686 | SH_PFC_PIN_GROUP(i2c3), |
| 2687 | SH_PFC_PIN_GROUP(i2c4), |
| 2688 | SH_PFC_PIN_GROUP(i2c5), |
| 2689 | SH_PFC_PIN_GROUP(i2c6), |
| 2690 | |
| 2691 | SH_PFC_PIN_GROUP(intc_ex_irq0), |
| 2692 | SH_PFC_PIN_GROUP(intc_ex_irq1), |
| 2693 | SH_PFC_PIN_GROUP(intc_ex_irq2), |
| 2694 | SH_PFC_PIN_GROUP(intc_ex_irq3), |
| 2695 | SH_PFC_PIN_GROUP(intc_ex_irq4), |
| 2696 | SH_PFC_PIN_GROUP(intc_ex_irq5), |
| 2697 | |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 2698 | BUS_DATA_PIN_GROUP(mmc_data, 1), |
| 2699 | BUS_DATA_PIN_GROUP(mmc_data, 4), |
| 2700 | BUS_DATA_PIN_GROUP(mmc_data, 8), |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 2701 | SH_PFC_PIN_GROUP(mmc_ctrl), |
| 2702 | SH_PFC_PIN_GROUP(mmc_cd), |
| 2703 | SH_PFC_PIN_GROUP(mmc_wp), |
| 2704 | SH_PFC_PIN_GROUP(mmc_ds), |
| 2705 | |
| 2706 | SH_PFC_PIN_GROUP(msiof0_clk), |
| 2707 | SH_PFC_PIN_GROUP(msiof0_sync), |
| 2708 | SH_PFC_PIN_GROUP(msiof0_ss1), |
| 2709 | SH_PFC_PIN_GROUP(msiof0_ss2), |
| 2710 | SH_PFC_PIN_GROUP(msiof0_txd), |
| 2711 | SH_PFC_PIN_GROUP(msiof0_rxd), |
| 2712 | SH_PFC_PIN_GROUP(msiof1_clk), |
| 2713 | SH_PFC_PIN_GROUP(msiof1_sync), |
| 2714 | SH_PFC_PIN_GROUP(msiof1_ss1), |
| 2715 | SH_PFC_PIN_GROUP(msiof1_ss2), |
| 2716 | SH_PFC_PIN_GROUP(msiof1_txd), |
| 2717 | SH_PFC_PIN_GROUP(msiof1_rxd), |
| 2718 | SH_PFC_PIN_GROUP(msiof2_clk), |
| 2719 | SH_PFC_PIN_GROUP(msiof2_sync), |
| 2720 | SH_PFC_PIN_GROUP(msiof2_ss1), |
| 2721 | SH_PFC_PIN_GROUP(msiof2_ss2), |
| 2722 | SH_PFC_PIN_GROUP(msiof2_txd), |
| 2723 | SH_PFC_PIN_GROUP(msiof2_rxd), |
| 2724 | SH_PFC_PIN_GROUP(msiof3_clk), |
| 2725 | SH_PFC_PIN_GROUP(msiof3_sync), |
| 2726 | SH_PFC_PIN_GROUP(msiof3_ss1), |
| 2727 | SH_PFC_PIN_GROUP(msiof3_ss2), |
| 2728 | SH_PFC_PIN_GROUP(msiof3_txd), |
| 2729 | SH_PFC_PIN_GROUP(msiof3_rxd), |
| 2730 | SH_PFC_PIN_GROUP(msiof4_clk), |
| 2731 | SH_PFC_PIN_GROUP(msiof4_sync), |
| 2732 | SH_PFC_PIN_GROUP(msiof4_ss1), |
| 2733 | SH_PFC_PIN_GROUP(msiof4_ss2), |
| 2734 | SH_PFC_PIN_GROUP(msiof4_txd), |
| 2735 | SH_PFC_PIN_GROUP(msiof4_rxd), |
| 2736 | SH_PFC_PIN_GROUP(msiof5_clk), |
| 2737 | SH_PFC_PIN_GROUP(msiof5_sync), |
| 2738 | SH_PFC_PIN_GROUP(msiof5_ss1), |
| 2739 | SH_PFC_PIN_GROUP(msiof5_ss2), |
| 2740 | SH_PFC_PIN_GROUP(msiof5_txd), |
| 2741 | SH_PFC_PIN_GROUP(msiof5_rxd), |
| 2742 | |
| 2743 | SH_PFC_PIN_GROUP(pwm0), |
| 2744 | SH_PFC_PIN_GROUP(pwm1), |
| 2745 | SH_PFC_PIN_GROUP(pwm2), |
| 2746 | SH_PFC_PIN_GROUP(pwm3), |
| 2747 | SH_PFC_PIN_GROUP(pwm4), |
| 2748 | |
| 2749 | SH_PFC_PIN_GROUP(qspi0_ctrl), |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 2750 | BUS_DATA_PIN_GROUP(qspi0_data, 2), |
| 2751 | BUS_DATA_PIN_GROUP(qspi0_data, 4), |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 2752 | SH_PFC_PIN_GROUP(qspi1_ctrl), |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 2753 | BUS_DATA_PIN_GROUP(qspi1_data, 2), |
| 2754 | BUS_DATA_PIN_GROUP(qspi1_data, 4), |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 2755 | |
| 2756 | SH_PFC_PIN_GROUP(scif0_data), |
| 2757 | SH_PFC_PIN_GROUP(scif0_clk), |
| 2758 | SH_PFC_PIN_GROUP(scif0_ctrl), |
| 2759 | SH_PFC_PIN_GROUP(scif1_data_a), |
| 2760 | SH_PFC_PIN_GROUP(scif1_data_b), |
| 2761 | SH_PFC_PIN_GROUP(scif1_clk), |
| 2762 | SH_PFC_PIN_GROUP(scif1_ctrl), |
| 2763 | SH_PFC_PIN_GROUP(scif3_data), |
| 2764 | SH_PFC_PIN_GROUP(scif3_clk), |
| 2765 | SH_PFC_PIN_GROUP(scif3_ctrl), |
| 2766 | SH_PFC_PIN_GROUP(scif4_data), |
| 2767 | SH_PFC_PIN_GROUP(scif4_clk), |
| 2768 | SH_PFC_PIN_GROUP(scif4_ctrl), |
| 2769 | SH_PFC_PIN_GROUP(scif_clk), |
| 2770 | |
| 2771 | SH_PFC_PIN_GROUP(tmu_tclk1_a), |
| 2772 | SH_PFC_PIN_GROUP(tmu_tclk1_b), |
| 2773 | SH_PFC_PIN_GROUP(tmu_tclk2_a), |
| 2774 | SH_PFC_PIN_GROUP(tmu_tclk2_b), |
| 2775 | SH_PFC_PIN_GROUP(tmu_tclk3), |
| 2776 | SH_PFC_PIN_GROUP(tmu_tclk4), |
| 2777 | |
| 2778 | SH_PFC_PIN_GROUP(tpu_to0), |
| 2779 | SH_PFC_PIN_GROUP(tpu_to1), |
| 2780 | SH_PFC_PIN_GROUP(tpu_to2), |
| 2781 | SH_PFC_PIN_GROUP(tpu_to3), |
| 2782 | }; |
| 2783 | |
| 2784 | static const char * const avb0_groups[] = { |
| 2785 | "avb0_link", |
| 2786 | "avb0_magic", |
| 2787 | "avb0_phy_int", |
| 2788 | "avb0_mdio", |
| 2789 | "avb0_rgmii", |
| 2790 | "avb0_txcrefclk", |
| 2791 | "avb0_avtp_pps", |
| 2792 | "avb0_avtp_capture", |
| 2793 | "avb0_avtp_match", |
| 2794 | }; |
| 2795 | |
| 2796 | static const char * const avb1_groups[] = { |
| 2797 | "avb1_link", |
| 2798 | "avb1_magic", |
| 2799 | "avb1_phy_int", |
| 2800 | "avb1_mdio", |
| 2801 | "avb1_rgmii", |
| 2802 | "avb1_txcrefclk", |
| 2803 | "avb1_avtp_pps", |
| 2804 | "avb1_avtp_capture", |
| 2805 | "avb1_avtp_match", |
| 2806 | }; |
| 2807 | |
| 2808 | static const char * const avb2_groups[] = { |
| 2809 | "avb2_link", |
| 2810 | "avb2_magic", |
| 2811 | "avb2_phy_int", |
| 2812 | "avb2_mdio", |
| 2813 | "avb2_rgmii", |
| 2814 | "avb2_txcrefclk", |
| 2815 | "avb2_avtp_pps", |
| 2816 | "avb2_avtp_capture", |
| 2817 | "avb2_avtp_match", |
| 2818 | }; |
| 2819 | |
| 2820 | static const char * const avb3_groups[] = { |
| 2821 | "avb3_link", |
| 2822 | "avb3_magic", |
| 2823 | "avb3_phy_int", |
| 2824 | "avb3_mdio", |
| 2825 | "avb3_rgmii", |
| 2826 | "avb3_txcrefclk", |
| 2827 | "avb3_avtp_pps", |
| 2828 | "avb3_avtp_capture", |
| 2829 | "avb3_avtp_match", |
| 2830 | }; |
| 2831 | |
| 2832 | static const char * const avb4_groups[] = { |
| 2833 | "avb4_link", |
| 2834 | "avb4_magic", |
| 2835 | "avb4_phy_int", |
| 2836 | "avb4_mdio", |
| 2837 | "avb4_rgmii", |
| 2838 | "avb4_txcrefclk", |
| 2839 | "avb4_avtp_pps", |
| 2840 | "avb4_avtp_capture", |
| 2841 | "avb4_avtp_match", |
| 2842 | }; |
| 2843 | |
| 2844 | static const char * const avb5_groups[] = { |
| 2845 | "avb5_link", |
| 2846 | "avb5_magic", |
| 2847 | "avb5_phy_int", |
| 2848 | "avb5_mdio", |
| 2849 | "avb5_rgmii", |
| 2850 | "avb5_txcrefclk", |
| 2851 | "avb5_avtp_pps", |
| 2852 | "avb5_avtp_capture", |
| 2853 | "avb5_avtp_match", |
| 2854 | }; |
| 2855 | |
| 2856 | static const char * const canfd0_groups[] = { |
| 2857 | "canfd0_data", |
| 2858 | }; |
| 2859 | |
| 2860 | static const char * const canfd1_groups[] = { |
| 2861 | "canfd1_data", |
| 2862 | }; |
| 2863 | |
| 2864 | static const char * const canfd2_groups[] = { |
| 2865 | "canfd2_data", |
| 2866 | }; |
| 2867 | |
| 2868 | static const char * const canfd3_groups[] = { |
| 2869 | "canfd3_data", |
| 2870 | }; |
| 2871 | |
| 2872 | static const char * const canfd4_groups[] = { |
| 2873 | "canfd4_data", |
| 2874 | }; |
| 2875 | |
| 2876 | static const char * const canfd5_groups[] = { |
| 2877 | "canfd5_data", |
| 2878 | }; |
| 2879 | |
| 2880 | static const char * const canfd6_groups[] = { |
| 2881 | "canfd6_data", |
| 2882 | }; |
| 2883 | |
| 2884 | static const char * const canfd7_groups[] = { |
| 2885 | "canfd7_data", |
| 2886 | }; |
| 2887 | |
| 2888 | static const char * const can_clk_groups[] = { |
| 2889 | "can_clk", |
| 2890 | }; |
| 2891 | |
| 2892 | static const char * const du_groups[] = { |
| 2893 | "du_rgb888", |
| 2894 | "du_clk_out", |
| 2895 | "du_sync", |
| 2896 | "du_oddf", |
| 2897 | }; |
| 2898 | |
| 2899 | static const char * const hscif0_groups[] = { |
| 2900 | "hscif0_data", |
| 2901 | "hscif0_clk", |
| 2902 | "hscif0_ctrl", |
| 2903 | }; |
| 2904 | |
| 2905 | static const char * const hscif1_groups[] = { |
| 2906 | "hscif1_data", |
| 2907 | "hscif1_clk", |
| 2908 | "hscif1_ctrl", |
| 2909 | }; |
| 2910 | |
| 2911 | static const char * const hscif2_groups[] = { |
| 2912 | "hscif2_data", |
| 2913 | "hscif2_clk", |
| 2914 | "hscif2_ctrl", |
| 2915 | }; |
| 2916 | |
| 2917 | static const char * const hscif3_groups[] = { |
| 2918 | "hscif3_data", |
| 2919 | "hscif3_clk", |
| 2920 | "hscif3_ctrl", |
| 2921 | }; |
| 2922 | |
| 2923 | static const char * const i2c0_groups[] = { |
| 2924 | "i2c0", |
| 2925 | }; |
| 2926 | |
| 2927 | static const char * const i2c1_groups[] = { |
| 2928 | "i2c1", |
| 2929 | }; |
| 2930 | |
| 2931 | static const char * const i2c2_groups[] = { |
| 2932 | "i2c2", |
| 2933 | }; |
| 2934 | |
| 2935 | static const char * const i2c3_groups[] = { |
| 2936 | "i2c3", |
| 2937 | }; |
| 2938 | |
| 2939 | static const char * const i2c4_groups[] = { |
| 2940 | "i2c4", |
| 2941 | }; |
| 2942 | |
| 2943 | static const char * const i2c5_groups[] = { |
| 2944 | "i2c5", |
| 2945 | }; |
| 2946 | |
| 2947 | static const char * const i2c6_groups[] = { |
| 2948 | "i2c6", |
| 2949 | }; |
| 2950 | |
| 2951 | static const char * const intc_ex_groups[] = { |
| 2952 | "intc_ex_irq0", |
| 2953 | "intc_ex_irq1", |
| 2954 | "intc_ex_irq2", |
| 2955 | "intc_ex_irq3", |
| 2956 | "intc_ex_irq4", |
| 2957 | "intc_ex_irq5", |
| 2958 | }; |
| 2959 | |
| 2960 | static const char * const mmc_groups[] = { |
| 2961 | "mmc_data1", |
| 2962 | "mmc_data4", |
| 2963 | "mmc_data8", |
| 2964 | "mmc_ctrl", |
| 2965 | "mmc_cd", |
| 2966 | "mmc_wp", |
| 2967 | "mmc_ds", |
| 2968 | }; |
| 2969 | |
| 2970 | static const char * const msiof0_groups[] = { |
| 2971 | "msiof0_clk", |
| 2972 | "msiof0_sync", |
| 2973 | "msiof0_ss1", |
| 2974 | "msiof0_ss2", |
| 2975 | "msiof0_txd", |
| 2976 | "msiof0_rxd", |
| 2977 | }; |
| 2978 | |
| 2979 | static const char * const msiof1_groups[] = { |
| 2980 | "msiof1_clk", |
| 2981 | "msiof1_sync", |
| 2982 | "msiof1_ss1", |
| 2983 | "msiof1_ss2", |
| 2984 | "msiof1_txd", |
| 2985 | "msiof1_rxd", |
| 2986 | }; |
| 2987 | |
| 2988 | static const char * const msiof2_groups[] = { |
| 2989 | "msiof2_clk", |
| 2990 | "msiof2_sync", |
| 2991 | "msiof2_ss1", |
| 2992 | "msiof2_ss2", |
| 2993 | "msiof2_txd", |
| 2994 | "msiof2_rxd", |
| 2995 | }; |
| 2996 | |
| 2997 | static const char * const msiof3_groups[] = { |
| 2998 | "msiof3_clk", |
| 2999 | "msiof3_sync", |
| 3000 | "msiof3_ss1", |
| 3001 | "msiof3_ss2", |
| 3002 | "msiof3_txd", |
| 3003 | "msiof3_rxd", |
| 3004 | }; |
| 3005 | |
| 3006 | static const char * const msiof4_groups[] = { |
| 3007 | "msiof4_clk", |
| 3008 | "msiof4_sync", |
| 3009 | "msiof4_ss1", |
| 3010 | "msiof4_ss2", |
| 3011 | "msiof4_txd", |
| 3012 | "msiof4_rxd", |
| 3013 | }; |
| 3014 | |
| 3015 | static const char * const msiof5_groups[] = { |
| 3016 | "msiof5_clk", |
| 3017 | "msiof5_sync", |
| 3018 | "msiof5_ss1", |
| 3019 | "msiof5_ss2", |
| 3020 | "msiof5_txd", |
| 3021 | "msiof5_rxd", |
| 3022 | }; |
| 3023 | |
| 3024 | static const char * const pwm0_groups[] = { |
| 3025 | "pwm0", |
| 3026 | }; |
| 3027 | |
| 3028 | static const char * const pwm1_groups[] = { |
| 3029 | "pwm1", |
| 3030 | }; |
| 3031 | |
| 3032 | static const char * const pwm2_groups[] = { |
| 3033 | "pwm2", |
| 3034 | }; |
| 3035 | |
| 3036 | static const char * const pwm3_groups[] = { |
| 3037 | "pwm3", |
| 3038 | }; |
| 3039 | |
| 3040 | static const char * const pwm4_groups[] = { |
| 3041 | "pwm4", |
| 3042 | }; |
| 3043 | |
| 3044 | static const char * const qspi0_groups[] = { |
| 3045 | "qspi0_ctrl", |
| 3046 | "qspi0_data2", |
| 3047 | "qspi0_data4", |
| 3048 | }; |
| 3049 | |
| 3050 | static const char * const qspi1_groups[] = { |
| 3051 | "qspi1_ctrl", |
| 3052 | "qspi1_data2", |
| 3053 | "qspi1_data4", |
| 3054 | }; |
| 3055 | |
| 3056 | static const char * const scif0_groups[] = { |
| 3057 | "scif0_data", |
| 3058 | "scif0_clk", |
| 3059 | "scif0_ctrl", |
| 3060 | }; |
| 3061 | |
| 3062 | static const char * const scif1_groups[] = { |
| 3063 | "scif1_data_a", |
| 3064 | "scif1_data_b", |
| 3065 | "scif1_clk", |
| 3066 | "scif1_ctrl", |
| 3067 | }; |
| 3068 | |
| 3069 | static const char * const scif3_groups[] = { |
| 3070 | "scif3_data", |
| 3071 | "scif3_clk", |
| 3072 | "scif3_ctrl", |
| 3073 | }; |
| 3074 | |
| 3075 | static const char * const scif4_groups[] = { |
| 3076 | "scif4_data", |
| 3077 | "scif4_clk", |
| 3078 | "scif4_ctrl", |
| 3079 | }; |
| 3080 | |
| 3081 | static const char * const scif_clk_groups[] = { |
| 3082 | "scif_clk", |
| 3083 | }; |
| 3084 | |
| 3085 | static const char * const tmu_groups[] = { |
| 3086 | "tmu_tclk1_a", |
| 3087 | "tmu_tclk1_b", |
| 3088 | "tmu_tclk2_a", |
| 3089 | "tmu_tclk2_b", |
| 3090 | "tmu_tclk3", |
| 3091 | "tmu_tclk4", |
| 3092 | }; |
| 3093 | |
| 3094 | static const char * const tpu_groups[] = { |
| 3095 | "tpu_to0", |
| 3096 | "tpu_to1", |
| 3097 | "tpu_to2", |
| 3098 | "tpu_to3", |
| 3099 | }; |
| 3100 | |
| 3101 | static const struct sh_pfc_function pinmux_functions[] = { |
| 3102 | SH_PFC_FUNCTION(avb0), |
| 3103 | SH_PFC_FUNCTION(avb1), |
| 3104 | SH_PFC_FUNCTION(avb2), |
| 3105 | SH_PFC_FUNCTION(avb3), |
| 3106 | SH_PFC_FUNCTION(avb4), |
| 3107 | SH_PFC_FUNCTION(avb5), |
| 3108 | |
| 3109 | SH_PFC_FUNCTION(canfd0), |
| 3110 | SH_PFC_FUNCTION(canfd1), |
| 3111 | SH_PFC_FUNCTION(canfd2), |
| 3112 | SH_PFC_FUNCTION(canfd3), |
| 3113 | SH_PFC_FUNCTION(canfd4), |
| 3114 | SH_PFC_FUNCTION(canfd5), |
| 3115 | SH_PFC_FUNCTION(canfd6), |
| 3116 | SH_PFC_FUNCTION(canfd7), |
| 3117 | SH_PFC_FUNCTION(can_clk), |
| 3118 | |
| 3119 | SH_PFC_FUNCTION(du), |
| 3120 | |
| 3121 | SH_PFC_FUNCTION(hscif0), |
| 3122 | SH_PFC_FUNCTION(hscif1), |
| 3123 | SH_PFC_FUNCTION(hscif2), |
| 3124 | SH_PFC_FUNCTION(hscif3), |
| 3125 | |
| 3126 | SH_PFC_FUNCTION(i2c0), |
| 3127 | SH_PFC_FUNCTION(i2c1), |
| 3128 | SH_PFC_FUNCTION(i2c2), |
| 3129 | SH_PFC_FUNCTION(i2c3), |
| 3130 | SH_PFC_FUNCTION(i2c4), |
| 3131 | SH_PFC_FUNCTION(i2c5), |
| 3132 | SH_PFC_FUNCTION(i2c6), |
| 3133 | |
| 3134 | SH_PFC_FUNCTION(intc_ex), |
| 3135 | |
| 3136 | SH_PFC_FUNCTION(mmc), |
| 3137 | |
| 3138 | SH_PFC_FUNCTION(msiof0), |
| 3139 | SH_PFC_FUNCTION(msiof1), |
| 3140 | SH_PFC_FUNCTION(msiof2), |
| 3141 | SH_PFC_FUNCTION(msiof3), |
| 3142 | SH_PFC_FUNCTION(msiof4), |
| 3143 | SH_PFC_FUNCTION(msiof5), |
| 3144 | |
| 3145 | SH_PFC_FUNCTION(pwm0), |
| 3146 | SH_PFC_FUNCTION(pwm1), |
| 3147 | SH_PFC_FUNCTION(pwm2), |
| 3148 | SH_PFC_FUNCTION(pwm3), |
| 3149 | SH_PFC_FUNCTION(pwm4), |
| 3150 | |
| 3151 | SH_PFC_FUNCTION(qspi0), |
| 3152 | SH_PFC_FUNCTION(qspi1), |
| 3153 | |
| 3154 | SH_PFC_FUNCTION(scif0), |
| 3155 | SH_PFC_FUNCTION(scif1), |
| 3156 | SH_PFC_FUNCTION(scif3), |
| 3157 | SH_PFC_FUNCTION(scif4), |
| 3158 | SH_PFC_FUNCTION(scif_clk), |
| 3159 | |
| 3160 | SH_PFC_FUNCTION(tmu), |
| 3161 | |
| 3162 | SH_PFC_FUNCTION(tpu), |
| 3163 | }; |
| 3164 | |
| 3165 | static const struct pinmux_cfg_reg pinmux_config_regs[] = { |
| 3166 | #define F_(x, y) FN_##y |
| 3167 | #define FM(x) FN_##x |
| 3168 | { PINMUX_CFG_REG("GPSR0", 0xe6058040, 32, 1, GROUP( |
| 3169 | 0, 0, |
| 3170 | 0, 0, |
| 3171 | 0, 0, |
| 3172 | 0, 0, |
| 3173 | GP_0_27_FN, GPSR0_27, |
| 3174 | GP_0_26_FN, GPSR0_26, |
| 3175 | GP_0_25_FN, GPSR0_25, |
| 3176 | GP_0_24_FN, GPSR0_24, |
| 3177 | GP_0_23_FN, GPSR0_23, |
| 3178 | GP_0_22_FN, GPSR0_22, |
| 3179 | GP_0_21_FN, GPSR0_21, |
| 3180 | GP_0_20_FN, GPSR0_20, |
| 3181 | GP_0_19_FN, GPSR0_19, |
| 3182 | GP_0_18_FN, GPSR0_18, |
| 3183 | GP_0_17_FN, GPSR0_17, |
| 3184 | GP_0_16_FN, GPSR0_16, |
| 3185 | GP_0_15_FN, GPSR0_15, |
| 3186 | GP_0_14_FN, GPSR0_14, |
| 3187 | GP_0_13_FN, GPSR0_13, |
| 3188 | GP_0_12_FN, GPSR0_12, |
| 3189 | GP_0_11_FN, GPSR0_11, |
| 3190 | GP_0_10_FN, GPSR0_10, |
| 3191 | GP_0_9_FN, GPSR0_9, |
| 3192 | GP_0_8_FN, GPSR0_8, |
| 3193 | GP_0_7_FN, GPSR0_7, |
| 3194 | GP_0_6_FN, GPSR0_6, |
| 3195 | GP_0_5_FN, GPSR0_5, |
| 3196 | GP_0_4_FN, GPSR0_4, |
| 3197 | GP_0_3_FN, GPSR0_3, |
| 3198 | GP_0_2_FN, GPSR0_2, |
| 3199 | GP_0_1_FN, GPSR0_1, |
| 3200 | GP_0_0_FN, GPSR0_0, )) |
| 3201 | }, |
| 3202 | { PINMUX_CFG_REG("GPSR1", 0xe6050040, 32, 1, GROUP( |
| 3203 | 0, 0, |
| 3204 | GP_1_30_FN, GPSR1_30, |
| 3205 | GP_1_29_FN, GPSR1_29, |
| 3206 | GP_1_28_FN, GPSR1_28, |
| 3207 | GP_1_27_FN, GPSR1_27, |
| 3208 | GP_1_26_FN, GPSR1_26, |
| 3209 | GP_1_25_FN, GPSR1_25, |
| 3210 | GP_1_24_FN, GPSR1_24, |
| 3211 | GP_1_23_FN, GPSR1_23, |
| 3212 | GP_1_22_FN, GPSR1_22, |
| 3213 | GP_1_21_FN, GPSR1_21, |
| 3214 | GP_1_20_FN, GPSR1_20, |
| 3215 | GP_1_19_FN, GPSR1_19, |
| 3216 | GP_1_18_FN, GPSR1_18, |
| 3217 | GP_1_17_FN, GPSR1_17, |
| 3218 | GP_1_16_FN, GPSR1_16, |
| 3219 | GP_1_15_FN, GPSR1_15, |
| 3220 | GP_1_14_FN, GPSR1_14, |
| 3221 | GP_1_13_FN, GPSR1_13, |
| 3222 | GP_1_12_FN, GPSR1_12, |
| 3223 | GP_1_11_FN, GPSR1_11, |
| 3224 | GP_1_10_FN, GPSR1_10, |
| 3225 | GP_1_9_FN, GPSR1_9, |
| 3226 | GP_1_8_FN, GPSR1_8, |
| 3227 | GP_1_7_FN, GPSR1_7, |
| 3228 | GP_1_6_FN, GPSR1_6, |
| 3229 | GP_1_5_FN, GPSR1_5, |
| 3230 | GP_1_4_FN, GPSR1_4, |
| 3231 | GP_1_3_FN, GPSR1_3, |
| 3232 | GP_1_2_FN, GPSR1_2, |
| 3233 | GP_1_1_FN, GPSR1_1, |
| 3234 | GP_1_0_FN, GPSR1_0, )) |
| 3235 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3236 | { PINMUX_CFG_REG_VAR("GPSR2", 0xe6050840, 32, |
| 3237 | GROUP(-7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 3238 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), |
| 3239 | GROUP( |
| 3240 | /* GP2_31_25 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3241 | GP_2_24_FN, GPSR2_24, |
| 3242 | GP_2_23_FN, GPSR2_23, |
| 3243 | GP_2_22_FN, GPSR2_22, |
| 3244 | GP_2_21_FN, GPSR2_21, |
| 3245 | GP_2_20_FN, GPSR2_20, |
| 3246 | GP_2_19_FN, GPSR2_19, |
| 3247 | GP_2_18_FN, GPSR2_18, |
| 3248 | GP_2_17_FN, GPSR2_17, |
| 3249 | GP_2_16_FN, GPSR2_16, |
| 3250 | GP_2_15_FN, GPSR2_15, |
| 3251 | GP_2_14_FN, GPSR2_14, |
| 3252 | GP_2_13_FN, GPSR2_13, |
| 3253 | GP_2_12_FN, GPSR2_12, |
| 3254 | GP_2_11_FN, GPSR2_11, |
| 3255 | GP_2_10_FN, GPSR2_10, |
| 3256 | GP_2_9_FN, GPSR2_9, |
| 3257 | GP_2_8_FN, GPSR2_8, |
| 3258 | GP_2_7_FN, GPSR2_7, |
| 3259 | GP_2_6_FN, GPSR2_6, |
| 3260 | GP_2_5_FN, GPSR2_5, |
| 3261 | GP_2_4_FN, GPSR2_4, |
| 3262 | GP_2_3_FN, GPSR2_3, |
| 3263 | GP_2_2_FN, GPSR2_2, |
| 3264 | GP_2_1_FN, GPSR2_1, |
| 3265 | GP_2_0_FN, GPSR2_0, )) |
| 3266 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3267 | { PINMUX_CFG_REG_VAR("GPSR3", 0xe6058840, 32, |
| 3268 | GROUP(-15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 3269 | 1, 1, 1, 1, 1, 1), |
| 3270 | GROUP( |
| 3271 | /* GP3_31_17 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3272 | GP_3_16_FN, GPSR3_16, |
| 3273 | GP_3_15_FN, GPSR3_15, |
| 3274 | GP_3_14_FN, GPSR3_14, |
| 3275 | GP_3_13_FN, GPSR3_13, |
| 3276 | GP_3_12_FN, GPSR3_12, |
| 3277 | GP_3_11_FN, GPSR3_11, |
| 3278 | GP_3_10_FN, GPSR3_10, |
| 3279 | GP_3_9_FN, GPSR3_9, |
| 3280 | GP_3_8_FN, GPSR3_8, |
| 3281 | GP_3_7_FN, GPSR3_7, |
| 3282 | GP_3_6_FN, GPSR3_6, |
| 3283 | GP_3_5_FN, GPSR3_5, |
| 3284 | GP_3_4_FN, GPSR3_4, |
| 3285 | GP_3_3_FN, GPSR3_3, |
| 3286 | GP_3_2_FN, GPSR3_2, |
| 3287 | GP_3_1_FN, GPSR3_1, |
| 3288 | GP_3_0_FN, GPSR3_0, )) |
| 3289 | }, |
| 3290 | { PINMUX_CFG_REG("GPSR4", 0xe6060040, 32, 1, GROUP( |
| 3291 | 0, 0, |
| 3292 | 0, 0, |
| 3293 | 0, 0, |
| 3294 | 0, 0, |
| 3295 | 0, 0, |
| 3296 | GP_4_26_FN, GPSR4_26, |
| 3297 | GP_4_25_FN, GPSR4_25, |
| 3298 | GP_4_24_FN, GPSR4_24, |
| 3299 | GP_4_23_FN, GPSR4_23, |
| 3300 | GP_4_22_FN, GPSR4_22, |
| 3301 | GP_4_21_FN, GPSR4_21, |
| 3302 | GP_4_20_FN, GPSR4_20, |
| 3303 | GP_4_19_FN, GPSR4_19, |
| 3304 | GP_4_18_FN, GPSR4_18, |
| 3305 | GP_4_17_FN, GPSR4_17, |
| 3306 | GP_4_16_FN, GPSR4_16, |
| 3307 | GP_4_15_FN, GPSR4_15, |
| 3308 | GP_4_14_FN, GPSR4_14, |
| 3309 | GP_4_13_FN, GPSR4_13, |
| 3310 | GP_4_12_FN, GPSR4_12, |
| 3311 | GP_4_11_FN, GPSR4_11, |
| 3312 | GP_4_10_FN, GPSR4_10, |
| 3313 | GP_4_9_FN, GPSR4_9, |
| 3314 | GP_4_8_FN, GPSR4_8, |
| 3315 | GP_4_7_FN, GPSR4_7, |
| 3316 | GP_4_6_FN, GPSR4_6, |
| 3317 | GP_4_5_FN, GPSR4_5, |
| 3318 | GP_4_4_FN, GPSR4_4, |
| 3319 | GP_4_3_FN, GPSR4_3, |
| 3320 | GP_4_2_FN, GPSR4_2, |
| 3321 | GP_4_1_FN, GPSR4_1, |
| 3322 | GP_4_0_FN, GPSR4_0, )) |
| 3323 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3324 | { PINMUX_CFG_REG_VAR("GPSR5", 0xe6060840, 32, |
| 3325 | GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 3326 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), |
| 3327 | GROUP( |
| 3328 | /* GP5_31_21 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3329 | GP_5_20_FN, GPSR5_20, |
| 3330 | GP_5_19_FN, GPSR5_19, |
| 3331 | GP_5_18_FN, GPSR5_18, |
| 3332 | GP_5_17_FN, GPSR5_17, |
| 3333 | GP_5_16_FN, GPSR5_16, |
| 3334 | GP_5_15_FN, GPSR5_15, |
| 3335 | GP_5_14_FN, GPSR5_14, |
| 3336 | GP_5_13_FN, GPSR5_13, |
| 3337 | GP_5_12_FN, GPSR5_12, |
| 3338 | GP_5_11_FN, GPSR5_11, |
| 3339 | GP_5_10_FN, GPSR5_10, |
| 3340 | GP_5_9_FN, GPSR5_9, |
| 3341 | GP_5_8_FN, GPSR5_8, |
| 3342 | GP_5_7_FN, GPSR5_7, |
| 3343 | GP_5_6_FN, GPSR5_6, |
| 3344 | GP_5_5_FN, GPSR5_5, |
| 3345 | GP_5_4_FN, GPSR5_4, |
| 3346 | GP_5_3_FN, GPSR5_3, |
| 3347 | GP_5_2_FN, GPSR5_2, |
| 3348 | GP_5_1_FN, GPSR5_1, |
| 3349 | GP_5_0_FN, GPSR5_0, )) |
| 3350 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3351 | { PINMUX_CFG_REG_VAR("GPSR6", 0xe6068040, 32, |
| 3352 | GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 3353 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), |
| 3354 | GROUP( |
| 3355 | /* GP6_31_21 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3356 | GP_6_20_FN, GPSR6_20, |
| 3357 | GP_6_19_FN, GPSR6_19, |
| 3358 | GP_6_18_FN, GPSR6_18, |
| 3359 | GP_6_17_FN, GPSR6_17, |
| 3360 | GP_6_16_FN, GPSR6_16, |
| 3361 | GP_6_15_FN, GPSR6_15, |
| 3362 | GP_6_14_FN, GPSR6_14, |
| 3363 | GP_6_13_FN, GPSR6_13, |
| 3364 | GP_6_12_FN, GPSR6_12, |
| 3365 | GP_6_11_FN, GPSR6_11, |
| 3366 | GP_6_10_FN, GPSR6_10, |
| 3367 | GP_6_9_FN, GPSR6_9, |
| 3368 | GP_6_8_FN, GPSR6_8, |
| 3369 | GP_6_7_FN, GPSR6_7, |
| 3370 | GP_6_6_FN, GPSR6_6, |
| 3371 | GP_6_5_FN, GPSR6_5, |
| 3372 | GP_6_4_FN, GPSR6_4, |
| 3373 | GP_6_3_FN, GPSR6_3, |
| 3374 | GP_6_2_FN, GPSR6_2, |
| 3375 | GP_6_1_FN, GPSR6_1, |
| 3376 | GP_6_0_FN, GPSR6_0, )) |
| 3377 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3378 | { PINMUX_CFG_REG_VAR("GPSR7", 0xe6068840, 32, |
| 3379 | GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 3380 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), |
| 3381 | GROUP( |
| 3382 | /* GP7_31_21 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3383 | GP_7_20_FN, GPSR7_20, |
| 3384 | GP_7_19_FN, GPSR7_19, |
| 3385 | GP_7_18_FN, GPSR7_18, |
| 3386 | GP_7_17_FN, GPSR7_17, |
| 3387 | GP_7_16_FN, GPSR7_16, |
| 3388 | GP_7_15_FN, GPSR7_15, |
| 3389 | GP_7_14_FN, GPSR7_14, |
| 3390 | GP_7_13_FN, GPSR7_13, |
| 3391 | GP_7_12_FN, GPSR7_12, |
| 3392 | GP_7_11_FN, GPSR7_11, |
| 3393 | GP_7_10_FN, GPSR7_10, |
| 3394 | GP_7_9_FN, GPSR7_9, |
| 3395 | GP_7_8_FN, GPSR7_8, |
| 3396 | GP_7_7_FN, GPSR7_7, |
| 3397 | GP_7_6_FN, GPSR7_6, |
| 3398 | GP_7_5_FN, GPSR7_5, |
| 3399 | GP_7_4_FN, GPSR7_4, |
| 3400 | GP_7_3_FN, GPSR7_3, |
| 3401 | GP_7_2_FN, GPSR7_2, |
| 3402 | GP_7_1_FN, GPSR7_1, |
| 3403 | GP_7_0_FN, GPSR7_0, )) |
| 3404 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3405 | { PINMUX_CFG_REG_VAR("GPSR8", 0xe6069040, 32, |
| 3406 | GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 3407 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), |
| 3408 | GROUP( |
| 3409 | /* GP8_31_21 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3410 | GP_8_20_FN, GPSR8_20, |
| 3411 | GP_8_19_FN, GPSR8_19, |
| 3412 | GP_8_18_FN, GPSR8_18, |
| 3413 | GP_8_17_FN, GPSR8_17, |
| 3414 | GP_8_16_FN, GPSR8_16, |
| 3415 | GP_8_15_FN, GPSR8_15, |
| 3416 | GP_8_14_FN, GPSR8_14, |
| 3417 | GP_8_13_FN, GPSR8_13, |
| 3418 | GP_8_12_FN, GPSR8_12, |
| 3419 | GP_8_11_FN, GPSR8_11, |
| 3420 | GP_8_10_FN, GPSR8_10, |
| 3421 | GP_8_9_FN, GPSR8_9, |
| 3422 | GP_8_8_FN, GPSR8_8, |
| 3423 | GP_8_7_FN, GPSR8_7, |
| 3424 | GP_8_6_FN, GPSR8_6, |
| 3425 | GP_8_5_FN, GPSR8_5, |
| 3426 | GP_8_4_FN, GPSR8_4, |
| 3427 | GP_8_3_FN, GPSR8_3, |
| 3428 | GP_8_2_FN, GPSR8_2, |
| 3429 | GP_8_1_FN, GPSR8_1, |
| 3430 | GP_8_0_FN, GPSR8_0, )) |
| 3431 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3432 | { PINMUX_CFG_REG_VAR("GPSR9", 0xe6069840, 32, |
| 3433 | GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 3434 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), |
| 3435 | GROUP( |
| 3436 | /* GP9_31_21 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3437 | GP_9_20_FN, GPSR9_20, |
| 3438 | GP_9_19_FN, GPSR9_19, |
| 3439 | GP_9_18_FN, GPSR9_18, |
| 3440 | GP_9_17_FN, GPSR9_17, |
| 3441 | GP_9_16_FN, GPSR9_16, |
| 3442 | GP_9_15_FN, GPSR9_15, |
| 3443 | GP_9_14_FN, GPSR9_14, |
| 3444 | GP_9_13_FN, GPSR9_13, |
| 3445 | GP_9_12_FN, GPSR9_12, |
| 3446 | GP_9_11_FN, GPSR9_11, |
| 3447 | GP_9_10_FN, GPSR9_10, |
| 3448 | GP_9_9_FN, GPSR9_9, |
| 3449 | GP_9_8_FN, GPSR9_8, |
| 3450 | GP_9_7_FN, GPSR9_7, |
| 3451 | GP_9_6_FN, GPSR9_6, |
| 3452 | GP_9_5_FN, GPSR9_5, |
| 3453 | GP_9_4_FN, GPSR9_4, |
| 3454 | GP_9_3_FN, GPSR9_3, |
| 3455 | GP_9_2_FN, GPSR9_2, |
| 3456 | GP_9_1_FN, GPSR9_1, |
| 3457 | GP_9_0_FN, GPSR9_0, )) |
| 3458 | }, |
| 3459 | #undef F_ |
| 3460 | #undef FM |
| 3461 | |
| 3462 | #define F_(x, y) x, |
| 3463 | #define FM(x) FN_##x, |
| 3464 | { PINMUX_CFG_REG("IP0SR1", 0xe6050060, 32, 4, GROUP( |
| 3465 | IP0SR1_31_28 |
| 3466 | IP0SR1_27_24 |
| 3467 | IP0SR1_23_20 |
| 3468 | IP0SR1_19_16 |
| 3469 | IP0SR1_15_12 |
| 3470 | IP0SR1_11_8 |
| 3471 | IP0SR1_7_4 |
| 3472 | IP0SR1_3_0)) |
| 3473 | }, |
| 3474 | { PINMUX_CFG_REG("IP1SR1", 0xe6050064, 32, 4, GROUP( |
| 3475 | IP1SR1_31_28 |
| 3476 | IP1SR1_27_24 |
| 3477 | IP1SR1_23_20 |
| 3478 | IP1SR1_19_16 |
| 3479 | IP1SR1_15_12 |
| 3480 | IP1SR1_11_8 |
| 3481 | IP1SR1_7_4 |
| 3482 | IP1SR1_3_0)) |
| 3483 | }, |
| 3484 | { PINMUX_CFG_REG("IP2SR1", 0xe6050068, 32, 4, GROUP( |
| 3485 | IP2SR1_31_28 |
| 3486 | IP2SR1_27_24 |
| 3487 | IP2SR1_23_20 |
| 3488 | IP2SR1_19_16 |
| 3489 | IP2SR1_15_12 |
| 3490 | IP2SR1_11_8 |
| 3491 | IP2SR1_7_4 |
| 3492 | IP2SR1_3_0)) |
| 3493 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3494 | { PINMUX_CFG_REG_VAR("IP3SR1", 0xe605006c, 32, |
| 3495 | GROUP(-4, 4, 4, 4, 4, 4, 4, 4), |
| 3496 | GROUP( |
| 3497 | /* IP3SR1_31_28 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3498 | IP3SR1_27_24 |
| 3499 | IP3SR1_23_20 |
| 3500 | IP3SR1_19_16 |
| 3501 | IP3SR1_15_12 |
| 3502 | IP3SR1_11_8 |
| 3503 | IP3SR1_7_4 |
| 3504 | IP3SR1_3_0)) |
| 3505 | }, |
| 3506 | { PINMUX_CFG_REG("IP0SR2", 0xe6050860, 32, 4, GROUP( |
| 3507 | IP0SR2_31_28 |
| 3508 | IP0SR2_27_24 |
| 3509 | IP0SR2_23_20 |
| 3510 | IP0SR2_19_16 |
| 3511 | IP0SR2_15_12 |
| 3512 | IP0SR2_11_8 |
| 3513 | IP0SR2_7_4 |
| 3514 | IP0SR2_3_0)) |
| 3515 | }, |
| 3516 | { PINMUX_CFG_REG("IP1SR2", 0xe6050864, 32, 4, GROUP( |
| 3517 | IP1SR2_31_28 |
| 3518 | IP1SR2_27_24 |
| 3519 | IP1SR2_23_20 |
| 3520 | IP1SR2_19_16 |
| 3521 | IP1SR2_15_12 |
| 3522 | IP1SR2_11_8 |
| 3523 | IP1SR2_7_4 |
| 3524 | IP1SR2_3_0)) |
| 3525 | }, |
| 3526 | { PINMUX_CFG_REG("IP2SR2", 0xe6050868, 32, 4, GROUP( |
| 3527 | IP2SR2_31_28 |
| 3528 | IP2SR2_27_24 |
| 3529 | IP2SR2_23_20 |
| 3530 | IP2SR2_19_16 |
| 3531 | IP2SR2_15_12 |
| 3532 | IP2SR2_11_8 |
| 3533 | IP2SR2_7_4 |
| 3534 | IP2SR2_3_0)) |
| 3535 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3536 | { PINMUX_CFG_REG_VAR("IP0SR3", 0xe6058860, 32, |
| 3537 | GROUP(4, 4, 4, -8, 4, 4, -4), |
| 3538 | GROUP( |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3539 | IP0SR3_31_28 |
| 3540 | IP0SR3_27_24 |
| 3541 | IP0SR3_23_20 |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3542 | /* IP0SR3_19_12 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3543 | IP0SR3_11_8 |
| 3544 | IP0SR3_7_4 |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3545 | /* IP0SR3_3_0 RESERVED */ )) |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3546 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3547 | { PINMUX_CFG_REG_VAR("IP1SR3", 0xe6058864, 32, |
| 3548 | GROUP(-8, 4, 4, 4, 4, 4, 4), |
| 3549 | GROUP( |
| 3550 | /* IP1SR3_31_24 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3551 | IP1SR3_23_20 |
| 3552 | IP1SR3_19_16 |
| 3553 | IP1SR3_15_12 |
| 3554 | IP1SR3_11_8 |
| 3555 | IP1SR3_7_4 |
| 3556 | IP1SR3_3_0)) |
| 3557 | }, |
| 3558 | { PINMUX_CFG_REG("IP0SR4", 0xe6060060, 32, 4, GROUP( |
| 3559 | IP0SR4_31_28 |
| 3560 | IP0SR4_27_24 |
| 3561 | IP0SR4_23_20 |
| 3562 | IP0SR4_19_16 |
| 3563 | IP0SR4_15_12 |
| 3564 | IP0SR4_11_8 |
| 3565 | IP0SR4_7_4 |
| 3566 | IP0SR4_3_0)) |
| 3567 | }, |
| 3568 | { PINMUX_CFG_REG("IP1SR4", 0xe6060064, 32, 4, GROUP( |
| 3569 | IP1SR4_31_28 |
| 3570 | IP1SR4_27_24 |
| 3571 | IP1SR4_23_20 |
| 3572 | IP1SR4_19_16 |
| 3573 | IP1SR4_15_12 |
| 3574 | IP1SR4_11_8 |
| 3575 | IP1SR4_7_4 |
| 3576 | IP1SR4_3_0)) |
| 3577 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3578 | { PINMUX_CFG_REG_VAR("IP2SR4", 0xe6060068, 32, |
| 3579 | GROUP(-12, 4, 4, 4, 4, -4), |
| 3580 | GROUP( |
| 3581 | /* IP2SR4_31_20 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3582 | IP2SR4_19_16 |
| 3583 | IP2SR4_15_12 |
| 3584 | IP2SR4_11_8 |
| 3585 | IP2SR4_7_4 |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3586 | /* IP2SR4_3_0 RESERVED */ )) |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3587 | }, |
| 3588 | { PINMUX_CFG_REG("IP0SR5", 0xe6060860, 32, 4, GROUP( |
| 3589 | IP0SR5_31_28 |
| 3590 | IP0SR5_27_24 |
| 3591 | IP0SR5_23_20 |
| 3592 | IP0SR5_19_16 |
| 3593 | IP0SR5_15_12 |
| 3594 | IP0SR5_11_8 |
| 3595 | IP0SR5_7_4 |
| 3596 | IP0SR5_3_0)) |
| 3597 | }, |
| 3598 | { PINMUX_CFG_REG("IP1SR5", 0xe6060864, 32, 4, GROUP( |
| 3599 | IP1SR5_31_28 |
| 3600 | IP1SR5_27_24 |
| 3601 | IP1SR5_23_20 |
| 3602 | IP1SR5_19_16 |
| 3603 | IP1SR5_15_12 |
| 3604 | IP1SR5_11_8 |
| 3605 | IP1SR5_7_4 |
| 3606 | IP1SR5_3_0)) |
| 3607 | }, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3608 | { PINMUX_CFG_REG_VAR("IP2SR5", 0xe6060868, 32, |
| 3609 | GROUP(-12, 4, 4, 4, 4, -4), |
| 3610 | GROUP( |
| 3611 | /* IP2SR5_31_20 RESERVED */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3612 | IP2SR5_19_16 |
| 3613 | IP2SR5_15_12 |
| 3614 | IP2SR5_11_8 |
| 3615 | IP2SR5_7_4 |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3616 | /* IP2SR5_3_0 RESERVED */ )) |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3617 | }, |
| 3618 | #undef F_ |
| 3619 | #undef FM |
| 3620 | |
| 3621 | #define F_(x, y) x, |
| 3622 | #define FM(x) FN_##x, |
| 3623 | { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xe6050900, 32, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3624 | GROUP(-16, 2, 2, 2, 2, 2, 2, 2, -2), |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3625 | GROUP( |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3626 | /* RESERVED 31-16 */ |
| 3627 | MOD_SEL2_15_14 |
| 3628 | MOD_SEL2_13_12 |
| 3629 | MOD_SEL2_11_10 |
| 3630 | MOD_SEL2_9_8 |
| 3631 | MOD_SEL2_7_6 |
| 3632 | MOD_SEL2_5_4 |
| 3633 | MOD_SEL2_3_2 |
| 3634 | /* RESERVED 1-0 */ )) |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3635 | }, |
Marek Vasut | e480d81 | 2023-09-17 16:08:47 +0200 | [diff] [blame] | 3636 | { /* sentinel */ } |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3637 | }; |
| 3638 | |
| 3639 | static const struct pinmux_drive_reg pinmux_drive_regs[] = { |
| 3640 | { PINMUX_DRIVE_REG("DRV0CTRL0", 0xe6058080) { |
| 3641 | { RCAR_GP_PIN(0, 7), 28, 2 }, /* QSPI1_MOSI_IO0 */ |
| 3642 | { RCAR_GP_PIN(0, 6), 24, 2 }, /* QSPI1_SPCLK */ |
| 3643 | { RCAR_GP_PIN(0, 5), 20, 2 }, /* QSPI0_SSL */ |
| 3644 | { RCAR_GP_PIN(0, 4), 16, 2 }, /* QSPI0_IO3 */ |
| 3645 | { RCAR_GP_PIN(0, 3), 12, 2 }, /* QSPI0_IO2 */ |
| 3646 | { RCAR_GP_PIN(0, 2), 8, 2 }, /* QSPI0_MISO_IO1 */ |
| 3647 | { RCAR_GP_PIN(0, 1), 4, 2 }, /* QSPI0_MOSI_IO0 */ |
| 3648 | { RCAR_GP_PIN(0, 0), 0, 2 }, /* QSPI0_SPCLK */ |
| 3649 | } }, |
| 3650 | { PINMUX_DRIVE_REG("DRV1CTRL0", 0xe6058084) { |
| 3651 | { RCAR_GP_PIN(0, 15), 28, 3 }, /* SD_WP */ |
| 3652 | { RCAR_GP_PIN(0, 14), 24, 2 }, /* RPC_INT_N */ |
| 3653 | { RCAR_GP_PIN(0, 13), 20, 2 }, /* RPC_WP_N */ |
| 3654 | { RCAR_GP_PIN(0, 12), 16, 2 }, /* RPC_RESET_N */ |
| 3655 | { RCAR_GP_PIN(0, 11), 12, 2 }, /* QSPI1_SSL */ |
| 3656 | { RCAR_GP_PIN(0, 10), 8, 2 }, /* QSPI1_IO3 */ |
| 3657 | { RCAR_GP_PIN(0, 9), 4, 2 }, /* QSPI1_IO2 */ |
| 3658 | { RCAR_GP_PIN(0, 8), 0, 2 }, /* QSPI1_MISO_IO1 */ |
| 3659 | } }, |
| 3660 | { PINMUX_DRIVE_REG("DRV2CTRL0", 0xe6058088) { |
| 3661 | { RCAR_GP_PIN(0, 23), 28, 3 }, /* MMC_SD_CLK */ |
| 3662 | { RCAR_GP_PIN(0, 22), 24, 3 }, /* MMC_SD_D3 */ |
| 3663 | { RCAR_GP_PIN(0, 21), 20, 3 }, /* MMC_SD_D2 */ |
| 3664 | { RCAR_GP_PIN(0, 20), 16, 3 }, /* MMC_SD_D1 */ |
| 3665 | { RCAR_GP_PIN(0, 19), 12, 3 }, /* MMC_SD_D0 */ |
| 3666 | { RCAR_GP_PIN(0, 18), 8, 3 }, /* MMC_SD_CMD */ |
| 3667 | { RCAR_GP_PIN(0, 17), 4, 3 }, /* MMC_DS */ |
| 3668 | { RCAR_GP_PIN(0, 16), 0, 3 }, /* SD_CD */ |
| 3669 | } }, |
| 3670 | { PINMUX_DRIVE_REG("DRV3CTRL0", 0xe605808c) { |
| 3671 | { RCAR_GP_PIN(0, 27), 12, 3 }, /* MMC_D7 */ |
| 3672 | { RCAR_GP_PIN(0, 26), 8, 3 }, /* MMC_D6 */ |
| 3673 | { RCAR_GP_PIN(0, 25), 4, 3 }, /* MMC_D5 */ |
| 3674 | { RCAR_GP_PIN(0, 24), 0, 3 }, /* MMC_D4 */ |
| 3675 | } }, |
| 3676 | { PINMUX_DRIVE_REG("DRV0CTRL1", 0xe6050080) { |
| 3677 | { RCAR_GP_PIN(1, 7), 28, 3 }, /* MSIOF0_TXD */ |
| 3678 | { RCAR_GP_PIN(1, 6), 24, 3 }, /* MSIOF0_RXD */ |
| 3679 | { RCAR_GP_PIN(1, 5), 20, 3 }, /* HTX0 */ |
| 3680 | { RCAR_GP_PIN(1, 4), 16, 3 }, /* HCTS0_N */ |
| 3681 | { RCAR_GP_PIN(1, 3), 12, 3 }, /* HRTS0_N */ |
| 3682 | { RCAR_GP_PIN(1, 2), 8, 3 }, /* HSCK0 */ |
| 3683 | { RCAR_GP_PIN(1, 1), 4, 3 }, /* HRX0 */ |
| 3684 | { RCAR_GP_PIN(1, 0), 0, 3 }, /* SCIF_CLK */ |
| 3685 | } }, |
| 3686 | { PINMUX_DRIVE_REG("DRV1CTRL1", 0xe6050084) { |
| 3687 | { RCAR_GP_PIN(1, 15), 28, 3 }, /* MSIOF1_SYNC */ |
| 3688 | { RCAR_GP_PIN(1, 14), 24, 3 }, /* MSIOF1_SCK */ |
| 3689 | { RCAR_GP_PIN(1, 13), 20, 3 }, /* MSIOF1_TXD */ |
| 3690 | { RCAR_GP_PIN(1, 12), 16, 3 }, /* MSIOF1_RXD */ |
| 3691 | { RCAR_GP_PIN(1, 11), 12, 3 }, /* MSIOF0_SS2 */ |
| 3692 | { RCAR_GP_PIN(1, 10), 8, 3 }, /* MSIOF0_SS1 */ |
| 3693 | { RCAR_GP_PIN(1, 9), 4, 3 }, /* MSIOF0_SYNC */ |
| 3694 | { RCAR_GP_PIN(1, 8), 0, 3 }, /* MSIOF0_SCK */ |
| 3695 | } }, |
| 3696 | { PINMUX_DRIVE_REG("DRV2CTRL1", 0xe6050088) { |
| 3697 | { RCAR_GP_PIN(1, 23), 28, 3 }, /* MSIOF2_SS2 */ |
| 3698 | { RCAR_GP_PIN(1, 22), 24, 3 }, /* MSIOF2_SS1 */ |
| 3699 | { RCAR_GP_PIN(1, 21), 20, 3 }, /* MSIOF2_SYNC */ |
| 3700 | { RCAR_GP_PIN(1, 20), 16, 3 }, /* MSIOF2_SCK */ |
| 3701 | { RCAR_GP_PIN(1, 19), 12, 3 }, /* MSIOF2_TXD */ |
| 3702 | { RCAR_GP_PIN(1, 18), 8, 3 }, /* MSIOF2_RXD */ |
| 3703 | { RCAR_GP_PIN(1, 17), 4, 3 }, /* MSIOF1_SS2 */ |
| 3704 | { RCAR_GP_PIN(1, 16), 0, 3 }, /* MSIOF1_SS1 */ |
| 3705 | } }, |
| 3706 | { PINMUX_DRIVE_REG("DRV3CTRL1", 0xe605008c) { |
| 3707 | { RCAR_GP_PIN(1, 30), 24, 3 }, /* GP1_30 */ |
| 3708 | { RCAR_GP_PIN(1, 29), 20, 3 }, /* GP1_29 */ |
| 3709 | { RCAR_GP_PIN(1, 28), 16, 3 }, /* GP1_28 */ |
| 3710 | { RCAR_GP_PIN(1, 27), 12, 3 }, /* IRQ3 */ |
| 3711 | { RCAR_GP_PIN(1, 26), 8, 3 }, /* IRQ2 */ |
| 3712 | { RCAR_GP_PIN(1, 25), 4, 3 }, /* IRQ1 */ |
| 3713 | { RCAR_GP_PIN(1, 24), 0, 3 }, /* IRQ0 */ |
| 3714 | } }, |
| 3715 | { PINMUX_DRIVE_REG("DRV0CTRL2", 0xe6050880) { |
| 3716 | { RCAR_GP_PIN(2, 7), 28, 3 }, /* GP2_07 */ |
| 3717 | { RCAR_GP_PIN(2, 6), 24, 3 }, /* GP2_06 */ |
| 3718 | { RCAR_GP_PIN(2, 5), 20, 3 }, /* GP2_05 */ |
| 3719 | { RCAR_GP_PIN(2, 4), 16, 3 }, /* GP2_04 */ |
| 3720 | { RCAR_GP_PIN(2, 3), 12, 3 }, /* GP2_03 */ |
| 3721 | { RCAR_GP_PIN(2, 2), 8, 3 }, /* GP2_02 */ |
| 3722 | { RCAR_GP_PIN(2, 1), 4, 2 }, /* IPC_CLKOUT */ |
| 3723 | { RCAR_GP_PIN(2, 0), 0, 2 }, /* IPC_CLKIN */ |
| 3724 | } }, |
| 3725 | { PINMUX_DRIVE_REG("DRV1CTRL2", 0xe6050884) { |
| 3726 | { RCAR_GP_PIN(2, 15), 28, 3 }, /* GP2_15 */ |
| 3727 | { RCAR_GP_PIN(2, 14), 24, 3 }, /* GP2_14 */ |
| 3728 | { RCAR_GP_PIN(2, 13), 20, 3 }, /* GP2_13 */ |
| 3729 | { RCAR_GP_PIN(2, 12), 16, 3 }, /* GP2_12 */ |
| 3730 | { RCAR_GP_PIN(2, 11), 12, 3 }, /* GP2_11 */ |
| 3731 | { RCAR_GP_PIN(2, 10), 8, 3 }, /* GP2_10 */ |
| 3732 | { RCAR_GP_PIN(2, 9), 4, 3 }, /* GP2_9 */ |
| 3733 | { RCAR_GP_PIN(2, 8), 0, 3 }, /* GP2_8 */ |
| 3734 | } }, |
| 3735 | { PINMUX_DRIVE_REG("DRV2CTRL2", 0xe6050888) { |
| 3736 | { RCAR_GP_PIN(2, 23), 28, 3 }, /* TCLK1_A */ |
| 3737 | { RCAR_GP_PIN(2, 22), 24, 3 }, /* TPU0TO1 */ |
| 3738 | { RCAR_GP_PIN(2, 21), 20, 3 }, /* TPU0TO0 */ |
| 3739 | { RCAR_GP_PIN(2, 20), 16, 3 }, /* CLK_EXTFXR */ |
| 3740 | { RCAR_GP_PIN(2, 19), 12, 3 }, /* RXDB_EXTFXR */ |
| 3741 | { RCAR_GP_PIN(2, 18), 8, 3 }, /* FXR_TXDB */ |
| 3742 | { RCAR_GP_PIN(2, 17), 4, 3 }, /* RXDA_EXTFXR_A */ |
| 3743 | { RCAR_GP_PIN(2, 16), 0, 3 }, /* FXR_TXDA_A */ |
| 3744 | } }, |
| 3745 | { PINMUX_DRIVE_REG("DRV3CTRL2", 0xe605088c) { |
| 3746 | { RCAR_GP_PIN(2, 24), 0, 3 }, /* TCLK2_A */ |
| 3747 | } }, |
| 3748 | { PINMUX_DRIVE_REG("DRV0CTRL3", 0xe6058880) { |
| 3749 | { RCAR_GP_PIN(3, 7), 28, 3 }, /* CANFD3_TX */ |
| 3750 | { RCAR_GP_PIN(3, 6), 24, 3 }, /* CANFD2_RX */ |
| 3751 | { RCAR_GP_PIN(3, 5), 20, 3 }, /* CANFD2_TX */ |
| 3752 | { RCAR_GP_PIN(3, 4), 16, 3 }, /* CANFD1_RX */ |
| 3753 | { RCAR_GP_PIN(3, 3), 12, 3 }, /* CANFD1_TX */ |
| 3754 | { RCAR_GP_PIN(3, 2), 8, 3 }, /* CANFD0_RX */ |
| 3755 | { RCAR_GP_PIN(3, 1), 4, 2 }, /* CANFD0_TX */ |
| 3756 | { RCAR_GP_PIN(3, 0), 0, 2 }, /* CAN_CLK */ |
| 3757 | } }, |
| 3758 | { PINMUX_DRIVE_REG("DRV1CTRL3", 0xe6058884) { |
| 3759 | { RCAR_GP_PIN(3, 15), 28, 3 }, /* CANFD7_TX */ |
| 3760 | { RCAR_GP_PIN(3, 14), 24, 3 }, /* CANFD6_RX */ |
| 3761 | { RCAR_GP_PIN(3, 13), 20, 3 }, /* CANFD6_TX */ |
| 3762 | { RCAR_GP_PIN(3, 12), 16, 3 }, /* CANFD5_RX */ |
| 3763 | { RCAR_GP_PIN(3, 11), 12, 3 }, /* CANFD5_TX */ |
| 3764 | { RCAR_GP_PIN(3, 10), 8, 3 }, /* CANFD4_RX */ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3765 | { RCAR_GP_PIN(3, 9), 4, 3 }, /* CANFD4_TX */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3766 | { RCAR_GP_PIN(3, 8), 0, 3 }, /* CANFD3_RX */ |
| 3767 | } }, |
| 3768 | { PINMUX_DRIVE_REG("DRV2CTRL3", 0xe6058888) { |
| 3769 | { RCAR_GP_PIN(3, 16), 0, 3 }, /* CANFD7_RX */ |
| 3770 | } }, |
| 3771 | { PINMUX_DRIVE_REG("DRV0CTRL4", 0xe6060080) { |
| 3772 | { RCAR_GP_PIN(4, 7), 28, 3 }, /* AVB0_TXC */ |
| 3773 | { RCAR_GP_PIN(4, 6), 24, 3 }, /* AVB0_TX_CTL */ |
| 3774 | { RCAR_GP_PIN(4, 5), 20, 3 }, /* AVB0_RD3 */ |
| 3775 | { RCAR_GP_PIN(4, 4), 16, 3 }, /* AVB0_RD2 */ |
| 3776 | { RCAR_GP_PIN(4, 3), 12, 3 }, /* AVB0_RD1 */ |
| 3777 | { RCAR_GP_PIN(4, 2), 8, 3 }, /* AVB0_RD0 */ |
| 3778 | { RCAR_GP_PIN(4, 1), 4, 3 }, /* AVB0_RXC */ |
| 3779 | { RCAR_GP_PIN(4, 0), 0, 3 }, /* AVB0_RX_CTL */ |
| 3780 | } }, |
| 3781 | { PINMUX_DRIVE_REG("DRV1CTRL4", 0xe6060084) { |
| 3782 | { RCAR_GP_PIN(4, 15), 28, 3 }, /* AVB0_MAGIC */ |
| 3783 | { RCAR_GP_PIN(4, 14), 24, 3 }, /* AVB0_MDC */ |
| 3784 | { RCAR_GP_PIN(4, 13), 20, 3 }, /* AVB0_MDIO */ |
| 3785 | { RCAR_GP_PIN(4, 12), 16, 3 }, /* AVB0_TXCREFCLK */ |
| 3786 | { RCAR_GP_PIN(4, 11), 12, 3 }, /* AVB0_TD3 */ |
| 3787 | { RCAR_GP_PIN(4, 10), 8, 3 }, /* AVB0_TD2 */ |
| 3788 | { RCAR_GP_PIN(4, 9), 4, 3 }, /* AVB0_TD1*/ |
| 3789 | { RCAR_GP_PIN(4, 8), 0, 3 }, /* AVB0_TD0 */ |
| 3790 | } }, |
| 3791 | { PINMUX_DRIVE_REG("DRV2CTRL4", 0xe6060088) { |
| 3792 | { RCAR_GP_PIN(4, 23), 28, 3 }, /* PCIE2_CLKREQ_N */ |
| 3793 | { RCAR_GP_PIN(4, 22), 24, 3 }, /* PCIE1_CLKREQ_N */ |
| 3794 | { RCAR_GP_PIN(4, 21), 20, 3 }, /* PCIE0_CLKREQ_N */ |
| 3795 | { RCAR_GP_PIN(4, 20), 16, 3 }, /* AVB0_AVTP_PPS */ |
| 3796 | { RCAR_GP_PIN(4, 19), 12, 3 }, /* AVB0_AVTP_CAPTURE */ |
| 3797 | { RCAR_GP_PIN(4, 18), 8, 3 }, /* AVB0_AVTP_MATCH */ |
| 3798 | { RCAR_GP_PIN(4, 17), 4, 3 }, /* AVB0_LINK */ |
| 3799 | { RCAR_GP_PIN(4, 16), 0, 3 }, /* AVB0_PHY_INT */ |
| 3800 | } }, |
| 3801 | { PINMUX_DRIVE_REG("DRV3CTRL4", 0xe606008c) { |
| 3802 | { RCAR_GP_PIN(4, 26), 8, 3 }, /* AVS1 */ |
| 3803 | { RCAR_GP_PIN(4, 25), 4, 3 }, /* AVS0 */ |
| 3804 | { RCAR_GP_PIN(4, 24), 0, 3 }, /* PCIE3_CLKREQ_N */ |
| 3805 | } }, |
| 3806 | { PINMUX_DRIVE_REG("DRV0CTRL5", 0xe6060880) { |
| 3807 | { RCAR_GP_PIN(5, 7), 28, 3 }, /* AVB1_TXC */ |
| 3808 | { RCAR_GP_PIN(5, 6), 24, 3 }, /* AVB1_TX_CTL */ |
| 3809 | { RCAR_GP_PIN(5, 5), 20, 3 }, /* AVB1_RD3 */ |
| 3810 | { RCAR_GP_PIN(5, 4), 16, 3 }, /* AVB1_RD2 */ |
| 3811 | { RCAR_GP_PIN(5, 3), 12, 3 }, /* AVB1_RD1 */ |
| 3812 | { RCAR_GP_PIN(5, 2), 8, 3 }, /* AVB1_RD0 */ |
| 3813 | { RCAR_GP_PIN(5, 1), 4, 3 }, /* AVB1_RXC */ |
| 3814 | { RCAR_GP_PIN(5, 0), 0, 3 }, /* AVB1_RX_CTL */ |
| 3815 | } }, |
| 3816 | { PINMUX_DRIVE_REG("DRV1CTRL5", 0xe6060884) { |
| 3817 | { RCAR_GP_PIN(5, 15), 28, 3 }, /* AVB1_MAGIC */ |
| 3818 | { RCAR_GP_PIN(5, 14), 24, 3 }, /* AVB1_MDC */ |
| 3819 | { RCAR_GP_PIN(5, 13), 20, 3 }, /* AVB1_MDIO */ |
| 3820 | { RCAR_GP_PIN(5, 12), 16, 3 }, /* AVB1_TXCREFCLK */ |
| 3821 | { RCAR_GP_PIN(5, 11), 12, 3 }, /* AVB1_TD3 */ |
| 3822 | { RCAR_GP_PIN(5, 10), 8, 3 }, /* AVB1_TD2 */ |
| 3823 | { RCAR_GP_PIN(5, 9), 4, 3 }, /* AVB1_TD1*/ |
| 3824 | { RCAR_GP_PIN(5, 8), 0, 3 }, /* AVB1_TD0 */ |
| 3825 | } }, |
| 3826 | { PINMUX_DRIVE_REG("DRV2CTRL5", 0xe6060888) { |
| 3827 | { RCAR_GP_PIN(5, 20), 16, 3 }, /* AVB1_AVTP_PPS */ |
| 3828 | { RCAR_GP_PIN(5, 19), 12, 3 }, /* AVB1_AVTP_CAPTURE */ |
| 3829 | { RCAR_GP_PIN(5, 18), 8, 3 }, /* AVB1_AVTP_MATCH */ |
| 3830 | { RCAR_GP_PIN(5, 17), 4, 3 }, /* AVB1_LINK */ |
| 3831 | { RCAR_GP_PIN(5, 16), 0, 3 }, /* AVB1_PHY_INT */ |
| 3832 | } }, |
| 3833 | { PINMUX_DRIVE_REG("DRV0CTRL6", 0xe6068080) { |
| 3834 | { RCAR_GP_PIN(6, 7), 28, 3 }, /* AVB2_TXC */ |
| 3835 | { RCAR_GP_PIN(6, 6), 24, 3 }, /* AVB2_TX_CTL */ |
| 3836 | { RCAR_GP_PIN(6, 5), 20, 3 }, /* AVB2_RD3 */ |
| 3837 | { RCAR_GP_PIN(6, 4), 16, 3 }, /* AVB2_RD2 */ |
| 3838 | { RCAR_GP_PIN(6, 3), 12, 3 }, /* AVB2_RD1 */ |
| 3839 | { RCAR_GP_PIN(6, 2), 8, 3 }, /* AVB2_RD0 */ |
| 3840 | { RCAR_GP_PIN(6, 1), 4, 3 }, /* AVB2_RXC */ |
| 3841 | { RCAR_GP_PIN(6, 0), 0, 3 }, /* AVB2_RX_CTL */ |
| 3842 | } }, |
| 3843 | { PINMUX_DRIVE_REG("DRV1CTRL6", 0xe6068084) { |
| 3844 | { RCAR_GP_PIN(6, 15), 28, 3 }, /* AVB2_MAGIC */ |
| 3845 | { RCAR_GP_PIN(6, 14), 24, 3 }, /* AVB2_MDC */ |
| 3846 | { RCAR_GP_PIN(6, 13), 20, 3 }, /* AVB2_MDIO */ |
| 3847 | { RCAR_GP_PIN(6, 12), 16, 3 }, /* AVB2_TXCREFCLK */ |
| 3848 | { RCAR_GP_PIN(6, 11), 12, 3 }, /* AVB2_TD3 */ |
| 3849 | { RCAR_GP_PIN(6, 10), 8, 3 }, /* AVB2_TD2 */ |
| 3850 | { RCAR_GP_PIN(6, 9), 4, 3 }, /* AVB2_TD1*/ |
| 3851 | { RCAR_GP_PIN(6, 8), 0, 3 }, /* AVB2_TD0 */ |
| 3852 | } }, |
| 3853 | { PINMUX_DRIVE_REG("DRV2CTRL6", 0xe6068088) { |
| 3854 | { RCAR_GP_PIN(6, 20), 16, 3 }, /* AVB2_AVTP_PPS */ |
| 3855 | { RCAR_GP_PIN(6, 19), 12, 3 }, /* AVB2_AVTP_CAPTURE */ |
| 3856 | { RCAR_GP_PIN(6, 18), 8, 3 }, /* AVB2_AVTP_MATCH */ |
| 3857 | { RCAR_GP_PIN(6, 17), 4, 3 }, /* AVB2_LINK */ |
| 3858 | { RCAR_GP_PIN(6, 16), 0, 3 }, /* AVB2_PHY_INT */ |
| 3859 | } }, |
| 3860 | { PINMUX_DRIVE_REG("DRV0CTRL7", 0xe6068880) { |
| 3861 | { RCAR_GP_PIN(7, 7), 28, 3 }, /* AVB3_TXC */ |
| 3862 | { RCAR_GP_PIN(7, 6), 24, 3 }, /* AVB3_TX_CTL */ |
| 3863 | { RCAR_GP_PIN(7, 5), 20, 3 }, /* AVB3_RD3 */ |
| 3864 | { RCAR_GP_PIN(7, 4), 16, 3 }, /* AVB3_RD2 */ |
| 3865 | { RCAR_GP_PIN(7, 3), 12, 3 }, /* AVB3_RD1 */ |
| 3866 | { RCAR_GP_PIN(7, 2), 8, 3 }, /* AVB3_RD0 */ |
| 3867 | { RCAR_GP_PIN(7, 1), 4, 3 }, /* AVB3_RXC */ |
| 3868 | { RCAR_GP_PIN(7, 0), 0, 3 }, /* AVB3_RX_CTL */ |
| 3869 | } }, |
| 3870 | { PINMUX_DRIVE_REG("DRV1CTRL7", 0xe6068884) { |
| 3871 | { RCAR_GP_PIN(7, 15), 28, 3 }, /* AVB3_MAGIC */ |
| 3872 | { RCAR_GP_PIN(7, 14), 24, 3 }, /* AVB3_MDC */ |
| 3873 | { RCAR_GP_PIN(7, 13), 20, 3 }, /* AVB3_MDIO */ |
| 3874 | { RCAR_GP_PIN(7, 12), 16, 3 }, /* AVB3_TXCREFCLK */ |
| 3875 | { RCAR_GP_PIN(7, 11), 12, 3 }, /* AVB3_TD3 */ |
| 3876 | { RCAR_GP_PIN(7, 10), 8, 3 }, /* AVB3_TD2 */ |
| 3877 | { RCAR_GP_PIN(7, 9), 4, 3 }, /* AVB3_TD1*/ |
| 3878 | { RCAR_GP_PIN(7, 8), 0, 3 }, /* AVB3_TD0 */ |
| 3879 | } }, |
| 3880 | { PINMUX_DRIVE_REG("DRV2CTRL7", 0xe6068888) { |
| 3881 | { RCAR_GP_PIN(7, 20), 16, 3 }, /* AVB3_AVTP_PPS */ |
| 3882 | { RCAR_GP_PIN(7, 19), 12, 3 }, /* AVB3_AVTP_CAPTURE */ |
| 3883 | { RCAR_GP_PIN(7, 18), 8, 3 }, /* AVB3_AVTP_MATCH */ |
| 3884 | { RCAR_GP_PIN(7, 17), 4, 3 }, /* AVB3_LINK */ |
| 3885 | { RCAR_GP_PIN(7, 16), 0, 3 }, /* AVB3_PHY_INT */ |
| 3886 | } }, |
| 3887 | { PINMUX_DRIVE_REG("DRV0CTRL8", 0xe6069080) { |
| 3888 | { RCAR_GP_PIN(8, 7), 28, 3 }, /* AVB4_TXC */ |
| 3889 | { RCAR_GP_PIN(8, 6), 24, 3 }, /* AVB4_TX_CTL */ |
| 3890 | { RCAR_GP_PIN(8, 5), 20, 3 }, /* AVB4_RD3 */ |
| 3891 | { RCAR_GP_PIN(8, 4), 16, 3 }, /* AVB4_RD2 */ |
| 3892 | { RCAR_GP_PIN(8, 3), 12, 3 }, /* AVB4_RD1 */ |
| 3893 | { RCAR_GP_PIN(8, 2), 8, 3 }, /* AVB4_RD0 */ |
| 3894 | { RCAR_GP_PIN(8, 1), 4, 3 }, /* AVB4_RXC */ |
| 3895 | { RCAR_GP_PIN(8, 0), 0, 3 }, /* AVB4_RX_CTL */ |
| 3896 | } }, |
| 3897 | { PINMUX_DRIVE_REG("DRV1CTRL8", 0xe6069084) { |
| 3898 | { RCAR_GP_PIN(8, 15), 28, 3 }, /* AVB4_MAGIC */ |
| 3899 | { RCAR_GP_PIN(8, 14), 24, 3 }, /* AVB4_MDC */ |
| 3900 | { RCAR_GP_PIN(8, 13), 20, 3 }, /* AVB4_MDIO */ |
| 3901 | { RCAR_GP_PIN(8, 12), 16, 3 }, /* AVB4_TXCREFCLK */ |
| 3902 | { RCAR_GP_PIN(8, 11), 12, 3 }, /* AVB4_TD3 */ |
| 3903 | { RCAR_GP_PIN(8, 10), 8, 3 }, /* AVB4_TD2 */ |
| 3904 | { RCAR_GP_PIN(8, 9), 4, 3 }, /* AVB4_TD1*/ |
| 3905 | { RCAR_GP_PIN(8, 8), 0, 3 }, /* AVB4_TD0 */ |
| 3906 | } }, |
| 3907 | { PINMUX_DRIVE_REG("DRV2CTRL8", 0xe6069088) { |
| 3908 | { RCAR_GP_PIN(8, 20), 16, 3 }, /* AVB4_AVTP_PPS */ |
| 3909 | { RCAR_GP_PIN(8, 19), 12, 3 }, /* AVB4_AVTP_CAPTURE */ |
| 3910 | { RCAR_GP_PIN(8, 18), 8, 3 }, /* AVB4_AVTP_MATCH */ |
| 3911 | { RCAR_GP_PIN(8, 17), 4, 3 }, /* AVB4_LINK */ |
| 3912 | { RCAR_GP_PIN(8, 16), 0, 3 }, /* AVB4_PHY_INT */ |
| 3913 | } }, |
| 3914 | { PINMUX_DRIVE_REG("DRV0CTRL9", 0xe6069880) { |
| 3915 | { RCAR_GP_PIN(9, 7), 28, 3 }, /* AVB5_TXC */ |
| 3916 | { RCAR_GP_PIN(9, 6), 24, 3 }, /* AVB5_TX_CTL */ |
| 3917 | { RCAR_GP_PIN(9, 5), 20, 3 }, /* AVB5_RD3 */ |
| 3918 | { RCAR_GP_PIN(9, 4), 16, 3 }, /* AVB5_RD2 */ |
| 3919 | { RCAR_GP_PIN(9, 3), 12, 3 }, /* AVB5_RD1 */ |
| 3920 | { RCAR_GP_PIN(9, 2), 8, 3 }, /* AVB5_RD0 */ |
| 3921 | { RCAR_GP_PIN(9, 1), 4, 3 }, /* AVB5_RXC */ |
| 3922 | { RCAR_GP_PIN(9, 0), 0, 3 }, /* AVB5_RX_CTL */ |
| 3923 | } }, |
| 3924 | { PINMUX_DRIVE_REG("DRV1CTRL9", 0xe6069884) { |
| 3925 | { RCAR_GP_PIN(9, 15), 28, 3 }, /* AVB5_MAGIC */ |
| 3926 | { RCAR_GP_PIN(9, 14), 24, 3 }, /* AVB5_MDC */ |
| 3927 | { RCAR_GP_PIN(9, 13), 20, 3 }, /* AVB5_MDIO */ |
| 3928 | { RCAR_GP_PIN(9, 12), 16, 3 }, /* AVB5_TXCREFCLK */ |
| 3929 | { RCAR_GP_PIN(9, 11), 12, 3 }, /* AVB5_TD3 */ |
| 3930 | { RCAR_GP_PIN(9, 10), 8, 3 }, /* AVB5_TD2 */ |
| 3931 | { RCAR_GP_PIN(9, 9), 4, 3 }, /* AVB5_TD1*/ |
| 3932 | { RCAR_GP_PIN(9, 8), 0, 3 }, /* AVB5_TD0 */ |
| 3933 | } }, |
| 3934 | { PINMUX_DRIVE_REG("DRV2CTRL9", 0xe6069888) { |
| 3935 | { RCAR_GP_PIN(9, 20), 16, 3 }, /* AVB5_AVTP_PPS */ |
| 3936 | { RCAR_GP_PIN(9, 19), 12, 3 }, /* AVB5_AVTP_CAPTURE */ |
| 3937 | { RCAR_GP_PIN(9, 18), 8, 3 }, /* AVB5_AVTP_MATCH */ |
| 3938 | { RCAR_GP_PIN(9, 17), 4, 3 }, /* AVB5_LINK */ |
| 3939 | { RCAR_GP_PIN(9, 16), 0, 3 }, /* AVB5_PHY_INT */ |
| 3940 | } }, |
Marek Vasut | e480d81 | 2023-09-17 16:08:47 +0200 | [diff] [blame] | 3941 | { /* sentinel */ } |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3942 | }; |
| 3943 | |
| 3944 | enum ioctrl_regs { |
| 3945 | POC0, |
| 3946 | POC1, |
| 3947 | POC2, |
| 3948 | POC4, |
| 3949 | POC5, |
| 3950 | POC6, |
| 3951 | POC7, |
| 3952 | POC8, |
| 3953 | POC9, |
| 3954 | TD1SEL0, |
| 3955 | }; |
| 3956 | |
| 3957 | static const struct pinmux_ioctrl_reg pinmux_ioctrl_regs[] = { |
| 3958 | [POC0] = { 0xe60580a0, }, |
| 3959 | [POC1] = { 0xe60500a0, }, |
| 3960 | [POC2] = { 0xe60508a0, }, |
| 3961 | [POC4] = { 0xe60600a0, }, |
| 3962 | [POC5] = { 0xe60608a0, }, |
| 3963 | [POC6] = { 0xe60680a0, }, |
| 3964 | [POC7] = { 0xe60688a0, }, |
| 3965 | [POC8] = { 0xe60690a0, }, |
| 3966 | [POC9] = { 0xe60698a0, }, |
| 3967 | [TD1SEL0] = { 0xe6058124, }, |
Marek Vasut | e480d81 | 2023-09-17 16:08:47 +0200 | [diff] [blame] | 3968 | { /* sentinel */ } |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3969 | }; |
| 3970 | |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 3971 | static int r8a779a0_pin_to_pocctrl(unsigned int pin, u32 *pocctrl) |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 3972 | { |
| 3973 | int bit = pin & 0x1f; |
| 3974 | |
| 3975 | *pocctrl = pinmux_ioctrl_regs[POC0].reg; |
| 3976 | if (pin >= RCAR_GP_PIN(0, 15) && pin <= RCAR_GP_PIN(0, 27)) |
| 3977 | return bit; |
| 3978 | |
| 3979 | *pocctrl = pinmux_ioctrl_regs[POC1].reg; |
| 3980 | if (pin >= RCAR_GP_PIN(1, 0) && pin <= RCAR_GP_PIN(1, 30)) |
| 3981 | return bit; |
| 3982 | |
| 3983 | *pocctrl = pinmux_ioctrl_regs[POC2].reg; |
| 3984 | if (pin >= RCAR_GP_PIN(2, 2) && pin <= RCAR_GP_PIN(2, 15)) |
| 3985 | return bit; |
| 3986 | |
| 3987 | *pocctrl = pinmux_ioctrl_regs[POC4].reg; |
| 3988 | if (pin >= RCAR_GP_PIN(4, 0) && pin <= RCAR_GP_PIN(4, 17)) |
| 3989 | return bit; |
| 3990 | |
| 3991 | *pocctrl = pinmux_ioctrl_regs[POC5].reg; |
| 3992 | if (pin >= RCAR_GP_PIN(5, 0) && pin <= RCAR_GP_PIN(5, 17)) |
| 3993 | return bit; |
| 3994 | |
| 3995 | *pocctrl = pinmux_ioctrl_regs[POC6].reg; |
| 3996 | if (pin >= RCAR_GP_PIN(6, 0) && pin <= RCAR_GP_PIN(6, 17)) |
| 3997 | return bit; |
| 3998 | |
| 3999 | *pocctrl = pinmux_ioctrl_regs[POC7].reg; |
| 4000 | if (pin >= RCAR_GP_PIN(7, 0) && pin <= RCAR_GP_PIN(7, 17)) |
| 4001 | return bit; |
| 4002 | |
| 4003 | *pocctrl = pinmux_ioctrl_regs[POC8].reg; |
| 4004 | if (pin >= RCAR_GP_PIN(8, 0) && pin <= RCAR_GP_PIN(8, 17)) |
| 4005 | return bit; |
| 4006 | |
| 4007 | *pocctrl = pinmux_ioctrl_regs[POC9].reg; |
| 4008 | if (pin >= RCAR_GP_PIN(9, 0) && pin <= RCAR_GP_PIN(9, 17)) |
| 4009 | return bit; |
| 4010 | |
| 4011 | return -EINVAL; |
| 4012 | } |
| 4013 | |
| 4014 | static const struct pinmux_bias_reg pinmux_bias_regs[] = { |
| 4015 | { PINMUX_BIAS_REG("PUEN0", 0xe60580c0, "PUD0", 0xe60580e0) { |
| 4016 | [ 0] = RCAR_GP_PIN(0, 0), /* QSPI0_SPCLK */ |
| 4017 | [ 1] = RCAR_GP_PIN(0, 1), /* QSPI0_MOSI_IO0 */ |
| 4018 | [ 2] = RCAR_GP_PIN(0, 2), /* QSPI0_MISO_IO1 */ |
| 4019 | [ 3] = RCAR_GP_PIN(0, 3), /* QSPI0_IO2 */ |
| 4020 | [ 4] = RCAR_GP_PIN(0, 4), /* QSPI0_IO3 */ |
| 4021 | [ 5] = RCAR_GP_PIN(0, 5), /* QSPI0_SSL */ |
| 4022 | [ 6] = RCAR_GP_PIN(0, 6), /* QSPI1_SPCLK */ |
| 4023 | [ 7] = RCAR_GP_PIN(0, 7), /* QSPI1_MOSI_IO0 */ |
| 4024 | [ 8] = RCAR_GP_PIN(0, 8), /* QSPI1_MISO_IO1 */ |
| 4025 | [ 9] = RCAR_GP_PIN(0, 9), /* QSPI1_IO2 */ |
| 4026 | [10] = RCAR_GP_PIN(0, 10), /* QSPI1_IO3 */ |
| 4027 | [11] = RCAR_GP_PIN(0, 11), /* QSPI1_SSL */ |
| 4028 | [12] = RCAR_GP_PIN(0, 12), /* RPC_RESET_N */ |
| 4029 | [13] = RCAR_GP_PIN(0, 13), /* RPC_WP_N */ |
| 4030 | [14] = RCAR_GP_PIN(0, 14), /* RPC_INT_N */ |
| 4031 | [15] = RCAR_GP_PIN(0, 15), /* SD_WP */ |
| 4032 | [16] = RCAR_GP_PIN(0, 16), /* SD_CD */ |
| 4033 | [17] = RCAR_GP_PIN(0, 17), /* MMC_DS */ |
| 4034 | [18] = RCAR_GP_PIN(0, 18), /* MMC_SD_CMD */ |
| 4035 | [19] = RCAR_GP_PIN(0, 19), /* MMC_SD_D0 */ |
| 4036 | [20] = RCAR_GP_PIN(0, 20), /* MMC_SD_D1 */ |
| 4037 | [21] = RCAR_GP_PIN(0, 21), /* MMC_SD_D2 */ |
| 4038 | [22] = RCAR_GP_PIN(0, 22), /* MMC_SD_D3 */ |
| 4039 | [23] = RCAR_GP_PIN(0, 23), /* MMC_SD_CLK */ |
| 4040 | [24] = RCAR_GP_PIN(0, 24), /* MMC_D4 */ |
| 4041 | [25] = RCAR_GP_PIN(0, 25), /* MMC_D5 */ |
| 4042 | [26] = RCAR_GP_PIN(0, 26), /* MMC_D6 */ |
| 4043 | [27] = RCAR_GP_PIN(0, 27), /* MMC_D7 */ |
| 4044 | [28] = SH_PFC_PIN_NONE, |
| 4045 | [29] = SH_PFC_PIN_NONE, |
| 4046 | [30] = SH_PFC_PIN_NONE, |
| 4047 | [31] = SH_PFC_PIN_NONE, |
| 4048 | } }, |
| 4049 | { PINMUX_BIAS_REG("PUEN1", 0xe60500c0, "PUD1", 0xe60500e0) { |
| 4050 | [ 0] = RCAR_GP_PIN(1, 0), /* SCIF_CLK */ |
| 4051 | [ 1] = RCAR_GP_PIN(1, 1), /* HRX0 */ |
| 4052 | [ 2] = RCAR_GP_PIN(1, 2), /* HSCK0 */ |
| 4053 | [ 3] = RCAR_GP_PIN(1, 3), /* HRTS0_N */ |
| 4054 | [ 4] = RCAR_GP_PIN(1, 4), /* HCTS0_N */ |
| 4055 | [ 5] = RCAR_GP_PIN(1, 5), /* HTX0 */ |
| 4056 | [ 6] = RCAR_GP_PIN(1, 6), /* MSIOF0_RXD */ |
| 4057 | [ 7] = RCAR_GP_PIN(1, 7), /* MSIOF0_TXD */ |
| 4058 | [ 8] = RCAR_GP_PIN(1, 8), /* MSIOF0_SCK */ |
| 4059 | [ 9] = RCAR_GP_PIN(1, 9), /* MSIOF0_SYNC */ |
| 4060 | [10] = RCAR_GP_PIN(1, 10), /* MSIOF0_SS1 */ |
| 4061 | [11] = RCAR_GP_PIN(1, 11), /* MSIOF0_SS2 */ |
| 4062 | [12] = RCAR_GP_PIN(1, 12), /* MSIOF1_RXD */ |
| 4063 | [13] = RCAR_GP_PIN(1, 13), /* MSIOF1_TXD */ |
| 4064 | [14] = RCAR_GP_PIN(1, 14), /* MSIOF1_SCK */ |
| 4065 | [15] = RCAR_GP_PIN(1, 15), /* MSIOF1_SYNC */ |
| 4066 | [16] = RCAR_GP_PIN(1, 16), /* MSIOF1_SS1 */ |
| 4067 | [17] = RCAR_GP_PIN(1, 17), /* MSIOF1_SS2 */ |
| 4068 | [18] = RCAR_GP_PIN(1, 18), /* MSIOF2_RXD */ |
| 4069 | [19] = RCAR_GP_PIN(1, 19), /* MSIOF2_TXD */ |
| 4070 | [20] = RCAR_GP_PIN(1, 20), /* MSIOF2_SCK */ |
| 4071 | [21] = RCAR_GP_PIN(1, 21), /* MSIOF2_SYNC */ |
| 4072 | [22] = RCAR_GP_PIN(1, 22), /* MSIOF2_SS1 */ |
| 4073 | [23] = RCAR_GP_PIN(1, 23), /* MSIOF2_SS2 */ |
| 4074 | [24] = RCAR_GP_PIN(1, 24), /* IRQ0 */ |
| 4075 | [25] = RCAR_GP_PIN(1, 25), /* IRQ1 */ |
| 4076 | [26] = RCAR_GP_PIN(1, 26), /* IRQ2 */ |
| 4077 | [27] = RCAR_GP_PIN(1, 27), /* IRQ3 */ |
| 4078 | [28] = RCAR_GP_PIN(1, 28), /* GP1_28 */ |
| 4079 | [29] = RCAR_GP_PIN(1, 29), /* GP1_29 */ |
| 4080 | [30] = RCAR_GP_PIN(1, 30), /* GP1_30 */ |
| 4081 | [31] = SH_PFC_PIN_NONE, |
| 4082 | } }, |
| 4083 | { PINMUX_BIAS_REG("PUEN2", 0xe60508c0, "PUD2", 0xe60508e0) { |
| 4084 | [ 0] = RCAR_GP_PIN(2, 0), /* IPC_CLKIN */ |
| 4085 | [ 1] = RCAR_GP_PIN(2, 1), /* IPC_CLKOUT */ |
| 4086 | [ 2] = RCAR_GP_PIN(2, 2), /* GP2_02 */ |
| 4087 | [ 3] = RCAR_GP_PIN(2, 3), /* GP2_03 */ |
| 4088 | [ 4] = RCAR_GP_PIN(2, 4), /* GP2_04 */ |
| 4089 | [ 5] = RCAR_GP_PIN(2, 5), /* GP2_05 */ |
| 4090 | [ 6] = RCAR_GP_PIN(2, 6), /* GP2_06 */ |
| 4091 | [ 7] = RCAR_GP_PIN(2, 7), /* GP2_07 */ |
| 4092 | [ 8] = RCAR_GP_PIN(2, 8), /* GP2_08 */ |
| 4093 | [ 9] = RCAR_GP_PIN(2, 9), /* GP2_09 */ |
| 4094 | [10] = RCAR_GP_PIN(2, 10), /* GP2_10 */ |
| 4095 | [11] = RCAR_GP_PIN(2, 11), /* GP2_11 */ |
| 4096 | [12] = RCAR_GP_PIN(2, 12), /* GP2_12 */ |
| 4097 | [13] = RCAR_GP_PIN(2, 13), /* GP2_13 */ |
| 4098 | [14] = RCAR_GP_PIN(2, 14), /* GP2_14 */ |
| 4099 | [15] = RCAR_GP_PIN(2, 15), /* GP2_15 */ |
| 4100 | [16] = RCAR_GP_PIN(2, 16), /* FXR_TXDA_A */ |
| 4101 | [17] = RCAR_GP_PIN(2, 17), /* RXDA_EXTFXR_A */ |
| 4102 | [18] = RCAR_GP_PIN(2, 18), /* FXR_TXDB */ |
| 4103 | [19] = RCAR_GP_PIN(2, 19), /* RXDB_EXTFXR */ |
| 4104 | [20] = RCAR_GP_PIN(2, 20), /* CLK_EXTFXR */ |
| 4105 | [21] = RCAR_GP_PIN(2, 21), /* TPU0TO0 */ |
| 4106 | [22] = RCAR_GP_PIN(2, 22), /* TPU0TO1 */ |
| 4107 | [23] = RCAR_GP_PIN(2, 23), /* TCLK1_A */ |
| 4108 | [24] = RCAR_GP_PIN(2, 24), /* TCLK2_A */ |
| 4109 | [25] = SH_PFC_PIN_NONE, |
| 4110 | [26] = SH_PFC_PIN_NONE, |
| 4111 | [27] = SH_PFC_PIN_NONE, |
| 4112 | [28] = SH_PFC_PIN_NONE, |
| 4113 | [29] = SH_PFC_PIN_NONE, |
| 4114 | [30] = SH_PFC_PIN_NONE, |
| 4115 | [31] = SH_PFC_PIN_NONE, |
| 4116 | } }, |
| 4117 | { PINMUX_BIAS_REG("PUEN3", 0xe60588c0, "PUD3", 0xe60588e0) { |
| 4118 | [ 0] = RCAR_GP_PIN(3, 0), /* CAN_CLK */ |
| 4119 | [ 1] = RCAR_GP_PIN(3, 1), /* CANFD0_TX */ |
| 4120 | [ 2] = RCAR_GP_PIN(3, 2), /* CANFD0_RX */ |
| 4121 | [ 3] = RCAR_GP_PIN(3, 3), /* CANFD1_TX */ |
| 4122 | [ 4] = RCAR_GP_PIN(3, 4), /* CANFD1_RX */ |
| 4123 | [ 5] = RCAR_GP_PIN(3, 5), /* CANFD2_TX */ |
| 4124 | [ 6] = RCAR_GP_PIN(3, 6), /* CANFD2_RX */ |
| 4125 | [ 7] = RCAR_GP_PIN(3, 7), /* CANFD3_TX */ |
| 4126 | [ 8] = RCAR_GP_PIN(3, 8), /* CANFD3_RX */ |
| 4127 | [ 9] = RCAR_GP_PIN(3, 9), /* CANFD4_TX */ |
| 4128 | [10] = RCAR_GP_PIN(3, 10), /* CANFD4_RX */ |
| 4129 | [11] = RCAR_GP_PIN(3, 11), /* CANFD5_TX */ |
| 4130 | [12] = RCAR_GP_PIN(3, 12), /* CANFD5_RX */ |
| 4131 | [13] = RCAR_GP_PIN(3, 13), /* CANFD6_TX */ |
| 4132 | [14] = RCAR_GP_PIN(3, 14), /* CANFD6_RX */ |
| 4133 | [15] = RCAR_GP_PIN(3, 15), /* CANFD7_TX */ |
| 4134 | [16] = RCAR_GP_PIN(3, 16), /* CANFD7_RX */ |
| 4135 | [17] = SH_PFC_PIN_NONE, |
| 4136 | [18] = SH_PFC_PIN_NONE, |
| 4137 | [19] = SH_PFC_PIN_NONE, |
| 4138 | [20] = SH_PFC_PIN_NONE, |
| 4139 | [21] = SH_PFC_PIN_NONE, |
| 4140 | [22] = SH_PFC_PIN_NONE, |
| 4141 | [23] = SH_PFC_PIN_NONE, |
| 4142 | [24] = SH_PFC_PIN_NONE, |
| 4143 | [25] = SH_PFC_PIN_NONE, |
| 4144 | [26] = SH_PFC_PIN_NONE, |
| 4145 | [27] = SH_PFC_PIN_NONE, |
| 4146 | [28] = SH_PFC_PIN_NONE, |
| 4147 | [29] = SH_PFC_PIN_NONE, |
| 4148 | [30] = SH_PFC_PIN_NONE, |
| 4149 | [31] = SH_PFC_PIN_NONE, |
| 4150 | } }, |
| 4151 | { PINMUX_BIAS_REG("PUEN4", 0xe60600c0, "PUD4", 0xe60600e0) { |
| 4152 | [ 0] = RCAR_GP_PIN(4, 0), /* AVB0_RX_CTL */ |
| 4153 | [ 1] = RCAR_GP_PIN(4, 1), /* AVB0_RXC */ |
| 4154 | [ 2] = RCAR_GP_PIN(4, 2), /* AVB0_RD0 */ |
| 4155 | [ 3] = RCAR_GP_PIN(4, 3), /* AVB0_RD1 */ |
| 4156 | [ 4] = RCAR_GP_PIN(4, 4), /* AVB0_RD2 */ |
| 4157 | [ 5] = RCAR_GP_PIN(4, 5), /* AVB0_RD3 */ |
| 4158 | [ 6] = RCAR_GP_PIN(4, 6), /* AVB0_TX_CTL */ |
| 4159 | [ 7] = RCAR_GP_PIN(4, 7), /* AVB0_TXC */ |
| 4160 | [ 8] = RCAR_GP_PIN(4, 8), /* AVB0_TD0 */ |
| 4161 | [ 9] = RCAR_GP_PIN(4, 9), /* AVB0_TD1 */ |
| 4162 | [10] = RCAR_GP_PIN(4, 10), /* AVB0_TD2 */ |
| 4163 | [11] = RCAR_GP_PIN(4, 11), /* AVB0_TD3 */ |
| 4164 | [12] = RCAR_GP_PIN(4, 12), /* AVB0_TXREFCLK */ |
| 4165 | [13] = RCAR_GP_PIN(4, 13), /* AVB0_MDIO */ |
| 4166 | [14] = RCAR_GP_PIN(4, 14), /* AVB0_MDC */ |
| 4167 | [15] = RCAR_GP_PIN(4, 15), /* AVB0_MAGIC */ |
| 4168 | [16] = RCAR_GP_PIN(4, 16), /* AVB0_PHY_INT */ |
| 4169 | [17] = RCAR_GP_PIN(4, 17), /* AVB0_LINK */ |
| 4170 | [18] = RCAR_GP_PIN(4, 18), /* AVB0_AVTP_MATCH */ |
| 4171 | [19] = RCAR_GP_PIN(4, 19), /* AVB0_AVTP_CAPTURE */ |
| 4172 | [20] = RCAR_GP_PIN(4, 20), /* AVB0_AVTP_PPS */ |
| 4173 | [21] = RCAR_GP_PIN(4, 21), /* PCIE0_CLKREQ_N */ |
| 4174 | [22] = RCAR_GP_PIN(4, 22), /* PCIE1_CLKREQ_N */ |
| 4175 | [23] = RCAR_GP_PIN(4, 23), /* PCIE2_CLKREQ_N */ |
| 4176 | [24] = RCAR_GP_PIN(4, 24), /* PCIE3_CLKREQ_N */ |
| 4177 | [25] = RCAR_GP_PIN(4, 25), /* AVS0 */ |
| 4178 | [26] = RCAR_GP_PIN(4, 26), /* AVS1 */ |
| 4179 | [27] = SH_PFC_PIN_NONE, |
| 4180 | [28] = SH_PFC_PIN_NONE, |
| 4181 | [29] = SH_PFC_PIN_NONE, |
| 4182 | [30] = SH_PFC_PIN_NONE, |
| 4183 | [31] = SH_PFC_PIN_NONE, |
| 4184 | } }, |
| 4185 | { PINMUX_BIAS_REG("PUEN5", 0xe60608c0, "PUD5", 0xe60608e0) { |
| 4186 | [ 0] = RCAR_GP_PIN(5, 0), /* AVB1_RX_CTL */ |
| 4187 | [ 1] = RCAR_GP_PIN(5, 1), /* AVB1_RXC */ |
| 4188 | [ 2] = RCAR_GP_PIN(5, 2), /* AVB1_RD0 */ |
| 4189 | [ 3] = RCAR_GP_PIN(5, 3), /* AVB1_RD1 */ |
| 4190 | [ 4] = RCAR_GP_PIN(5, 4), /* AVB1_RD2 */ |
| 4191 | [ 5] = RCAR_GP_PIN(5, 5), /* AVB1_RD3 */ |
| 4192 | [ 6] = RCAR_GP_PIN(5, 6), /* AVB1_TX_CTL */ |
| 4193 | [ 7] = RCAR_GP_PIN(5, 7), /* AVB1_TXC */ |
| 4194 | [ 8] = RCAR_GP_PIN(5, 8), /* AVB1_TD0 */ |
| 4195 | [ 9] = RCAR_GP_PIN(5, 9), /* AVB1_TD1 */ |
| 4196 | [10] = RCAR_GP_PIN(5, 10), /* AVB1_TD2 */ |
| 4197 | [11] = RCAR_GP_PIN(5, 11), /* AVB1_TD3 */ |
| 4198 | [12] = RCAR_GP_PIN(5, 12), /* AVB1_TXCREFCLK */ |
| 4199 | [13] = RCAR_GP_PIN(5, 13), /* AVB1_MDIO */ |
| 4200 | [14] = RCAR_GP_PIN(5, 14), /* AVB1_MDC */ |
| 4201 | [15] = RCAR_GP_PIN(5, 15), /* AVB1_MAGIC */ |
| 4202 | [16] = RCAR_GP_PIN(5, 16), /* AVB1_PHY_INT */ |
| 4203 | [17] = RCAR_GP_PIN(5, 17), /* AVB1_LINK */ |
| 4204 | [18] = RCAR_GP_PIN(5, 18), /* AVB1_AVTP_MATCH */ |
| 4205 | [19] = RCAR_GP_PIN(5, 19), /* AVB1_AVTP_CAPTURE */ |
| 4206 | [20] = RCAR_GP_PIN(5, 20), /* AVB1_AVTP_PPS */ |
| 4207 | [21] = SH_PFC_PIN_NONE, |
| 4208 | [22] = SH_PFC_PIN_NONE, |
| 4209 | [23] = SH_PFC_PIN_NONE, |
| 4210 | [24] = SH_PFC_PIN_NONE, |
| 4211 | [25] = SH_PFC_PIN_NONE, |
| 4212 | [26] = SH_PFC_PIN_NONE, |
| 4213 | [27] = SH_PFC_PIN_NONE, |
| 4214 | [28] = SH_PFC_PIN_NONE, |
| 4215 | [29] = SH_PFC_PIN_NONE, |
| 4216 | [30] = SH_PFC_PIN_NONE, |
| 4217 | [31] = SH_PFC_PIN_NONE, |
| 4218 | } }, |
| 4219 | { PINMUX_BIAS_REG("PUEN6", 0xe60680c0, "PUD6", 0xe60680e0) { |
| 4220 | [ 0] = RCAR_GP_PIN(6, 0), /* AVB2_RX_CTL */ |
| 4221 | [ 1] = RCAR_GP_PIN(6, 1), /* AVB2_RXC */ |
| 4222 | [ 2] = RCAR_GP_PIN(6, 2), /* AVB2_RD0 */ |
| 4223 | [ 3] = RCAR_GP_PIN(6, 3), /* AVB2_RD1 */ |
| 4224 | [ 4] = RCAR_GP_PIN(6, 4), /* AVB2_RD2 */ |
| 4225 | [ 5] = RCAR_GP_PIN(6, 5), /* AVB2_RD3 */ |
| 4226 | [ 6] = RCAR_GP_PIN(6, 6), /* AVB2_TX_CTL */ |
| 4227 | [ 7] = RCAR_GP_PIN(6, 7), /* AVB2_TXC */ |
| 4228 | [ 8] = RCAR_GP_PIN(6, 8), /* AVB2_TD0 */ |
| 4229 | [ 9] = RCAR_GP_PIN(6, 9), /* AVB2_TD1 */ |
| 4230 | [10] = RCAR_GP_PIN(6, 10), /* AVB2_TD2 */ |
| 4231 | [11] = RCAR_GP_PIN(6, 11), /* AVB2_TD3 */ |
| 4232 | [12] = RCAR_GP_PIN(6, 12), /* AVB2_TXCREFCLK */ |
| 4233 | [13] = RCAR_GP_PIN(6, 13), /* AVB2_MDIO */ |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 4234 | [14] = RCAR_GP_PIN(6, 14), /* AVB2_MDC */ |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 4235 | [15] = RCAR_GP_PIN(6, 15), /* AVB2_MAGIC */ |
| 4236 | [16] = RCAR_GP_PIN(6, 16), /* AVB2_PHY_INT */ |
| 4237 | [17] = RCAR_GP_PIN(6, 17), /* AVB2_LINK */ |
| 4238 | [18] = RCAR_GP_PIN(6, 18), /* AVB2_AVTP_MATCH */ |
| 4239 | [19] = RCAR_GP_PIN(6, 19), /* AVB2_AVTP_CAPTURE */ |
| 4240 | [20] = RCAR_GP_PIN(6, 20), /* AVB2_AVTP_PPS */ |
| 4241 | [21] = SH_PFC_PIN_NONE, |
| 4242 | [22] = SH_PFC_PIN_NONE, |
| 4243 | [23] = SH_PFC_PIN_NONE, |
| 4244 | [24] = SH_PFC_PIN_NONE, |
| 4245 | [25] = SH_PFC_PIN_NONE, |
| 4246 | [26] = SH_PFC_PIN_NONE, |
| 4247 | [27] = SH_PFC_PIN_NONE, |
| 4248 | [28] = SH_PFC_PIN_NONE, |
| 4249 | [29] = SH_PFC_PIN_NONE, |
| 4250 | [30] = SH_PFC_PIN_NONE, |
| 4251 | [31] = SH_PFC_PIN_NONE, |
| 4252 | } }, |
| 4253 | { PINMUX_BIAS_REG("PUEN7", 0xe60688c0, "PUD7", 0xe60688e0) { |
| 4254 | [ 0] = RCAR_GP_PIN(7, 0), /* AVB3_RX_CTL */ |
| 4255 | [ 1] = RCAR_GP_PIN(7, 1), /* AVB3_RXC */ |
| 4256 | [ 2] = RCAR_GP_PIN(7, 2), /* AVB3_RD0 */ |
| 4257 | [ 3] = RCAR_GP_PIN(7, 3), /* AVB3_RD1 */ |
| 4258 | [ 4] = RCAR_GP_PIN(7, 4), /* AVB3_RD2 */ |
| 4259 | [ 5] = RCAR_GP_PIN(7, 5), /* AVB3_RD3 */ |
| 4260 | [ 6] = RCAR_GP_PIN(7, 6), /* AVB3_TX_CTL */ |
| 4261 | [ 7] = RCAR_GP_PIN(7, 7), /* AVB3_TXC */ |
| 4262 | [ 8] = RCAR_GP_PIN(7, 8), /* AVB3_TD0 */ |
| 4263 | [ 9] = RCAR_GP_PIN(7, 9), /* AVB3_TD1 */ |
| 4264 | [10] = RCAR_GP_PIN(7, 10), /* AVB3_TD2 */ |
| 4265 | [11] = RCAR_GP_PIN(7, 11), /* AVB3_TD3 */ |
| 4266 | [12] = RCAR_GP_PIN(7, 12), /* AVB3_TXCREFCLK */ |
| 4267 | [13] = RCAR_GP_PIN(7, 13), /* AVB3_MDIO */ |
| 4268 | [14] = RCAR_GP_PIN(7, 14), /* AVB3_MDC */ |
| 4269 | [15] = RCAR_GP_PIN(7, 15), /* AVB3_MAGIC */ |
| 4270 | [16] = RCAR_GP_PIN(7, 16), /* AVB3_PHY_INT */ |
| 4271 | [17] = RCAR_GP_PIN(7, 17), /* AVB3_LINK */ |
| 4272 | [18] = RCAR_GP_PIN(7, 18), /* AVB3_AVTP_MATCH */ |
| 4273 | [19] = RCAR_GP_PIN(7, 19), /* AVB3_AVTP_CAPTURE */ |
| 4274 | [20] = RCAR_GP_PIN(7, 20), /* AVB3_AVTP_PPS */ |
| 4275 | [21] = SH_PFC_PIN_NONE, |
| 4276 | [22] = SH_PFC_PIN_NONE, |
| 4277 | [23] = SH_PFC_PIN_NONE, |
| 4278 | [24] = SH_PFC_PIN_NONE, |
| 4279 | [25] = SH_PFC_PIN_NONE, |
| 4280 | [26] = SH_PFC_PIN_NONE, |
| 4281 | [27] = SH_PFC_PIN_NONE, |
| 4282 | [28] = SH_PFC_PIN_NONE, |
| 4283 | [29] = SH_PFC_PIN_NONE, |
| 4284 | [30] = SH_PFC_PIN_NONE, |
| 4285 | [31] = SH_PFC_PIN_NONE, |
| 4286 | } }, |
| 4287 | { PINMUX_BIAS_REG("PUEN8", 0xe60690c0, "PUD8", 0xe60690e0) { |
| 4288 | [ 0] = RCAR_GP_PIN(8, 0), /* AVB4_RX_CTL */ |
| 4289 | [ 1] = RCAR_GP_PIN(8, 1), /* AVB4_RXC */ |
| 4290 | [ 2] = RCAR_GP_PIN(8, 2), /* AVB4_RD0 */ |
| 4291 | [ 3] = RCAR_GP_PIN(8, 3), /* AVB4_RD1 */ |
| 4292 | [ 4] = RCAR_GP_PIN(8, 4), /* AVB4_RD2 */ |
| 4293 | [ 5] = RCAR_GP_PIN(8, 5), /* AVB4_RD3 */ |
| 4294 | [ 6] = RCAR_GP_PIN(8, 6), /* AVB4_TX_CTL */ |
| 4295 | [ 7] = RCAR_GP_PIN(8, 7), /* AVB4_TXC */ |
| 4296 | [ 8] = RCAR_GP_PIN(8, 8), /* AVB4_TD0 */ |
| 4297 | [ 9] = RCAR_GP_PIN(8, 9), /* AVB4_TD1 */ |
| 4298 | [10] = RCAR_GP_PIN(8, 10), /* AVB4_TD2 */ |
| 4299 | [11] = RCAR_GP_PIN(8, 11), /* AVB4_TD3 */ |
| 4300 | [12] = RCAR_GP_PIN(8, 12), /* AVB4_TXCREFCLK */ |
| 4301 | [13] = RCAR_GP_PIN(8, 13), /* AVB4_MDIO */ |
| 4302 | [14] = RCAR_GP_PIN(8, 14), /* AVB4_MDC */ |
| 4303 | [15] = RCAR_GP_PIN(8, 15), /* AVB4_MAGIC */ |
| 4304 | [16] = RCAR_GP_PIN(8, 16), /* AVB4_PHY_INT */ |
| 4305 | [17] = RCAR_GP_PIN(8, 17), /* AVB4_LINK */ |
| 4306 | [18] = RCAR_GP_PIN(8, 18), /* AVB4_AVTP_MATCH */ |
| 4307 | [19] = RCAR_GP_PIN(8, 19), /* AVB4_AVTP_CAPTURE */ |
| 4308 | [20] = RCAR_GP_PIN(8, 20), /* AVB4_AVTP_PPS */ |
| 4309 | [21] = SH_PFC_PIN_NONE, |
| 4310 | [22] = SH_PFC_PIN_NONE, |
| 4311 | [23] = SH_PFC_PIN_NONE, |
| 4312 | [24] = SH_PFC_PIN_NONE, |
| 4313 | [25] = SH_PFC_PIN_NONE, |
| 4314 | [26] = SH_PFC_PIN_NONE, |
| 4315 | [27] = SH_PFC_PIN_NONE, |
| 4316 | [28] = SH_PFC_PIN_NONE, |
| 4317 | [29] = SH_PFC_PIN_NONE, |
| 4318 | [30] = SH_PFC_PIN_NONE, |
| 4319 | [31] = SH_PFC_PIN_NONE, |
| 4320 | } }, |
| 4321 | { PINMUX_BIAS_REG("PUEN9", 0xe60698c0, "PUD9", 0xe60698e0) { |
| 4322 | [ 0] = RCAR_GP_PIN(9, 0), /* AVB5_RX_CTL */ |
| 4323 | [ 1] = RCAR_GP_PIN(9, 1), /* AVB5_RXC */ |
| 4324 | [ 2] = RCAR_GP_PIN(9, 2), /* AVB5_RD0 */ |
| 4325 | [ 3] = RCAR_GP_PIN(9, 3), /* AVB5_RD1 */ |
| 4326 | [ 4] = RCAR_GP_PIN(9, 4), /* AVB5_RD2 */ |
| 4327 | [ 5] = RCAR_GP_PIN(9, 5), /* AVB5_RD3 */ |
| 4328 | [ 6] = RCAR_GP_PIN(9, 6), /* AVB5_TX_CTL */ |
| 4329 | [ 7] = RCAR_GP_PIN(9, 7), /* AVB5_TXC */ |
| 4330 | [ 8] = RCAR_GP_PIN(9, 8), /* AVB5_TD0 */ |
| 4331 | [ 9] = RCAR_GP_PIN(9, 9), /* AVB5_TD1 */ |
| 4332 | [10] = RCAR_GP_PIN(9, 10), /* AVB5_TD2 */ |
| 4333 | [11] = RCAR_GP_PIN(9, 11), /* AVB5_TD3 */ |
| 4334 | [12] = RCAR_GP_PIN(9, 12), /* AVB5_TXCREFCLK */ |
| 4335 | [13] = RCAR_GP_PIN(9, 13), /* AVB5_MDIO */ |
| 4336 | [14] = RCAR_GP_PIN(9, 14), /* AVB5_MDC */ |
| 4337 | [15] = RCAR_GP_PIN(9, 15), /* AVB5_MAGIC */ |
| 4338 | [16] = RCAR_GP_PIN(9, 16), /* AVB5_PHY_INT */ |
| 4339 | [17] = RCAR_GP_PIN(9, 17), /* AVB5_LINK */ |
| 4340 | [18] = RCAR_GP_PIN(9, 18), /* AVB5_AVTP_MATCH */ |
| 4341 | [19] = RCAR_GP_PIN(9, 19), /* AVB5_AVTP_CAPTURE */ |
| 4342 | [20] = RCAR_GP_PIN(9, 20), /* AVB5_AVTP_PPS */ |
| 4343 | [21] = SH_PFC_PIN_NONE, |
| 4344 | [22] = SH_PFC_PIN_NONE, |
| 4345 | [23] = SH_PFC_PIN_NONE, |
| 4346 | [24] = SH_PFC_PIN_NONE, |
| 4347 | [25] = SH_PFC_PIN_NONE, |
| 4348 | [26] = SH_PFC_PIN_NONE, |
| 4349 | [27] = SH_PFC_PIN_NONE, |
| 4350 | [28] = SH_PFC_PIN_NONE, |
| 4351 | [29] = SH_PFC_PIN_NONE, |
| 4352 | [30] = SH_PFC_PIN_NONE, |
| 4353 | [31] = SH_PFC_PIN_NONE, |
| 4354 | } }, |
Marek Vasut | e480d81 | 2023-09-17 16:08:47 +0200 | [diff] [blame] | 4355 | { /* sentinel */ } |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 4356 | }; |
| 4357 | |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 4358 | static const struct sh_pfc_soc_operations r8a779a0_pfc_ops = { |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 4359 | .pin_to_pocctrl = r8a779a0_pin_to_pocctrl, |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 4360 | .get_bias = rcar_pinmux_get_bias, |
| 4361 | .set_bias = rcar_pinmux_set_bias, |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 4362 | }; |
| 4363 | |
| 4364 | const struct sh_pfc_soc_info r8a779a0_pinmux_info = { |
| 4365 | .name = "r8a779a0_pfc", |
Marek Vasut | 4ecc183 | 2023-01-26 21:01:47 +0100 | [diff] [blame] | 4366 | .ops = &r8a779a0_pfc_ops, |
Marek Vasut | 4dbc653 | 2021-04-27 01:55:54 +0200 | [diff] [blame] | 4367 | .unlock_reg = 0x1ff, /* PMMRn mask */ |
| 4368 | |
| 4369 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, |
| 4370 | |
| 4371 | .pins = pinmux_pins, |
| 4372 | .nr_pins = ARRAY_SIZE(pinmux_pins), |
| 4373 | .groups = pinmux_groups, |
| 4374 | .nr_groups = ARRAY_SIZE(pinmux_groups), |
| 4375 | .functions = pinmux_functions, |
| 4376 | .nr_functions = ARRAY_SIZE(pinmux_functions), |
| 4377 | |
| 4378 | .cfg_regs = pinmux_config_regs, |
| 4379 | .drive_regs = pinmux_drive_regs, |
| 4380 | .bias_regs = pinmux_bias_regs, |
| 4381 | .ioctrl_regs = pinmux_ioctrl_regs, |
| 4382 | |
| 4383 | .pinmux_data = pinmux_data, |
| 4384 | .pinmux_data_size = ARRAY_SIZE(pinmux_data), |
| 4385 | }; |