Commit | Line | Data |
---|---|---|
336306ee | 1 | /* |
2afd450d | 2 | * Copyright (C) 2016-2017 Socionext Inc. |
336306ee MY |
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/kernel.h> | |
2afd450d | 17 | #include <linux/init.h> |
336306ee MY |
18 | #include <linux/pinctrl/pinctrl.h> |
19 | #include <linux/platform_device.h> | |
20 | ||
21 | #include "pinctrl-uniphier.h" | |
22 | ||
23 | static const struct pinctrl_pin_desc uniphier_ld20_pins[] = { | |
4e767983 | 24 | UNIPHIER_PINCTRL_PIN(0, "XECS1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
25 | 0, UNIPHIER_PIN_DRV_3BIT, |
26 | 0, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 27 | UNIPHIER_PINCTRL_PIN(1, "ERXW", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
28 | 1, UNIPHIER_PIN_DRV_3BIT, |
29 | 1, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 30 | UNIPHIER_PINCTRL_PIN(2, "XERWE1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
31 | 2, UNIPHIER_PIN_DRV_3BIT, |
32 | 2, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 33 | UNIPHIER_PINCTRL_PIN(3, "XNFWP", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
34 | 3, UNIPHIER_PIN_DRV_3BIT, |
35 | 3, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 36 | UNIPHIER_PINCTRL_PIN(4, "XNFCE0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
37 | 4, UNIPHIER_PIN_DRV_3BIT, |
38 | 4, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 39 | UNIPHIER_PINCTRL_PIN(5, "NFRYBY0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
40 | 5, UNIPHIER_PIN_DRV_3BIT, |
41 | 5, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 42 | UNIPHIER_PINCTRL_PIN(6, "XNFRE", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
43 | 6, UNIPHIER_PIN_DRV_3BIT, |
44 | 6, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 45 | UNIPHIER_PINCTRL_PIN(7, "XNFWE", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
46 | 7, UNIPHIER_PIN_DRV_3BIT, |
47 | 7, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 48 | UNIPHIER_PINCTRL_PIN(8, "NFALE", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
49 | 8, UNIPHIER_PIN_DRV_3BIT, |
50 | 8, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 51 | UNIPHIER_PINCTRL_PIN(9, "NFCLE", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
52 | 9, UNIPHIER_PIN_DRV_3BIT, |
53 | 9, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 54 | UNIPHIER_PINCTRL_PIN(10, "NFD0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
55 | 10, UNIPHIER_PIN_DRV_3BIT, |
56 | 10, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 57 | UNIPHIER_PINCTRL_PIN(11, "NFD1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
58 | 11, UNIPHIER_PIN_DRV_3BIT, |
59 | 11, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 60 | UNIPHIER_PINCTRL_PIN(12, "NFD2", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
61 | 12, UNIPHIER_PIN_DRV_3BIT, |
62 | 12, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 63 | UNIPHIER_PINCTRL_PIN(13, "NFD3", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
64 | 13, UNIPHIER_PIN_DRV_3BIT, |
65 | 13, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 66 | UNIPHIER_PINCTRL_PIN(14, "NFD4", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
67 | 14, UNIPHIER_PIN_DRV_3BIT, |
68 | 14, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 69 | UNIPHIER_PINCTRL_PIN(15, "NFD5", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
70 | 15, UNIPHIER_PIN_DRV_3BIT, |
71 | 15, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 72 | UNIPHIER_PINCTRL_PIN(16, "NFD6", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
73 | 16, UNIPHIER_PIN_DRV_3BIT, |
74 | 16, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 75 | UNIPHIER_PINCTRL_PIN(17, "NFD7", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
76 | 17, UNIPHIER_PIN_DRV_3BIT, |
77 | 17, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 78 | UNIPHIER_PINCTRL_PIN(18, "XERST", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
79 | 0, UNIPHIER_PIN_DRV_2BIT, |
80 | 18, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 81 | UNIPHIER_PINCTRL_PIN(19, "MMCCLK", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
82 | 1, UNIPHIER_PIN_DRV_2BIT, |
83 | 19, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 84 | UNIPHIER_PINCTRL_PIN(20, "MMCCMD", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
85 | 2, UNIPHIER_PIN_DRV_2BIT, |
86 | 20, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 87 | UNIPHIER_PINCTRL_PIN(21, "MMCDS", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
88 | 3, UNIPHIER_PIN_DRV_2BIT, |
89 | 21, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 90 | UNIPHIER_PINCTRL_PIN(22, "MMCDAT0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
91 | 4, UNIPHIER_PIN_DRV_2BIT, |
92 | 22, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 93 | UNIPHIER_PINCTRL_PIN(23, "MMCDAT1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
94 | 5, UNIPHIER_PIN_DRV_2BIT, |
95 | 23, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 96 | UNIPHIER_PINCTRL_PIN(24, "MMCDAT2", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
97 | 6, UNIPHIER_PIN_DRV_2BIT, |
98 | 24, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 99 | UNIPHIER_PINCTRL_PIN(25, "MMCDAT3", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
100 | 7, UNIPHIER_PIN_DRV_2BIT, |
101 | 25, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 102 | UNIPHIER_PINCTRL_PIN(26, "MMCDAT4", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
103 | 8, UNIPHIER_PIN_DRV_2BIT, |
104 | 26, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 105 | UNIPHIER_PINCTRL_PIN(27, "MMCDAT5", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
106 | 9, UNIPHIER_PIN_DRV_2BIT, |
107 | 27, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 108 | UNIPHIER_PINCTRL_PIN(28, "MMCDAT6", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
109 | 10, UNIPHIER_PIN_DRV_2BIT, |
110 | 28, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 111 | UNIPHIER_PINCTRL_PIN(29, "MMCDAT7", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
112 | 11, UNIPHIER_PIN_DRV_2BIT, |
113 | 29, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 114 | UNIPHIER_PINCTRL_PIN(30, "MDC", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
115 | 18, UNIPHIER_PIN_DRV_3BIT, |
116 | 30, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 117 | UNIPHIER_PINCTRL_PIN(31, "MDIO", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
118 | 19, UNIPHIER_PIN_DRV_3BIT, |
119 | 31, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 120 | UNIPHIER_PINCTRL_PIN(32, "MDIO_INTL", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
121 | 20, UNIPHIER_PIN_DRV_3BIT, |
122 | 32, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 123 | UNIPHIER_PINCTRL_PIN(33, "PHYRSTL", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
124 | 21, UNIPHIER_PIN_DRV_3BIT, |
125 | 33, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 126 | UNIPHIER_PINCTRL_PIN(34, "RGMII_RXCLK", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
127 | 22, UNIPHIER_PIN_DRV_3BIT, |
128 | 34, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 129 | UNIPHIER_PINCTRL_PIN(35, "RGMII_RXD0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
130 | 23, UNIPHIER_PIN_DRV_3BIT, |
131 | 35, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 132 | UNIPHIER_PINCTRL_PIN(36, "RGMII_RXD1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
133 | 24, UNIPHIER_PIN_DRV_3BIT, |
134 | 36, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 135 | UNIPHIER_PINCTRL_PIN(37, "RGMII_RXD2", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
136 | 25, UNIPHIER_PIN_DRV_3BIT, |
137 | 37, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 138 | UNIPHIER_PINCTRL_PIN(38, "RGMII_RXD3", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
139 | 26, UNIPHIER_PIN_DRV_3BIT, |
140 | 38, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 141 | UNIPHIER_PINCTRL_PIN(39, "RGMII_RXCTL", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
142 | 27, UNIPHIER_PIN_DRV_3BIT, |
143 | 39, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 144 | UNIPHIER_PINCTRL_PIN(40, "RGMII_TXCLK", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
145 | 28, UNIPHIER_PIN_DRV_3BIT, |
146 | 40, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 147 | UNIPHIER_PINCTRL_PIN(41, "RGMII_TXD0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
148 | 29, UNIPHIER_PIN_DRV_3BIT, |
149 | 41, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 150 | UNIPHIER_PINCTRL_PIN(42, "RGMII_TXD1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
151 | 30, UNIPHIER_PIN_DRV_3BIT, |
152 | 42, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 153 | UNIPHIER_PINCTRL_PIN(43, "RGMII_TXD2", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
154 | 31, UNIPHIER_PIN_DRV_3BIT, |
155 | 43, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 156 | UNIPHIER_PINCTRL_PIN(44, "RGMII_TXD3", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
157 | 32, UNIPHIER_PIN_DRV_3BIT, |
158 | 44, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 159 | UNIPHIER_PINCTRL_PIN(45, "RGMII_TXCTL", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
160 | 33, UNIPHIER_PIN_DRV_3BIT, |
161 | 45, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 162 | UNIPHIER_PINCTRL_PIN(46, "USB0VBUS", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
163 | 34, UNIPHIER_PIN_DRV_3BIT, |
164 | 46, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 165 | UNIPHIER_PINCTRL_PIN(47, "USB0OD", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
166 | 35, UNIPHIER_PIN_DRV_3BIT, |
167 | 47, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 168 | UNIPHIER_PINCTRL_PIN(48, "USB1VBUS", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
169 | 36, UNIPHIER_PIN_DRV_3BIT, |
170 | 48, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 171 | UNIPHIER_PINCTRL_PIN(49, "USB1OD", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
172 | 37, UNIPHIER_PIN_DRV_3BIT, |
173 | 49, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 174 | UNIPHIER_PINCTRL_PIN(50, "USB2VBUS", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
175 | 38, UNIPHIER_PIN_DRV_3BIT, |
176 | 50, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 177 | UNIPHIER_PINCTRL_PIN(51, "USB2OD", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
178 | 39, UNIPHIER_PIN_DRV_3BIT, |
179 | 51, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 180 | UNIPHIER_PINCTRL_PIN(52, "USB3VBUS", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
181 | 40, UNIPHIER_PIN_DRV_3BIT, |
182 | 52, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 183 | UNIPHIER_PINCTRL_PIN(53, "USB3OD", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
184 | 41, UNIPHIER_PIN_DRV_3BIT, |
185 | 53, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 186 | UNIPHIER_PINCTRL_PIN(54, "TXD0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
187 | 42, UNIPHIER_PIN_DRV_3BIT, |
188 | 54, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 189 | UNIPHIER_PINCTRL_PIN(55, "RXD0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
190 | 43, UNIPHIER_PIN_DRV_3BIT, |
191 | 55, UNIPHIER_PIN_PULL_UP), | |
4e767983 | 192 | UNIPHIER_PINCTRL_PIN(56, "SPISYNC0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
193 | 44, UNIPHIER_PIN_DRV_3BIT, |
194 | 56, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 195 | UNIPHIER_PINCTRL_PIN(57, "SPISCLK0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
196 | 45, UNIPHIER_PIN_DRV_3BIT, |
197 | 57, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 198 | UNIPHIER_PINCTRL_PIN(58, "SPITXD0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
199 | 46, UNIPHIER_PIN_DRV_3BIT, |
200 | 58, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 201 | UNIPHIER_PINCTRL_PIN(59, "SPIRXD0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
202 | 47, UNIPHIER_PIN_DRV_3BIT, |
203 | 59, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 204 | UNIPHIER_PINCTRL_PIN(60, "AGCI", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
205 | 48, UNIPHIER_PIN_DRV_3BIT, |
206 | 60, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 207 | UNIPHIER_PINCTRL_PIN(61, "DMDSDA0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
208 | -1, UNIPHIER_PIN_DRV_FIXED4, |
209 | -1, UNIPHIER_PIN_PULL_NONE), | |
4e767983 | 210 | UNIPHIER_PINCTRL_PIN(62, "DMDSCL0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
211 | -1, UNIPHIER_PIN_DRV_FIXED4, |
212 | -1, UNIPHIER_PIN_PULL_NONE), | |
4e767983 | 213 | UNIPHIER_PINCTRL_PIN(63, "SDA0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
214 | -1, UNIPHIER_PIN_DRV_FIXED4, |
215 | -1, UNIPHIER_PIN_PULL_NONE), | |
4e767983 | 216 | UNIPHIER_PINCTRL_PIN(64, "SCL0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
217 | -1, UNIPHIER_PIN_DRV_FIXED4, |
218 | -1, UNIPHIER_PIN_PULL_NONE), | |
4e767983 | 219 | UNIPHIER_PINCTRL_PIN(65, "SDA1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
220 | -1, UNIPHIER_PIN_DRV_FIXED4, |
221 | -1, UNIPHIER_PIN_PULL_NONE), | |
4e767983 | 222 | UNIPHIER_PINCTRL_PIN(66, "SCL1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
223 | -1, UNIPHIER_PIN_DRV_FIXED4, |
224 | -1, UNIPHIER_PIN_PULL_NONE), | |
4e767983 | 225 | UNIPHIER_PINCTRL_PIN(67, "HIN", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
226 | -1, UNIPHIER_PIN_DRV_FIXED4, |
227 | -1, UNIPHIER_PIN_PULL_NONE), | |
4e767983 | 228 | UNIPHIER_PINCTRL_PIN(68, "VIN", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
229 | -1, UNIPHIER_PIN_DRV_FIXED4, |
230 | -1, UNIPHIER_PIN_PULL_NONE), | |
4e767983 | 231 | UNIPHIER_PINCTRL_PIN(69, "PCA00", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
232 | 49, UNIPHIER_PIN_DRV_3BIT, |
233 | 69, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 234 | UNIPHIER_PINCTRL_PIN(70, "PCA01", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
235 | 50, UNIPHIER_PIN_DRV_3BIT, |
236 | 70, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 237 | UNIPHIER_PINCTRL_PIN(71, "PCA02", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
238 | 51, UNIPHIER_PIN_DRV_3BIT, |
239 | 71, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 240 | UNIPHIER_PINCTRL_PIN(72, "PCA03", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
241 | 52, UNIPHIER_PIN_DRV_3BIT, |
242 | 72, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 243 | UNIPHIER_PINCTRL_PIN(73, "PCA04", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
244 | 53, UNIPHIER_PIN_DRV_3BIT, |
245 | 73, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 246 | UNIPHIER_PINCTRL_PIN(74, "PCA05", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
247 | 54, UNIPHIER_PIN_DRV_3BIT, |
248 | 74, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 249 | UNIPHIER_PINCTRL_PIN(75, "PCA06", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
250 | 55, UNIPHIER_PIN_DRV_3BIT, |
251 | 75, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 252 | UNIPHIER_PINCTRL_PIN(76, "PCA07", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
253 | 56, UNIPHIER_PIN_DRV_3BIT, |
254 | 76, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 255 | UNIPHIER_PINCTRL_PIN(77, "PCA08", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
256 | 57, UNIPHIER_PIN_DRV_3BIT, |
257 | 77, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 258 | UNIPHIER_PINCTRL_PIN(78, "PCA09", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
259 | 58, UNIPHIER_PIN_DRV_3BIT, |
260 | 78, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 261 | UNIPHIER_PINCTRL_PIN(79, "PCA10", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
262 | 59, UNIPHIER_PIN_DRV_3BIT, |
263 | 79, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 264 | UNIPHIER_PINCTRL_PIN(80, "PCA11", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
265 | 60, UNIPHIER_PIN_DRV_3BIT, |
266 | 80, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 267 | UNIPHIER_PINCTRL_PIN(81, "PCA12", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
268 | 61, UNIPHIER_PIN_DRV_3BIT, |
269 | 81, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 270 | UNIPHIER_PINCTRL_PIN(82, "PCA13", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
271 | 62, UNIPHIER_PIN_DRV_3BIT, |
272 | 82, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 273 | UNIPHIER_PINCTRL_PIN(83, "PCA14", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
274 | 63, UNIPHIER_PIN_DRV_3BIT, |
275 | 83, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 276 | UNIPHIER_PINCTRL_PIN(84, "PC0READY", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
277 | 0, UNIPHIER_PIN_DRV_1BIT, |
278 | 84, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 279 | UNIPHIER_PINCTRL_PIN(85, "PC0CD1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
280 | 1, UNIPHIER_PIN_DRV_1BIT, |
281 | 85, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 282 | UNIPHIER_PINCTRL_PIN(86, "PC0CD2", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
283 | 2, UNIPHIER_PIN_DRV_1BIT, |
284 | 86, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 285 | UNIPHIER_PINCTRL_PIN(87, "PC0WAIT", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
286 | 3, UNIPHIER_PIN_DRV_1BIT, |
287 | 87, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 288 | UNIPHIER_PINCTRL_PIN(88, "PC0RESET", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
289 | 4, UNIPHIER_PIN_DRV_1BIT, |
290 | 88, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 291 | UNIPHIER_PINCTRL_PIN(89, "PC0CE1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
292 | 5, UNIPHIER_PIN_DRV_1BIT, |
293 | 89, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 294 | UNIPHIER_PINCTRL_PIN(90, "PC0WE", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
295 | 6, UNIPHIER_PIN_DRV_1BIT, |
296 | 90, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 297 | UNIPHIER_PINCTRL_PIN(91, "PC0OE", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
298 | 7, UNIPHIER_PIN_DRV_1BIT, |
299 | 91, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 300 | UNIPHIER_PINCTRL_PIN(92, "PC0IOWR", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
301 | 8, UNIPHIER_PIN_DRV_1BIT, |
302 | 92, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 303 | UNIPHIER_PINCTRL_PIN(93, "PC0IORD", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
304 | 9, UNIPHIER_PIN_DRV_1BIT, |
305 | 93, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 306 | UNIPHIER_PINCTRL_PIN(94, "PCD00", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
307 | 10, UNIPHIER_PIN_DRV_1BIT, |
308 | 94, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 309 | UNIPHIER_PINCTRL_PIN(95, "PCD01", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
310 | 11, UNIPHIER_PIN_DRV_1BIT, |
311 | 95, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 312 | UNIPHIER_PINCTRL_PIN(96, "PCD02", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
313 | 12, UNIPHIER_PIN_DRV_1BIT, |
314 | 96, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 315 | UNIPHIER_PINCTRL_PIN(97, "PCD03", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
316 | 13, UNIPHIER_PIN_DRV_1BIT, |
317 | 97, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 318 | UNIPHIER_PINCTRL_PIN(98, "PCD04", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
319 | 14, UNIPHIER_PIN_DRV_1BIT, |
320 | 98, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 321 | UNIPHIER_PINCTRL_PIN(99, "PCD05", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
322 | 15, UNIPHIER_PIN_DRV_1BIT, |
323 | 99, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 324 | UNIPHIER_PINCTRL_PIN(100, "PCD06", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
325 | 16, UNIPHIER_PIN_DRV_1BIT, |
326 | 100, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 327 | UNIPHIER_PINCTRL_PIN(101, "PCD07", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
328 | 17, UNIPHIER_PIN_DRV_1BIT, |
329 | 101, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 330 | UNIPHIER_PINCTRL_PIN(102, "HS0BCLKIN", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
331 | 18, UNIPHIER_PIN_DRV_1BIT, |
332 | 102, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 333 | UNIPHIER_PINCTRL_PIN(103, "HS0SYNCIN", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
334 | 19, UNIPHIER_PIN_DRV_1BIT, |
335 | 103, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 336 | UNIPHIER_PINCTRL_PIN(104, "HS0VALIN", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
337 | 20, UNIPHIER_PIN_DRV_1BIT, |
338 | 104, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 339 | UNIPHIER_PINCTRL_PIN(105, "HS0DIN0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
340 | 21, UNIPHIER_PIN_DRV_1BIT, |
341 | 105, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 342 | UNIPHIER_PINCTRL_PIN(106, "HS0DIN1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
343 | 22, UNIPHIER_PIN_DRV_1BIT, |
344 | 106, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 345 | UNIPHIER_PINCTRL_PIN(107, "HS0DIN2", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
346 | 23, UNIPHIER_PIN_DRV_1BIT, |
347 | 107, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 348 | UNIPHIER_PINCTRL_PIN(108, "HS0DIN3", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
349 | 24, UNIPHIER_PIN_DRV_1BIT, |
350 | 108, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 351 | UNIPHIER_PINCTRL_PIN(109, "HS0DIN4", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
352 | 25, UNIPHIER_PIN_DRV_1BIT, |
353 | 109, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 354 | UNIPHIER_PINCTRL_PIN(110, "HS0DIN5", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
355 | 26, UNIPHIER_PIN_DRV_1BIT, |
356 | 110, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 357 | UNIPHIER_PINCTRL_PIN(111, "HS0DIN6", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
358 | 27, UNIPHIER_PIN_DRV_1BIT, |
359 | 111, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 360 | UNIPHIER_PINCTRL_PIN(112, "HS0DIN7", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
361 | 28, UNIPHIER_PIN_DRV_1BIT, |
362 | 112, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 363 | UNIPHIER_PINCTRL_PIN(113, "HS0BCLKOUT", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
364 | 64, UNIPHIER_PIN_DRV_3BIT, |
365 | 113, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 366 | UNIPHIER_PINCTRL_PIN(114, "HS0SYNCOUT", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
367 | 65, UNIPHIER_PIN_DRV_3BIT, |
368 | 114, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 369 | UNIPHIER_PINCTRL_PIN(115, "HS0VALOUT", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
370 | 66, UNIPHIER_PIN_DRV_3BIT, |
371 | 115, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 372 | UNIPHIER_PINCTRL_PIN(116, "HS0DOUT0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
373 | 67, UNIPHIER_PIN_DRV_3BIT, |
374 | 116, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 375 | UNIPHIER_PINCTRL_PIN(117, "HS0DOUT1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
376 | 68, UNIPHIER_PIN_DRV_3BIT, |
377 | 117, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 378 | UNIPHIER_PINCTRL_PIN(118, "HS0DOUT2", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
379 | 69, UNIPHIER_PIN_DRV_3BIT, |
380 | 118, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 381 | UNIPHIER_PINCTRL_PIN(119, "HS0DOUT3", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
382 | 70, UNIPHIER_PIN_DRV_3BIT, |
383 | 119, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 384 | UNIPHIER_PINCTRL_PIN(120, "HS0DOUT4", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
385 | 71, UNIPHIER_PIN_DRV_3BIT, |
386 | 120, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 387 | UNIPHIER_PINCTRL_PIN(121, "HS0DOUT5", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
388 | 72, UNIPHIER_PIN_DRV_3BIT, |
389 | 121, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 390 | UNIPHIER_PINCTRL_PIN(122, "HS0DOUT6", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
391 | 73, UNIPHIER_PIN_DRV_3BIT, |
392 | 122, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 393 | UNIPHIER_PINCTRL_PIN(123, "HS0DOUT7", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
394 | 74, UNIPHIER_PIN_DRV_3BIT, |
395 | 123, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 396 | UNIPHIER_PINCTRL_PIN(124, "HS1BCLKIN", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
397 | 75, UNIPHIER_PIN_DRV_3BIT, |
398 | 124, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 399 | UNIPHIER_PINCTRL_PIN(125, "HS1SYNCIN", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
400 | 76, UNIPHIER_PIN_DRV_3BIT, |
401 | 125, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 402 | UNIPHIER_PINCTRL_PIN(126, "HS1VALIN", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
403 | 77, UNIPHIER_PIN_DRV_3BIT, |
404 | 126, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 405 | UNIPHIER_PINCTRL_PIN(127, "HS1DIN0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
406 | 78, UNIPHIER_PIN_DRV_3BIT, |
407 | 127, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 408 | UNIPHIER_PINCTRL_PIN(128, "HS1DIN1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
409 | 79, UNIPHIER_PIN_DRV_3BIT, |
410 | 128, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 411 | UNIPHIER_PINCTRL_PIN(129, "HS1DIN2", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
412 | 80, UNIPHIER_PIN_DRV_3BIT, |
413 | 129, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 414 | UNIPHIER_PINCTRL_PIN(130, "HS1DIN3", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
415 | 81, UNIPHIER_PIN_DRV_3BIT, |
416 | 130, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 417 | UNIPHIER_PINCTRL_PIN(131, "HS1DIN4", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
418 | 82, UNIPHIER_PIN_DRV_3BIT, |
419 | 131, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 420 | UNIPHIER_PINCTRL_PIN(132, "HS1DIN5", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
421 | 83, UNIPHIER_PIN_DRV_3BIT, |
422 | 132, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 423 | UNIPHIER_PINCTRL_PIN(133, "HS1DIN6", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
424 | 84, UNIPHIER_PIN_DRV_3BIT, |
425 | 133, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 426 | UNIPHIER_PINCTRL_PIN(134, "HS1DIN7", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
427 | 85, UNIPHIER_PIN_DRV_3BIT, |
428 | 134, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 429 | UNIPHIER_PINCTRL_PIN(135, "AO1IEC", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
430 | 86, UNIPHIER_PIN_DRV_3BIT, |
431 | 135, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 432 | UNIPHIER_PINCTRL_PIN(136, "AO1ARC", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
433 | 87, UNIPHIER_PIN_DRV_3BIT, |
434 | 136, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 435 | UNIPHIER_PINCTRL_PIN(137, "AO1DACCK", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
436 | 88, UNIPHIER_PIN_DRV_3BIT, |
437 | 137, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 438 | UNIPHIER_PINCTRL_PIN(138, "AO1BCK", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
439 | 89, UNIPHIER_PIN_DRV_3BIT, |
440 | 138, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 441 | UNIPHIER_PINCTRL_PIN(139, "AO1LRCK", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
442 | 90, UNIPHIER_PIN_DRV_3BIT, |
443 | 139, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 444 | UNIPHIER_PINCTRL_PIN(140, "AO1D0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
445 | 91, UNIPHIER_PIN_DRV_3BIT, |
446 | 140, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 447 | UNIPHIER_PINCTRL_PIN(141, "AO1D1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
448 | 92, UNIPHIER_PIN_DRV_3BIT, |
449 | 141, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 450 | UNIPHIER_PINCTRL_PIN(142, "AO1D2", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
451 | 93, UNIPHIER_PIN_DRV_3BIT, |
452 | 142, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 453 | UNIPHIER_PINCTRL_PIN(143, "HTPDN0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
454 | 94, UNIPHIER_PIN_DRV_3BIT, |
455 | 143, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 456 | UNIPHIER_PINCTRL_PIN(144, "LOCKN0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
457 | 95, UNIPHIER_PIN_DRV_3BIT, |
458 | 144, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 459 | UNIPHIER_PINCTRL_PIN(145, "HTPDN1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
460 | 96, UNIPHIER_PIN_DRV_3BIT, |
461 | 145, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 462 | UNIPHIER_PINCTRL_PIN(146, "LOCKN1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
463 | 97, UNIPHIER_PIN_DRV_3BIT, |
464 | 146, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 465 | UNIPHIER_PINCTRL_PIN(147, "PWMA", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
466 | 98, UNIPHIER_PIN_DRV_3BIT, |
467 | 147, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 468 | UNIPHIER_PINCTRL_PIN(148, "LR_GOUT", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
469 | 99, UNIPHIER_PIN_DRV_3BIT, |
470 | 148, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 471 | UNIPHIER_PINCTRL_PIN(149, "XIRQ0", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
472 | 100, UNIPHIER_PIN_DRV_3BIT, |
473 | 149, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 474 | UNIPHIER_PINCTRL_PIN(150, "XIRQ1", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
475 | 101, UNIPHIER_PIN_DRV_3BIT, |
476 | 150, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 477 | UNIPHIER_PINCTRL_PIN(151, "XIRQ2", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
478 | 102, UNIPHIER_PIN_DRV_3BIT, |
479 | 151, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 480 | UNIPHIER_PINCTRL_PIN(152, "XIRQ3", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
481 | 103, UNIPHIER_PIN_DRV_3BIT, |
482 | 152, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 483 | UNIPHIER_PINCTRL_PIN(153, "XIRQ4", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
484 | 104, UNIPHIER_PIN_DRV_3BIT, |
485 | 153, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 486 | UNIPHIER_PINCTRL_PIN(154, "XIRQ5", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
487 | 105, UNIPHIER_PIN_DRV_3BIT, |
488 | 154, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 489 | UNIPHIER_PINCTRL_PIN(155, "XIRQ6", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
490 | 106, UNIPHIER_PIN_DRV_3BIT, |
491 | 155, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 492 | UNIPHIER_PINCTRL_PIN(156, "XIRQ7", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
493 | 107, UNIPHIER_PIN_DRV_3BIT, |
494 | 156, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 495 | UNIPHIER_PINCTRL_PIN(157, "XIRQ8", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
496 | 108, UNIPHIER_PIN_DRV_3BIT, |
497 | 157, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 498 | UNIPHIER_PINCTRL_PIN(158, "XIRQ9", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
499 | 109, UNIPHIER_PIN_DRV_3BIT, |
500 | 158, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 501 | UNIPHIER_PINCTRL_PIN(159, "XIRQ10", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
502 | 110, UNIPHIER_PIN_DRV_3BIT, |
503 | 159, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 504 | UNIPHIER_PINCTRL_PIN(160, "XIRQ11", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
505 | 111, UNIPHIER_PIN_DRV_3BIT, |
506 | 160, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 507 | UNIPHIER_PINCTRL_PIN(161, "XIRQ13", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
508 | 112, UNIPHIER_PIN_DRV_3BIT, |
509 | 161, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 510 | UNIPHIER_PINCTRL_PIN(162, "XIRQ14", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
511 | 113, UNIPHIER_PIN_DRV_3BIT, |
512 | 162, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 513 | UNIPHIER_PINCTRL_PIN(163, "XIRQ16", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
514 | 114, UNIPHIER_PIN_DRV_3BIT, |
515 | 163, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 516 | UNIPHIER_PINCTRL_PIN(164, "XIRQ17", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
517 | 115, UNIPHIER_PIN_DRV_3BIT, |
518 | 164, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 519 | UNIPHIER_PINCTRL_PIN(165, "XIRQ18", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
520 | 116, UNIPHIER_PIN_DRV_3BIT, |
521 | 165, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 522 | UNIPHIER_PINCTRL_PIN(166, "XIRQ19", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
523 | 117, UNIPHIER_PIN_DRV_3BIT, |
524 | 166, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 525 | UNIPHIER_PINCTRL_PIN(167, "XIRQ20", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
526 | 118, UNIPHIER_PIN_DRV_3BIT, |
527 | 167, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 528 | UNIPHIER_PINCTRL_PIN(168, "PORT00", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
529 | 119, UNIPHIER_PIN_DRV_3BIT, |
530 | 168, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 531 | UNIPHIER_PINCTRL_PIN(169, "PORT01", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
532 | 120, UNIPHIER_PIN_DRV_3BIT, |
533 | 169, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 534 | UNIPHIER_PINCTRL_PIN(170, "PORT02", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
535 | 121, UNIPHIER_PIN_DRV_3BIT, |
536 | 170, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 537 | UNIPHIER_PINCTRL_PIN(171, "PORT03", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
538 | 122, UNIPHIER_PIN_DRV_3BIT, |
539 | 171, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 540 | UNIPHIER_PINCTRL_PIN(172, "PORT04", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
541 | 123, UNIPHIER_PIN_DRV_3BIT, |
542 | 172, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 543 | UNIPHIER_PINCTRL_PIN(173, "CK27FO", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
544 | 124, UNIPHIER_PIN_DRV_3BIT, |
545 | 173, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 546 | UNIPHIER_PINCTRL_PIN(174, "PHSYNCO", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
547 | 125, UNIPHIER_PIN_DRV_3BIT, |
548 | 174, UNIPHIER_PIN_PULL_DOWN), | |
4e767983 | 549 | UNIPHIER_PINCTRL_PIN(175, "PVSYNCO", UNIPHIER_PIN_IECTRL_EXIST, |
336306ee MY |
550 | 126, UNIPHIER_PIN_DRV_3BIT, |
551 | 175, UNIPHIER_PIN_PULL_DOWN), | |
552 | }; | |
553 | ||
abcac84f KS |
554 | static const unsigned aout_pins[] = {135, 136, 137, 138, 139, 140, 141, 142}; |
555 | static const int aout_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0}; | |
336306ee MY |
556 | static const unsigned emmc_pins[] = {18, 19, 20, 21, 22, 23, 24, 25}; |
557 | static const int emmc_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0}; | |
558 | static const unsigned emmc_dat8_pins[] = {26, 27, 28, 29}; | |
559 | static const int emmc_dat8_muxvals[] = {0, 0, 0, 0}; | |
1e359ab1 MY |
560 | static const unsigned ether_rgmii_pins[] = {30, 31, 32, 33, 34, 35, 36, 37, 38, |
561 | 39, 40, 41, 42, 43, 44, 45}; | |
562 | static const int ether_rgmii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
563 | 0, 0, 0, 0}; | |
564 | static const unsigned ether_rmii_pins[] = {30, 31, 32, 33, 34, 35, 36, 37, 39, | |
565 | 41, 42, 45}; | |
df1539c2 | 566 | static const int ether_rmii_muxvals[] = {0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1}; |
336306ee MY |
567 | static const unsigned i2c0_pins[] = {63, 64}; |
568 | static const int i2c0_muxvals[] = {0, 0}; | |
569 | static const unsigned i2c1_pins[] = {65, 66}; | |
570 | static const int i2c1_muxvals[] = {0, 0}; | |
571 | static const unsigned i2c3_pins[] = {67, 68}; | |
572 | static const int i2c3_muxvals[] = {1, 1}; | |
573 | static const unsigned i2c4_pins[] = {61, 62}; | |
574 | static const int i2c4_muxvals[] = {1, 1}; | |
575 | static const unsigned nand_pins[] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, | |
576 | 15, 16, 17}; | |
9467f568 | 577 | static const int nand_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
336306ee MY |
578 | static const unsigned sd_pins[] = {10, 11, 12, 13, 14, 15, 16, 17}; |
579 | static const int sd_muxvals[] = {3, 3, 3, 3, 3, 3, 3, 3}; /* No SDVOLC */ | |
580 | static const unsigned system_bus_pins[] = {1, 2, 6, 7, 8, 9, 10, 11, 12, 13, | |
581 | 14, 15, 16, 17}; | |
582 | static const int system_bus_muxvals[] = {0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | |
583 | 2}; | |
584 | static const unsigned system_bus_cs1_pins[] = {0}; | |
585 | static const int system_bus_cs1_muxvals[] = {0}; | |
586 | static const unsigned uart0_pins[] = {54, 55}; | |
587 | static const int uart0_muxvals[] = {0, 0}; | |
588 | static const unsigned uart1_pins[] = {58, 59}; | |
589 | static const int uart1_muxvals[] = {1, 1}; | |
590 | static const unsigned uart2_pins[] = {90, 91}; | |
591 | static const int uart2_muxvals[] = {1, 1}; | |
592 | static const unsigned uart3_pins[] = {94, 95}; | |
593 | static const int uart3_muxvals[] = {1, 1}; | |
594 | static const unsigned usb0_pins[] = {46, 47}; | |
595 | static const int usb0_muxvals[] = {0, 0}; | |
596 | static const unsigned usb1_pins[] = {48, 49}; | |
597 | static const int usb1_muxvals[] = {0, 0}; | |
598 | static const unsigned usb2_pins[] = {50, 51}; | |
599 | static const int usb2_muxvals[] = {0, 0}; | |
600 | static const unsigned usb3_pins[] = {52, 53}; | |
601 | static const int usb3_muxvals[] = {0, 0}; | |
7f6ee0a5 | 602 | static const unsigned int gpio_range0_pins[] = { |
336306ee MY |
603 | 168, 169, 170, 171, 172, 173, 174, 175, /* PORT0x */ |
604 | 0, 1, 2, 3, 4, 5, 6, 7, /* PORT1x */ | |
605 | 8, 9, 10, 11, 12, 13, 14, 15, /* PORT2x */ | |
606 | 16, 17, 18, 30, 31, 32, 33, 34, /* PORT3x */ | |
607 | 35, 36, 37, 38, 39, 40, 41, 42, /* PORT4x */ | |
608 | 43, 44, 45, 46, 47, 48, 49, 50, /* PORT5x */ | |
609 | 51, 52, 53, 54, 55, 56, 57, 58, /* PORT6x */ | |
610 | 59, 60, 69, 70, 71, 72, 73, 74, /* PORT7x */ | |
611 | 75, 76, 77, 78, 79, 80, 81, 82, /* PORT8x */ | |
612 | 83, 84, 85, 86, 87, 88, 89, 90, /* PORT9x */ | |
613 | 91, 92, 93, 94, 95, 96, 97, 98, /* PORT10x */ | |
336306ee | 614 | }; |
7f6ee0a5 | 615 | static const unsigned int gpio_range1_pins[] = { |
1bd303dc MY |
616 | 99, 100, 101, 102, 103, 104, 105, 106, /* PORT12x */ |
617 | 107, 108, 109, 110, 111, 112, 113, 114, /* PORT13x */ | |
618 | 115, 116, 117, 118, 119, 120, 121, 122, /* PORT14x */ | |
7f6ee0a5 MY |
619 | 149, 150, 151, 152, 153, 154, 155, 156, /* XIRQ0-7 */ |
620 | 157, 158, 159, 160, 85, 161, 162, 84, /* XIRQ8-15 */ | |
621 | 163, 164, 165, 166, 167, 146, 52, 53, /* XIRQ16-23 */ | |
1bd303dc MY |
622 | 61, 62, 63, 64, 65, 66, 67, 68, /* PORT18x */ |
623 | }; | |
7f6ee0a5 | 624 | static const unsigned int gpio_range2_pins[] = { |
1bd303dc MY |
625 | 123, 124, 125, 126, 127, 128, 129, 130, /* PORT20x */ |
626 | 131, 132, 133, 134, 135, 136, 137, 138, /* PORT21x */ | |
627 | 139, 140, 141, 142, 143, 144, 145, 146, /* PORT22x */ | |
628 | 147, 148, 149, 150, 151, 152, 153, 154, /* PORT23x */ | |
629 | 155, 156, 157, 158, 159, 160, 161, 162, /* PORT24x */ | |
630 | 163, 164, 165, 166, 167, /* PORT250-254 */ | |
631 | }; | |
336306ee MY |
632 | |
633 | static const struct uniphier_pinctrl_group uniphier_ld20_groups[] = { | |
abcac84f | 634 | UNIPHIER_PINCTRL_GROUP(aout), |
336306ee MY |
635 | UNIPHIER_PINCTRL_GROUP(emmc), |
636 | UNIPHIER_PINCTRL_GROUP(emmc_dat8), | |
1e359ab1 MY |
637 | UNIPHIER_PINCTRL_GROUP(ether_rgmii), |
638 | UNIPHIER_PINCTRL_GROUP(ether_rmii), | |
336306ee MY |
639 | UNIPHIER_PINCTRL_GROUP(i2c0), |
640 | UNIPHIER_PINCTRL_GROUP(i2c1), | |
641 | UNIPHIER_PINCTRL_GROUP(i2c3), | |
642 | UNIPHIER_PINCTRL_GROUP(i2c4), | |
643 | UNIPHIER_PINCTRL_GROUP(nand), | |
644 | UNIPHIER_PINCTRL_GROUP(sd), | |
645 | UNIPHIER_PINCTRL_GROUP(system_bus), | |
646 | UNIPHIER_PINCTRL_GROUP(system_bus_cs1), | |
647 | UNIPHIER_PINCTRL_GROUP(uart0), | |
648 | UNIPHIER_PINCTRL_GROUP(uart1), | |
649 | UNIPHIER_PINCTRL_GROUP(uart2), | |
650 | UNIPHIER_PINCTRL_GROUP(uart3), | |
651 | UNIPHIER_PINCTRL_GROUP(usb0), | |
652 | UNIPHIER_PINCTRL_GROUP(usb1), | |
653 | UNIPHIER_PINCTRL_GROUP(usb2), | |
654 | UNIPHIER_PINCTRL_GROUP(usb3), | |
7f6ee0a5 MY |
655 | UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range0), |
656 | UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range1), | |
657 | UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range2), | |
336306ee MY |
658 | }; |
659 | ||
abcac84f | 660 | static const char * const aout_groups[] = {"aout"}; |
336306ee | 661 | static const char * const emmc_groups[] = {"emmc", "emmc_dat8"}; |
1e359ab1 MY |
662 | static const char * const ether_rgmii_groups[] = {"ether_rgmii"}; |
663 | static const char * const ether_rmii_groups[] = {"ether_rmii"}; | |
336306ee MY |
664 | static const char * const i2c0_groups[] = {"i2c0"}; |
665 | static const char * const i2c1_groups[] = {"i2c1"}; | |
666 | static const char * const i2c3_groups[] = {"i2c3"}; | |
667 | static const char * const i2c4_groups[] = {"i2c4"}; | |
668 | static const char * const nand_groups[] = {"nand"}; | |
669 | static const char * const sd_groups[] = {"sd"}; | |
670 | static const char * const system_bus_groups[] = {"system_bus", | |
671 | "system_bus_cs1"}; | |
672 | static const char * const uart0_groups[] = {"uart0"}; | |
673 | static const char * const uart1_groups[] = {"uart1"}; | |
674 | static const char * const uart2_groups[] = {"uart2"}; | |
675 | static const char * const uart3_groups[] = {"uart3"}; | |
676 | static const char * const usb0_groups[] = {"usb0"}; | |
677 | static const char * const usb1_groups[] = {"usb1"}; | |
678 | static const char * const usb2_groups[] = {"usb2"}; | |
679 | static const char * const usb3_groups[] = {"usb3"}; | |
336306ee MY |
680 | |
681 | static const struct uniphier_pinmux_function uniphier_ld20_functions[] = { | |
abcac84f | 682 | UNIPHIER_PINMUX_FUNCTION(aout), |
336306ee | 683 | UNIPHIER_PINMUX_FUNCTION(emmc), |
1e359ab1 MY |
684 | UNIPHIER_PINMUX_FUNCTION(ether_rgmii), |
685 | UNIPHIER_PINMUX_FUNCTION(ether_rmii), | |
336306ee MY |
686 | UNIPHIER_PINMUX_FUNCTION(i2c0), |
687 | UNIPHIER_PINMUX_FUNCTION(i2c1), | |
688 | UNIPHIER_PINMUX_FUNCTION(i2c3), | |
689 | UNIPHIER_PINMUX_FUNCTION(i2c4), | |
690 | UNIPHIER_PINMUX_FUNCTION(nand), | |
691 | UNIPHIER_PINMUX_FUNCTION(sd), | |
692 | UNIPHIER_PINMUX_FUNCTION(system_bus), | |
693 | UNIPHIER_PINMUX_FUNCTION(uart0), | |
694 | UNIPHIER_PINMUX_FUNCTION(uart1), | |
695 | UNIPHIER_PINMUX_FUNCTION(uart2), | |
696 | UNIPHIER_PINMUX_FUNCTION(uart3), | |
697 | UNIPHIER_PINMUX_FUNCTION(usb0), | |
698 | UNIPHIER_PINMUX_FUNCTION(usb1), | |
699 | UNIPHIER_PINMUX_FUNCTION(usb2), | |
700 | UNIPHIER_PINMUX_FUNCTION(usb3), | |
336306ee MY |
701 | }; |
702 | ||
7f6ee0a5 MY |
703 | static int uniphier_ld20_get_gpio_muxval(unsigned int pin, |
704 | unsigned int gpio_offset) | |
705 | { | |
706 | if (gpio_offset == 132 || gpio_offset == 135) /* XIRQ12, 15 */ | |
707 | return 13; | |
708 | ||
709 | if (gpio_offset >= 120 && gpio_offset <= 143) /* XIRQx */ | |
710 | return 14; | |
711 | ||
712 | return 15; | |
713 | } | |
714 | ||
336306ee MY |
715 | static struct uniphier_pinctrl_socdata uniphier_ld20_pindata = { |
716 | .pins = uniphier_ld20_pins, | |
717 | .npins = ARRAY_SIZE(uniphier_ld20_pins), | |
718 | .groups = uniphier_ld20_groups, | |
719 | .groups_count = ARRAY_SIZE(uniphier_ld20_groups), | |
720 | .functions = uniphier_ld20_functions, | |
721 | .functions_count = ARRAY_SIZE(uniphier_ld20_functions), | |
7f6ee0a5 | 722 | .get_gpio_muxval = uniphier_ld20_get_gpio_muxval, |
336306ee MY |
723 | .caps = UNIPHIER_PINCTRL_CAPS_PERPIN_IECTRL, |
724 | }; | |
725 | ||
726 | static int uniphier_ld20_pinctrl_probe(struct platform_device *pdev) | |
727 | { | |
728 | return uniphier_pinctrl_probe(pdev, &uniphier_ld20_pindata); | |
729 | } | |
730 | ||
731 | static const struct of_device_id uniphier_ld20_pinctrl_match[] = { | |
732 | { .compatible = "socionext,uniphier-ld20-pinctrl" }, | |
733 | { /* sentinel */ } | |
734 | }; | |
336306ee MY |
735 | |
736 | static struct platform_driver uniphier_ld20_pinctrl_driver = { | |
737 | .probe = uniphier_ld20_pinctrl_probe, | |
738 | .driver = { | |
739 | .name = "uniphier-ld20-pinctrl", | |
740 | .of_match_table = uniphier_ld20_pinctrl_match, | |
9697509e | 741 | .pm = &uniphier_pinctrl_pm_ops, |
336306ee MY |
742 | }, |
743 | }; | |
2afd450d | 744 | builtin_platform_driver(uniphier_ld20_pinctrl_driver); |