Masahiro Yamada | c3ed6f4 | 2017-07-31 15:21:11 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 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 program 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/init.h> |
| 17 | #include <linux/kernel.h> |
Randy Dunlap | ac31672 | 2018-06-19 22:47:28 -0700 | [diff] [blame] | 18 | #include <linux/mod_devicetable.h> |
Masahiro Yamada | c3ed6f4 | 2017-07-31 15:21:11 +0900 | [diff] [blame] | 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_pxs3_pins[] = { |
| 25 | UNIPHIER_PINCTRL_PIN(0, "LPST", UNIPHIER_PIN_IECTRL_EXIST, |
| 26 | 0, UNIPHIER_PIN_DRV_3BIT, |
| 27 | 0, UNIPHIER_PIN_PULL_DOWN), |
| 28 | UNIPHIER_PINCTRL_PIN(1, "ED0", UNIPHIER_PIN_IECTRL_EXIST, |
| 29 | 1, UNIPHIER_PIN_DRV_3BIT, |
| 30 | 1, UNIPHIER_PIN_PULL_DOWN), |
| 31 | UNIPHIER_PINCTRL_PIN(2, "ED1", UNIPHIER_PIN_IECTRL_EXIST, |
| 32 | 2, UNIPHIER_PIN_DRV_3BIT, |
| 33 | 2, UNIPHIER_PIN_PULL_DOWN), |
| 34 | UNIPHIER_PINCTRL_PIN(3, "ED2", UNIPHIER_PIN_IECTRL_EXIST, |
| 35 | 3, UNIPHIER_PIN_DRV_3BIT, |
| 36 | 3, UNIPHIER_PIN_PULL_DOWN), |
| 37 | UNIPHIER_PINCTRL_PIN(4, "ED3", UNIPHIER_PIN_IECTRL_EXIST, |
| 38 | 4, UNIPHIER_PIN_DRV_3BIT, |
| 39 | 4, UNIPHIER_PIN_PULL_DOWN), |
| 40 | UNIPHIER_PINCTRL_PIN(5, "ED4", UNIPHIER_PIN_IECTRL_EXIST, |
| 41 | 5, UNIPHIER_PIN_DRV_3BIT, |
| 42 | 5, UNIPHIER_PIN_PULL_DOWN), |
| 43 | UNIPHIER_PINCTRL_PIN(6, "ED5", UNIPHIER_PIN_IECTRL_EXIST, |
| 44 | 6, UNIPHIER_PIN_DRV_3BIT, |
| 45 | 6, UNIPHIER_PIN_PULL_DOWN), |
| 46 | UNIPHIER_PINCTRL_PIN(7, "ED6", UNIPHIER_PIN_IECTRL_EXIST, |
| 47 | 7, UNIPHIER_PIN_DRV_3BIT, |
| 48 | 7, UNIPHIER_PIN_PULL_DOWN), |
| 49 | UNIPHIER_PINCTRL_PIN(8, "ED7", UNIPHIER_PIN_IECTRL_EXIST, |
| 50 | 8, UNIPHIER_PIN_DRV_3BIT, |
| 51 | 8, UNIPHIER_PIN_PULL_DOWN), |
| 52 | UNIPHIER_PINCTRL_PIN(9, "XERWE0", UNIPHIER_PIN_IECTRL_EXIST, |
| 53 | 9, UNIPHIER_PIN_DRV_3BIT, |
| 54 | 9, UNIPHIER_PIN_PULL_DOWN), |
| 55 | UNIPHIER_PINCTRL_PIN(10, "XERWE1", UNIPHIER_PIN_IECTRL_EXIST, |
| 56 | 10, UNIPHIER_PIN_DRV_3BIT, |
| 57 | 10, UNIPHIER_PIN_PULL_DOWN), |
| 58 | UNIPHIER_PINCTRL_PIN(11, "ERXW", UNIPHIER_PIN_IECTRL_EXIST, |
| 59 | 11, UNIPHIER_PIN_DRV_3BIT, |
| 60 | 11, UNIPHIER_PIN_PULL_DOWN), |
| 61 | UNIPHIER_PINCTRL_PIN(12, "ES0", UNIPHIER_PIN_IECTRL_EXIST, |
| 62 | 12, UNIPHIER_PIN_DRV_3BIT, |
| 63 | 12, UNIPHIER_PIN_PULL_DOWN), |
| 64 | UNIPHIER_PINCTRL_PIN(13, "ES1", UNIPHIER_PIN_IECTRL_EXIST, |
| 65 | 13, UNIPHIER_PIN_DRV_3BIT, |
| 66 | 13, UNIPHIER_PIN_PULL_DOWN), |
| 67 | UNIPHIER_PINCTRL_PIN(14, "ES2", UNIPHIER_PIN_IECTRL_EXIST, |
| 68 | 14, UNIPHIER_PIN_DRV_3BIT, |
| 69 | 14, UNIPHIER_PIN_PULL_DOWN), |
| 70 | UNIPHIER_PINCTRL_PIN(15, "XECS1", UNIPHIER_PIN_IECTRL_EXIST, |
| 71 | 15, UNIPHIER_PIN_DRV_3BIT, |
| 72 | 15, UNIPHIER_PIN_PULL_UP), |
| 73 | UNIPHIER_PINCTRL_PIN(16, "XNFWP", UNIPHIER_PIN_IECTRL_EXIST, |
| 74 | 16, UNIPHIER_PIN_DRV_3BIT, |
| 75 | 16, UNIPHIER_PIN_PULL_DOWN), |
| 76 | UNIPHIER_PINCTRL_PIN(17, "XNFCE0", UNIPHIER_PIN_IECTRL_EXIST, |
| 77 | 17, UNIPHIER_PIN_DRV_3BIT, |
| 78 | 17, UNIPHIER_PIN_PULL_UP), |
| 79 | UNIPHIER_PINCTRL_PIN(18, "NFRYBY0", UNIPHIER_PIN_IECTRL_EXIST, |
| 80 | 18, UNIPHIER_PIN_DRV_3BIT, |
| 81 | 18, UNIPHIER_PIN_PULL_UP), |
| 82 | UNIPHIER_PINCTRL_PIN(19, "XNFRE", UNIPHIER_PIN_IECTRL_EXIST, |
| 83 | 19, UNIPHIER_PIN_DRV_3BIT, |
| 84 | 19, UNIPHIER_PIN_PULL_UP), |
| 85 | UNIPHIER_PINCTRL_PIN(20, "XNFWE", UNIPHIER_PIN_IECTRL_EXIST, |
| 86 | 20, UNIPHIER_PIN_DRV_3BIT, |
| 87 | 20, UNIPHIER_PIN_PULL_UP), |
| 88 | UNIPHIER_PINCTRL_PIN(21, "NFALE", UNIPHIER_PIN_IECTRL_EXIST, |
| 89 | 21, UNIPHIER_PIN_DRV_3BIT, |
| 90 | 21, UNIPHIER_PIN_PULL_UP), |
| 91 | UNIPHIER_PINCTRL_PIN(22, "NFCLE", UNIPHIER_PIN_IECTRL_EXIST, |
| 92 | 22, UNIPHIER_PIN_DRV_3BIT, |
| 93 | 22, UNIPHIER_PIN_PULL_UP), |
| 94 | UNIPHIER_PINCTRL_PIN(23, "NFD0", UNIPHIER_PIN_IECTRL_EXIST, |
| 95 | 23, UNIPHIER_PIN_DRV_3BIT, |
| 96 | 23, UNIPHIER_PIN_PULL_UP), |
| 97 | UNIPHIER_PINCTRL_PIN(24, "NFD1", UNIPHIER_PIN_IECTRL_EXIST, |
| 98 | 24, UNIPHIER_PIN_DRV_3BIT, |
| 99 | 24, UNIPHIER_PIN_PULL_UP), |
| 100 | UNIPHIER_PINCTRL_PIN(25, "NFD2", UNIPHIER_PIN_IECTRL_EXIST, |
| 101 | 25, UNIPHIER_PIN_DRV_3BIT, |
| 102 | 25, UNIPHIER_PIN_PULL_UP), |
| 103 | UNIPHIER_PINCTRL_PIN(26, "NFD3", UNIPHIER_PIN_IECTRL_EXIST, |
| 104 | 26, UNIPHIER_PIN_DRV_3BIT, |
| 105 | 26, UNIPHIER_PIN_PULL_UP), |
| 106 | UNIPHIER_PINCTRL_PIN(27, "NFD4", UNIPHIER_PIN_IECTRL_EXIST, |
| 107 | 27, UNIPHIER_PIN_DRV_3BIT, |
| 108 | 27, UNIPHIER_PIN_PULL_UP), |
| 109 | UNIPHIER_PINCTRL_PIN(28, "NFD5", UNIPHIER_PIN_IECTRL_EXIST, |
| 110 | 28, UNIPHIER_PIN_DRV_3BIT, |
| 111 | 28, UNIPHIER_PIN_PULL_UP), |
| 112 | UNIPHIER_PINCTRL_PIN(29, "NFD6", UNIPHIER_PIN_IECTRL_EXIST, |
| 113 | 29, UNIPHIER_PIN_DRV_3BIT, |
| 114 | 29, UNIPHIER_PIN_PULL_UP), |
| 115 | UNIPHIER_PINCTRL_PIN(30, "NFD7", UNIPHIER_PIN_IECTRL_EXIST, |
| 116 | 30, UNIPHIER_PIN_DRV_3BIT, |
| 117 | 30, UNIPHIER_PIN_PULL_UP), |
| 118 | UNIPHIER_PINCTRL_PIN(31, "XERST", UNIPHIER_PIN_IECTRL_EXIST, |
| 119 | 0, UNIPHIER_PIN_DRV_2BIT, |
| 120 | 31, UNIPHIER_PIN_PULL_DOWN), |
| 121 | UNIPHIER_PINCTRL_PIN(32, "MMCCLK", UNIPHIER_PIN_IECTRL_EXIST, |
| 122 | 1, UNIPHIER_PIN_DRV_2BIT, |
| 123 | 32, UNIPHIER_PIN_PULL_DOWN), |
| 124 | UNIPHIER_PINCTRL_PIN(33, "MMCCMD", UNIPHIER_PIN_IECTRL_EXIST, |
| 125 | 2, UNIPHIER_PIN_DRV_2BIT, |
| 126 | 33, UNIPHIER_PIN_PULL_UP), |
| 127 | UNIPHIER_PINCTRL_PIN(34, "MMCDS", UNIPHIER_PIN_IECTRL_EXIST, |
| 128 | 3, UNIPHIER_PIN_DRV_2BIT, |
| 129 | 34, UNIPHIER_PIN_PULL_DOWN), |
| 130 | UNIPHIER_PINCTRL_PIN(35, "MMCDAT0", UNIPHIER_PIN_IECTRL_EXIST, |
| 131 | 4, UNIPHIER_PIN_DRV_2BIT, |
| 132 | 35, UNIPHIER_PIN_PULL_UP), |
| 133 | UNIPHIER_PINCTRL_PIN(36, "MMCDAT1", UNIPHIER_PIN_IECTRL_EXIST, |
| 134 | 5, UNIPHIER_PIN_DRV_2BIT, |
| 135 | 36, UNIPHIER_PIN_PULL_UP), |
| 136 | UNIPHIER_PINCTRL_PIN(37, "MMCDAT2", UNIPHIER_PIN_IECTRL_EXIST, |
| 137 | 6, UNIPHIER_PIN_DRV_2BIT, |
| 138 | 37, UNIPHIER_PIN_PULL_UP), |
| 139 | UNIPHIER_PINCTRL_PIN(38, "MMCDAT3", UNIPHIER_PIN_IECTRL_EXIST, |
| 140 | 7, UNIPHIER_PIN_DRV_2BIT, |
| 141 | 38, UNIPHIER_PIN_PULL_UP), |
| 142 | UNIPHIER_PINCTRL_PIN(39, "MMCDAT4", UNIPHIER_PIN_IECTRL_EXIST, |
| 143 | 8, UNIPHIER_PIN_DRV_2BIT, |
| 144 | 39, UNIPHIER_PIN_PULL_UP), |
| 145 | UNIPHIER_PINCTRL_PIN(40, "MMCDAT5", UNIPHIER_PIN_IECTRL_EXIST, |
| 146 | 9, UNIPHIER_PIN_DRV_2BIT, |
| 147 | 40, UNIPHIER_PIN_PULL_UP), |
| 148 | UNIPHIER_PINCTRL_PIN(41, "MMCDAT6", UNIPHIER_PIN_IECTRL_EXIST, |
| 149 | 10, UNIPHIER_PIN_DRV_2BIT, |
| 150 | 41, UNIPHIER_PIN_PULL_UP), |
| 151 | UNIPHIER_PINCTRL_PIN(42, "MMCDAT7", UNIPHIER_PIN_IECTRL_EXIST, |
| 152 | 11, UNIPHIER_PIN_DRV_2BIT, |
| 153 | 42, UNIPHIER_PIN_PULL_UP), |
| 154 | UNIPHIER_PINCTRL_PIN(43, "SDCLK", UNIPHIER_PIN_IECTRL_EXIST, |
| 155 | 12, UNIPHIER_PIN_DRV_2BIT, |
| 156 | 43, UNIPHIER_PIN_PULL_UP), |
| 157 | UNIPHIER_PINCTRL_PIN(44, "SDCMD", UNIPHIER_PIN_IECTRL_EXIST, |
| 158 | 13, UNIPHIER_PIN_DRV_2BIT, |
| 159 | 44, UNIPHIER_PIN_PULL_UP), |
| 160 | UNIPHIER_PINCTRL_PIN(45, "SDDAT0", UNIPHIER_PIN_IECTRL_EXIST, |
| 161 | 14, UNIPHIER_PIN_DRV_2BIT, |
| 162 | 45, UNIPHIER_PIN_PULL_UP), |
| 163 | UNIPHIER_PINCTRL_PIN(46, "SDDAT1", UNIPHIER_PIN_IECTRL_EXIST, |
| 164 | 15, UNIPHIER_PIN_DRV_2BIT, |
| 165 | 46, UNIPHIER_PIN_PULL_UP), |
| 166 | UNIPHIER_PINCTRL_PIN(47, "SDDAT2", UNIPHIER_PIN_IECTRL_EXIST, |
| 167 | 16, UNIPHIER_PIN_DRV_2BIT, |
| 168 | 47, UNIPHIER_PIN_PULL_UP), |
| 169 | UNIPHIER_PINCTRL_PIN(48, "SDDAT3", UNIPHIER_PIN_IECTRL_EXIST, |
| 170 | 17, UNIPHIER_PIN_DRV_2BIT, |
| 171 | 48, UNIPHIER_PIN_PULL_UP), |
| 172 | UNIPHIER_PINCTRL_PIN(49, "SDCD", UNIPHIER_PIN_IECTRL_EXIST, |
| 173 | 31, UNIPHIER_PIN_DRV_3BIT, |
| 174 | 49, UNIPHIER_PIN_PULL_UP), |
| 175 | UNIPHIER_PINCTRL_PIN(50, "SDWP", UNIPHIER_PIN_IECTRL_EXIST, |
| 176 | 32, UNIPHIER_PIN_DRV_3BIT, |
| 177 | 50, UNIPHIER_PIN_PULL_UP), |
| 178 | UNIPHIER_PINCTRL_PIN(51, "SDVOLC", UNIPHIER_PIN_IECTRL_EXIST, |
| 179 | 33, UNIPHIER_PIN_DRV_3BIT, |
| 180 | 51, UNIPHIER_PIN_PULL_UP), |
| 181 | UNIPHIER_PINCTRL_PIN(52, "MDC0", UNIPHIER_PIN_IECTRL_EXIST, |
| 182 | 18, UNIPHIER_PIN_DRV_2BIT, |
| 183 | 52, UNIPHIER_PIN_PULL_UP), |
| 184 | UNIPHIER_PINCTRL_PIN(53, "MDIO0", UNIPHIER_PIN_IECTRL_EXIST, |
| 185 | 19, UNIPHIER_PIN_DRV_2BIT, |
| 186 | 53, UNIPHIER_PIN_PULL_UP), |
| 187 | UNIPHIER_PINCTRL_PIN(54, "MDIO0_INTL", UNIPHIER_PIN_IECTRL_EXIST, |
| 188 | 20, UNIPHIER_PIN_DRV_2BIT, |
| 189 | 54, UNIPHIER_PIN_PULL_UP), |
| 190 | UNIPHIER_PINCTRL_PIN(55, "PHYRSTL0", UNIPHIER_PIN_IECTRL_EXIST, |
| 191 | 21, UNIPHIER_PIN_DRV_2BIT, |
| 192 | 55, UNIPHIER_PIN_PULL_UP), |
| 193 | UNIPHIER_PINCTRL_PIN(56, "RGMII0_RXCLK", UNIPHIER_PIN_IECTRL_EXIST, |
| 194 | 22, UNIPHIER_PIN_DRV_2BIT, |
| 195 | 56, UNIPHIER_PIN_PULL_UP), |
| 196 | UNIPHIER_PINCTRL_PIN(57, "RGMII0_RXD0", UNIPHIER_PIN_IECTRL_EXIST, |
| 197 | 23, UNIPHIER_PIN_DRV_2BIT, |
| 198 | 57, UNIPHIER_PIN_PULL_UP), |
| 199 | UNIPHIER_PINCTRL_PIN(58, "RGMII0_RXD1", UNIPHIER_PIN_IECTRL_EXIST, |
| 200 | 24, UNIPHIER_PIN_DRV_2BIT, |
| 201 | 58, UNIPHIER_PIN_PULL_UP), |
| 202 | UNIPHIER_PINCTRL_PIN(59, "RGMII0_RXD2", UNIPHIER_PIN_IECTRL_EXIST, |
| 203 | 25, UNIPHIER_PIN_DRV_2BIT, |
| 204 | 59, UNIPHIER_PIN_PULL_UP), |
| 205 | UNIPHIER_PINCTRL_PIN(60, "RGMII0_RXD3", UNIPHIER_PIN_IECTRL_EXIST, |
| 206 | 26, UNIPHIER_PIN_DRV_2BIT, |
| 207 | 60, UNIPHIER_PIN_PULL_UP), |
| 208 | UNIPHIER_PINCTRL_PIN(61, "RGMII0_RXCTL", UNIPHIER_PIN_IECTRL_EXIST, |
| 209 | 27, UNIPHIER_PIN_DRV_2BIT, |
| 210 | 61, UNIPHIER_PIN_PULL_UP), |
| 211 | UNIPHIER_PINCTRL_PIN(62, "RGMII0_TXCLK", UNIPHIER_PIN_IECTRL_EXIST, |
| 212 | 28, UNIPHIER_PIN_DRV_2BIT, |
| 213 | 62, UNIPHIER_PIN_PULL_DOWN), |
| 214 | UNIPHIER_PINCTRL_PIN(63, "RGMII0_TXD0", UNIPHIER_PIN_IECTRL_EXIST, |
| 215 | 29, UNIPHIER_PIN_DRV_2BIT, |
| 216 | 63, UNIPHIER_PIN_PULL_DOWN), |
| 217 | UNIPHIER_PINCTRL_PIN(64, "RGMII0_TXD1", UNIPHIER_PIN_IECTRL_EXIST, |
| 218 | 30, UNIPHIER_PIN_DRV_2BIT, |
| 219 | 64, UNIPHIER_PIN_PULL_DOWN), |
| 220 | UNIPHIER_PINCTRL_PIN(65, "RGMII0_TXD2", UNIPHIER_PIN_IECTRL_EXIST, |
| 221 | 31, UNIPHIER_PIN_DRV_2BIT, |
| 222 | 65, UNIPHIER_PIN_PULL_DOWN), |
| 223 | UNIPHIER_PINCTRL_PIN(66, "RGMII0_TXD3", UNIPHIER_PIN_IECTRL_EXIST, |
| 224 | 32, UNIPHIER_PIN_DRV_2BIT, |
| 225 | 66, UNIPHIER_PIN_PULL_DOWN), |
| 226 | UNIPHIER_PINCTRL_PIN(67, "RGMII0_TXCTL", UNIPHIER_PIN_IECTRL_EXIST, |
| 227 | 33, UNIPHIER_PIN_DRV_2BIT, |
| 228 | 67, UNIPHIER_PIN_PULL_DOWN), |
| 229 | UNIPHIER_PINCTRL_PIN(68, "MDC1", UNIPHIER_PIN_IECTRL_EXIST, |
| 230 | 34, UNIPHIER_PIN_DRV_2BIT, |
| 231 | 68, UNIPHIER_PIN_PULL_UP), |
| 232 | UNIPHIER_PINCTRL_PIN(69, "MDIO1", UNIPHIER_PIN_IECTRL_EXIST, |
| 233 | 35, UNIPHIER_PIN_DRV_2BIT, |
| 234 | 69, UNIPHIER_PIN_PULL_UP), |
| 235 | UNIPHIER_PINCTRL_PIN(70, "MDIO1_INTL", UNIPHIER_PIN_IECTRL_EXIST, |
| 236 | 36, UNIPHIER_PIN_DRV_2BIT, |
| 237 | 70, UNIPHIER_PIN_PULL_UP), |
| 238 | UNIPHIER_PINCTRL_PIN(71, "PHYRSTL1", UNIPHIER_PIN_IECTRL_EXIST, |
| 239 | 37, UNIPHIER_PIN_DRV_2BIT, |
| 240 | 71, UNIPHIER_PIN_PULL_UP), |
| 241 | UNIPHIER_PINCTRL_PIN(72, "RGMII1_RXCLK", UNIPHIER_PIN_IECTRL_EXIST, |
| 242 | 38, UNIPHIER_PIN_DRV_2BIT, |
| 243 | 72, UNIPHIER_PIN_PULL_UP), |
| 244 | UNIPHIER_PINCTRL_PIN(73, "RGMII1_RXD0", UNIPHIER_PIN_IECTRL_EXIST, |
| 245 | 39, UNIPHIER_PIN_DRV_2BIT, |
| 246 | 73, UNIPHIER_PIN_PULL_UP), |
| 247 | UNIPHIER_PINCTRL_PIN(74, "RGMII1_RXD1", UNIPHIER_PIN_IECTRL_EXIST, |
| 248 | 40, UNIPHIER_PIN_DRV_2BIT, |
| 249 | 74, UNIPHIER_PIN_PULL_UP), |
| 250 | UNIPHIER_PINCTRL_PIN(75, "RGMII1_RXD2", UNIPHIER_PIN_IECTRL_EXIST, |
| 251 | 41, UNIPHIER_PIN_DRV_2BIT, |
| 252 | 75, UNIPHIER_PIN_PULL_UP), |
| 253 | UNIPHIER_PINCTRL_PIN(76, "RGMII1_RXD3", UNIPHIER_PIN_IECTRL_EXIST, |
| 254 | 42, UNIPHIER_PIN_DRV_2BIT, |
| 255 | 76, UNIPHIER_PIN_PULL_UP), |
| 256 | UNIPHIER_PINCTRL_PIN(77, "RGMII1_RXCTL", UNIPHIER_PIN_IECTRL_EXIST, |
| 257 | 43, UNIPHIER_PIN_DRV_2BIT, |
| 258 | 77, UNIPHIER_PIN_PULL_UP), |
| 259 | UNIPHIER_PINCTRL_PIN(78, "RGMII1_TXCLK", UNIPHIER_PIN_IECTRL_EXIST, |
| 260 | 44, UNIPHIER_PIN_DRV_2BIT, |
| 261 | 78, UNIPHIER_PIN_PULL_DOWN), |
| 262 | UNIPHIER_PINCTRL_PIN(79, "RGMII1_TXD0", UNIPHIER_PIN_IECTRL_EXIST, |
| 263 | 45, UNIPHIER_PIN_DRV_2BIT, |
| 264 | 79, UNIPHIER_PIN_PULL_DOWN), |
| 265 | UNIPHIER_PINCTRL_PIN(80, "RGMII1_TXD1", UNIPHIER_PIN_IECTRL_EXIST, |
| 266 | 46, UNIPHIER_PIN_DRV_2BIT, |
| 267 | 80, UNIPHIER_PIN_PULL_DOWN), |
| 268 | UNIPHIER_PINCTRL_PIN(81, "RGMII1_TXD2", UNIPHIER_PIN_IECTRL_EXIST, |
| 269 | 47, UNIPHIER_PIN_DRV_2BIT, |
| 270 | 81, UNIPHIER_PIN_PULL_DOWN), |
| 271 | UNIPHIER_PINCTRL_PIN(82, "RGMII1_TXD3", UNIPHIER_PIN_IECTRL_EXIST, |
| 272 | 48, UNIPHIER_PIN_DRV_2BIT, |
| 273 | 82, UNIPHIER_PIN_PULL_DOWN), |
| 274 | UNIPHIER_PINCTRL_PIN(83, "RGMII1_TXCTL", UNIPHIER_PIN_IECTRL_EXIST, |
| 275 | 49, UNIPHIER_PIN_DRV_2BIT, |
| 276 | 83, UNIPHIER_PIN_PULL_DOWN), |
| 277 | UNIPHIER_PINCTRL_PIN(84, "USB0VBUS", UNIPHIER_PIN_IECTRL_EXIST, |
| 278 | 34, UNIPHIER_PIN_DRV_3BIT, |
| 279 | 84, UNIPHIER_PIN_PULL_DOWN), |
| 280 | UNIPHIER_PINCTRL_PIN(85, "USB0OD", UNIPHIER_PIN_IECTRL_EXIST, |
| 281 | 35, UNIPHIER_PIN_DRV_3BIT, |
| 282 | 85, UNIPHIER_PIN_PULL_UP), |
| 283 | UNIPHIER_PINCTRL_PIN(86, "USB1VBUS", UNIPHIER_PIN_IECTRL_EXIST, |
| 284 | 36, UNIPHIER_PIN_DRV_3BIT, |
| 285 | 86, UNIPHIER_PIN_PULL_DOWN), |
| 286 | UNIPHIER_PINCTRL_PIN(87, "USB1OD", UNIPHIER_PIN_IECTRL_EXIST, |
| 287 | 37, UNIPHIER_PIN_DRV_3BIT, |
| 288 | 87, UNIPHIER_PIN_PULL_UP), |
| 289 | UNIPHIER_PINCTRL_PIN(88, "USB2VBUS", UNIPHIER_PIN_IECTRL_EXIST, |
| 290 | 38, UNIPHIER_PIN_DRV_3BIT, |
| 291 | 88, UNIPHIER_PIN_PULL_DOWN), |
| 292 | UNIPHIER_PINCTRL_PIN(89, "USB2OD", UNIPHIER_PIN_IECTRL_EXIST, |
| 293 | 39, UNIPHIER_PIN_DRV_3BIT, |
| 294 | 89, UNIPHIER_PIN_PULL_UP), |
| 295 | UNIPHIER_PINCTRL_PIN(90, "USB3VBUS", UNIPHIER_PIN_IECTRL_EXIST, |
| 296 | 40, UNIPHIER_PIN_DRV_3BIT, |
| 297 | 90, UNIPHIER_PIN_PULL_DOWN), |
| 298 | UNIPHIER_PINCTRL_PIN(91, "USB3OD", UNIPHIER_PIN_IECTRL_EXIST, |
| 299 | 41, UNIPHIER_PIN_DRV_3BIT, |
| 300 | 91, UNIPHIER_PIN_PULL_UP), |
| 301 | UNIPHIER_PINCTRL_PIN(92, "TXD0", UNIPHIER_PIN_IECTRL_EXIST, |
| 302 | 42, UNIPHIER_PIN_DRV_3BIT, |
| 303 | 92, UNIPHIER_PIN_PULL_UP), |
| 304 | UNIPHIER_PINCTRL_PIN(93, "RXD0", UNIPHIER_PIN_IECTRL_EXIST, |
| 305 | 43, UNIPHIER_PIN_DRV_3BIT, |
| 306 | 93, UNIPHIER_PIN_PULL_UP), |
| 307 | UNIPHIER_PINCTRL_PIN(94, "TXD1", UNIPHIER_PIN_IECTRL_EXIST, |
| 308 | 44, UNIPHIER_PIN_DRV_3BIT, |
| 309 | 94, UNIPHIER_PIN_PULL_UP), |
| 310 | UNIPHIER_PINCTRL_PIN(95, "RXD1", UNIPHIER_PIN_IECTRL_EXIST, |
| 311 | 45, UNIPHIER_PIN_DRV_3BIT, |
| 312 | 95, UNIPHIER_PIN_PULL_UP), |
| 313 | UNIPHIER_PINCTRL_PIN(96, "TXD2", UNIPHIER_PIN_IECTRL_EXIST, |
| 314 | 46, UNIPHIER_PIN_DRV_3BIT, |
| 315 | 96, UNIPHIER_PIN_PULL_UP), |
| 316 | UNIPHIER_PINCTRL_PIN(97, "RXD2", UNIPHIER_PIN_IECTRL_EXIST, |
| 317 | 47, UNIPHIER_PIN_DRV_3BIT, |
| 318 | 97, UNIPHIER_PIN_PULL_UP), |
| 319 | UNIPHIER_PINCTRL_PIN(98, "TXD3", UNIPHIER_PIN_IECTRL_EXIST, |
| 320 | 48, UNIPHIER_PIN_DRV_3BIT, |
| 321 | 98, UNIPHIER_PIN_PULL_UP), |
| 322 | UNIPHIER_PINCTRL_PIN(99, "RXD3", UNIPHIER_PIN_IECTRL_EXIST, |
| 323 | 49, UNIPHIER_PIN_DRV_3BIT, |
| 324 | 99, UNIPHIER_PIN_PULL_UP), |
| 325 | UNIPHIER_PINCTRL_PIN(100, "SPISYNC0", UNIPHIER_PIN_IECTRL_EXIST, |
| 326 | 50, UNIPHIER_PIN_DRV_3BIT, |
| 327 | 100, UNIPHIER_PIN_PULL_DOWN), |
| 328 | UNIPHIER_PINCTRL_PIN(101, "SPISCLK0", UNIPHIER_PIN_IECTRL_EXIST, |
| 329 | 51, UNIPHIER_PIN_DRV_3BIT, |
| 330 | 101, UNIPHIER_PIN_PULL_DOWN), |
| 331 | UNIPHIER_PINCTRL_PIN(102, "SPITXD0", UNIPHIER_PIN_IECTRL_EXIST, |
| 332 | 52, UNIPHIER_PIN_DRV_3BIT, |
| 333 | 102, UNIPHIER_PIN_PULL_DOWN), |
| 334 | UNIPHIER_PINCTRL_PIN(103, "SPIRXD0", UNIPHIER_PIN_IECTRL_EXIST, |
| 335 | 53, UNIPHIER_PIN_DRV_3BIT, |
| 336 | 103, UNIPHIER_PIN_PULL_DOWN), |
| 337 | UNIPHIER_PINCTRL_PIN(104, "SDA0", UNIPHIER_PIN_IECTRL_EXIST, |
| 338 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 339 | -1, UNIPHIER_PIN_PULL_NONE), |
| 340 | UNIPHIER_PINCTRL_PIN(105, "SCL0", UNIPHIER_PIN_IECTRL_EXIST, |
| 341 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 342 | -1, UNIPHIER_PIN_PULL_NONE), |
| 343 | UNIPHIER_PINCTRL_PIN(106, "SDA1", UNIPHIER_PIN_IECTRL_EXIST, |
| 344 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 345 | -1, UNIPHIER_PIN_PULL_NONE), |
| 346 | UNIPHIER_PINCTRL_PIN(107, "SCL1", UNIPHIER_PIN_IECTRL_EXIST, |
| 347 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 348 | -1, UNIPHIER_PIN_PULL_NONE), |
| 349 | UNIPHIER_PINCTRL_PIN(108, "SDA2", UNIPHIER_PIN_IECTRL_EXIST, |
| 350 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 351 | -1, UNIPHIER_PIN_PULL_NONE), |
| 352 | UNIPHIER_PINCTRL_PIN(109, "SCL2", UNIPHIER_PIN_IECTRL_EXIST, |
| 353 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 354 | -1, UNIPHIER_PIN_PULL_NONE), |
| 355 | UNIPHIER_PINCTRL_PIN(110, "SDA3", UNIPHIER_PIN_IECTRL_EXIST, |
| 356 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 357 | -1, UNIPHIER_PIN_PULL_NONE), |
| 358 | UNIPHIER_PINCTRL_PIN(111, "SCL3", UNIPHIER_PIN_IECTRL_EXIST, |
| 359 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 360 | -1, UNIPHIER_PIN_PULL_NONE), |
| 361 | UNIPHIER_PINCTRL_PIN(112, "SMTRST0", UNIPHIER_PIN_IECTRL_EXIST, |
| 362 | 54, UNIPHIER_PIN_DRV_3BIT, |
| 363 | 112, UNIPHIER_PIN_PULL_DOWN), |
| 364 | UNIPHIER_PINCTRL_PIN(113, "SMTCMD0", UNIPHIER_PIN_IECTRL_EXIST, |
| 365 | 55, UNIPHIER_PIN_DRV_3BIT, |
| 366 | 113, UNIPHIER_PIN_PULL_DOWN), |
| 367 | UNIPHIER_PINCTRL_PIN(114, "SMTD0", UNIPHIER_PIN_IECTRL_EXIST, |
| 368 | 56, UNIPHIER_PIN_DRV_3BIT, |
| 369 | 114, UNIPHIER_PIN_PULL_DOWN), |
| 370 | UNIPHIER_PINCTRL_PIN(115, "SMTSEL0", UNIPHIER_PIN_IECTRL_EXIST, |
| 371 | 57, UNIPHIER_PIN_DRV_3BIT, |
| 372 | 115, UNIPHIER_PIN_PULL_DOWN), |
| 373 | UNIPHIER_PINCTRL_PIN(116, "SMTCLK0CG", UNIPHIER_PIN_IECTRL_EXIST, |
| 374 | 58, UNIPHIER_PIN_DRV_3BIT, |
| 375 | 116, UNIPHIER_PIN_PULL_DOWN), |
| 376 | UNIPHIER_PINCTRL_PIN(117, "SMTDET0", UNIPHIER_PIN_IECTRL_EXIST, |
| 377 | 59, UNIPHIER_PIN_DRV_3BIT, |
| 378 | 117, UNIPHIER_PIN_PULL_DOWN), |
| 379 | UNIPHIER_PINCTRL_PIN(118, "SMTRST1", UNIPHIER_PIN_IECTRL_EXIST, |
| 380 | 60, UNIPHIER_PIN_DRV_3BIT, |
| 381 | 118, UNIPHIER_PIN_PULL_DOWN), |
| 382 | UNIPHIER_PINCTRL_PIN(119, "SMTCMD1", UNIPHIER_PIN_IECTRL_EXIST, |
| 383 | 61, UNIPHIER_PIN_DRV_3BIT, |
| 384 | 119, UNIPHIER_PIN_PULL_DOWN), |
| 385 | UNIPHIER_PINCTRL_PIN(120, "SMTD1", UNIPHIER_PIN_IECTRL_EXIST, |
| 386 | 62, UNIPHIER_PIN_DRV_3BIT, |
| 387 | 120, UNIPHIER_PIN_PULL_DOWN), |
| 388 | UNIPHIER_PINCTRL_PIN(121, "SMTSEL1", UNIPHIER_PIN_IECTRL_EXIST, |
| 389 | 63, UNIPHIER_PIN_DRV_3BIT, |
| 390 | 121, UNIPHIER_PIN_PULL_DOWN), |
| 391 | UNIPHIER_PINCTRL_PIN(122, "SMTCLK1CG", UNIPHIER_PIN_IECTRL_EXIST, |
| 392 | 64, UNIPHIER_PIN_DRV_3BIT, |
| 393 | 122, UNIPHIER_PIN_PULL_DOWN), |
| 394 | UNIPHIER_PINCTRL_PIN(123, "SMTDET1", UNIPHIER_PIN_IECTRL_EXIST, |
| 395 | 65, UNIPHIER_PIN_DRV_3BIT, |
| 396 | 123, UNIPHIER_PIN_PULL_DOWN), |
| 397 | UNIPHIER_PINCTRL_PIN(124, "SMTRST2", UNIPHIER_PIN_IECTRL_EXIST, |
| 398 | 66, UNIPHIER_PIN_DRV_3BIT, |
| 399 | 124, UNIPHIER_PIN_PULL_DOWN), |
| 400 | UNIPHIER_PINCTRL_PIN(125, "SMTCMD2", UNIPHIER_PIN_IECTRL_EXIST, |
| 401 | 67, UNIPHIER_PIN_DRV_3BIT, |
| 402 | 125, UNIPHIER_PIN_PULL_DOWN), |
| 403 | UNIPHIER_PINCTRL_PIN(126, "SMTD2", UNIPHIER_PIN_IECTRL_EXIST, |
| 404 | 68, UNIPHIER_PIN_DRV_3BIT, |
| 405 | 126, UNIPHIER_PIN_PULL_DOWN), |
| 406 | UNIPHIER_PINCTRL_PIN(127, "SMTSEL2", UNIPHIER_PIN_IECTRL_EXIST, |
| 407 | 69, UNIPHIER_PIN_DRV_3BIT, |
| 408 | 127, UNIPHIER_PIN_PULL_DOWN), |
| 409 | UNIPHIER_PINCTRL_PIN(128, "SMTCLK2CG", UNIPHIER_PIN_IECTRL_EXIST, |
| 410 | 70, UNIPHIER_PIN_DRV_3BIT, |
| 411 | 128, UNIPHIER_PIN_PULL_DOWN), |
| 412 | UNIPHIER_PINCTRL_PIN(129, "SMTDET2", UNIPHIER_PIN_IECTRL_EXIST, |
| 413 | 71, UNIPHIER_PIN_DRV_3BIT, |
| 414 | 129, UNIPHIER_PIN_PULL_DOWN), |
| 415 | UNIPHIER_PINCTRL_PIN(130, "CH0CLK", UNIPHIER_PIN_IECTRL_EXIST, |
| 416 | 72, UNIPHIER_PIN_DRV_3BIT, |
| 417 | 130, UNIPHIER_PIN_PULL_DOWN), |
| 418 | UNIPHIER_PINCTRL_PIN(131, "CH0PSYNC", UNIPHIER_PIN_IECTRL_EXIST, |
| 419 | 73, UNIPHIER_PIN_DRV_3BIT, |
| 420 | 131, UNIPHIER_PIN_PULL_DOWN), |
| 421 | UNIPHIER_PINCTRL_PIN(132, "CH0VAL", UNIPHIER_PIN_IECTRL_EXIST, |
| 422 | 74, UNIPHIER_PIN_DRV_3BIT, |
| 423 | 132, UNIPHIER_PIN_PULL_DOWN), |
| 424 | UNIPHIER_PINCTRL_PIN(133, "CH0DATA", UNIPHIER_PIN_IECTRL_EXIST, |
| 425 | 75, UNIPHIER_PIN_DRV_3BIT, |
| 426 | 133, UNIPHIER_PIN_PULL_DOWN), |
| 427 | UNIPHIER_PINCTRL_PIN(134, "CH1CLK", UNIPHIER_PIN_IECTRL_EXIST, |
| 428 | 76, UNIPHIER_PIN_DRV_3BIT, |
| 429 | 134, UNIPHIER_PIN_PULL_DOWN), |
| 430 | UNIPHIER_PINCTRL_PIN(135, "CH1PSYNC", UNIPHIER_PIN_IECTRL_EXIST, |
| 431 | 77, UNIPHIER_PIN_DRV_3BIT, |
| 432 | 135, UNIPHIER_PIN_PULL_DOWN), |
| 433 | UNIPHIER_PINCTRL_PIN(136, "CH1VAL", UNIPHIER_PIN_IECTRL_EXIST, |
| 434 | 78, UNIPHIER_PIN_DRV_3BIT, |
| 435 | 136, UNIPHIER_PIN_PULL_DOWN), |
| 436 | UNIPHIER_PINCTRL_PIN(137, "CH1DATA", UNIPHIER_PIN_IECTRL_EXIST, |
| 437 | 79, UNIPHIER_PIN_DRV_3BIT, |
| 438 | 137, UNIPHIER_PIN_PULL_DOWN), |
| 439 | UNIPHIER_PINCTRL_PIN(138, "CH2CLK", UNIPHIER_PIN_IECTRL_EXIST, |
| 440 | 80, UNIPHIER_PIN_DRV_3BIT, |
| 441 | 138, UNIPHIER_PIN_PULL_DOWN), |
| 442 | UNIPHIER_PINCTRL_PIN(139, "CH2PSYNC", UNIPHIER_PIN_IECTRL_EXIST, |
| 443 | 81, UNIPHIER_PIN_DRV_3BIT, |
| 444 | 139, UNIPHIER_PIN_PULL_DOWN), |
| 445 | UNIPHIER_PINCTRL_PIN(140, "CH2VAL", UNIPHIER_PIN_IECTRL_EXIST, |
| 446 | 82, UNIPHIER_PIN_DRV_3BIT, |
| 447 | 140, UNIPHIER_PIN_PULL_DOWN), |
| 448 | UNIPHIER_PINCTRL_PIN(141, "CH2DATA", UNIPHIER_PIN_IECTRL_EXIST, |
| 449 | 83, UNIPHIER_PIN_DRV_3BIT, |
| 450 | 141, UNIPHIER_PIN_PULL_DOWN), |
| 451 | UNIPHIER_PINCTRL_PIN(142, "HS0BCLKIN", UNIPHIER_PIN_IECTRL_EXIST, |
| 452 | 84, UNIPHIER_PIN_DRV_3BIT, |
| 453 | 142, UNIPHIER_PIN_PULL_DOWN), |
| 454 | UNIPHIER_PINCTRL_PIN(143, "HS0SYNCIN", UNIPHIER_PIN_IECTRL_EXIST, |
| 455 | 85, UNIPHIER_PIN_DRV_3BIT, |
| 456 | 143, UNIPHIER_PIN_PULL_DOWN), |
| 457 | UNIPHIER_PINCTRL_PIN(144, "HS0VALIN", UNIPHIER_PIN_IECTRL_EXIST, |
| 458 | 86, UNIPHIER_PIN_DRV_3BIT, |
| 459 | 144, UNIPHIER_PIN_PULL_DOWN), |
| 460 | UNIPHIER_PINCTRL_PIN(145, "HS0DIN0", UNIPHIER_PIN_IECTRL_EXIST, |
| 461 | 87, UNIPHIER_PIN_DRV_3BIT, |
| 462 | 145, UNIPHIER_PIN_PULL_DOWN), |
| 463 | UNIPHIER_PINCTRL_PIN(146, "HS0DIN1", UNIPHIER_PIN_IECTRL_EXIST, |
| 464 | 88, UNIPHIER_PIN_DRV_3BIT, |
| 465 | 146, UNIPHIER_PIN_PULL_DOWN), |
| 466 | UNIPHIER_PINCTRL_PIN(147, "HS0DIN2", UNIPHIER_PIN_IECTRL_EXIST, |
| 467 | 89, UNIPHIER_PIN_DRV_3BIT, |
| 468 | 147, UNIPHIER_PIN_PULL_DOWN), |
| 469 | UNIPHIER_PINCTRL_PIN(148, "HS0DIN3", UNIPHIER_PIN_IECTRL_EXIST, |
| 470 | 90, UNIPHIER_PIN_DRV_3BIT, |
| 471 | 148, UNIPHIER_PIN_PULL_DOWN), |
| 472 | UNIPHIER_PINCTRL_PIN(149, "HS0DIN4", UNIPHIER_PIN_IECTRL_EXIST, |
| 473 | 91, UNIPHIER_PIN_DRV_3BIT, |
| 474 | 149, UNIPHIER_PIN_PULL_DOWN), |
| 475 | UNIPHIER_PINCTRL_PIN(150, "HS0DIN5", UNIPHIER_PIN_IECTRL_EXIST, |
| 476 | 92, UNIPHIER_PIN_DRV_3BIT, |
| 477 | 150, UNIPHIER_PIN_PULL_DOWN), |
| 478 | UNIPHIER_PINCTRL_PIN(151, "HS0DIN6", UNIPHIER_PIN_IECTRL_EXIST, |
| 479 | 93, UNIPHIER_PIN_DRV_3BIT, |
| 480 | 151, UNIPHIER_PIN_PULL_DOWN), |
| 481 | UNIPHIER_PINCTRL_PIN(152, "HS0DIN7", UNIPHIER_PIN_IECTRL_EXIST, |
| 482 | 94, UNIPHIER_PIN_DRV_3BIT, |
| 483 | 152, UNIPHIER_PIN_PULL_DOWN), |
| 484 | UNIPHIER_PINCTRL_PIN(153, "HS1BCLKIN", UNIPHIER_PIN_IECTRL_EXIST, |
| 485 | 95, UNIPHIER_PIN_DRV_3BIT, |
| 486 | 153, UNIPHIER_PIN_PULL_DOWN), |
| 487 | UNIPHIER_PINCTRL_PIN(154, "HS1SYNCIN", UNIPHIER_PIN_IECTRL_EXIST, |
| 488 | 96, UNIPHIER_PIN_DRV_3BIT, |
| 489 | 154, UNIPHIER_PIN_PULL_DOWN), |
| 490 | UNIPHIER_PINCTRL_PIN(155, "HS1VALIN", UNIPHIER_PIN_IECTRL_EXIST, |
| 491 | 97, UNIPHIER_PIN_DRV_3BIT, |
| 492 | 155, UNIPHIER_PIN_PULL_DOWN), |
| 493 | UNIPHIER_PINCTRL_PIN(156, "HS1DIN0", UNIPHIER_PIN_IECTRL_EXIST, |
| 494 | 98, UNIPHIER_PIN_DRV_3BIT, |
| 495 | 156, UNIPHIER_PIN_PULL_DOWN), |
| 496 | UNIPHIER_PINCTRL_PIN(157, "HS1DIN1", UNIPHIER_PIN_IECTRL_EXIST, |
| 497 | 99, UNIPHIER_PIN_DRV_3BIT, |
| 498 | 157, UNIPHIER_PIN_PULL_DOWN), |
| 499 | UNIPHIER_PINCTRL_PIN(158, "HS1DIN2", UNIPHIER_PIN_IECTRL_EXIST, |
| 500 | 100, UNIPHIER_PIN_DRV_3BIT, |
| 501 | 158, UNIPHIER_PIN_PULL_DOWN), |
| 502 | UNIPHIER_PINCTRL_PIN(159, "HS1DIN3", UNIPHIER_PIN_IECTRL_EXIST, |
| 503 | 101, UNIPHIER_PIN_DRV_3BIT, |
| 504 | 159, UNIPHIER_PIN_PULL_DOWN), |
| 505 | UNIPHIER_PINCTRL_PIN(160, "HS1DIN4", UNIPHIER_PIN_IECTRL_EXIST, |
| 506 | 102, UNIPHIER_PIN_DRV_3BIT, |
| 507 | 160, UNIPHIER_PIN_PULL_DOWN), |
| 508 | UNIPHIER_PINCTRL_PIN(161, "HS1DIN5", UNIPHIER_PIN_IECTRL_EXIST, |
| 509 | 103, UNIPHIER_PIN_DRV_3BIT, |
| 510 | 161, UNIPHIER_PIN_PULL_DOWN), |
| 511 | UNIPHIER_PINCTRL_PIN(162, "HS1DIN6", UNIPHIER_PIN_IECTRL_EXIST, |
| 512 | 104, UNIPHIER_PIN_DRV_3BIT, |
| 513 | 162, UNIPHIER_PIN_PULL_DOWN), |
| 514 | UNIPHIER_PINCTRL_PIN(163, "HS1DIN7", UNIPHIER_PIN_IECTRL_EXIST, |
| 515 | 105, UNIPHIER_PIN_DRV_3BIT, |
| 516 | 163, UNIPHIER_PIN_PULL_DOWN), |
| 517 | UNIPHIER_PINCTRL_PIN(164, "LINKCLK", UNIPHIER_PIN_IECTRL_EXIST, |
| 518 | 106, UNIPHIER_PIN_DRV_3BIT, |
| 519 | 164, UNIPHIER_PIN_PULL_DOWN), |
| 520 | UNIPHIER_PINCTRL_PIN(165, "LINKREQ", UNIPHIER_PIN_IECTRL_EXIST, |
| 521 | 107, UNIPHIER_PIN_DRV_3BIT, |
| 522 | 165, UNIPHIER_PIN_PULL_DOWN), |
| 523 | UNIPHIER_PINCTRL_PIN(166, "LINKCTL0", UNIPHIER_PIN_IECTRL_EXIST, |
| 524 | 108, UNIPHIER_PIN_DRV_3BIT, |
| 525 | 166, UNIPHIER_PIN_PULL_DOWN), |
| 526 | UNIPHIER_PINCTRL_PIN(167, "LINKCTL1", UNIPHIER_PIN_IECTRL_EXIST, |
| 527 | 109, UNIPHIER_PIN_DRV_3BIT, |
| 528 | 167, UNIPHIER_PIN_PULL_DOWN), |
| 529 | UNIPHIER_PINCTRL_PIN(168, "LINKDT0", UNIPHIER_PIN_IECTRL_EXIST, |
| 530 | 110, UNIPHIER_PIN_DRV_3BIT, |
| 531 | 168, UNIPHIER_PIN_PULL_DOWN), |
| 532 | UNIPHIER_PINCTRL_PIN(169, "LINKDT1", UNIPHIER_PIN_IECTRL_EXIST, |
| 533 | 111, UNIPHIER_PIN_DRV_3BIT, |
| 534 | 169, UNIPHIER_PIN_PULL_DOWN), |
| 535 | UNIPHIER_PINCTRL_PIN(170, "LINKDT2", UNIPHIER_PIN_IECTRL_EXIST, |
| 536 | 112, UNIPHIER_PIN_DRV_3BIT, |
| 537 | 170, UNIPHIER_PIN_PULL_DOWN), |
| 538 | UNIPHIER_PINCTRL_PIN(171, "LINKDT3", UNIPHIER_PIN_IECTRL_EXIST, |
| 539 | 113, UNIPHIER_PIN_DRV_3BIT, |
| 540 | 171, UNIPHIER_PIN_PULL_DOWN), |
| 541 | UNIPHIER_PINCTRL_PIN(172, "LINKDT4", UNIPHIER_PIN_IECTRL_EXIST, |
| 542 | 114, UNIPHIER_PIN_DRV_3BIT, |
| 543 | 172, UNIPHIER_PIN_PULL_DOWN), |
| 544 | UNIPHIER_PINCTRL_PIN(173, "LINKDT5", UNIPHIER_PIN_IECTRL_EXIST, |
| 545 | 115, UNIPHIER_PIN_DRV_3BIT, |
| 546 | 173, UNIPHIER_PIN_PULL_DOWN), |
| 547 | UNIPHIER_PINCTRL_PIN(174, "LINKDT6", UNIPHIER_PIN_IECTRL_EXIST, |
| 548 | 116, UNIPHIER_PIN_DRV_3BIT, |
| 549 | 174, UNIPHIER_PIN_PULL_DOWN), |
| 550 | UNIPHIER_PINCTRL_PIN(175, "LINKDT7", UNIPHIER_PIN_IECTRL_EXIST, |
| 551 | 117, UNIPHIER_PIN_DRV_3BIT, |
| 552 | 175, UNIPHIER_PIN_PULL_DOWN), |
| 553 | UNIPHIER_PINCTRL_PIN(176, "H0RXDDCSDA", UNIPHIER_PIN_IECTRL_EXIST, |
| 554 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 555 | -1, UNIPHIER_PIN_PULL_NONE), |
| 556 | UNIPHIER_PINCTRL_PIN(177, "H0RXDDCSCL", UNIPHIER_PIN_IECTRL_EXIST, |
| 557 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 558 | -1, UNIPHIER_PIN_PULL_NONE), |
| 559 | UNIPHIER_PINCTRL_PIN(178, "H0RXHPDO", UNIPHIER_PIN_IECTRL_EXIST, |
| 560 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 561 | -1, UNIPHIER_PIN_PULL_NONE), |
| 562 | UNIPHIER_PINCTRL_PIN(179, "H0RX5VDETI", UNIPHIER_PIN_IECTRL_EXIST, |
| 563 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 564 | -1, UNIPHIER_PIN_PULL_NONE), |
| 565 | UNIPHIER_PINCTRL_PIN(180, "H0TXDDCSDA", UNIPHIER_PIN_IECTRL_EXIST, |
| 566 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 567 | -1, UNIPHIER_PIN_PULL_NONE), |
| 568 | UNIPHIER_PINCTRL_PIN(181, "H0TXDDCSCL", UNIPHIER_PIN_IECTRL_EXIST, |
| 569 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 570 | -1, UNIPHIER_PIN_PULL_NONE), |
| 571 | UNIPHIER_PINCTRL_PIN(182, "H0TXHPDI", UNIPHIER_PIN_IECTRL_EXIST, |
| 572 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 573 | -1, UNIPHIER_PIN_PULL_NONE), |
| 574 | UNIPHIER_PINCTRL_PIN(183, "H1TXDDCSDA", UNIPHIER_PIN_IECTRL_EXIST, |
| 575 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 576 | -1, UNIPHIER_PIN_PULL_NONE), |
| 577 | UNIPHIER_PINCTRL_PIN(184, "H1TXDDCSCL", UNIPHIER_PIN_IECTRL_EXIST, |
| 578 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 579 | -1, UNIPHIER_PIN_PULL_NONE), |
| 580 | UNIPHIER_PINCTRL_PIN(185, "H1TXHPDI", UNIPHIER_PIN_IECTRL_EXIST, |
| 581 | -1, UNIPHIER_PIN_DRV_FIXED4, |
| 582 | -1, UNIPHIER_PIN_PULL_NONE), |
| 583 | UNIPHIER_PINCTRL_PIN(186, "AI1ADCCK", UNIPHIER_PIN_IECTRL_EXIST, |
| 584 | 118, UNIPHIER_PIN_DRV_3BIT, |
| 585 | 186, UNIPHIER_PIN_PULL_DOWN), |
| 586 | UNIPHIER_PINCTRL_PIN(187, "AI1BCK", UNIPHIER_PIN_IECTRL_EXIST, |
| 587 | 119, UNIPHIER_PIN_DRV_3BIT, |
| 588 | 187, UNIPHIER_PIN_PULL_DOWN), |
| 589 | UNIPHIER_PINCTRL_PIN(188, "AI1LRCK", UNIPHIER_PIN_IECTRL_EXIST, |
| 590 | 120, UNIPHIER_PIN_DRV_3BIT, |
| 591 | 188, UNIPHIER_PIN_PULL_DOWN), |
| 592 | UNIPHIER_PINCTRL_PIN(189, "AI1D0", UNIPHIER_PIN_IECTRL_EXIST, |
| 593 | 121, UNIPHIER_PIN_DRV_3BIT, |
| 594 | 189, UNIPHIER_PIN_PULL_DOWN), |
| 595 | UNIPHIER_PINCTRL_PIN(190, "AO1IEC", UNIPHIER_PIN_IECTRL_EXIST, |
| 596 | 122, UNIPHIER_PIN_DRV_3BIT, |
| 597 | 190, UNIPHIER_PIN_PULL_DOWN), |
| 598 | UNIPHIER_PINCTRL_PIN(191, "AO2IEC", UNIPHIER_PIN_IECTRL_EXIST, |
| 599 | 123, UNIPHIER_PIN_DRV_3BIT, |
| 600 | 191, UNIPHIER_PIN_PULL_DOWN), |
| 601 | UNIPHIER_PINCTRL_PIN(192, "AO2DACCK", UNIPHIER_PIN_IECTRL_EXIST, |
| 602 | 124, UNIPHIER_PIN_DRV_3BIT, |
| 603 | 192, UNIPHIER_PIN_PULL_DOWN), |
| 604 | UNIPHIER_PINCTRL_PIN(193, "AO2BCK", UNIPHIER_PIN_IECTRL_EXIST, |
| 605 | 125, UNIPHIER_PIN_DRV_3BIT, |
| 606 | 193, UNIPHIER_PIN_PULL_DOWN), |
| 607 | UNIPHIER_PINCTRL_PIN(194, "AO2LRCK", UNIPHIER_PIN_IECTRL_EXIST, |
| 608 | 126, UNIPHIER_PIN_DRV_3BIT, |
| 609 | 194, UNIPHIER_PIN_PULL_DOWN), |
| 610 | UNIPHIER_PINCTRL_PIN(195, "AO2D0", UNIPHIER_PIN_IECTRL_EXIST, |
| 611 | 127, UNIPHIER_PIN_DRV_3BIT, |
| 612 | 195, UNIPHIER_PIN_PULL_DOWN), |
| 613 | UNIPHIER_PINCTRL_PIN(196, "AO2D1", UNIPHIER_PIN_IECTRL_EXIST, |
| 614 | 128, UNIPHIER_PIN_DRV_3BIT, |
| 615 | 196, UNIPHIER_PIN_PULL_DOWN), |
| 616 | UNIPHIER_PINCTRL_PIN(197, "AO2D2", UNIPHIER_PIN_IECTRL_EXIST, |
| 617 | 129, UNIPHIER_PIN_DRV_3BIT, |
| 618 | 197, UNIPHIER_PIN_PULL_DOWN), |
| 619 | UNIPHIER_PINCTRL_PIN(198, "AO2D3", UNIPHIER_PIN_IECTRL_EXIST, |
| 620 | 130, UNIPHIER_PIN_DRV_3BIT, |
| 621 | 198, UNIPHIER_PIN_PULL_DOWN), |
| 622 | UNIPHIER_PINCTRL_PIN(199, "AO3DACCK", UNIPHIER_PIN_IECTRL_EXIST, |
| 623 | 131, UNIPHIER_PIN_DRV_3BIT, |
| 624 | 199, UNIPHIER_PIN_PULL_DOWN), |
| 625 | UNIPHIER_PINCTRL_PIN(200, "AO3BCK", UNIPHIER_PIN_IECTRL_EXIST, |
| 626 | 132, UNIPHIER_PIN_DRV_3BIT, |
| 627 | 200, UNIPHIER_PIN_PULL_DOWN), |
| 628 | UNIPHIER_PINCTRL_PIN(201, "AO3LRCK", UNIPHIER_PIN_IECTRL_EXIST, |
| 629 | 133, UNIPHIER_PIN_DRV_3BIT, |
| 630 | 201, UNIPHIER_PIN_PULL_DOWN), |
| 631 | UNIPHIER_PINCTRL_PIN(202, "AO3D0", UNIPHIER_PIN_IECTRL_EXIST, |
| 632 | 134, UNIPHIER_PIN_DRV_3BIT, |
| 633 | 202, UNIPHIER_PIN_PULL_DOWN), |
| 634 | UNIPHIER_PINCTRL_PIN(203, "VI1CLK", UNIPHIER_PIN_IECTRL_EXIST, |
| 635 | 135, UNIPHIER_PIN_DRV_3BIT, |
| 636 | 203, UNIPHIER_PIN_PULL_DOWN), |
| 637 | UNIPHIER_PINCTRL_PIN(204, "VI1G2", UNIPHIER_PIN_IECTRL_EXIST, |
| 638 | 136, UNIPHIER_PIN_DRV_3BIT, |
| 639 | 204, UNIPHIER_PIN_PULL_DOWN), |
| 640 | UNIPHIER_PINCTRL_PIN(205, "VI1G3", UNIPHIER_PIN_IECTRL_EXIST, |
| 641 | 137, UNIPHIER_PIN_DRV_3BIT, |
| 642 | 205, UNIPHIER_PIN_PULL_DOWN), |
| 643 | UNIPHIER_PINCTRL_PIN(206, "VI1G4", UNIPHIER_PIN_IECTRL_EXIST, |
| 644 | 138, UNIPHIER_PIN_DRV_3BIT, |
| 645 | 206, UNIPHIER_PIN_PULL_DOWN), |
| 646 | UNIPHIER_PINCTRL_PIN(207, "VI1G5", UNIPHIER_PIN_IECTRL_EXIST, |
| 647 | 139, UNIPHIER_PIN_DRV_3BIT, |
| 648 | 207, UNIPHIER_PIN_PULL_DOWN), |
| 649 | UNIPHIER_PINCTRL_PIN(208, "VI1G6", UNIPHIER_PIN_IECTRL_EXIST, |
| 650 | 140, UNIPHIER_PIN_DRV_3BIT, |
| 651 | 208, UNIPHIER_PIN_PULL_DOWN), |
| 652 | UNIPHIER_PINCTRL_PIN(209, "VI1G7", UNIPHIER_PIN_IECTRL_EXIST, |
| 653 | 141, UNIPHIER_PIN_DRV_3BIT, |
| 654 | 209, UNIPHIER_PIN_PULL_DOWN), |
| 655 | UNIPHIER_PINCTRL_PIN(210, "VI1G8", UNIPHIER_PIN_IECTRL_EXIST, |
| 656 | 142, UNIPHIER_PIN_DRV_3BIT, |
| 657 | 210, UNIPHIER_PIN_PULL_DOWN), |
| 658 | UNIPHIER_PINCTRL_PIN(211, "VI1G9", UNIPHIER_PIN_IECTRL_EXIST, |
| 659 | 143, UNIPHIER_PIN_DRV_3BIT, |
| 660 | 211, UNIPHIER_PIN_PULL_DOWN), |
| 661 | UNIPHIER_PINCTRL_PIN(212, "FANPWM", UNIPHIER_PIN_IECTRL_EXIST, |
| 662 | 144, UNIPHIER_PIN_DRV_3BIT, |
| 663 | 212, UNIPHIER_PIN_PULL_DOWN), |
| 664 | UNIPHIER_PINCTRL_PIN(213, "CK27EXO", UNIPHIER_PIN_IECTRL_EXIST, |
| 665 | 145, UNIPHIER_PIN_DRV_3BIT, |
| 666 | 213, UNIPHIER_PIN_PULL_DOWN), |
| 667 | UNIPHIER_PINCTRL_PIN(214, "CK27AO", UNIPHIER_PIN_IECTRL_EXIST, |
| 668 | 146, UNIPHIER_PIN_DRV_3BIT, |
| 669 | 214, UNIPHIER_PIN_PULL_DOWN), |
| 670 | UNIPHIER_PINCTRL_PIN(215, "CK27EXI", UNIPHIER_PIN_IECTRL_EXIST, |
| 671 | 147, UNIPHIER_PIN_DRV_3BIT, |
| 672 | 215, UNIPHIER_PIN_PULL_DOWN), |
| 673 | UNIPHIER_PINCTRL_PIN(216, "VEXCKA", UNIPHIER_PIN_IECTRL_EXIST, |
| 674 | 148, UNIPHIER_PIN_DRV_3BIT, |
| 675 | 216, UNIPHIER_PIN_PULL_DOWN), |
| 676 | UNIPHIER_PINCTRL_PIN(217, "AEXCKA", UNIPHIER_PIN_IECTRL_EXIST, |
| 677 | 149, UNIPHIER_PIN_DRV_3BIT, |
| 678 | 217, UNIPHIER_PIN_PULL_DOWN), |
| 679 | UNIPHIER_PINCTRL_PIN(218, "ASEL", UNIPHIER_PIN_IECTRL_EXIST, |
| 680 | 150, UNIPHIER_PIN_DRV_3BIT, |
| 681 | 218, UNIPHIER_PIN_PULL_DOWN), |
| 682 | UNIPHIER_PINCTRL_PIN(219, "XIRQ0", UNIPHIER_PIN_IECTRL_EXIST, |
| 683 | 151, UNIPHIER_PIN_DRV_3BIT, |
| 684 | 219, UNIPHIER_PIN_PULL_DOWN), |
| 685 | UNIPHIER_PINCTRL_PIN(220, "XIRQ1", UNIPHIER_PIN_IECTRL_EXIST, |
| 686 | 152, UNIPHIER_PIN_DRV_3BIT, |
| 687 | 220, UNIPHIER_PIN_PULL_DOWN), |
| 688 | UNIPHIER_PINCTRL_PIN(221, "XIRQ2", UNIPHIER_PIN_IECTRL_EXIST, |
| 689 | 153, UNIPHIER_PIN_DRV_3BIT, |
| 690 | 221, UNIPHIER_PIN_PULL_DOWN), |
| 691 | UNIPHIER_PINCTRL_PIN(222, "XIRQ3", UNIPHIER_PIN_IECTRL_EXIST, |
| 692 | 154, UNIPHIER_PIN_DRV_3BIT, |
| 693 | 222, UNIPHIER_PIN_PULL_DOWN), |
| 694 | UNIPHIER_PINCTRL_PIN(223, "XIRQ4", UNIPHIER_PIN_IECTRL_EXIST, |
| 695 | 155, UNIPHIER_PIN_DRV_3BIT, |
| 696 | 223, UNIPHIER_PIN_PULL_DOWN), |
| 697 | UNIPHIER_PINCTRL_PIN(224, "XIRQ5", UNIPHIER_PIN_IECTRL_EXIST, |
| 698 | 156, UNIPHIER_PIN_DRV_3BIT, |
| 699 | 224, UNIPHIER_PIN_PULL_DOWN), |
| 700 | UNIPHIER_PINCTRL_PIN(225, "XIRQ6", UNIPHIER_PIN_IECTRL_EXIST, |
| 701 | 157, UNIPHIER_PIN_DRV_3BIT, |
| 702 | 225, UNIPHIER_PIN_PULL_DOWN), |
| 703 | UNIPHIER_PINCTRL_PIN(226, "XIRQ7", UNIPHIER_PIN_IECTRL_EXIST, |
| 704 | 158, UNIPHIER_PIN_DRV_3BIT, |
| 705 | 226, UNIPHIER_PIN_PULL_DOWN), |
| 706 | UNIPHIER_PINCTRL_PIN(227, "XIRQ8", UNIPHIER_PIN_IECTRL_EXIST, |
| 707 | 159, UNIPHIER_PIN_DRV_3BIT, |
| 708 | 227, UNIPHIER_PIN_PULL_DOWN), |
| 709 | UNIPHIER_PINCTRL_PIN(228, "XIRQ9", UNIPHIER_PIN_IECTRL_EXIST, |
| 710 | 160, UNIPHIER_PIN_DRV_3BIT, |
| 711 | 228, UNIPHIER_PIN_PULL_DOWN), |
| 712 | UNIPHIER_PINCTRL_PIN(229, "XIRQ10", UNIPHIER_PIN_IECTRL_EXIST, |
| 713 | 161, UNIPHIER_PIN_DRV_3BIT, |
| 714 | 229, UNIPHIER_PIN_PULL_DOWN), |
| 715 | UNIPHIER_PINCTRL_PIN(230, "XIRQ11", UNIPHIER_PIN_IECTRL_EXIST, |
| 716 | 162, UNIPHIER_PIN_DRV_3BIT, |
| 717 | 230, UNIPHIER_PIN_PULL_DOWN), |
| 718 | UNIPHIER_PINCTRL_PIN(231, "XIRQ12", UNIPHIER_PIN_IECTRL_EXIST, |
| 719 | 163, UNIPHIER_PIN_DRV_3BIT, |
| 720 | 231, UNIPHIER_PIN_PULL_DOWN), |
| 721 | UNIPHIER_PINCTRL_PIN(232, "XIRQ13", UNIPHIER_PIN_IECTRL_EXIST, |
| 722 | 164, UNIPHIER_PIN_DRV_3BIT, |
| 723 | 232, UNIPHIER_PIN_PULL_DOWN), |
| 724 | UNIPHIER_PINCTRL_PIN(233, "XIRQ14", UNIPHIER_PIN_IECTRL_EXIST, |
| 725 | 165, UNIPHIER_PIN_DRV_3BIT, |
| 726 | 233, UNIPHIER_PIN_PULL_DOWN), |
| 727 | UNIPHIER_PINCTRL_PIN(234, "XIRQ15", UNIPHIER_PIN_IECTRL_EXIST, |
| 728 | 166, UNIPHIER_PIN_DRV_3BIT, |
| 729 | 234, UNIPHIER_PIN_PULL_DOWN), |
| 730 | UNIPHIER_PINCTRL_PIN(235, "PORT00", UNIPHIER_PIN_IECTRL_EXIST, |
| 731 | 167, UNIPHIER_PIN_DRV_3BIT, |
| 732 | 235, UNIPHIER_PIN_PULL_DOWN), |
| 733 | UNIPHIER_PINCTRL_PIN(236, "PORT01", UNIPHIER_PIN_IECTRL_EXIST, |
| 734 | 168, UNIPHIER_PIN_DRV_3BIT, |
| 735 | 236, UNIPHIER_PIN_PULL_DOWN), |
| 736 | UNIPHIER_PINCTRL_PIN(237, "PORT02", UNIPHIER_PIN_IECTRL_EXIST, |
| 737 | 169, UNIPHIER_PIN_DRV_3BIT, |
| 738 | 237, UNIPHIER_PIN_PULL_DOWN), |
| 739 | UNIPHIER_PINCTRL_PIN(238, "PORT03", UNIPHIER_PIN_IECTRL_EXIST, |
| 740 | 170, UNIPHIER_PIN_DRV_3BIT, |
| 741 | 238, UNIPHIER_PIN_PULL_DOWN), |
| 742 | UNIPHIER_PINCTRL_PIN(239, "PORT04", UNIPHIER_PIN_IECTRL_EXIST, |
| 743 | 171, UNIPHIER_PIN_DRV_3BIT, |
| 744 | 239, UNIPHIER_PIN_PULL_DOWN), |
| 745 | UNIPHIER_PINCTRL_PIN(240, "PORT05", UNIPHIER_PIN_IECTRL_EXIST, |
| 746 | 172, UNIPHIER_PIN_DRV_3BIT, |
| 747 | 240, UNIPHIER_PIN_PULL_DOWN), |
| 748 | UNIPHIER_PINCTRL_PIN(241, "PORT06", UNIPHIER_PIN_IECTRL_EXIST, |
| 749 | 173, UNIPHIER_PIN_DRV_3BIT, |
| 750 | 241, UNIPHIER_PIN_PULL_DOWN), |
| 751 | UNIPHIER_PINCTRL_PIN(242, "PORT07", UNIPHIER_PIN_IECTRL_EXIST, |
| 752 | 174, UNIPHIER_PIN_DRV_3BIT, |
| 753 | 242, UNIPHIER_PIN_PULL_DOWN), |
| 754 | UNIPHIER_PINCTRL_PIN(243, "PORT10", UNIPHIER_PIN_IECTRL_EXIST, |
| 755 | 175, UNIPHIER_PIN_DRV_3BIT, |
| 756 | 243, UNIPHIER_PIN_PULL_DOWN), |
| 757 | UNIPHIER_PINCTRL_PIN(244, "PORT11", UNIPHIER_PIN_IECTRL_EXIST, |
| 758 | 176, UNIPHIER_PIN_DRV_3BIT, |
| 759 | 244, UNIPHIER_PIN_PULL_DOWN), |
| 760 | UNIPHIER_PINCTRL_PIN(245, "PORT12", UNIPHIER_PIN_IECTRL_EXIST, |
| 761 | 177, UNIPHIER_PIN_DRV_3BIT, |
| 762 | 245, UNIPHIER_PIN_PULL_DOWN), |
| 763 | UNIPHIER_PINCTRL_PIN(246, "PORT13", UNIPHIER_PIN_IECTRL_EXIST, |
| 764 | 178, UNIPHIER_PIN_DRV_3BIT, |
| 765 | 246, UNIPHIER_PIN_PULL_DOWN), |
| 766 | UNIPHIER_PINCTRL_PIN(247, "PORT14", UNIPHIER_PIN_IECTRL_EXIST, |
| 767 | 179, UNIPHIER_PIN_DRV_3BIT, |
| 768 | 247, UNIPHIER_PIN_PULL_DOWN), |
| 769 | UNIPHIER_PINCTRL_PIN(248, "PORT15", UNIPHIER_PIN_IECTRL_EXIST, |
| 770 | 180, UNIPHIER_PIN_DRV_3BIT, |
| 771 | 248, UNIPHIER_PIN_PULL_DOWN), |
| 772 | UNIPHIER_PINCTRL_PIN(249, "PORT16", UNIPHIER_PIN_IECTRL_EXIST, |
| 773 | 181, UNIPHIER_PIN_DRV_3BIT, |
| 774 | 249, UNIPHIER_PIN_PULL_DOWN), |
| 775 | UNIPHIER_PINCTRL_PIN(250, "PORT17", UNIPHIER_PIN_IECTRL_EXIST, |
| 776 | 182, UNIPHIER_PIN_DRV_3BIT, |
| 777 | 250, UNIPHIER_PIN_PULL_DOWN), |
| 778 | }; |
| 779 | |
Masahiro Yamada | 0cc449f | 2017-10-24 13:11:11 +0900 | [diff] [blame] | 780 | static const unsigned int emmc_pins[] = {32, 33, 34, 35, 36, 37, 38}; |
| 781 | static const int emmc_muxvals[] = {0, 0, 0, 0, 0, 0, 0}; |
Masahiro Yamada | c3ed6f4 | 2017-07-31 15:21:11 +0900 | [diff] [blame] | 782 | static const unsigned int emmc_dat8_pins[] = {39, 40, 41, 42}; |
| 783 | static const int emmc_dat8_muxvals[] = {0, 0, 0, 0}; |
| 784 | static const unsigned int ether_rgmii_pins[] = {52, 53, 54, 55, 56, 57, 58, 59, |
| 785 | 60, 61, 62, 63, 64, 65, 66, 67}; |
| 786 | static const int ether_rgmii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 787 | 0, 0, 0}; |
| 788 | static const unsigned int ether_rmii_pins[] = {52, 53, 54, 55, 56, 57, 58, 59, |
| 789 | 61, 63, 64, 67}; |
| 790 | static const int ether_rmii_muxvals[] = {0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1}; |
| 791 | static const unsigned int ether1_rgmii_pins[] = {68, 69, 70, 71, 72, 73, 74, |
| 792 | 75, 76, 77, 78, 79, 80, 81, |
| 793 | 82, 83}; |
| 794 | static const int ether1_rgmii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 795 | 0, 0, 0, 0}; |
| 796 | static const unsigned int ether1_rmii_pins[] = {68, 69, 70, 71, 72, 73, 74, 75, |
| 797 | 77, 79, 80, 83}; |
| 798 | static const int ether1_rmii_muxvals[] = {0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1}; |
| 799 | static const unsigned int i2c0_pins[] = {104, 105}; |
| 800 | static const int i2c0_muxvals[] = {0, 0}; |
| 801 | static const unsigned int i2c1_pins[] = {106, 107}; |
| 802 | static const int i2c1_muxvals[] = {0, 0}; |
| 803 | static const unsigned int i2c2_pins[] = {108, 109}; |
| 804 | static const int i2c2_muxvals[] = {0, 0}; |
| 805 | static const unsigned int i2c3_pins[] = {110, 111}; |
| 806 | static const int i2c3_muxvals[] = {0, 0}; |
| 807 | static const unsigned int nand_pins[] = {16, 17, 18, 19, 20, 21, 22, 23, 24, 25, |
| 808 | 26, 27, 28, 29, 30}; |
| 809 | static const int nand_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
| 810 | static const unsigned int sd_pins[] = {43, 44, 45, 46, 47, 48, 49, 50, 51}; |
| 811 | static const int sd_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0}; |
Kunihiko Hayashi | 24d1c21 | 2018-07-19 18:05:36 +0900 | [diff] [blame] | 812 | static const unsigned spi0_pins[] = {100, 101, 102, 103}; |
| 813 | static const int spi0_muxvals[] = {0, 0, 0, 0}; |
| 814 | static const unsigned spi1_pins[] = {112, 113, 114, 115}; |
| 815 | static const int spi1_muxvals[] = {2, 2, 2, 2}; |
Masahiro Yamada | c3ed6f4 | 2017-07-31 15:21:11 +0900 | [diff] [blame] | 816 | static const unsigned int system_bus_pins[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, |
| 817 | 11, 12, 13, 14}; |
| 818 | static const int system_bus_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 819 | 0}; |
| 820 | static const unsigned int system_bus_cs1_pins[] = {15}; |
| 821 | static const int system_bus_cs1_muxvals[] = {0}; |
| 822 | static const unsigned int uart0_pins[] = {92, 93}; |
| 823 | static const int uart0_muxvals[] = {0, 0}; |
Kunihiko Hayashi | 4fc97ef | 2018-03-19 17:13:14 +0900 | [diff] [blame] | 824 | static const unsigned int uart0_ctsrts_pins[] = {243, 244, 245, 246, 247, 248}; |
| 825 | static const int uart0_ctsrts_muxvals[] = {3, 3, 3, 3, 3, 3}; |
Masahiro Yamada | c3ed6f4 | 2017-07-31 15:21:11 +0900 | [diff] [blame] | 826 | static const unsigned int uart1_pins[] = {94, 95}; |
| 827 | static const int uart1_muxvals[] = {0, 0}; |
| 828 | static const unsigned int uart2_pins[] = {96, 97}; |
| 829 | static const int uart2_muxvals[] = {0, 0}; |
| 830 | static const unsigned int uart3_pins[] = {98, 99}; |
| 831 | static const int uart3_muxvals[] = {0, 0}; |
| 832 | static const unsigned int usb0_pins[] = {84, 85}; |
| 833 | static const int usb0_muxvals[] = {0, 0}; |
| 834 | static const unsigned int usb1_pins[] = {86, 87}; |
| 835 | static const int usb1_muxvals[] = {0, 0}; |
| 836 | static const unsigned int usb2_pins[] = {88, 89}; |
| 837 | static const int usb2_muxvals[] = {0, 0}; |
| 838 | static const unsigned int usb3_pins[] = {90, 91}; |
| 839 | static const int usb3_muxvals[] = {0, 0}; |
| 840 | static const unsigned int gpio_range0_pins[] = { |
| 841 | 235, 236, 237, 238, 239, 240, 241, 242, /* PORT0x */ |
| 842 | 243, 244, 245, 246, 247, 248, 249, 250, /* PORT1x */ |
| 843 | 0, 1, 2, 3, 4, 5, 6, 7, /* PORT2x */ |
| 844 | 8, 9, 10, 11, 12, 13, 14, 15, /* PORT3x */ |
| 845 | 16, 17, 18, 19, 20, 21, 22, 23, /* PORT4x */ |
| 846 | 24, 25, 26, 27, 28, 29, 30, 31, /* PORT5x */ |
| 847 | 43, 44, 45, 46, 47, 48, 49, 50, /* PORT6x */ |
| 848 | 51, 52, 53, 54, 55, 56, 57, 58, /* PORT7x */ |
| 849 | 59, 60, 61, 62, 63, 64, 65, 66, /* PORT8x */ |
| 850 | 67, 68, 69, 70, 71, 72, 73, 74, /* PORT9x */ |
| 851 | 75, 76, 77, 78, 79, 80, 81, 82, /* PORT10x */ |
| 852 | }; |
| 853 | static const unsigned int gpio_range1_pins[] = { |
| 854 | 83, 84, 85, 86, 87, 88, 89, 90, /* PORT13x */ |
| 855 | 91, 92, 93, 94, 95, 96, 97, 98, /* PORT14x */ |
| 856 | 219, 220, 221, 222, 223, 224, 225, 226, /* XIRQ0-7 */ |
| 857 | 227, 228, 229, 230, 231, 232, 233, 234, /* XIRQ8-15 */ |
| 858 | 215, 216, 217, 218, 164, 165, 166, 167, /* XIRQ16-23 */ |
| 859 | 104, 105, 106, 107, 108, 109, 110, 111, /* PORT18x */ |
| 860 | 176, 177, 178, 179, 180, 181, 182, 183, /* PORT19x */ |
| 861 | 184, 185, /* PORT200-201 */ |
| 862 | }; |
| 863 | static const unsigned int gpio_range2_pins[] = { |
| 864 | 99, 100, 101, 102, 103, 112, 113, 114, /* PORT21x */ |
| 865 | 115, 116, 117, 118, 119, 120, 121, 122, /* PORT22x */ |
| 866 | 123, 124, 125, 126, 127, 128, 129, 130, /* PORT23x */ |
| 867 | 131, 132, 133, 134, 135, 136, 137, 138, /* PORT24x */ |
| 868 | 139, 140, 141, 142, 143, 144, 145, 146, /* PORT25x */ |
| 869 | 147, 148, 149, 150, 151, 152, 153, 154, /* PORT26x */ |
| 870 | 155, 156, 157, 158, 159, 160, 161, 162, /* PORT27x */ |
| 871 | 163, 164, 165, 166, 167, 168, 169, 170, /* PORT28x */ |
| 872 | 171, 172, 173, 174, 175, 186, 187, 188, /* PORT29x */ |
| 873 | 189, 190, 191, 192, 193, 194, 195, 196, /* PORT30x */ |
| 874 | 197, 198, 199, 200, 201, 202, 203, 204, /* PORT31x */ |
| 875 | 205, 206, 207, 208, 209, 210, 211, 212, /* PORT32x */ |
| 876 | 213, 214, 215, 216, 217, 218, 219, 220, /* PORT33x */ |
| 877 | 221, 222, 223, 224, 225, 226, 227, 228, /* PORT34x */ |
| 878 | 229, 230, 231, 232, 233, 234, /* PORT350-355 */ |
| 879 | }; |
| 880 | |
| 881 | static const struct uniphier_pinctrl_group uniphier_pxs3_groups[] = { |
| 882 | UNIPHIER_PINCTRL_GROUP(emmc), |
| 883 | UNIPHIER_PINCTRL_GROUP(emmc_dat8), |
| 884 | UNIPHIER_PINCTRL_GROUP(ether_rgmii), |
| 885 | UNIPHIER_PINCTRL_GROUP(ether_rmii), |
| 886 | UNIPHIER_PINCTRL_GROUP(ether1_rgmii), |
| 887 | UNIPHIER_PINCTRL_GROUP(ether1_rmii), |
| 888 | UNIPHIER_PINCTRL_GROUP(i2c0), |
| 889 | UNIPHIER_PINCTRL_GROUP(i2c1), |
| 890 | UNIPHIER_PINCTRL_GROUP(i2c2), |
| 891 | UNIPHIER_PINCTRL_GROUP(i2c3), |
| 892 | UNIPHIER_PINCTRL_GROUP(nand), |
| 893 | UNIPHIER_PINCTRL_GROUP(sd), |
Kunihiko Hayashi | 24d1c21 | 2018-07-19 18:05:36 +0900 | [diff] [blame] | 894 | UNIPHIER_PINCTRL_GROUP(spi0), |
| 895 | UNIPHIER_PINCTRL_GROUP(spi1), |
Masahiro Yamada | c3ed6f4 | 2017-07-31 15:21:11 +0900 | [diff] [blame] | 896 | UNIPHIER_PINCTRL_GROUP(system_bus), |
| 897 | UNIPHIER_PINCTRL_GROUP(system_bus_cs1), |
| 898 | UNIPHIER_PINCTRL_GROUP(uart0), |
Kunihiko Hayashi | 4fc97ef | 2018-03-19 17:13:14 +0900 | [diff] [blame] | 899 | UNIPHIER_PINCTRL_GROUP(uart0_ctsrts), |
Masahiro Yamada | c3ed6f4 | 2017-07-31 15:21:11 +0900 | [diff] [blame] | 900 | UNIPHIER_PINCTRL_GROUP(uart1), |
| 901 | UNIPHIER_PINCTRL_GROUP(uart2), |
| 902 | UNIPHIER_PINCTRL_GROUP(uart3), |
| 903 | UNIPHIER_PINCTRL_GROUP(usb0), |
| 904 | UNIPHIER_PINCTRL_GROUP(usb1), |
| 905 | UNIPHIER_PINCTRL_GROUP(usb2), |
| 906 | UNIPHIER_PINCTRL_GROUP(usb3), |
| 907 | UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range0), |
| 908 | UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range1), |
| 909 | UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range2), |
| 910 | }; |
| 911 | |
| 912 | static const char * const emmc_groups[] = {"emmc", "emmc_dat8"}; |
| 913 | static const char * const ether_rgmii_groups[] = {"ether_rgmii"}; |
| 914 | static const char * const ether_rmii_groups[] = {"ether_rmii"}; |
| 915 | static const char * const ether1_rgmii_groups[] = {"ether1_rgmii"}; |
| 916 | static const char * const ether1_rmii_groups[] = {"ether1_rmii"}; |
| 917 | static const char * const i2c0_groups[] = {"i2c0"}; |
| 918 | static const char * const i2c1_groups[] = {"i2c1"}; |
| 919 | static const char * const i2c2_groups[] = {"i2c2"}; |
| 920 | static const char * const i2c3_groups[] = {"i2c3"}; |
| 921 | static const char * const nand_groups[] = {"nand"}; |
| 922 | static const char * const sd_groups[] = {"sd"}; |
Kunihiko Hayashi | 24d1c21 | 2018-07-19 18:05:36 +0900 | [diff] [blame] | 923 | static const char * const spi0_groups[] = {"spi0"}; |
| 924 | static const char * const spi1_groups[] = {"spi1"}; |
Masahiro Yamada | c3ed6f4 | 2017-07-31 15:21:11 +0900 | [diff] [blame] | 925 | static const char * const system_bus_groups[] = {"system_bus", |
| 926 | "system_bus_cs1"}; |
Kunihiko Hayashi | 4fc97ef | 2018-03-19 17:13:14 +0900 | [diff] [blame] | 927 | static const char * const uart0_groups[] = {"uart0", "uart0_ctsrts"}; |
Masahiro Yamada | c3ed6f4 | 2017-07-31 15:21:11 +0900 | [diff] [blame] | 928 | static const char * const uart1_groups[] = {"uart1"}; |
| 929 | static const char * const uart2_groups[] = {"uart2"}; |
| 930 | static const char * const uart3_groups[] = {"uart3"}; |
| 931 | static const char * const usb0_groups[] = {"usb0"}; |
| 932 | static const char * const usb1_groups[] = {"usb1"}; |
| 933 | static const char * const usb2_groups[] = {"usb2"}; |
| 934 | static const char * const usb3_groups[] = {"usb3"}; |
| 935 | |
| 936 | static const struct uniphier_pinmux_function uniphier_pxs3_functions[] = { |
| 937 | UNIPHIER_PINMUX_FUNCTION(emmc), |
| 938 | UNIPHIER_PINMUX_FUNCTION(ether_rgmii), |
| 939 | UNIPHIER_PINMUX_FUNCTION(ether_rmii), |
| 940 | UNIPHIER_PINMUX_FUNCTION(ether1_rgmii), |
| 941 | UNIPHIER_PINMUX_FUNCTION(ether1_rmii), |
| 942 | UNIPHIER_PINMUX_FUNCTION(i2c0), |
| 943 | UNIPHIER_PINMUX_FUNCTION(i2c1), |
| 944 | UNIPHIER_PINMUX_FUNCTION(i2c2), |
| 945 | UNIPHIER_PINMUX_FUNCTION(i2c3), |
| 946 | UNIPHIER_PINMUX_FUNCTION(nand), |
| 947 | UNIPHIER_PINMUX_FUNCTION(sd), |
Kunihiko Hayashi | 24d1c21 | 2018-07-19 18:05:36 +0900 | [diff] [blame] | 948 | UNIPHIER_PINMUX_FUNCTION(spi0), |
| 949 | UNIPHIER_PINMUX_FUNCTION(spi1), |
Masahiro Yamada | c3ed6f4 | 2017-07-31 15:21:11 +0900 | [diff] [blame] | 950 | UNIPHIER_PINMUX_FUNCTION(system_bus), |
| 951 | UNIPHIER_PINMUX_FUNCTION(uart0), |
| 952 | UNIPHIER_PINMUX_FUNCTION(uart1), |
| 953 | UNIPHIER_PINMUX_FUNCTION(uart2), |
| 954 | UNIPHIER_PINMUX_FUNCTION(uart3), |
| 955 | UNIPHIER_PINMUX_FUNCTION(usb0), |
| 956 | UNIPHIER_PINMUX_FUNCTION(usb1), |
| 957 | UNIPHIER_PINMUX_FUNCTION(usb2), |
| 958 | UNIPHIER_PINMUX_FUNCTION(usb3), |
| 959 | }; |
| 960 | |
| 961 | static int uniphier_pxs3_get_gpio_muxval(unsigned int pin, |
| 962 | unsigned int gpio_offset) |
| 963 | { |
| 964 | if (gpio_offset >= 120 && gpio_offset <= 143) { /* XIRQx */ |
| 965 | if (pin >= 219 && pin <= 234) |
| 966 | return 0; |
| 967 | |
| 968 | return 14; |
| 969 | } |
| 970 | |
| 971 | return 15; |
| 972 | } |
| 973 | |
| 974 | static struct uniphier_pinctrl_socdata uniphier_pxs3_pindata = { |
| 975 | .pins = uniphier_pxs3_pins, |
| 976 | .npins = ARRAY_SIZE(uniphier_pxs3_pins), |
| 977 | .groups = uniphier_pxs3_groups, |
| 978 | .groups_count = ARRAY_SIZE(uniphier_pxs3_groups), |
| 979 | .functions = uniphier_pxs3_functions, |
| 980 | .functions_count = ARRAY_SIZE(uniphier_pxs3_functions), |
| 981 | .get_gpio_muxval = uniphier_pxs3_get_gpio_muxval, |
| 982 | .caps = UNIPHIER_PINCTRL_CAPS_PERPIN_IECTRL, |
| 983 | }; |
| 984 | |
| 985 | static int uniphier_pxs3_pinctrl_probe(struct platform_device *pdev) |
| 986 | { |
| 987 | return uniphier_pinctrl_probe(pdev, &uniphier_pxs3_pindata); |
| 988 | } |
| 989 | |
| 990 | static const struct of_device_id uniphier_pxs3_pinctrl_match[] = { |
| 991 | { .compatible = "socionext,uniphier-pxs3-pinctrl" }, |
| 992 | { /* sentinel */ } |
| 993 | }; |
| 994 | |
| 995 | static struct platform_driver uniphier_pxs3_pinctrl_driver = { |
| 996 | .probe = uniphier_pxs3_pinctrl_probe, |
| 997 | .driver = { |
| 998 | .name = "uniphier-pxs3-pinctrl", |
| 999 | .of_match_table = uniphier_pxs3_pinctrl_match, |
| 1000 | .pm = &uniphier_pinctrl_pm_ops, |
| 1001 | }, |
| 1002 | }; |
| 1003 | builtin_platform_driver(uniphier_pxs3_pinctrl_driver); |