1 /* 2 * Copyright (C) 2015-2017 Socionext Inc. 3 * Author: Masahiro Yamada <yamada.masahiro@socionext.com> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program5 is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 */ 15 16 #include <linux/kernel.h> 17 #include <linux/init.h> 18 #include <linux/mod_devicetable.h> 19 #include <linux/pinctrl/pinctrl.h> 20 #include <linux/platform_device.h> 21 22 #include "pinctrl-uniphier.h" 23 24 static const struct pinctrl_pin_desc uniphier_pro4_pins[] = { 25 UNIPHIER_PINCTRL_PIN(0, "CK24O", UNIPHIER_PIN_IECTRL_NONE, 26 0, UNIPHIER_PIN_DRV_1BIT, 27 0, UNIPHIER_PIN_PULL_DOWN), 28 UNIPHIER_PINCTRL_PIN(1, "VC27A", UNIPHIER_PIN_IECTRL_NONE, 29 1, UNIPHIER_PIN_DRV_1BIT, 30 1, UNIPHIER_PIN_PULL_DOWN), 31 UNIPHIER_PINCTRL_PIN(2, "CK27AI", UNIPHIER_PIN_IECTRL_NONE, 32 2, UNIPHIER_PIN_DRV_1BIT, 33 2, UNIPHIER_PIN_PULL_DOWN), 34 UNIPHIER_PINCTRL_PIN(3, "CK27AO", UNIPHIER_PIN_IECTRL_NONE, 35 3, UNIPHIER_PIN_DRV_1BIT, 36 3, UNIPHIER_PIN_PULL_DOWN), 37 UNIPHIER_PINCTRL_PIN(4, "CKSEL", UNIPHIER_PIN_IECTRL_NONE, 38 4, UNIPHIER_PIN_DRV_1BIT, 39 4, UNIPHIER_PIN_PULL_UP), 40 UNIPHIER_PINCTRL_PIN(5, "CK27AV", UNIPHIER_PIN_IECTRL_NONE, 41 5, UNIPHIER_PIN_DRV_1BIT, 42 5, UNIPHIER_PIN_PULL_DOWN), 43 UNIPHIER_PINCTRL_PIN(6, "AEXCKA", UNIPHIER_PIN_IECTRL_NONE, 44 6, UNIPHIER_PIN_DRV_1BIT, 45 6, UNIPHIER_PIN_PULL_DOWN), 46 UNIPHIER_PINCTRL_PIN(7, "ASEL", UNIPHIER_PIN_IECTRL_NONE, 47 7, UNIPHIER_PIN_DRV_1BIT, 48 7, UNIPHIER_PIN_PULL_DOWN), 49 UNIPHIER_PINCTRL_PIN(8, "ARCRESET", UNIPHIER_PIN_IECTRL_NONE, 50 8, UNIPHIER_PIN_DRV_1BIT, 51 8, UNIPHIER_PIN_PULL_DOWN), 52 UNIPHIER_PINCTRL_PIN(9, "ARCUNLOCK", UNIPHIER_PIN_IECTRL_NONE, 53 9, UNIPHIER_PIN_DRV_1BIT, 54 9, UNIPHIER_PIN_PULL_DOWN), 55 UNIPHIER_PINCTRL_PIN(10, "XSRST", UNIPHIER_PIN_IECTRL_NONE, 56 10, UNIPHIER_PIN_DRV_1BIT, 57 10, UNIPHIER_PIN_PULL_DOWN), 58 UNIPHIER_PINCTRL_PIN(11, "XNMIRQ", UNIPHIER_PIN_IECTRL_NONE, 59 11, UNIPHIER_PIN_DRV_1BIT, 60 11, UNIPHIER_PIN_PULL_UP), 61 UNIPHIER_PINCTRL_PIN(12, "XSCIRQ", UNIPHIER_PIN_IECTRL_NONE, 62 12, UNIPHIER_PIN_DRV_1BIT, 63 12, UNIPHIER_PIN_PULL_UP), 64 UNIPHIER_PINCTRL_PIN(13, "EXTRG", UNIPHIER_PIN_IECTRL_NONE, 65 13, UNIPHIER_PIN_DRV_1BIT, 66 13, UNIPHIER_PIN_PULL_DOWN), 67 UNIPHIER_PINCTRL_PIN(14, "TRCCLK", UNIPHIER_PIN_IECTRL_NONE, 68 14, UNIPHIER_PIN_DRV_1BIT, 69 14, UNIPHIER_PIN_PULL_DOWN), 70 UNIPHIER_PINCTRL_PIN(15, "TRCCTL", UNIPHIER_PIN_IECTRL_NONE, 71 15, UNIPHIER_PIN_DRV_1BIT, 72 15, UNIPHIER_PIN_PULL_DOWN), 73 UNIPHIER_PINCTRL_PIN(16, "TRCD0", UNIPHIER_PIN_IECTRL_NONE, 74 16, UNIPHIER_PIN_DRV_1BIT, 75 16, UNIPHIER_PIN_PULL_DOWN), 76 UNIPHIER_PINCTRL_PIN(17, "TRCD1", UNIPHIER_PIN_IECTRL_NONE, 77 17, UNIPHIER_PIN_DRV_1BIT, 78 17, UNIPHIER_PIN_PULL_DOWN), 79 UNIPHIER_PINCTRL_PIN(18, "TRCD2", UNIPHIER_PIN_IECTRL_NONE, 80 18, UNIPHIER_PIN_DRV_1BIT, 81 18, UNIPHIER_PIN_PULL_DOWN), 82 UNIPHIER_PINCTRL_PIN(19, "TRCD3", UNIPHIER_PIN_IECTRL_NONE, 83 19, UNIPHIER_PIN_DRV_1BIT, 84 19, UNIPHIER_PIN_PULL_DOWN), 85 UNIPHIER_PINCTRL_PIN(20, "TRCD4", UNIPHIER_PIN_IECTRL_NONE, 86 20, UNIPHIER_PIN_DRV_1BIT, 87 20, UNIPHIER_PIN_PULL_DOWN), 88 UNIPHIER_PINCTRL_PIN(21, "TRCD5", UNIPHIER_PIN_IECTRL_NONE, 89 21, UNIPHIER_PIN_DRV_1BIT, 90 21, UNIPHIER_PIN_PULL_DOWN), 91 UNIPHIER_PINCTRL_PIN(22, "TRCD6", UNIPHIER_PIN_IECTRL_NONE, 92 22, UNIPHIER_PIN_DRV_1BIT, 93 22, UNIPHIER_PIN_PULL_DOWN), 94 UNIPHIER_PINCTRL_PIN(23, "TRCD7", UNIPHIER_PIN_IECTRL_NONE, 95 23, UNIPHIER_PIN_DRV_1BIT, 96 23, UNIPHIER_PIN_PULL_DOWN), 97 UNIPHIER_PINCTRL_PIN(24, "XECS1", UNIPHIER_PIN_IECTRL_NONE, 98 24, UNIPHIER_PIN_DRV_1BIT, 99 24, UNIPHIER_PIN_PULL_UP), 100 UNIPHIER_PINCTRL_PIN(25, "ERXW", UNIPHIER_PIN_IECTRL_NONE, 101 25, UNIPHIER_PIN_DRV_1BIT, 102 25, UNIPHIER_PIN_PULL_UP), 103 UNIPHIER_PINCTRL_PIN(26, "XERWE0", UNIPHIER_PIN_IECTRL_NONE, 104 26, UNIPHIER_PIN_DRV_1BIT, 105 26, UNIPHIER_PIN_PULL_UP), 106 UNIPHIER_PINCTRL_PIN(27, "XERWE1", UNIPHIER_PIN_IECTRL_NONE, 107 27, UNIPHIER_PIN_DRV_1BIT, 108 27, UNIPHIER_PIN_PULL_UP), 109 UNIPHIER_PINCTRL_PIN(28, "ES0", UNIPHIER_PIN_IECTRL_NONE, 110 28, UNIPHIER_PIN_DRV_1BIT, 111 28, UNIPHIER_PIN_PULL_DOWN), 112 UNIPHIER_PINCTRL_PIN(29, "ES1", UNIPHIER_PIN_IECTRL_NONE, 113 29, UNIPHIER_PIN_DRV_1BIT, 114 29, UNIPHIER_PIN_PULL_DOWN), 115 UNIPHIER_PINCTRL_PIN(30, "ES2", UNIPHIER_PIN_IECTRL_NONE, 116 30, UNIPHIER_PIN_DRV_1BIT, 117 30, UNIPHIER_PIN_PULL_DOWN), 118 UNIPHIER_PINCTRL_PIN(31, "ED0", UNIPHIER_PIN_IECTRL_NONE, 119 31, UNIPHIER_PIN_DRV_1BIT, 120 31, UNIPHIER_PIN_PULL_DOWN), 121 UNIPHIER_PINCTRL_PIN(32, "ED1", UNIPHIER_PIN_IECTRL_NONE, 122 32, UNIPHIER_PIN_DRV_1BIT, 123 32, UNIPHIER_PIN_PULL_DOWN), 124 UNIPHIER_PINCTRL_PIN(33, "ED2", UNIPHIER_PIN_IECTRL_NONE, 125 33, UNIPHIER_PIN_DRV_1BIT, 126 33, UNIPHIER_PIN_PULL_DOWN), 127 UNIPHIER_PINCTRL_PIN(34, "ED3", UNIPHIER_PIN_IECTRL_NONE, 128 34, UNIPHIER_PIN_DRV_1BIT, 129 34, UNIPHIER_PIN_PULL_DOWN), 130 UNIPHIER_PINCTRL_PIN(35, "ED4", UNIPHIER_PIN_IECTRL_NONE, 131 35, UNIPHIER_PIN_DRV_1BIT, 132 35, UNIPHIER_PIN_PULL_DOWN), 133 UNIPHIER_PINCTRL_PIN(36, "ED5", UNIPHIER_PIN_IECTRL_NONE, 134 36, UNIPHIER_PIN_DRV_1BIT, 135 36, UNIPHIER_PIN_PULL_DOWN), 136 UNIPHIER_PINCTRL_PIN(37, "ED6", UNIPHIER_PIN_IECTRL_NONE, 137 37, UNIPHIER_PIN_DRV_1BIT, 138 37, UNIPHIER_PIN_PULL_DOWN), 139 UNIPHIER_PINCTRL_PIN(38, "ED7", UNIPHIER_PIN_IECTRL_NONE, 140 38, UNIPHIER_PIN_DRV_1BIT, 141 38, UNIPHIER_PIN_PULL_DOWN), 142 UNIPHIER_PINCTRL_PIN(39, "BOOTSWAP", UNIPHIER_PIN_IECTRL_NONE, 143 -1, UNIPHIER_PIN_DRV_NONE, 144 39, UNIPHIER_PIN_PULL_UP), 145 UNIPHIER_PINCTRL_PIN(40, "NFD0", UNIPHIER_PIN_IECTRL_NONE, 146 2, UNIPHIER_PIN_DRV_2BIT, 147 40, UNIPHIER_PIN_PULL_UP), 148 UNIPHIER_PINCTRL_PIN(41, "NFD1", UNIPHIER_PIN_IECTRL_NONE, 149 3, UNIPHIER_PIN_DRV_2BIT, 150 41, UNIPHIER_PIN_PULL_UP), 151 UNIPHIER_PINCTRL_PIN(42, "NFD2", UNIPHIER_PIN_IECTRL_NONE, 152 4, UNIPHIER_PIN_DRV_2BIT, 153 42, UNIPHIER_PIN_PULL_UP), 154 UNIPHIER_PINCTRL_PIN(43, "NFD3", UNIPHIER_PIN_IECTRL_NONE, 155 5, UNIPHIER_PIN_DRV_2BIT, 156 43, UNIPHIER_PIN_PULL_UP), 157 UNIPHIER_PINCTRL_PIN(44, "NFD4", UNIPHIER_PIN_IECTRL_NONE, 158 6, UNIPHIER_PIN_DRV_2BIT, 159 44, UNIPHIER_PIN_PULL_UP), 160 UNIPHIER_PINCTRL_PIN(45, "NFD5", UNIPHIER_PIN_IECTRL_NONE, 161 7, UNIPHIER_PIN_DRV_2BIT, 162 45, UNIPHIER_PIN_PULL_UP), 163 UNIPHIER_PINCTRL_PIN(46, "NFD6", UNIPHIER_PIN_IECTRL_NONE, 164 8, UNIPHIER_PIN_DRV_2BIT, 165 46, UNIPHIER_PIN_PULL_UP), 166 UNIPHIER_PINCTRL_PIN(47, "NFD7", UNIPHIER_PIN_IECTRL_NONE, 167 9, UNIPHIER_PIN_DRV_2BIT, 168 47, UNIPHIER_PIN_PULL_UP), 169 UNIPHIER_PINCTRL_PIN(48, "NFALE", UNIPHIER_PIN_IECTRL_NONE, 170 48, UNIPHIER_PIN_DRV_1BIT, 171 48, UNIPHIER_PIN_PULL_DOWN), 172 UNIPHIER_PINCTRL_PIN(49, "NFCLE", UNIPHIER_PIN_IECTRL_NONE, 173 49, UNIPHIER_PIN_DRV_1BIT, 174 49, UNIPHIER_PIN_PULL_DOWN), 175 UNIPHIER_PINCTRL_PIN(50, "XNFRE", UNIPHIER_PIN_IECTRL_NONE, 176 50, UNIPHIER_PIN_DRV_1BIT, 177 50, UNIPHIER_PIN_PULL_UP), 178 UNIPHIER_PINCTRL_PIN(51, "XNFWE", UNIPHIER_PIN_IECTRL_NONE, 179 0, UNIPHIER_PIN_DRV_2BIT, 180 51, UNIPHIER_PIN_PULL_UP), 181 UNIPHIER_PINCTRL_PIN(52, "XNFWP", UNIPHIER_PIN_IECTRL_NONE, 182 52, UNIPHIER_PIN_DRV_1BIT, 183 52, UNIPHIER_PIN_PULL_DOWN), 184 UNIPHIER_PINCTRL_PIN(53, "XNFCE0", UNIPHIER_PIN_IECTRL_NONE, 185 1, UNIPHIER_PIN_DRV_2BIT, 186 53, UNIPHIER_PIN_PULL_UP), 187 UNIPHIER_PINCTRL_PIN(54, "NRYBY0", UNIPHIER_PIN_IECTRL_NONE, 188 54, UNIPHIER_PIN_DRV_1BIT, 189 54, UNIPHIER_PIN_PULL_UP), 190 UNIPHIER_PINCTRL_PIN(55, "DMDSCLTST", UNIPHIER_PIN_IECTRL_NONE, 191 -1, UNIPHIER_PIN_DRV_NONE, 192 -1, UNIPHIER_PIN_PULL_NONE), 193 UNIPHIER_PINCTRL_PIN(56, "DMDSDATST", UNIPHIER_PIN_IECTRL_NONE, 194 -1, UNIPHIER_PIN_DRV_FIXED4, 195 -1, UNIPHIER_PIN_PULL_NONE), 196 UNIPHIER_PINCTRL_PIN(57, "AGCI0", 3, 197 -1, UNIPHIER_PIN_DRV_FIXED4, 198 55, UNIPHIER_PIN_PULL_DOWN), 199 UNIPHIER_PINCTRL_PIN(58, "DMDSCL0", UNIPHIER_PIN_IECTRL_NONE, 200 -1, UNIPHIER_PIN_DRV_FIXED4, 201 -1, UNIPHIER_PIN_PULL_NONE), 202 UNIPHIER_PINCTRL_PIN(59, "DMDSDA0", UNIPHIER_PIN_IECTRL_NONE, 203 -1, UNIPHIER_PIN_DRV_FIXED4, 204 -1, UNIPHIER_PIN_PULL_NONE), 205 UNIPHIER_PINCTRL_PIN(60, "AGCBS0", 5, 206 -1, UNIPHIER_PIN_DRV_FIXED4, 207 56, UNIPHIER_PIN_PULL_DOWN), 208 UNIPHIER_PINCTRL_PIN(61, "DMDSCL1", UNIPHIER_PIN_IECTRL_NONE, 209 -1, UNIPHIER_PIN_DRV_FIXED4, 210 -1, UNIPHIER_PIN_PULL_NONE), 211 UNIPHIER_PINCTRL_PIN(62, "DMDSDA1", UNIPHIER_PIN_IECTRL_NONE, 212 -1, UNIPHIER_PIN_DRV_FIXED4, 213 -1, UNIPHIER_PIN_PULL_NONE), 214 UNIPHIER_PINCTRL_PIN(63, "ANTSHORT", UNIPHIER_PIN_IECTRL_NONE, 215 57, UNIPHIER_PIN_DRV_1BIT, 216 57, UNIPHIER_PIN_PULL_UP), 217 UNIPHIER_PINCTRL_PIN(64, "CH0CLK", UNIPHIER_PIN_IECTRL_NONE, 218 58, UNIPHIER_PIN_DRV_1BIT, 219 58, UNIPHIER_PIN_PULL_DOWN), 220 UNIPHIER_PINCTRL_PIN(65, "CH0VAL", UNIPHIER_PIN_IECTRL_NONE, 221 59, UNIPHIER_PIN_DRV_1BIT, 222 59, UNIPHIER_PIN_PULL_DOWN), 223 UNIPHIER_PINCTRL_PIN(66, "CH0PSYNC", UNIPHIER_PIN_IECTRL_NONE, 224 60, UNIPHIER_PIN_DRV_1BIT, 225 60, UNIPHIER_PIN_PULL_DOWN), 226 UNIPHIER_PINCTRL_PIN(67, "CH0DATA", UNIPHIER_PIN_IECTRL_NONE, 227 61, UNIPHIER_PIN_DRV_1BIT, 228 61, UNIPHIER_PIN_PULL_DOWN), 229 UNIPHIER_PINCTRL_PIN(68, "CH1CLK", UNIPHIER_PIN_IECTRL_NONE, 230 62, UNIPHIER_PIN_DRV_1BIT, 231 62, UNIPHIER_PIN_PULL_DOWN), 232 UNIPHIER_PINCTRL_PIN(69, "CH1VAL", UNIPHIER_PIN_IECTRL_NONE, 233 63, UNIPHIER_PIN_DRV_1BIT, 234 63, UNIPHIER_PIN_PULL_DOWN), 235 UNIPHIER_PINCTRL_PIN(70, "CH1PSYNC", UNIPHIER_PIN_IECTRL_NONE, 236 64, UNIPHIER_PIN_DRV_1BIT, 237 64, UNIPHIER_PIN_PULL_DOWN), 238 UNIPHIER_PINCTRL_PIN(71, "CH1DATA", UNIPHIER_PIN_IECTRL_NONE, 239 65, UNIPHIER_PIN_DRV_1BIT, 240 65, UNIPHIER_PIN_PULL_DOWN), 241 UNIPHIER_PINCTRL_PIN(72, "CH2CLK", UNIPHIER_PIN_IECTRL_NONE, 242 66, UNIPHIER_PIN_DRV_1BIT, 243 66, UNIPHIER_PIN_PULL_DOWN), 244 UNIPHIER_PINCTRL_PIN(73, "CH2VAL", UNIPHIER_PIN_IECTRL_NONE, 245 67, UNIPHIER_PIN_DRV_1BIT, 246 67, UNIPHIER_PIN_PULL_DOWN), 247 UNIPHIER_PINCTRL_PIN(74, "CH2PSYNC", UNIPHIER_PIN_IECTRL_NONE, 248 68, UNIPHIER_PIN_DRV_1BIT, 249 68, UNIPHIER_PIN_PULL_DOWN), 250 UNIPHIER_PINCTRL_PIN(75, "CH2DATA", UNIPHIER_PIN_IECTRL_NONE, 251 69, UNIPHIER_PIN_DRV_1BIT, 252 69, UNIPHIER_PIN_PULL_DOWN), 253 UNIPHIER_PINCTRL_PIN(76, "CH3CLK", UNIPHIER_PIN_IECTRL_NONE, 254 70, UNIPHIER_PIN_DRV_1BIT, 255 70, UNIPHIER_PIN_PULL_DOWN), 256 UNIPHIER_PINCTRL_PIN(77, "CH3VAL", UNIPHIER_PIN_IECTRL_NONE, 257 71, UNIPHIER_PIN_DRV_1BIT, 258 71, UNIPHIER_PIN_PULL_DOWN), 259 UNIPHIER_PINCTRL_PIN(78, "CH3PSYNC", UNIPHIER_PIN_IECTRL_NONE, 260 72, UNIPHIER_PIN_DRV_1BIT, 261 72, UNIPHIER_PIN_PULL_DOWN), 262 UNIPHIER_PINCTRL_PIN(79, "CH3DATA", UNIPHIER_PIN_IECTRL_NONE, 263 73, UNIPHIER_PIN_DRV_1BIT, 264 73, UNIPHIER_PIN_PULL_DOWN), 265 UNIPHIER_PINCTRL_PIN(80, "CH4CLK", UNIPHIER_PIN_IECTRL_NONE, 266 74, UNIPHIER_PIN_DRV_1BIT, 267 74, UNIPHIER_PIN_PULL_DOWN), 268 UNIPHIER_PINCTRL_PIN(81, "CH4VAL", UNIPHIER_PIN_IECTRL_NONE, 269 75, UNIPHIER_PIN_DRV_1BIT, 270 75, UNIPHIER_PIN_PULL_DOWN), 271 UNIPHIER_PINCTRL_PIN(82, "CH4PSYNC", UNIPHIER_PIN_IECTRL_NONE, 272 76, UNIPHIER_PIN_DRV_1BIT, 273 76, UNIPHIER_PIN_PULL_DOWN), 274 UNIPHIER_PINCTRL_PIN(83, "CH4DATA", UNIPHIER_PIN_IECTRL_NONE, 275 77, UNIPHIER_PIN_DRV_1BIT, 276 77, UNIPHIER_PIN_PULL_DOWN), 277 UNIPHIER_PINCTRL_PIN(84, "CH5CLK", UNIPHIER_PIN_IECTRL_NONE, 278 78, UNIPHIER_PIN_DRV_1BIT, 279 78, UNIPHIER_PIN_PULL_DOWN), 280 UNIPHIER_PINCTRL_PIN(85, "CH5VAL", UNIPHIER_PIN_IECTRL_NONE, 281 79, UNIPHIER_PIN_DRV_1BIT, 282 79, UNIPHIER_PIN_PULL_DOWN), 283 UNIPHIER_PINCTRL_PIN(86, "CH5PSYNC", UNIPHIER_PIN_IECTRL_NONE, 284 80, UNIPHIER_PIN_DRV_1BIT, 285 80, UNIPHIER_PIN_PULL_DOWN), 286 UNIPHIER_PINCTRL_PIN(87, "CH5DATA", UNIPHIER_PIN_IECTRL_NONE, 287 81, UNIPHIER_PIN_DRV_1BIT, 288 81, UNIPHIER_PIN_PULL_DOWN), 289 UNIPHIER_PINCTRL_PIN(88, "CH6CLK", UNIPHIER_PIN_IECTRL_NONE, 290 82, UNIPHIER_PIN_DRV_1BIT, 291 82, UNIPHIER_PIN_PULL_DOWN), 292 UNIPHIER_PINCTRL_PIN(89, "CH6VAL", UNIPHIER_PIN_IECTRL_NONE, 293 83, UNIPHIER_PIN_DRV_1BIT, 294 83, UNIPHIER_PIN_PULL_DOWN), 295 UNIPHIER_PINCTRL_PIN(90, "CH6PSYNC", UNIPHIER_PIN_IECTRL_NONE, 296 84, UNIPHIER_PIN_DRV_1BIT, 297 84, UNIPHIER_PIN_PULL_DOWN), 298 UNIPHIER_PINCTRL_PIN(91, "CH6DATA", UNIPHIER_PIN_IECTRL_NONE, 299 85, UNIPHIER_PIN_DRV_1BIT, 300 85, UNIPHIER_PIN_PULL_DOWN), 301 UNIPHIER_PINCTRL_PIN(92, "CKFEO", UNIPHIER_PIN_IECTRL_NONE, 302 86, UNIPHIER_PIN_DRV_1BIT, 303 86, UNIPHIER_PIN_PULL_DOWN), 304 UNIPHIER_PINCTRL_PIN(93, "XFERST", UNIPHIER_PIN_IECTRL_NONE, 305 87, UNIPHIER_PIN_DRV_1BIT, 306 87, UNIPHIER_PIN_PULL_DOWN), 307 UNIPHIER_PINCTRL_PIN(94, "P_FE_ON", UNIPHIER_PIN_IECTRL_NONE, 308 88, UNIPHIER_PIN_DRV_1BIT, 309 88, UNIPHIER_PIN_PULL_DOWN), 310 UNIPHIER_PINCTRL_PIN(95, "P_TU0_ON", UNIPHIER_PIN_IECTRL_NONE, 311 89, UNIPHIER_PIN_DRV_1BIT, 312 89, UNIPHIER_PIN_PULL_DOWN), 313 UNIPHIER_PINCTRL_PIN(96, "XFEIRQ0", UNIPHIER_PIN_IECTRL_NONE, 314 90, UNIPHIER_PIN_DRV_1BIT, 315 90, UNIPHIER_PIN_PULL_DOWN), 316 UNIPHIER_PINCTRL_PIN(97, "XFEIRQ1", UNIPHIER_PIN_IECTRL_NONE, 317 91, UNIPHIER_PIN_DRV_1BIT, 318 91, UNIPHIER_PIN_PULL_DOWN), 319 UNIPHIER_PINCTRL_PIN(98, "XFEIRQ2", UNIPHIER_PIN_IECTRL_NONE, 320 92, UNIPHIER_PIN_DRV_1BIT, 321 92, UNIPHIER_PIN_PULL_DOWN), 322 UNIPHIER_PINCTRL_PIN(99, "XFEIRQ3", UNIPHIER_PIN_IECTRL_NONE, 323 93, UNIPHIER_PIN_DRV_1BIT, 324 93, UNIPHIER_PIN_PULL_DOWN), 325 UNIPHIER_PINCTRL_PIN(100, "XFEIRQ4", UNIPHIER_PIN_IECTRL_NONE, 326 94, UNIPHIER_PIN_DRV_1BIT, 327 94, UNIPHIER_PIN_PULL_DOWN), 328 UNIPHIER_PINCTRL_PIN(101, "XFEIRQ5", UNIPHIER_PIN_IECTRL_NONE, 329 95, UNIPHIER_PIN_DRV_1BIT, 330 95, UNIPHIER_PIN_PULL_DOWN), 331 UNIPHIER_PINCTRL_PIN(102, "XFEIRQ6", UNIPHIER_PIN_IECTRL_NONE, 332 96, UNIPHIER_PIN_DRV_1BIT, 333 96, UNIPHIER_PIN_PULL_DOWN), 334 UNIPHIER_PINCTRL_PIN(103, "SMTCLK0", UNIPHIER_PIN_IECTRL_NONE, 335 97, UNIPHIER_PIN_DRV_1BIT, 336 97, UNIPHIER_PIN_PULL_DOWN), 337 UNIPHIER_PINCTRL_PIN(104, "SMTRST0", UNIPHIER_PIN_IECTRL_NONE, 338 98, UNIPHIER_PIN_DRV_1BIT, 339 98, UNIPHIER_PIN_PULL_DOWN), 340 UNIPHIER_PINCTRL_PIN(105, "SMTCMD0", UNIPHIER_PIN_IECTRL_NONE, 341 99, UNIPHIER_PIN_DRV_1BIT, 342 99, UNIPHIER_PIN_PULL_UP), 343 UNIPHIER_PINCTRL_PIN(106, "SMTD0", UNIPHIER_PIN_IECTRL_NONE, 344 100, UNIPHIER_PIN_DRV_1BIT, 345 100, UNIPHIER_PIN_PULL_UP), 346 UNIPHIER_PINCTRL_PIN(107, "SMTSEL0", UNIPHIER_PIN_IECTRL_NONE, 347 101, UNIPHIER_PIN_DRV_1BIT, 348 101, UNIPHIER_PIN_PULL_DOWN), 349 UNIPHIER_PINCTRL_PIN(108, "SMTDET0", UNIPHIER_PIN_IECTRL_NONE, 350 102, UNIPHIER_PIN_DRV_1BIT, 351 102, UNIPHIER_PIN_PULL_UP), 352 UNIPHIER_PINCTRL_PIN(109, "SMTCLK1", UNIPHIER_PIN_IECTRL_NONE, 353 103, UNIPHIER_PIN_DRV_1BIT, 354 103, UNIPHIER_PIN_PULL_DOWN), 355 UNIPHIER_PINCTRL_PIN(110, "SMTRST1", UNIPHIER_PIN_IECTRL_NONE, 356 104, UNIPHIER_PIN_DRV_1BIT, 357 104, UNIPHIER_PIN_PULL_DOWN), 358 UNIPHIER_PINCTRL_PIN(111, "SMTCMD1", UNIPHIER_PIN_IECTRL_NONE, 359 105, UNIPHIER_PIN_DRV_1BIT, 360 105, UNIPHIER_PIN_PULL_UP), 361 UNIPHIER_PINCTRL_PIN(112, "SMTD1", UNIPHIER_PIN_IECTRL_NONE, 362 106, UNIPHIER_PIN_DRV_1BIT, 363 106, UNIPHIER_PIN_PULL_UP), 364 UNIPHIER_PINCTRL_PIN(113, "SMTSEL1", UNIPHIER_PIN_IECTRL_NONE, 365 107, UNIPHIER_PIN_DRV_1BIT, 366 107, UNIPHIER_PIN_PULL_DOWN), 367 UNIPHIER_PINCTRL_PIN(114, "SMTDET1", UNIPHIER_PIN_IECTRL_NONE, 368 108, UNIPHIER_PIN_DRV_1BIT, 369 108, UNIPHIER_PIN_PULL_UP), 370 UNIPHIER_PINCTRL_PIN(115, "XINTM", UNIPHIER_PIN_IECTRL_NONE, 371 109, UNIPHIER_PIN_DRV_1BIT, 372 109, UNIPHIER_PIN_PULL_UP), 373 UNIPHIER_PINCTRL_PIN(116, "SCLKM", UNIPHIER_PIN_IECTRL_NONE, 374 110, UNIPHIER_PIN_DRV_1BIT, 375 110, UNIPHIER_PIN_PULL_UP), 376 UNIPHIER_PINCTRL_PIN(117, "SBMTP", UNIPHIER_PIN_IECTRL_NONE, 377 111, UNIPHIER_PIN_DRV_1BIT, 378 111, UNIPHIER_PIN_PULL_UP), 379 UNIPHIER_PINCTRL_PIN(118, "SBPTM", UNIPHIER_PIN_IECTRL_NONE, 380 112, UNIPHIER_PIN_DRV_1BIT, 381 112, UNIPHIER_PIN_PULL_UP), 382 UNIPHIER_PINCTRL_PIN(119, "XMPREQ", UNIPHIER_PIN_IECTRL_NONE, 383 113, UNIPHIER_PIN_DRV_1BIT, 384 113, UNIPHIER_PIN_PULL_UP), 385 UNIPHIER_PINCTRL_PIN(120, "XINTP", UNIPHIER_PIN_IECTRL_NONE, 386 114, UNIPHIER_PIN_DRV_1BIT, 387 114, UNIPHIER_PIN_PULL_UP), 388 UNIPHIER_PINCTRL_PIN(121, "LPST", UNIPHIER_PIN_IECTRL_NONE, 389 115, UNIPHIER_PIN_DRV_1BIT, 390 115, UNIPHIER_PIN_PULL_DOWN), 391 UNIPHIER_PINCTRL_PIN(122, "SDBOOT", UNIPHIER_PIN_IECTRL_NONE, 392 116, UNIPHIER_PIN_DRV_1BIT, 393 116, UNIPHIER_PIN_PULL_UP), 394 UNIPHIER_PINCTRL_PIN(123, "BFAIL", UNIPHIER_PIN_IECTRL_NONE, 395 117, UNIPHIER_PIN_DRV_1BIT, 396 117, UNIPHIER_PIN_PULL_DOWN), 397 UNIPHIER_PINCTRL_PIN(124, "XFWE", UNIPHIER_PIN_IECTRL_NONE, 398 118, UNIPHIER_PIN_DRV_1BIT, 399 118, UNIPHIER_PIN_PULL_UP), 400 UNIPHIER_PINCTRL_PIN(125, "RF_COM_RDY", UNIPHIER_PIN_IECTRL_NONE, 401 119, UNIPHIER_PIN_DRV_1BIT, 402 119, UNIPHIER_PIN_PULL_UP), 403 UNIPHIER_PINCTRL_PIN(126, "XDIAG0", UNIPHIER_PIN_IECTRL_NONE, 404 120, UNIPHIER_PIN_DRV_1BIT, 405 120, UNIPHIER_PIN_PULL_UP), 406 UNIPHIER_PINCTRL_PIN(127, "RXD0", UNIPHIER_PIN_IECTRL_NONE, 407 121, UNIPHIER_PIN_DRV_1BIT, 408 121, UNIPHIER_PIN_PULL_UP), 409 UNIPHIER_PINCTRL_PIN(128, "TXD0", UNIPHIER_PIN_IECTRL_NONE, 410 122, UNIPHIER_PIN_DRV_1BIT, 411 122, UNIPHIER_PIN_PULL_UP), 412 UNIPHIER_PINCTRL_PIN(129, "RXD1", UNIPHIER_PIN_IECTRL_NONE, 413 123, UNIPHIER_PIN_DRV_1BIT, 414 123, UNIPHIER_PIN_PULL_UP), 415 UNIPHIER_PINCTRL_PIN(130, "TXD1", UNIPHIER_PIN_IECTRL_NONE, 416 124, UNIPHIER_PIN_DRV_1BIT, 417 124, UNIPHIER_PIN_PULL_UP), 418 UNIPHIER_PINCTRL_PIN(131, "RXD2", UNIPHIER_PIN_IECTRL_NONE, 419 125, UNIPHIER_PIN_DRV_1BIT, 420 125, UNIPHIER_PIN_PULL_UP), 421 UNIPHIER_PINCTRL_PIN(132, "TXD2", UNIPHIER_PIN_IECTRL_NONE, 422 126, UNIPHIER_PIN_DRV_1BIT, 423 126, UNIPHIER_PIN_PULL_UP), 424 UNIPHIER_PINCTRL_PIN(133, "SS0CS", UNIPHIER_PIN_IECTRL_NONE, 425 127, UNIPHIER_PIN_DRV_1BIT, 426 127, UNIPHIER_PIN_PULL_UP), 427 UNIPHIER_PINCTRL_PIN(134, "SS0CLK", UNIPHIER_PIN_IECTRL_NONE, 428 128, UNIPHIER_PIN_DRV_1BIT, 429 128, UNIPHIER_PIN_PULL_UP), 430 UNIPHIER_PINCTRL_PIN(135, "SS0DO", UNIPHIER_PIN_IECTRL_NONE, 431 129, UNIPHIER_PIN_DRV_1BIT, 432 129, UNIPHIER_PIN_PULL_UP), 433 UNIPHIER_PINCTRL_PIN(136, "SS0DI", UNIPHIER_PIN_IECTRL_NONE, 434 130, UNIPHIER_PIN_DRV_1BIT, 435 130, UNIPHIER_PIN_PULL_UP), 436 UNIPHIER_PINCTRL_PIN(137, "MS0CS0", UNIPHIER_PIN_IECTRL_NONE, 437 131, UNIPHIER_PIN_DRV_1BIT, 438 131, UNIPHIER_PIN_PULL_UP), 439 UNIPHIER_PINCTRL_PIN(138, "MS0CLK", UNIPHIER_PIN_IECTRL_NONE, 440 132, UNIPHIER_PIN_DRV_1BIT, 441 132, UNIPHIER_PIN_PULL_UP), 442 UNIPHIER_PINCTRL_PIN(139, "MS0DI", UNIPHIER_PIN_IECTRL_NONE, 443 133, UNIPHIER_PIN_DRV_1BIT, 444 133, UNIPHIER_PIN_PULL_UP), 445 UNIPHIER_PINCTRL_PIN(140, "MS0DO", UNIPHIER_PIN_IECTRL_NONE, 446 134, UNIPHIER_PIN_DRV_1BIT, 447 134, UNIPHIER_PIN_PULL_UP), 448 UNIPHIER_PINCTRL_PIN(141, "XMDMRST", UNIPHIER_PIN_IECTRL_NONE, 449 135, UNIPHIER_PIN_DRV_1BIT, 450 135, UNIPHIER_PIN_PULL_DOWN), 451 UNIPHIER_PINCTRL_PIN(142, "SCL0", UNIPHIER_PIN_IECTRL_NONE, 452 -1, UNIPHIER_PIN_DRV_FIXED4, 453 -1, UNIPHIER_PIN_PULL_NONE), 454 UNIPHIER_PINCTRL_PIN(143, "SDA0", UNIPHIER_PIN_IECTRL_NONE, 455 -1, UNIPHIER_PIN_DRV_FIXED4, 456 -1, UNIPHIER_PIN_PULL_NONE), 457 UNIPHIER_PINCTRL_PIN(144, "SCL1", UNIPHIER_PIN_IECTRL_NONE, 458 -1, UNIPHIER_PIN_DRV_FIXED4, 459 -1, UNIPHIER_PIN_PULL_NONE), 460 UNIPHIER_PINCTRL_PIN(145, "SDA1", UNIPHIER_PIN_IECTRL_NONE, 461 -1, UNIPHIER_PIN_DRV_FIXED4, 462 -1, UNIPHIER_PIN_PULL_NONE), 463 UNIPHIER_PINCTRL_PIN(146, "SCL2", UNIPHIER_PIN_IECTRL_NONE, 464 -1, UNIPHIER_PIN_DRV_FIXED4, 465 -1, UNIPHIER_PIN_PULL_NONE), 466 UNIPHIER_PINCTRL_PIN(147, "SDA2", UNIPHIER_PIN_IECTRL_NONE, 467 -1, UNIPHIER_PIN_DRV_FIXED4, 468 -1, UNIPHIER_PIN_PULL_NONE), 469 UNIPHIER_PINCTRL_PIN(148, "SCL3", UNIPHIER_PIN_IECTRL_NONE, 470 -1, UNIPHIER_PIN_DRV_FIXED4, 471 -1, UNIPHIER_PIN_PULL_NONE), 472 UNIPHIER_PINCTRL_PIN(149, "SDA3", UNIPHIER_PIN_IECTRL_NONE, 473 -1, UNIPHIER_PIN_DRV_FIXED4, 474 -1, UNIPHIER_PIN_PULL_NONE), 475 UNIPHIER_PINCTRL_PIN(150, "SD0DAT0", UNIPHIER_PIN_IECTRL_NONE, 476 12, UNIPHIER_PIN_DRV_2BIT, 477 136, UNIPHIER_PIN_PULL_UP), 478 UNIPHIER_PINCTRL_PIN(151, "SD0DAT1", UNIPHIER_PIN_IECTRL_NONE, 479 13, UNIPHIER_PIN_DRV_2BIT, 480 137, UNIPHIER_PIN_PULL_UP), 481 UNIPHIER_PINCTRL_PIN(152, "SD0DAT2", UNIPHIER_PIN_IECTRL_NONE, 482 14, UNIPHIER_PIN_DRV_2BIT, 483 138, UNIPHIER_PIN_PULL_UP), 484 UNIPHIER_PINCTRL_PIN(153, "SD0DAT3", UNIPHIER_PIN_IECTRL_NONE, 485 15, UNIPHIER_PIN_DRV_2BIT, 486 139, UNIPHIER_PIN_PULL_UP), 487 UNIPHIER_PINCTRL_PIN(154, "SD0CMD", UNIPHIER_PIN_IECTRL_NONE, 488 11, UNIPHIER_PIN_DRV_2BIT, 489 141, UNIPHIER_PIN_PULL_UP), 490 UNIPHIER_PINCTRL_PIN(155, "SD0CLK", UNIPHIER_PIN_IECTRL_NONE, 491 10, UNIPHIER_PIN_DRV_2BIT, 492 140, UNIPHIER_PIN_PULL_UP), 493 UNIPHIER_PINCTRL_PIN(156, "SD0CD", UNIPHIER_PIN_IECTRL_NONE, 494 142, UNIPHIER_PIN_DRV_1BIT, 495 142, UNIPHIER_PIN_PULL_UP), 496 UNIPHIER_PINCTRL_PIN(157, "SD0WP", UNIPHIER_PIN_IECTRL_NONE, 497 143, UNIPHIER_PIN_DRV_1BIT, 498 143, UNIPHIER_PIN_PULL_UP), 499 UNIPHIER_PINCTRL_PIN(158, "SD0VTCG", UNIPHIER_PIN_IECTRL_NONE, 500 144, UNIPHIER_PIN_DRV_1BIT, 501 144, UNIPHIER_PIN_PULL_UP), 502 UNIPHIER_PINCTRL_PIN(159, "CK25O", UNIPHIER_PIN_IECTRL_NONE, 503 145, UNIPHIER_PIN_DRV_1BIT, 504 145, UNIPHIER_PIN_PULL_UP), 505 UNIPHIER_PINCTRL_PIN(160, "RGMII_TXCLK", 6, 506 146, UNIPHIER_PIN_DRV_1BIT, 507 146, UNIPHIER_PIN_PULL_DOWN), 508 UNIPHIER_PINCTRL_PIN(161, "RGMII_TXD0", 6, 509 147, UNIPHIER_PIN_DRV_1BIT, 510 147, UNIPHIER_PIN_PULL_DOWN), 511 UNIPHIER_PINCTRL_PIN(162, "RGMII_TXD1", 6, 512 148, UNIPHIER_PIN_DRV_1BIT, 513 148, UNIPHIER_PIN_PULL_DOWN), 514 UNIPHIER_PINCTRL_PIN(163, "RGMII_TXD2", 6, 515 149, UNIPHIER_PIN_DRV_1BIT, 516 149, UNIPHIER_PIN_PULL_DOWN), 517 UNIPHIER_PINCTRL_PIN(164, "RGMII_TXD3", 6, 518 150, UNIPHIER_PIN_DRV_1BIT, 519 150, UNIPHIER_PIN_PULL_DOWN), 520 UNIPHIER_PINCTRL_PIN(165, "RGMII_TXCTL", 6, 521 151, UNIPHIER_PIN_DRV_1BIT, 522 151, UNIPHIER_PIN_PULL_DOWN), 523 UNIPHIER_PINCTRL_PIN(166, "MII_TXER", UNIPHIER_PIN_IECTRL_NONE, 524 152, UNIPHIER_PIN_DRV_1BIT, 525 152, UNIPHIER_PIN_PULL_DOWN), 526 UNIPHIER_PINCTRL_PIN(167, "RGMII_RXCLK", 6, 527 153, UNIPHIER_PIN_DRV_1BIT, 528 153, UNIPHIER_PIN_PULL_DOWN), 529 UNIPHIER_PINCTRL_PIN(168, "RGMII_RXD0", 6, 530 154, UNIPHIER_PIN_DRV_1BIT, 531 154, UNIPHIER_PIN_PULL_DOWN), 532 UNIPHIER_PINCTRL_PIN(169, "RGMII_RXD1", 6, 533 155, UNIPHIER_PIN_DRV_1BIT, 534 155, UNIPHIER_PIN_PULL_DOWN), 535 UNIPHIER_PINCTRL_PIN(170, "RGMII_RXD2", 6, 536 156, UNIPHIER_PIN_DRV_1BIT, 537 156, UNIPHIER_PIN_PULL_DOWN), 538 UNIPHIER_PINCTRL_PIN(171, "RGMII_RXD3", 6, 539 157, UNIPHIER_PIN_DRV_1BIT, 540 157, UNIPHIER_PIN_PULL_DOWN), 541 UNIPHIER_PINCTRL_PIN(172, "RGMII_RXCTL", 6, 542 158, UNIPHIER_PIN_DRV_1BIT, 543 158, UNIPHIER_PIN_PULL_DOWN), 544 UNIPHIER_PINCTRL_PIN(173, "MII_RXER", 6, 545 159, UNIPHIER_PIN_DRV_1BIT, 546 159, UNIPHIER_PIN_PULL_DOWN), 547 UNIPHIER_PINCTRL_PIN(174, "MII_CRS", 6, 548 160, UNIPHIER_PIN_DRV_1BIT, 549 160, UNIPHIER_PIN_PULL_DOWN), 550 UNIPHIER_PINCTRL_PIN(175, "MII_COL", 6, 551 161, UNIPHIER_PIN_DRV_1BIT, 552 161, UNIPHIER_PIN_PULL_DOWN), 553 UNIPHIER_PINCTRL_PIN(176, "MDC", 6, 554 162, UNIPHIER_PIN_DRV_1BIT, 555 162, UNIPHIER_PIN_PULL_UP), 556 UNIPHIER_PINCTRL_PIN(177, "MDIO", 6, 557 163, UNIPHIER_PIN_DRV_1BIT, 558 163, UNIPHIER_PIN_PULL_UP), 559 UNIPHIER_PINCTRL_PIN(178, "MDIO_INTL", 6, 560 164, UNIPHIER_PIN_DRV_1BIT, 561 164, UNIPHIER_PIN_PULL_UP), 562 UNIPHIER_PINCTRL_PIN(179, "XETH_RST", 6, 563 165, UNIPHIER_PIN_DRV_1BIT, 564 165, UNIPHIER_PIN_PULL_DOWN), 565 UNIPHIER_PINCTRL_PIN(180, "USB0VBUS", UNIPHIER_PIN_IECTRL_NONE, 566 166, UNIPHIER_PIN_DRV_1BIT, 567 166, UNIPHIER_PIN_PULL_DOWN), 568 UNIPHIER_PINCTRL_PIN(181, "USB0OD", UNIPHIER_PIN_IECTRL_NONE, 569 167, UNIPHIER_PIN_DRV_1BIT, 570 167, UNIPHIER_PIN_PULL_UP), 571 UNIPHIER_PINCTRL_PIN(182, "USB1VBUS", UNIPHIER_PIN_IECTRL_NONE, 572 168, UNIPHIER_PIN_DRV_1BIT, 573 168, UNIPHIER_PIN_PULL_DOWN), 574 UNIPHIER_PINCTRL_PIN(183, "USB1OD", UNIPHIER_PIN_IECTRL_NONE, 575 169, UNIPHIER_PIN_DRV_1BIT, 576 169, UNIPHIER_PIN_PULL_UP), 577 UNIPHIER_PINCTRL_PIN(184, "USB2VBUS", UNIPHIER_PIN_IECTRL_NONE, 578 170, UNIPHIER_PIN_DRV_1BIT, 579 170, UNIPHIER_PIN_PULL_DOWN), 580 UNIPHIER_PINCTRL_PIN(185, "USB2OD", UNIPHIER_PIN_IECTRL_NONE, 581 171, UNIPHIER_PIN_DRV_1BIT, 582 171, UNIPHIER_PIN_PULL_UP), 583 UNIPHIER_PINCTRL_PIN(186, "USB2ID", UNIPHIER_PIN_IECTRL_NONE, 584 172, UNIPHIER_PIN_DRV_1BIT, 585 172, UNIPHIER_PIN_PULL_UP), 586 UNIPHIER_PINCTRL_PIN(187, "USB3VBUS", UNIPHIER_PIN_IECTRL_NONE, 587 173, UNIPHIER_PIN_DRV_1BIT, 588 173, UNIPHIER_PIN_PULL_DOWN), 589 UNIPHIER_PINCTRL_PIN(188, "USB3OD", UNIPHIER_PIN_IECTRL_NONE, 590 174, UNIPHIER_PIN_DRV_1BIT, 591 174, UNIPHIER_PIN_PULL_UP), 592 UNIPHIER_PINCTRL_PIN(189, "LINKCLK", UNIPHIER_PIN_IECTRL_NONE, 593 175, UNIPHIER_PIN_DRV_1BIT, 594 175, UNIPHIER_PIN_PULL_DOWN), 595 UNIPHIER_PINCTRL_PIN(190, "LINKREQ", UNIPHIER_PIN_IECTRL_NONE, 596 176, UNIPHIER_PIN_DRV_1BIT, 597 176, UNIPHIER_PIN_PULL_DOWN), 598 UNIPHIER_PINCTRL_PIN(191, "LINKCTL0", UNIPHIER_PIN_IECTRL_NONE, 599 177, UNIPHIER_PIN_DRV_1BIT, 600 177, UNIPHIER_PIN_PULL_DOWN), 601 UNIPHIER_PINCTRL_PIN(192, "LINKCTL1", UNIPHIER_PIN_IECTRL_NONE, 602 178, UNIPHIER_PIN_DRV_1BIT, 603 178, UNIPHIER_PIN_PULL_DOWN), 604 UNIPHIER_PINCTRL_PIN(193, "LINKDT0", UNIPHIER_PIN_IECTRL_NONE, 605 179, UNIPHIER_PIN_DRV_1BIT, 606 179, UNIPHIER_PIN_PULL_DOWN), 607 UNIPHIER_PINCTRL_PIN(194, "LINKDT1", UNIPHIER_PIN_IECTRL_NONE, 608 180, UNIPHIER_PIN_DRV_1BIT, 609 180, UNIPHIER_PIN_PULL_DOWN), 610 UNIPHIER_PINCTRL_PIN(195, "LINKDT2", UNIPHIER_PIN_IECTRL_NONE, 611 181, UNIPHIER_PIN_DRV_1BIT, 612 181, UNIPHIER_PIN_PULL_DOWN), 613 UNIPHIER_PINCTRL_PIN(196, "LINKDT3", UNIPHIER_PIN_IECTRL_NONE, 614 182, UNIPHIER_PIN_DRV_1BIT, 615 182, UNIPHIER_PIN_PULL_DOWN), 616 UNIPHIER_PINCTRL_PIN(197, "LINKDT4", UNIPHIER_PIN_IECTRL_NONE, 617 183, UNIPHIER_PIN_DRV_1BIT, 618 183, UNIPHIER_PIN_PULL_DOWN), 619 UNIPHIER_PINCTRL_PIN(198, "LINKDT5", UNIPHIER_PIN_IECTRL_NONE, 620 184, UNIPHIER_PIN_DRV_1BIT, 621 184, UNIPHIER_PIN_PULL_DOWN), 622 UNIPHIER_PINCTRL_PIN(199, "LINKDT6", UNIPHIER_PIN_IECTRL_NONE, 623 185, UNIPHIER_PIN_DRV_1BIT, 624 185, UNIPHIER_PIN_PULL_DOWN), 625 UNIPHIER_PINCTRL_PIN(200, "LINKDT7", UNIPHIER_PIN_IECTRL_NONE, 626 186, UNIPHIER_PIN_DRV_1BIT, 627 186, UNIPHIER_PIN_PULL_DOWN), 628 UNIPHIER_PINCTRL_PIN(201, "CKDVO", UNIPHIER_PIN_IECTRL_NONE, 629 187, UNIPHIER_PIN_DRV_1BIT, 630 187, UNIPHIER_PIN_PULL_DOWN), 631 UNIPHIER_PINCTRL_PIN(202, "PHY_PD", UNIPHIER_PIN_IECTRL_NONE, 632 188, UNIPHIER_PIN_DRV_1BIT, 633 188, UNIPHIER_PIN_PULL_DOWN), 634 UNIPHIER_PINCTRL_PIN(203, "X1394_RST", UNIPHIER_PIN_IECTRL_NONE, 635 189, UNIPHIER_PIN_DRV_1BIT, 636 189, UNIPHIER_PIN_PULL_DOWN), 637 UNIPHIER_PINCTRL_PIN(204, "VOUT_MUTE_L", UNIPHIER_PIN_IECTRL_NONE, 638 190, UNIPHIER_PIN_DRV_1BIT, 639 190, UNIPHIER_PIN_PULL_DOWN), 640 UNIPHIER_PINCTRL_PIN(205, "CLK54O", UNIPHIER_PIN_IECTRL_NONE, 641 191, UNIPHIER_PIN_DRV_1BIT, 642 191, UNIPHIER_PIN_PULL_DOWN), 643 UNIPHIER_PINCTRL_PIN(206, "CLK54I", UNIPHIER_PIN_IECTRL_NONE, 644 -1, UNIPHIER_PIN_DRV_NONE, 645 192, UNIPHIER_PIN_PULL_DOWN), 646 UNIPHIER_PINCTRL_PIN(207, "YIN0", UNIPHIER_PIN_IECTRL_NONE, 647 193, UNIPHIER_PIN_DRV_1BIT, 648 193, UNIPHIER_PIN_PULL_DOWN), 649 UNIPHIER_PINCTRL_PIN(208, "YIN1", UNIPHIER_PIN_IECTRL_NONE, 650 194, UNIPHIER_PIN_DRV_1BIT, 651 194, UNIPHIER_PIN_PULL_DOWN), 652 UNIPHIER_PINCTRL_PIN(209, "YIN2", UNIPHIER_PIN_IECTRL_NONE, 653 195, UNIPHIER_PIN_DRV_1BIT, 654 195, UNIPHIER_PIN_PULL_DOWN), 655 UNIPHIER_PINCTRL_PIN(210, "YIN3", UNIPHIER_PIN_IECTRL_NONE, 656 196, UNIPHIER_PIN_DRV_1BIT, 657 196, UNIPHIER_PIN_PULL_DOWN), 658 UNIPHIER_PINCTRL_PIN(211, "YIN4", UNIPHIER_PIN_IECTRL_NONE, 659 197, UNIPHIER_PIN_DRV_1BIT, 660 197, UNIPHIER_PIN_PULL_DOWN), 661 UNIPHIER_PINCTRL_PIN(212, "YIN5", UNIPHIER_PIN_IECTRL_NONE, 662 198, UNIPHIER_PIN_DRV_1BIT, 663 198, UNIPHIER_PIN_PULL_DOWN), 664 UNIPHIER_PINCTRL_PIN(213, "CIN0", UNIPHIER_PIN_IECTRL_NONE, 665 199, UNIPHIER_PIN_DRV_1BIT, 666 199, UNIPHIER_PIN_PULL_DOWN), 667 UNIPHIER_PINCTRL_PIN(214, "CIN1", UNIPHIER_PIN_IECTRL_NONE, 668 200, UNIPHIER_PIN_DRV_1BIT, 669 200, UNIPHIER_PIN_PULL_DOWN), 670 UNIPHIER_PINCTRL_PIN(215, "CIN2", UNIPHIER_PIN_IECTRL_NONE, 671 201, UNIPHIER_PIN_DRV_1BIT, 672 201, UNIPHIER_PIN_PULL_DOWN), 673 UNIPHIER_PINCTRL_PIN(216, "CIN3", UNIPHIER_PIN_IECTRL_NONE, 674 202, UNIPHIER_PIN_DRV_1BIT, 675 202, UNIPHIER_PIN_PULL_DOWN), 676 UNIPHIER_PINCTRL_PIN(217, "CIN4", UNIPHIER_PIN_IECTRL_NONE, 677 203, UNIPHIER_PIN_DRV_1BIT, 678 203, UNIPHIER_PIN_PULL_DOWN), 679 UNIPHIER_PINCTRL_PIN(218, "CIN5", UNIPHIER_PIN_IECTRL_NONE, 680 204, UNIPHIER_PIN_DRV_1BIT, 681 204, UNIPHIER_PIN_PULL_DOWN), 682 UNIPHIER_PINCTRL_PIN(219, "GCP", UNIPHIER_PIN_IECTRL_NONE, 683 205, UNIPHIER_PIN_DRV_1BIT, 684 205, UNIPHIER_PIN_PULL_DOWN), 685 UNIPHIER_PINCTRL_PIN(220, "ADFLG", UNIPHIER_PIN_IECTRL_NONE, 686 206, UNIPHIER_PIN_DRV_1BIT, 687 206, UNIPHIER_PIN_PULL_DOWN), 688 UNIPHIER_PINCTRL_PIN(221, "CK27AIOF", UNIPHIER_PIN_IECTRL_NONE, 689 207, UNIPHIER_PIN_DRV_1BIT, 690 207, UNIPHIER_PIN_PULL_DOWN), 691 UNIPHIER_PINCTRL_PIN(222, "DACOUT", UNIPHIER_PIN_IECTRL_NONE, 692 208, UNIPHIER_PIN_DRV_1BIT, 693 208, UNIPHIER_PIN_PULL_DOWN), 694 UNIPHIER_PINCTRL_PIN(223, "DAFLG", UNIPHIER_PIN_IECTRL_NONE, 695 209, UNIPHIER_PIN_DRV_1BIT, 696 209, UNIPHIER_PIN_PULL_DOWN), 697 UNIPHIER_PINCTRL_PIN(224, "VBIH", UNIPHIER_PIN_IECTRL_NONE, 698 210, UNIPHIER_PIN_DRV_1BIT, 699 210, UNIPHIER_PIN_PULL_DOWN), 700 UNIPHIER_PINCTRL_PIN(225, "VBIL", UNIPHIER_PIN_IECTRL_NONE, 701 211, UNIPHIER_PIN_DRV_1BIT, 702 211, UNIPHIER_PIN_PULL_DOWN), 703 UNIPHIER_PINCTRL_PIN(226, "XSUB_RST", UNIPHIER_PIN_IECTRL_NONE, 704 212, UNIPHIER_PIN_DRV_1BIT, 705 212, UNIPHIER_PIN_PULL_DOWN), 706 UNIPHIER_PINCTRL_PIN(227, "XADC_PD", UNIPHIER_PIN_IECTRL_NONE, 707 213, UNIPHIER_PIN_DRV_1BIT, 708 213, UNIPHIER_PIN_PULL_DOWN), 709 UNIPHIER_PINCTRL_PIN(228, "AI1ADCCK", UNIPHIER_PIN_IECTRL_NONE, 710 214, UNIPHIER_PIN_DRV_1BIT, 711 214, UNIPHIER_PIN_PULL_DOWN), 712 UNIPHIER_PINCTRL_PIN(229, "AI1BCK", UNIPHIER_PIN_IECTRL_NONE, 713 215, UNIPHIER_PIN_DRV_1BIT, 714 215, UNIPHIER_PIN_PULL_DOWN), 715 UNIPHIER_PINCTRL_PIN(230, "AI1LRCK", UNIPHIER_PIN_IECTRL_NONE, 716 216, UNIPHIER_PIN_DRV_1BIT, 717 216, UNIPHIER_PIN_PULL_DOWN), 718 UNIPHIER_PINCTRL_PIN(231, "AI1DMIX", UNIPHIER_PIN_IECTRL_NONE, 719 217, UNIPHIER_PIN_DRV_1BIT, 720 217, UNIPHIER_PIN_PULL_DOWN), 721 UNIPHIER_PINCTRL_PIN(232, "CK27HD", UNIPHIER_PIN_IECTRL_NONE, 722 218, UNIPHIER_PIN_DRV_1BIT, 723 218, UNIPHIER_PIN_PULL_DOWN), 724 UNIPHIER_PINCTRL_PIN(233, "XHD_RST", UNIPHIER_PIN_IECTRL_NONE, 725 219, UNIPHIER_PIN_DRV_1BIT, 726 219, UNIPHIER_PIN_PULL_DOWN), 727 UNIPHIER_PINCTRL_PIN(234, "INTHD", UNIPHIER_PIN_IECTRL_NONE, 728 220, UNIPHIER_PIN_DRV_1BIT, 729 220, UNIPHIER_PIN_PULL_UP), 730 UNIPHIER_PINCTRL_PIN(235, "VO1HDCK", UNIPHIER_PIN_IECTRL_NONE, 731 221, UNIPHIER_PIN_DRV_1BIT, 732 221, UNIPHIER_PIN_PULL_DOWN), 733 UNIPHIER_PINCTRL_PIN(236, "VO1HSYNC", UNIPHIER_PIN_IECTRL_NONE, 734 222, UNIPHIER_PIN_DRV_1BIT, 735 222, UNIPHIER_PIN_PULL_DOWN), 736 UNIPHIER_PINCTRL_PIN(237, "VO1VSYNC", UNIPHIER_PIN_IECTRL_NONE, 737 223, UNIPHIER_PIN_DRV_1BIT, 738 223, UNIPHIER_PIN_PULL_DOWN), 739 UNIPHIER_PINCTRL_PIN(238, "VO1DE", UNIPHIER_PIN_IECTRL_NONE, 740 224, UNIPHIER_PIN_DRV_1BIT, 741 224, UNIPHIER_PIN_PULL_DOWN), 742 UNIPHIER_PINCTRL_PIN(239, "VO1Y0", UNIPHIER_PIN_IECTRL_NONE, 743 225, UNIPHIER_PIN_DRV_1BIT, 744 225, UNIPHIER_PIN_PULL_DOWN), 745 UNIPHIER_PINCTRL_PIN(240, "VO1Y1", UNIPHIER_PIN_IECTRL_NONE, 746 226, UNIPHIER_PIN_DRV_1BIT, 747 226, UNIPHIER_PIN_PULL_DOWN), 748 UNIPHIER_PINCTRL_PIN(241, "VO1Y2", UNIPHIER_PIN_IECTRL_NONE, 749 227, UNIPHIER_PIN_DRV_1BIT, 750 227, UNIPHIER_PIN_PULL_DOWN), 751 UNIPHIER_PINCTRL_PIN(242, "VO1Y3", UNIPHIER_PIN_IECTRL_NONE, 752 228, UNIPHIER_PIN_DRV_1BIT, 753 228, UNIPHIER_PIN_PULL_DOWN), 754 UNIPHIER_PINCTRL_PIN(243, "VO1Y4", UNIPHIER_PIN_IECTRL_NONE, 755 229, UNIPHIER_PIN_DRV_1BIT, 756 229, UNIPHIER_PIN_PULL_DOWN), 757 UNIPHIER_PINCTRL_PIN(244, "VO1Y5", UNIPHIER_PIN_IECTRL_NONE, 758 230, UNIPHIER_PIN_DRV_1BIT, 759 230, UNIPHIER_PIN_PULL_DOWN), 760 UNIPHIER_PINCTRL_PIN(245, "VO1Y6", UNIPHIER_PIN_IECTRL_NONE, 761 231, UNIPHIER_PIN_DRV_1BIT, 762 231, UNIPHIER_PIN_PULL_DOWN), 763 UNIPHIER_PINCTRL_PIN(246, "VO1Y7", UNIPHIER_PIN_IECTRL_NONE, 764 232, UNIPHIER_PIN_DRV_1BIT, 765 232, UNIPHIER_PIN_PULL_DOWN), 766 UNIPHIER_PINCTRL_PIN(247, "VO1Y8", UNIPHIER_PIN_IECTRL_NONE, 767 233, UNIPHIER_PIN_DRV_1BIT, 768 233, UNIPHIER_PIN_PULL_DOWN), 769 UNIPHIER_PINCTRL_PIN(248, "VO1Y9", UNIPHIER_PIN_IECTRL_NONE, 770 234, UNIPHIER_PIN_DRV_1BIT, 771 234, UNIPHIER_PIN_PULL_DOWN), 772 UNIPHIER_PINCTRL_PIN(249, "VO1Y10", UNIPHIER_PIN_IECTRL_NONE, 773 235, UNIPHIER_PIN_DRV_1BIT, 774 235, UNIPHIER_PIN_PULL_DOWN), 775 UNIPHIER_PINCTRL_PIN(250, "VO1Y11", UNIPHIER_PIN_IECTRL_NONE, 776 236, UNIPHIER_PIN_DRV_1BIT, 777 236, UNIPHIER_PIN_PULL_DOWN), 778 UNIPHIER_PINCTRL_PIN(251, "VO1CB0", UNIPHIER_PIN_IECTRL_NONE, 779 237, UNIPHIER_PIN_DRV_1BIT, 780 237, UNIPHIER_PIN_PULL_DOWN), 781 UNIPHIER_PINCTRL_PIN(252, "VO1CB1", UNIPHIER_PIN_IECTRL_NONE, 782 238, UNIPHIER_PIN_DRV_1BIT, 783 238, UNIPHIER_PIN_PULL_DOWN), 784 UNIPHIER_PINCTRL_PIN(253, "VO1CB2", UNIPHIER_PIN_IECTRL_NONE, 785 239, UNIPHIER_PIN_DRV_1BIT, 786 239, UNIPHIER_PIN_PULL_DOWN), 787 UNIPHIER_PINCTRL_PIN(254, "VO1CB3", UNIPHIER_PIN_IECTRL_NONE, 788 240, UNIPHIER_PIN_DRV_1BIT, 789 240, UNIPHIER_PIN_PULL_DOWN), 790 UNIPHIER_PINCTRL_PIN(255, "VO1CB4", UNIPHIER_PIN_IECTRL_NONE, 791 241, UNIPHIER_PIN_DRV_1BIT, 792 241, UNIPHIER_PIN_PULL_DOWN), 793 UNIPHIER_PINCTRL_PIN(256, "VO1CB5", UNIPHIER_PIN_IECTRL_NONE, 794 242, UNIPHIER_PIN_DRV_1BIT, 795 242, UNIPHIER_PIN_PULL_DOWN), 796 UNIPHIER_PINCTRL_PIN(257, "VO1CB6", UNIPHIER_PIN_IECTRL_NONE, 797 243, UNIPHIER_PIN_DRV_1BIT, 798 243, UNIPHIER_PIN_PULL_DOWN), 799 UNIPHIER_PINCTRL_PIN(258, "VO1CB7", UNIPHIER_PIN_IECTRL_NONE, 800 244, UNIPHIER_PIN_DRV_1BIT, 801 244, UNIPHIER_PIN_PULL_DOWN), 802 UNIPHIER_PINCTRL_PIN(259, "VO1CB8", UNIPHIER_PIN_IECTRL_NONE, 803 245, UNIPHIER_PIN_DRV_1BIT, 804 245, UNIPHIER_PIN_PULL_DOWN), 805 UNIPHIER_PINCTRL_PIN(260, "VO1CB9", UNIPHIER_PIN_IECTRL_NONE, 806 246, UNIPHIER_PIN_DRV_1BIT, 807 246, UNIPHIER_PIN_PULL_DOWN), 808 UNIPHIER_PINCTRL_PIN(261, "VO1CB10", UNIPHIER_PIN_IECTRL_NONE, 809 247, UNIPHIER_PIN_DRV_1BIT, 810 247, UNIPHIER_PIN_PULL_DOWN), 811 UNIPHIER_PINCTRL_PIN(262, "VO1CB11", UNIPHIER_PIN_IECTRL_NONE, 812 248, UNIPHIER_PIN_DRV_1BIT, 813 248, UNIPHIER_PIN_PULL_DOWN), 814 UNIPHIER_PINCTRL_PIN(263, "VO1CR0", UNIPHIER_PIN_IECTRL_NONE, 815 249, UNIPHIER_PIN_DRV_1BIT, 816 249, UNIPHIER_PIN_PULL_DOWN), 817 UNIPHIER_PINCTRL_PIN(264, "VO1CR1", UNIPHIER_PIN_IECTRL_NONE, 818 250, UNIPHIER_PIN_DRV_1BIT, 819 250, UNIPHIER_PIN_PULL_DOWN), 820 UNIPHIER_PINCTRL_PIN(265, "VO1CR2", UNIPHIER_PIN_IECTRL_NONE, 821 251, UNIPHIER_PIN_DRV_1BIT, 822 251, UNIPHIER_PIN_PULL_DOWN), 823 UNIPHIER_PINCTRL_PIN(266, "VO1CR3", UNIPHIER_PIN_IECTRL_NONE, 824 252, UNIPHIER_PIN_DRV_1BIT, 825 252, UNIPHIER_PIN_PULL_DOWN), 826 UNIPHIER_PINCTRL_PIN(267, "VO1CR4", UNIPHIER_PIN_IECTRL_NONE, 827 253, UNIPHIER_PIN_DRV_1BIT, 828 253, UNIPHIER_PIN_PULL_DOWN), 829 UNIPHIER_PINCTRL_PIN(268, "VO1CR5", UNIPHIER_PIN_IECTRL_NONE, 830 254, UNIPHIER_PIN_DRV_1BIT, 831 254, UNIPHIER_PIN_PULL_DOWN), 832 UNIPHIER_PINCTRL_PIN(269, "VO1CR6", UNIPHIER_PIN_IECTRL_NONE, 833 255, UNIPHIER_PIN_DRV_1BIT, 834 255, UNIPHIER_PIN_PULL_DOWN), 835 UNIPHIER_PINCTRL_PIN(270, "VO1CR7", UNIPHIER_PIN_IECTRL_NONE, 836 256, UNIPHIER_PIN_DRV_1BIT, 837 256, UNIPHIER_PIN_PULL_DOWN), 838 UNIPHIER_PINCTRL_PIN(271, "VO1CR8", UNIPHIER_PIN_IECTRL_NONE, 839 257, UNIPHIER_PIN_DRV_1BIT, 840 257, UNIPHIER_PIN_PULL_DOWN), 841 UNIPHIER_PINCTRL_PIN(272, "VO1CR9", UNIPHIER_PIN_IECTRL_NONE, 842 258, UNIPHIER_PIN_DRV_1BIT, 843 258, UNIPHIER_PIN_PULL_DOWN), 844 UNIPHIER_PINCTRL_PIN(273, "VO1CR10", UNIPHIER_PIN_IECTRL_NONE, 845 259, UNIPHIER_PIN_DRV_1BIT, 846 259, UNIPHIER_PIN_PULL_DOWN), 847 UNIPHIER_PINCTRL_PIN(274, "VO1CR11", UNIPHIER_PIN_IECTRL_NONE, 848 260, UNIPHIER_PIN_DRV_1BIT, 849 260, UNIPHIER_PIN_PULL_DOWN), 850 UNIPHIER_PINCTRL_PIN(275, "VO1EX0", UNIPHIER_PIN_IECTRL_NONE, 851 261, UNIPHIER_PIN_DRV_1BIT, 852 261, UNIPHIER_PIN_PULL_DOWN), 853 UNIPHIER_PINCTRL_PIN(276, "VO1EX1", UNIPHIER_PIN_IECTRL_NONE, 854 262, UNIPHIER_PIN_DRV_1BIT, 855 262, UNIPHIER_PIN_PULL_DOWN), 856 UNIPHIER_PINCTRL_PIN(277, "VO1EX2", UNIPHIER_PIN_IECTRL_NONE, 857 263, UNIPHIER_PIN_DRV_1BIT, 858 263, UNIPHIER_PIN_PULL_DOWN), 859 UNIPHIER_PINCTRL_PIN(278, "VO1EX3", UNIPHIER_PIN_IECTRL_NONE, 860 264, UNIPHIER_PIN_DRV_1BIT, 861 264, UNIPHIER_PIN_PULL_DOWN), 862 UNIPHIER_PINCTRL_PIN(279, "VEXCKA", UNIPHIER_PIN_IECTRL_NONE, 863 265, UNIPHIER_PIN_DRV_1BIT, 864 265, UNIPHIER_PIN_PULL_DOWN), 865 UNIPHIER_PINCTRL_PIN(280, "VSEL0", UNIPHIER_PIN_IECTRL_NONE, 866 266, UNIPHIER_PIN_DRV_1BIT, 867 266, UNIPHIER_PIN_PULL_DOWN), 868 UNIPHIER_PINCTRL_PIN(281, "VSEL1", UNIPHIER_PIN_IECTRL_NONE, 869 267, UNIPHIER_PIN_DRV_1BIT, 870 267, UNIPHIER_PIN_PULL_DOWN), 871 UNIPHIER_PINCTRL_PIN(282, "AO1DACCK", UNIPHIER_PIN_IECTRL_NONE, 872 268, UNIPHIER_PIN_DRV_1BIT, 873 268, UNIPHIER_PIN_PULL_DOWN), 874 UNIPHIER_PINCTRL_PIN(283, "AO1BCK", UNIPHIER_PIN_IECTRL_NONE, 875 269, UNIPHIER_PIN_DRV_1BIT, 876 269, UNIPHIER_PIN_PULL_DOWN), 877 UNIPHIER_PINCTRL_PIN(284, "AO1LRCK", UNIPHIER_PIN_IECTRL_NONE, 878 270, UNIPHIER_PIN_DRV_1BIT, 879 270, UNIPHIER_PIN_PULL_DOWN), 880 UNIPHIER_PINCTRL_PIN(285, "AO1D0", UNIPHIER_PIN_IECTRL_NONE, 881 271, UNIPHIER_PIN_DRV_1BIT, 882 271, UNIPHIER_PIN_PULL_DOWN), 883 UNIPHIER_PINCTRL_PIN(286, "AO1D1", UNIPHIER_PIN_IECTRL_NONE, 884 272, UNIPHIER_PIN_DRV_1BIT, 885 272, UNIPHIER_PIN_PULL_DOWN), 886 UNIPHIER_PINCTRL_PIN(287, "AO1D2", UNIPHIER_PIN_IECTRL_NONE, 887 273, UNIPHIER_PIN_DRV_1BIT, 888 273, UNIPHIER_PIN_PULL_DOWN), 889 UNIPHIER_PINCTRL_PIN(288, "AO1D3", UNIPHIER_PIN_IECTRL_NONE, 890 274, UNIPHIER_PIN_DRV_1BIT, 891 274, UNIPHIER_PIN_PULL_DOWN), 892 UNIPHIER_PINCTRL_PIN(289, "AO1IEC", UNIPHIER_PIN_IECTRL_NONE, 893 275, UNIPHIER_PIN_DRV_1BIT, 894 275, UNIPHIER_PIN_PULL_DOWN), 895 UNIPHIER_PINCTRL_PIN(290, "XDAC_PD", UNIPHIER_PIN_IECTRL_NONE, 896 276, UNIPHIER_PIN_DRV_1BIT, 897 276, UNIPHIER_PIN_PULL_DOWN), 898 UNIPHIER_PINCTRL_PIN(291, "EX_A_MUTE", UNIPHIER_PIN_IECTRL_NONE, 899 277, UNIPHIER_PIN_DRV_1BIT, 900 277, UNIPHIER_PIN_PULL_UP), 901 UNIPHIER_PINCTRL_PIN(292, "AO2DACCK", UNIPHIER_PIN_IECTRL_NONE, 902 278, UNIPHIER_PIN_DRV_1BIT, 903 278, UNIPHIER_PIN_PULL_DOWN), 904 UNIPHIER_PINCTRL_PIN(293, "AO2BCK", UNIPHIER_PIN_IECTRL_NONE, 905 279, UNIPHIER_PIN_DRV_1BIT, 906 279, UNIPHIER_PIN_PULL_DOWN), 907 UNIPHIER_PINCTRL_PIN(294, "AO2LRCK", UNIPHIER_PIN_IECTRL_NONE, 908 280, UNIPHIER_PIN_DRV_1BIT, 909 280, UNIPHIER_PIN_PULL_DOWN), 910 UNIPHIER_PINCTRL_PIN(295, "AO2DMIX", UNIPHIER_PIN_IECTRL_NONE, 911 281, UNIPHIER_PIN_DRV_1BIT, 912 281, UNIPHIER_PIN_PULL_DOWN), 913 UNIPHIER_PINCTRL_PIN(296, "AO2IEC", UNIPHIER_PIN_IECTRL_NONE, 914 282, UNIPHIER_PIN_DRV_1BIT, 915 282, UNIPHIER_PIN_PULL_DOWN), 916 UNIPHIER_PINCTRL_PIN(297, "HTHPD", UNIPHIER_PIN_IECTRL_NONE, 917 -1, UNIPHIER_PIN_DRV_FIXED5, 918 -1, UNIPHIER_PIN_PULL_NONE), 919 UNIPHIER_PINCTRL_PIN(298, "HTSCL", UNIPHIER_PIN_IECTRL_NONE, 920 -1, UNIPHIER_PIN_DRV_FIXED5, 921 -1, UNIPHIER_PIN_PULL_NONE), 922 UNIPHIER_PINCTRL_PIN(299, "HTSDA", UNIPHIER_PIN_IECTRL_NONE, 923 -1, UNIPHIER_PIN_DRV_FIXED5, 924 -1, UNIPHIER_PIN_PULL_NONE), 925 UNIPHIER_PINCTRL_PIN(300, "PORT00", UNIPHIER_PIN_IECTRL_NONE, 926 284, UNIPHIER_PIN_DRV_1BIT, 927 284, UNIPHIER_PIN_PULL_DOWN), 928 UNIPHIER_PINCTRL_PIN(301, "PORT01", UNIPHIER_PIN_IECTRL_NONE, 929 285, UNIPHIER_PIN_DRV_1BIT, 930 285, UNIPHIER_PIN_PULL_DOWN), 931 UNIPHIER_PINCTRL_PIN(302, "PORT02", UNIPHIER_PIN_IECTRL_NONE, 932 286, UNIPHIER_PIN_DRV_1BIT, 933 286, UNIPHIER_PIN_PULL_DOWN), 934 UNIPHIER_PINCTRL_PIN(303, "PORT03", UNIPHIER_PIN_IECTRL_NONE, 935 287, UNIPHIER_PIN_DRV_1BIT, 936 287, UNIPHIER_PIN_PULL_DOWN), 937 UNIPHIER_PINCTRL_PIN(304, "PORT04", UNIPHIER_PIN_IECTRL_NONE, 938 288, UNIPHIER_PIN_DRV_1BIT, 939 288, UNIPHIER_PIN_PULL_DOWN), 940 UNIPHIER_PINCTRL_PIN(305, "PORT05", UNIPHIER_PIN_IECTRL_NONE, 941 289, UNIPHIER_PIN_DRV_1BIT, 942 289, UNIPHIER_PIN_PULL_DOWN), 943 UNIPHIER_PINCTRL_PIN(306, "PORT06", UNIPHIER_PIN_IECTRL_NONE, 944 290, UNIPHIER_PIN_DRV_1BIT, 945 290, UNIPHIER_PIN_PULL_DOWN), 946 UNIPHIER_PINCTRL_PIN(307, "PORT07", UNIPHIER_PIN_IECTRL_NONE, 947 291, UNIPHIER_PIN_DRV_1BIT, 948 291, UNIPHIER_PIN_PULL_DOWN), 949 UNIPHIER_PINCTRL_PIN(308, "PORT10", UNIPHIER_PIN_IECTRL_NONE, 950 292, UNIPHIER_PIN_DRV_1BIT, 951 292, UNIPHIER_PIN_PULL_DOWN), 952 UNIPHIER_PINCTRL_PIN(309, "PORT11", UNIPHIER_PIN_IECTRL_NONE, 953 293, UNIPHIER_PIN_DRV_1BIT, 954 293, UNIPHIER_PIN_PULL_DOWN), 955 UNIPHIER_PINCTRL_PIN(310, "PORT12", UNIPHIER_PIN_IECTRL_NONE, 956 294, UNIPHIER_PIN_DRV_1BIT, 957 294, UNIPHIER_PIN_PULL_DOWN), 958 UNIPHIER_PINCTRL_PIN(311, "PORT13", UNIPHIER_PIN_IECTRL_NONE, 959 295, UNIPHIER_PIN_DRV_1BIT, 960 295, UNIPHIER_PIN_PULL_DOWN), 961 UNIPHIER_PINCTRL_PIN(312, "PORT14", UNIPHIER_PIN_IECTRL_NONE, 962 296, UNIPHIER_PIN_DRV_1BIT, 963 296, UNIPHIER_PIN_PULL_DOWN), 964 UNIPHIER_PINCTRL_PIN(313, "PORT15", UNIPHIER_PIN_IECTRL_NONE, 965 297, UNIPHIER_PIN_DRV_1BIT, 966 297, UNIPHIER_PIN_PULL_DOWN), 967 UNIPHIER_PINCTRL_PIN(314, "PORT16", UNIPHIER_PIN_IECTRL_NONE, 968 298, UNIPHIER_PIN_DRV_1BIT, 969 298, UNIPHIER_PIN_PULL_DOWN), 970 UNIPHIER_PINCTRL_PIN(315, "PORT17", UNIPHIER_PIN_IECTRL_NONE, 971 299, UNIPHIER_PIN_DRV_1BIT, 972 299, UNIPHIER_PIN_PULL_DOWN), 973 UNIPHIER_PINCTRL_PIN(316, "PORT20", UNIPHIER_PIN_IECTRL_NONE, 974 300, UNIPHIER_PIN_DRV_1BIT, 975 300, UNIPHIER_PIN_PULL_DOWN), 976 UNIPHIER_PINCTRL_PIN(317, "PORT21", UNIPHIER_PIN_IECTRL_NONE, 977 301, UNIPHIER_PIN_DRV_1BIT, 978 301, UNIPHIER_PIN_PULL_DOWN), 979 UNIPHIER_PINCTRL_PIN(318, "PORT22", UNIPHIER_PIN_IECTRL_NONE, 980 302, UNIPHIER_PIN_DRV_1BIT, 981 302, UNIPHIER_PIN_PULL_UP), 982 UNIPHIER_PINCTRL_PIN(319, "SD1DAT0", UNIPHIER_PIN_IECTRL_NONE, 983 303, UNIPHIER_PIN_DRV_1BIT, 984 303, UNIPHIER_PIN_PULL_UP), 985 UNIPHIER_PINCTRL_PIN(320, "SD1DAT1", UNIPHIER_PIN_IECTRL_NONE, 986 304, UNIPHIER_PIN_DRV_1BIT, 987 304, UNIPHIER_PIN_PULL_UP), 988 UNIPHIER_PINCTRL_PIN(321, "SD1DAT2", UNIPHIER_PIN_IECTRL_NONE, 989 305, UNIPHIER_PIN_DRV_1BIT, 990 305, UNIPHIER_PIN_PULL_UP), 991 UNIPHIER_PINCTRL_PIN(322, "SD1DAT3", UNIPHIER_PIN_IECTRL_NONE, 992 306, UNIPHIER_PIN_DRV_1BIT, 993 306, UNIPHIER_PIN_PULL_UP), 994 UNIPHIER_PINCTRL_PIN(323, "SD1CMD", UNIPHIER_PIN_IECTRL_NONE, 995 307, UNIPHIER_PIN_DRV_1BIT, 996 307, UNIPHIER_PIN_PULL_UP), 997 UNIPHIER_PINCTRL_PIN(324, "SD1CLK", UNIPHIER_PIN_IECTRL_NONE, 998 308, UNIPHIER_PIN_DRV_1BIT, 999 308, UNIPHIER_PIN_PULL_UP), 1000 UNIPHIER_PINCTRL_PIN(325, "SD1CD", UNIPHIER_PIN_IECTRL_NONE, 1001 309, UNIPHIER_PIN_DRV_1BIT, 1002 309, UNIPHIER_PIN_PULL_UP), 1003 UNIPHIER_PINCTRL_PIN(326, "SD1WP", UNIPHIER_PIN_IECTRL_NONE, 1004 310, UNIPHIER_PIN_DRV_1BIT, 1005 310, UNIPHIER_PIN_PULL_UP), 1006 UNIPHIER_PINCTRL_PIN(327, "SD1VTCG", UNIPHIER_PIN_IECTRL_NONE, 1007 311, UNIPHIER_PIN_DRV_1BIT, 1008 311, UNIPHIER_PIN_PULL_UP), 1009 UNIPHIER_PINCTRL_PIN(328, "DMDISO", UNIPHIER_PIN_IECTRL_NONE, 1010 -1, UNIPHIER_PIN_DRV_NONE, 1011 312, UNIPHIER_PIN_PULL_DOWN), 1012 }; 1013 1014 static const unsigned emmc_pins[] = {40, 41, 42, 43, 51, 52, 53}; 1015 static const int emmc_muxvals[] = {1, 1, 1, 1, 1, 1, 1}; 1016 static const unsigned emmc_dat8_pins[] = {44, 45, 46, 47}; 1017 static const int emmc_dat8_muxvals[] = {1, 1, 1, 1}; 1018 static const unsigned ether_mii_pins[] = {160, 161, 162, 163, 164, 165, 166, 1019 167, 168, 169, 170, 171, 172, 173, 1020 174, 175, 176, 177, 178, 179}; 1021 static const int ether_mii_muxvals[] = {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1022 0, 0, 0, 0, 0, 0, 0}; 1023 static const unsigned ether_rgmii_pins[] = {160, 161, 162, 163, 164, 165, 167, 1024 168, 169, 170, 171, 172, 176, 177, 1025 178, 179}; 1026 static const int ether_rgmii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1027 0, 0, 0, 0}; 1028 static const unsigned ether_rmii_pins[] = {160, 161, 162, 165, 168, 169, 172, 1029 173, 176, 177, 178, 179}; 1030 static const int ether_rmii_muxvals[] = {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; 1031 static const unsigned ether_rmiib_pins[] = {161, 162, 165, 167, 168, 169, 172, 1032 173, 176, 177, 178, 179}; 1033 static const int ether_rmiib_muxvals[] = {0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0}; 1034 static const unsigned i2c0_pins[] = {142, 143}; 1035 static const int i2c0_muxvals[] = {0, 0}; 1036 static const unsigned i2c1_pins[] = {144, 145}; 1037 static const int i2c1_muxvals[] = {0, 0}; 1038 static const unsigned i2c2_pins[] = {146, 147}; 1039 static const int i2c2_muxvals[] = {0, 0}; 1040 static const unsigned i2c3_pins[] = {148, 149}; 1041 static const int i2c3_muxvals[] = {0, 0}; 1042 static const unsigned i2c6_pins[] = {308, 309}; 1043 static const int i2c6_muxvals[] = {6, 6}; 1044 static const unsigned nand_pins[] = {40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 1045 50, 51, 52, 53, 54}; 1046 static const int nand_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; 1047 static const unsigned nand_cs1_pins[] = {131, 132}; 1048 static const int nand_cs1_muxvals[] = {1, 1}; 1049 static const unsigned sd_pins[] = {150, 151, 152, 153, 154, 155, 156, 157, 158}; 1050 static const int sd_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0}; 1051 static const unsigned sd1_pins[] = {319, 320, 321, 322, 323, 324, 325, 326, 1052 327}; 1053 static const int sd1_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0}; 1054 static const unsigned spi0_pins[] = {199, 200, 201, 202}; 1055 static const int spi0_muxvals[] = {11, 11, 11, 11}; 1056 static const unsigned spi1_pins[] = {195, 196, 197, 198, 235, 238, 239}; 1057 static const int spi1_muxvals[] = {11, 11, 11, 11, 11, 11, 11}; 1058 static const unsigned system_bus_pins[] = {25, 26, 27, 28, 29, 30, 31, 32, 33, 1059 34, 35, 36, 37, 38}; 1060 static const int system_bus_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1061 0}; 1062 static const unsigned system_bus_cs0_pins[] = {318}; 1063 static const int system_bus_cs0_muxvals[] = {5}; 1064 static const unsigned system_bus_cs1_pins[] = {24}; 1065 static const int system_bus_cs1_muxvals[] = {0}; 1066 static const unsigned system_bus_cs2_pins[] = {315}; 1067 static const int system_bus_cs2_muxvals[] = {5}; 1068 static const unsigned system_bus_cs3_pins[] = {313}; 1069 static const int system_bus_cs3_muxvals[] = {5}; 1070 static const unsigned system_bus_cs4_pins[] = {305}; 1071 static const int system_bus_cs4_muxvals[] = {5}; 1072 static const unsigned system_bus_cs5_pins[] = {303}; 1073 static const int system_bus_cs5_muxvals[] = {6}; 1074 static const unsigned system_bus_cs6_pins[] = {307}; 1075 static const int system_bus_cs6_muxvals[] = {6}; 1076 static const unsigned system_bus_cs7_pins[] = {312}; 1077 static const int system_bus_cs7_muxvals[] = {6}; 1078 static const unsigned uart0_pins[] = {127, 128}; 1079 static const int uart0_muxvals[] = {0, 0}; 1080 static const unsigned uart1_pins[] = {129, 130}; 1081 static const int uart1_muxvals[] = {0, 0}; 1082 static const unsigned uart2_pins[] = {131, 132}; 1083 static const int uart2_muxvals[] = {0, 0}; 1084 static const unsigned uart3_pins[] = {88, 89}; 1085 static const int uart3_muxvals[] = {2, 2}; 1086 static const unsigned uart3_ctsrts_pins[] = {80, 81, 82, 83, 90, 91}; 1087 static const int uart3_ctsrts_muxvals[] = {2, 2, 2, 2, 2, 2}; 1088 static const unsigned usb0_pins[] = {180, 181}; 1089 static const int usb0_muxvals[] = {0, 0}; 1090 static const unsigned usb1_pins[] = {182, 183}; 1091 static const int usb1_muxvals[] = {0, 0}; 1092 static const unsigned usb2_pins[] = {184, 185}; 1093 static const int usb2_muxvals[] = {0, 0}; 1094 static const unsigned usb3_pins[] = {187, 188}; 1095 static const int usb3_muxvals[] = {0, 0}; 1096 static const unsigned int gpio_range_pins[] = { 1097 300, 301, 302, 303, 304, 305, 306, 307, /* PORT0x */ 1098 308, 309, 310, 311, 312, 313, 314, 315, /* PORT1x */ 1099 316, 317, 318, 16, 17, 18, 19, 20, /* PORT2x */ 1100 21, 22, 23, 4, 93, 94, 95, 63, /* PORT3x */ 1101 123, 122, 124, 125, 126, 141, 202, 203, /* PORT4x */ 1102 204, 226, 227, 290, 291, 233, 280, 281, /* PORT5x */ 1103 8, 7, 10, 29, 30, 48, 49, 50, /* PORT6x */ 1104 40, 41, 42, 43, 44, 45, 46, 47, /* PORT7x */ 1105 54, 51, 52, 53, 127, 128, 129, 130, /* PORT8x */ 1106 131, 132, 57, 60, 134, 133, 135, 136, /* PORT9x */ 1107 138, 137, 140, 139, 64, 65, 66, 67, /* PORT10x */ 1108 107, 106, 105, 104, 113, 112, 111, 110, /* PORT11x */ 1109 68, 69, 70, 71, 72, 73, 74, 75, /* PORT12x */ 1110 76, 77, 78, 79, 80, 81, 82, 83, /* PORT13x */ 1111 84, 85, 86, 87, 88, 89, 90, 91, /* PORT14x */ 1112 11, 9, 12, 96, 97, 98, 108, 114, /* XIRQ0-7 */ 1113 234, 186, 99, 100, 101, 102, 300, 301, /* XIRQ8-15 */ 1114 302, 303, 304, 305, 306, 13, 14, 15, /* XIRQ16-20, PORT175-177 */ 1115 157, 158, 156, 154, 150, 151, 152, 153, /* PORT18x */ 1116 326, 327, 325, 323, 319, 320, 321, 322, /* PORT19x */ 1117 160, 161, 162, 163, 164, 165, 166, 167, /* PORT20x */ 1118 168, 169, 170, 171, 172, 173, 174, 175, /* PORT21x */ 1119 180, 181, 182, 183, 184, 185, 187, 188, /* PORT22x */ 1120 193, 194, 195, 196, 197, 198, 199, 200, /* PORT23x */ 1121 191, 192, 215, 216, 217, 218, 219, 220, /* PORT24x */ 1122 222, 223, 224, 225, 228, 229, 230, 231, /* PORT25x */ 1123 282, 283, 284, 285, 286, 287, 288, 289, /* PORT26x */ 1124 292, 293, 294, 295, 296, 236, 237, 238, /* PORT27x */ 1125 275, 276, 277, 278, 239, 240, 249, 250, /* PORT28x */ 1126 251, 252, 261, 262, 263, 264, 273, 274, /* PORT29x */ 1127 31, 32, 33, 34, 35, 36, 37, 38, /* PORT30x */ 1128 }; 1129 1130 static const struct uniphier_pinctrl_group uniphier_pro4_groups[] = { 1131 UNIPHIER_PINCTRL_GROUP(emmc), 1132 UNIPHIER_PINCTRL_GROUP(emmc_dat8), 1133 UNIPHIER_PINCTRL_GROUP(ether_mii), 1134 UNIPHIER_PINCTRL_GROUP(ether_rgmii), 1135 UNIPHIER_PINCTRL_GROUP(ether_rmii), 1136 UNIPHIER_PINCTRL_GROUP(ether_rmiib), 1137 UNIPHIER_PINCTRL_GROUP(i2c0), 1138 UNIPHIER_PINCTRL_GROUP(i2c1), 1139 UNIPHIER_PINCTRL_GROUP(i2c2), 1140 UNIPHIER_PINCTRL_GROUP(i2c3), 1141 UNIPHIER_PINCTRL_GROUP(i2c6), 1142 UNIPHIER_PINCTRL_GROUP(nand), 1143 UNIPHIER_PINCTRL_GROUP(nand_cs1), 1144 UNIPHIER_PINCTRL_GROUP(sd), 1145 UNIPHIER_PINCTRL_GROUP(sd1), 1146 UNIPHIER_PINCTRL_GROUP(spi0), 1147 UNIPHIER_PINCTRL_GROUP(spi1), 1148 UNIPHIER_PINCTRL_GROUP(system_bus), 1149 UNIPHIER_PINCTRL_GROUP(system_bus_cs0), 1150 UNIPHIER_PINCTRL_GROUP(system_bus_cs1), 1151 UNIPHIER_PINCTRL_GROUP(system_bus_cs2), 1152 UNIPHIER_PINCTRL_GROUP(system_bus_cs3), 1153 UNIPHIER_PINCTRL_GROUP(system_bus_cs4), 1154 UNIPHIER_PINCTRL_GROUP(system_bus_cs5), 1155 UNIPHIER_PINCTRL_GROUP(system_bus_cs6), 1156 UNIPHIER_PINCTRL_GROUP(system_bus_cs7), 1157 UNIPHIER_PINCTRL_GROUP(uart0), 1158 UNIPHIER_PINCTRL_GROUP(uart1), 1159 UNIPHIER_PINCTRL_GROUP(uart2), 1160 UNIPHIER_PINCTRL_GROUP(uart3), 1161 UNIPHIER_PINCTRL_GROUP(uart3_ctsrts), 1162 UNIPHIER_PINCTRL_GROUP(usb0), 1163 UNIPHIER_PINCTRL_GROUP(usb1), 1164 UNIPHIER_PINCTRL_GROUP(usb2), 1165 UNIPHIER_PINCTRL_GROUP(usb3), 1166 UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range), 1167 }; 1168 1169 static const char * const emmc_groups[] = {"emmc", "emmc_dat8"}; 1170 static const char * const ether_mii_groups[] = {"ether_mii"}; 1171 static const char * const ether_rgmii_groups[] = {"ether_rgmii"}; 1172 static const char * const ether_rmii_groups[] = {"ether_rmii", "ether_rmiib"}; 1173 static const char * const i2c0_groups[] = {"i2c0"}; 1174 static const char * const i2c1_groups[] = {"i2c1"}; 1175 static const char * const i2c2_groups[] = {"i2c2"}; 1176 static const char * const i2c3_groups[] = {"i2c3"}; 1177 static const char * const i2c6_groups[] = {"i2c6"}; 1178 static const char * const nand_groups[] = {"nand", "nand_cs1"}; 1179 static const char * const sd_groups[] = {"sd"}; 1180 static const char * const sd1_groups[] = {"sd1"}; 1181 static const char * const spi0_groups[] = {"spi0"}; 1182 static const char * const spi1_groups[] = {"spi1"}; 1183 static const char * const system_bus_groups[] = {"system_bus", 1184 "system_bus_cs0", 1185 "system_bus_cs1", 1186 "system_bus_cs2", 1187 "system_bus_cs3", 1188 "system_bus_cs4", 1189 "system_bus_cs5", 1190 "system_bus_cs6", 1191 "system_bus_cs7"}; 1192 static const char * const uart0_groups[] = {"uart0"}; 1193 static const char * const uart1_groups[] = {"uart1"}; 1194 static const char * const uart2_groups[] = {"uart2"}; 1195 static const char * const uart3_groups[] = {"uart3", "uart3_ctsrts"}; 1196 static const char * const usb0_groups[] = {"usb0"}; 1197 static const char * const usb1_groups[] = {"usb1"}; 1198 static const char * const usb2_groups[] = {"usb2"}; 1199 static const char * const usb3_groups[] = {"usb3"}; 1200 1201 static const struct uniphier_pinmux_function uniphier_pro4_functions[] = { 1202 UNIPHIER_PINMUX_FUNCTION(emmc), 1203 UNIPHIER_PINMUX_FUNCTION(ether_mii), 1204 UNIPHIER_PINMUX_FUNCTION(ether_rgmii), 1205 UNIPHIER_PINMUX_FUNCTION(ether_rmii), 1206 UNIPHIER_PINMUX_FUNCTION(i2c0), 1207 UNIPHIER_PINMUX_FUNCTION(i2c1), 1208 UNIPHIER_PINMUX_FUNCTION(i2c2), 1209 UNIPHIER_PINMUX_FUNCTION(i2c3), 1210 UNIPHIER_PINMUX_FUNCTION(i2c6), 1211 UNIPHIER_PINMUX_FUNCTION(nand), 1212 UNIPHIER_PINMUX_FUNCTION(sd), 1213 UNIPHIER_PINMUX_FUNCTION(sd1), 1214 UNIPHIER_PINMUX_FUNCTION(spi0), 1215 UNIPHIER_PINMUX_FUNCTION(spi1), 1216 UNIPHIER_PINMUX_FUNCTION(system_bus), 1217 UNIPHIER_PINMUX_FUNCTION(uart0), 1218 UNIPHIER_PINMUX_FUNCTION(uart1), 1219 UNIPHIER_PINMUX_FUNCTION(uart2), 1220 UNIPHIER_PINMUX_FUNCTION(uart3), 1221 UNIPHIER_PINMUX_FUNCTION(usb0), 1222 UNIPHIER_PINMUX_FUNCTION(usb1), 1223 UNIPHIER_PINMUX_FUNCTION(usb2), 1224 UNIPHIER_PINMUX_FUNCTION(usb3), 1225 }; 1226 1227 static int uniphier_pro4_get_gpio_muxval(unsigned int pin, 1228 unsigned int gpio_offset) 1229 { 1230 if (gpio_offset >= 134 && gpio_offset <= 140) /* XIRQ14-20 */ 1231 return 2; 1232 1233 return 7; 1234 } 1235 1236 static struct uniphier_pinctrl_socdata uniphier_pro4_pindata = { 1237 .pins = uniphier_pro4_pins, 1238 .npins = ARRAY_SIZE(uniphier_pro4_pins), 1239 .groups = uniphier_pro4_groups, 1240 .groups_count = ARRAY_SIZE(uniphier_pro4_groups), 1241 .functions = uniphier_pro4_functions, 1242 .functions_count = ARRAY_SIZE(uniphier_pro4_functions), 1243 .get_gpio_muxval = uniphier_pro4_get_gpio_muxval, 1244 .caps = UNIPHIER_PINCTRL_CAPS_DBGMUX_SEPARATE, 1245 }; 1246 1247 static int uniphier_pro4_pinctrl_probe(struct platform_device *pdev) 1248 { 1249 return uniphier_pinctrl_probe(pdev, &uniphier_pro4_pindata); 1250 } 1251 1252 static const struct of_device_id uniphier_pro4_pinctrl_match[] = { 1253 { .compatible = "socionext,uniphier-pro4-pinctrl" }, 1254 { /* sentinel */ } 1255 }; 1256 1257 static struct platform_driver uniphier_pro4_pinctrl_driver = { 1258 .probe = uniphier_pro4_pinctrl_probe, 1259 .driver = { 1260 .name = "uniphier-pro4-pinctrl", 1261 .of_match_table = uniphier_pro4_pinctrl_match, 1262 .pm = &uniphier_pinctrl_pm_ops, 1263 }, 1264 }; 1265 builtin_platform_driver(uniphier_pro4_pinctrl_driver); 1266