1 /* 2 * Pin controller and GPIO driver for Amlogic Meson GXBB. 3 * 4 * Copyright (C) 2016 Endless Mobile, Inc. 5 * Author: Carlo Caione <carlo@endlessm.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * version 2 as published by the Free Software Foundation. 10 * 11 * You should have received a copy of the GNU General Public License 12 * along with this program. If not, see <http://www.gnu.org/licenses/>. 13 */ 14 15 #include <dt-bindings/gpio/meson-gxbb-gpio.h> 16 #include "pinctrl-meson.h" 17 18 #define EE_OFF 14 19 20 static const struct pinctrl_pin_desc meson_gxbb_periphs_pins[] = { 21 MESON_PIN(GPIOZ_0, EE_OFF), 22 MESON_PIN(GPIOZ_1, EE_OFF), 23 MESON_PIN(GPIOZ_2, EE_OFF), 24 MESON_PIN(GPIOZ_3, EE_OFF), 25 MESON_PIN(GPIOZ_4, EE_OFF), 26 MESON_PIN(GPIOZ_5, EE_OFF), 27 MESON_PIN(GPIOZ_6, EE_OFF), 28 MESON_PIN(GPIOZ_7, EE_OFF), 29 MESON_PIN(GPIOZ_8, EE_OFF), 30 MESON_PIN(GPIOZ_9, EE_OFF), 31 MESON_PIN(GPIOZ_10, EE_OFF), 32 MESON_PIN(GPIOZ_11, EE_OFF), 33 MESON_PIN(GPIOZ_12, EE_OFF), 34 MESON_PIN(GPIOZ_13, EE_OFF), 35 MESON_PIN(GPIOZ_14, EE_OFF), 36 MESON_PIN(GPIOZ_15, EE_OFF), 37 38 MESON_PIN(GPIOH_0, EE_OFF), 39 MESON_PIN(GPIOH_1, EE_OFF), 40 MESON_PIN(GPIOH_2, EE_OFF), 41 MESON_PIN(GPIOH_3, EE_OFF), 42 43 MESON_PIN(BOOT_0, EE_OFF), 44 MESON_PIN(BOOT_1, EE_OFF), 45 MESON_PIN(BOOT_2, EE_OFF), 46 MESON_PIN(BOOT_3, EE_OFF), 47 MESON_PIN(BOOT_4, EE_OFF), 48 MESON_PIN(BOOT_5, EE_OFF), 49 MESON_PIN(BOOT_6, EE_OFF), 50 MESON_PIN(BOOT_7, EE_OFF), 51 MESON_PIN(BOOT_8, EE_OFF), 52 MESON_PIN(BOOT_9, EE_OFF), 53 MESON_PIN(BOOT_10, EE_OFF), 54 MESON_PIN(BOOT_11, EE_OFF), 55 MESON_PIN(BOOT_12, EE_OFF), 56 MESON_PIN(BOOT_13, EE_OFF), 57 MESON_PIN(BOOT_14, EE_OFF), 58 MESON_PIN(BOOT_15, EE_OFF), 59 MESON_PIN(BOOT_16, EE_OFF), 60 MESON_PIN(BOOT_17, EE_OFF), 61 62 MESON_PIN(CARD_0, EE_OFF), 63 MESON_PIN(CARD_1, EE_OFF), 64 MESON_PIN(CARD_2, EE_OFF), 65 MESON_PIN(CARD_3, EE_OFF), 66 MESON_PIN(CARD_4, EE_OFF), 67 MESON_PIN(CARD_5, EE_OFF), 68 MESON_PIN(CARD_6, EE_OFF), 69 70 MESON_PIN(GPIODV_0, EE_OFF), 71 MESON_PIN(GPIODV_1, EE_OFF), 72 MESON_PIN(GPIODV_2, EE_OFF), 73 MESON_PIN(GPIODV_3, EE_OFF), 74 MESON_PIN(GPIODV_4, EE_OFF), 75 MESON_PIN(GPIODV_5, EE_OFF), 76 MESON_PIN(GPIODV_6, EE_OFF), 77 MESON_PIN(GPIODV_7, EE_OFF), 78 MESON_PIN(GPIODV_8, EE_OFF), 79 MESON_PIN(GPIODV_9, EE_OFF), 80 MESON_PIN(GPIODV_10, EE_OFF), 81 MESON_PIN(GPIODV_11, EE_OFF), 82 MESON_PIN(GPIODV_12, EE_OFF), 83 MESON_PIN(GPIODV_13, EE_OFF), 84 MESON_PIN(GPIODV_14, EE_OFF), 85 MESON_PIN(GPIODV_15, EE_OFF), 86 MESON_PIN(GPIODV_16, EE_OFF), 87 MESON_PIN(GPIODV_17, EE_OFF), 88 MESON_PIN(GPIODV_19, EE_OFF), 89 MESON_PIN(GPIODV_20, EE_OFF), 90 MESON_PIN(GPIODV_21, EE_OFF), 91 MESON_PIN(GPIODV_22, EE_OFF), 92 MESON_PIN(GPIODV_23, EE_OFF), 93 MESON_PIN(GPIODV_24, EE_OFF), 94 MESON_PIN(GPIODV_25, EE_OFF), 95 MESON_PIN(GPIODV_26, EE_OFF), 96 MESON_PIN(GPIODV_27, EE_OFF), 97 MESON_PIN(GPIODV_28, EE_OFF), 98 MESON_PIN(GPIODV_29, EE_OFF), 99 100 MESON_PIN(GPIOY_0, EE_OFF), 101 MESON_PIN(GPIOY_1, EE_OFF), 102 MESON_PIN(GPIOY_2, EE_OFF), 103 MESON_PIN(GPIOY_3, EE_OFF), 104 MESON_PIN(GPIOY_4, EE_OFF), 105 MESON_PIN(GPIOY_5, EE_OFF), 106 MESON_PIN(GPIOY_6, EE_OFF), 107 MESON_PIN(GPIOY_7, EE_OFF), 108 MESON_PIN(GPIOY_8, EE_OFF), 109 MESON_PIN(GPIOY_9, EE_OFF), 110 MESON_PIN(GPIOY_10, EE_OFF), 111 MESON_PIN(GPIOY_11, EE_OFF), 112 MESON_PIN(GPIOY_12, EE_OFF), 113 MESON_PIN(GPIOY_13, EE_OFF), 114 MESON_PIN(GPIOY_14, EE_OFF), 115 MESON_PIN(GPIOY_15, EE_OFF), 116 MESON_PIN(GPIOY_16, EE_OFF), 117 118 MESON_PIN(GPIOX_0, EE_OFF), 119 MESON_PIN(GPIOX_1, EE_OFF), 120 MESON_PIN(GPIOX_2, EE_OFF), 121 MESON_PIN(GPIOX_3, EE_OFF), 122 MESON_PIN(GPIOX_4, EE_OFF), 123 MESON_PIN(GPIOX_5, EE_OFF), 124 MESON_PIN(GPIOX_6, EE_OFF), 125 MESON_PIN(GPIOX_7, EE_OFF), 126 MESON_PIN(GPIOX_8, EE_OFF), 127 MESON_PIN(GPIOX_9, EE_OFF), 128 MESON_PIN(GPIOX_10, EE_OFF), 129 MESON_PIN(GPIOX_11, EE_OFF), 130 MESON_PIN(GPIOX_12, EE_OFF), 131 MESON_PIN(GPIOX_13, EE_OFF), 132 MESON_PIN(GPIOX_14, EE_OFF), 133 MESON_PIN(GPIOX_15, EE_OFF), 134 MESON_PIN(GPIOX_16, EE_OFF), 135 MESON_PIN(GPIOX_17, EE_OFF), 136 MESON_PIN(GPIOX_18, EE_OFF), 137 MESON_PIN(GPIOX_19, EE_OFF), 138 MESON_PIN(GPIOX_20, EE_OFF), 139 MESON_PIN(GPIOX_21, EE_OFF), 140 MESON_PIN(GPIOX_22, EE_OFF), 141 142 MESON_PIN(GPIOCLK_0, EE_OFF), 143 MESON_PIN(GPIOCLK_1, EE_OFF), 144 MESON_PIN(GPIOCLK_2, EE_OFF), 145 MESON_PIN(GPIOCLK_3, EE_OFF), 146 147 MESON_PIN(GPIO_TEST_N, EE_OFF), 148 }; 149 150 static const struct pinctrl_pin_desc meson_gxbb_aobus_pins[] = { 151 MESON_PIN(GPIOAO_0, 0), 152 MESON_PIN(GPIOAO_1, 0), 153 MESON_PIN(GPIOAO_2, 0), 154 MESON_PIN(GPIOAO_3, 0), 155 MESON_PIN(GPIOAO_4, 0), 156 MESON_PIN(GPIOAO_5, 0), 157 MESON_PIN(GPIOAO_6, 0), 158 MESON_PIN(GPIOAO_7, 0), 159 MESON_PIN(GPIOAO_8, 0), 160 MESON_PIN(GPIOAO_9, 0), 161 MESON_PIN(GPIOAO_10, 0), 162 MESON_PIN(GPIOAO_11, 0), 163 MESON_PIN(GPIOAO_12, 0), 164 MESON_PIN(GPIOAO_13, 0), 165 }; 166 167 static const unsigned int uart_tx_ao_a_pins[] = { PIN(GPIOAO_0, 0) }; 168 static const unsigned int uart_rx_ao_a_pins[] = { PIN(GPIOAO_1, 0) }; 169 static const unsigned int uart_cts_ao_a_pins[] = { PIN(GPIOAO_2, 0) }; 170 static const unsigned int uart_rts_ao_a_pins[] = { PIN(GPIOAO_3, 0) }; 171 172 static struct meson_pmx_group meson_gxbb_periphs_groups[] = { 173 GPIO_GROUP(GPIOZ_0, EE_OFF), 174 GPIO_GROUP(GPIOZ_1, EE_OFF), 175 GPIO_GROUP(GPIOZ_2, EE_OFF), 176 GPIO_GROUP(GPIOZ_3, EE_OFF), 177 GPIO_GROUP(GPIOZ_4, EE_OFF), 178 GPIO_GROUP(GPIOZ_5, EE_OFF), 179 GPIO_GROUP(GPIOZ_6, EE_OFF), 180 GPIO_GROUP(GPIOZ_7, EE_OFF), 181 GPIO_GROUP(GPIOZ_8, EE_OFF), 182 GPIO_GROUP(GPIOZ_9, EE_OFF), 183 GPIO_GROUP(GPIOZ_10, EE_OFF), 184 GPIO_GROUP(GPIOZ_11, EE_OFF), 185 GPIO_GROUP(GPIOZ_12, EE_OFF), 186 GPIO_GROUP(GPIOZ_13, EE_OFF), 187 GPIO_GROUP(GPIOZ_14, EE_OFF), 188 GPIO_GROUP(GPIOZ_15, EE_OFF), 189 190 GPIO_GROUP(GPIOH_0, EE_OFF), 191 GPIO_GROUP(GPIOH_1, EE_OFF), 192 GPIO_GROUP(GPIOH_2, EE_OFF), 193 GPIO_GROUP(GPIOH_3, EE_OFF), 194 195 GPIO_GROUP(BOOT_0, EE_OFF), 196 GPIO_GROUP(BOOT_1, EE_OFF), 197 GPIO_GROUP(BOOT_2, EE_OFF), 198 GPIO_GROUP(BOOT_3, EE_OFF), 199 GPIO_GROUP(BOOT_4, EE_OFF), 200 GPIO_GROUP(BOOT_5, EE_OFF), 201 GPIO_GROUP(BOOT_6, EE_OFF), 202 GPIO_GROUP(BOOT_7, EE_OFF), 203 GPIO_GROUP(BOOT_8, EE_OFF), 204 GPIO_GROUP(BOOT_9, EE_OFF), 205 GPIO_GROUP(BOOT_10, EE_OFF), 206 GPIO_GROUP(BOOT_11, EE_OFF), 207 GPIO_GROUP(BOOT_12, EE_OFF), 208 GPIO_GROUP(BOOT_13, EE_OFF), 209 GPIO_GROUP(BOOT_14, EE_OFF), 210 GPIO_GROUP(BOOT_15, EE_OFF), 211 GPIO_GROUP(BOOT_16, EE_OFF), 212 GPIO_GROUP(BOOT_17, EE_OFF), 213 214 GPIO_GROUP(CARD_0, EE_OFF), 215 GPIO_GROUP(CARD_1, EE_OFF), 216 GPIO_GROUP(CARD_2, EE_OFF), 217 GPIO_GROUP(CARD_3, EE_OFF), 218 GPIO_GROUP(CARD_4, EE_OFF), 219 GPIO_GROUP(CARD_5, EE_OFF), 220 GPIO_GROUP(CARD_6, EE_OFF), 221 222 GPIO_GROUP(GPIODV_0, EE_OFF), 223 GPIO_GROUP(GPIODV_1, EE_OFF), 224 GPIO_GROUP(GPIODV_2, EE_OFF), 225 GPIO_GROUP(GPIODV_3, EE_OFF), 226 GPIO_GROUP(GPIODV_4, EE_OFF), 227 GPIO_GROUP(GPIODV_5, EE_OFF), 228 GPIO_GROUP(GPIODV_6, EE_OFF), 229 GPIO_GROUP(GPIODV_7, EE_OFF), 230 GPIO_GROUP(GPIODV_8, EE_OFF), 231 GPIO_GROUP(GPIODV_9, EE_OFF), 232 GPIO_GROUP(GPIODV_10, EE_OFF), 233 GPIO_GROUP(GPIODV_11, EE_OFF), 234 GPIO_GROUP(GPIODV_12, EE_OFF), 235 GPIO_GROUP(GPIODV_13, EE_OFF), 236 GPIO_GROUP(GPIODV_14, EE_OFF), 237 GPIO_GROUP(GPIODV_15, EE_OFF), 238 GPIO_GROUP(GPIODV_16, EE_OFF), 239 GPIO_GROUP(GPIODV_17, EE_OFF), 240 GPIO_GROUP(GPIODV_19, EE_OFF), 241 GPIO_GROUP(GPIODV_20, EE_OFF), 242 GPIO_GROUP(GPIODV_21, EE_OFF), 243 GPIO_GROUP(GPIODV_22, EE_OFF), 244 GPIO_GROUP(GPIODV_23, EE_OFF), 245 GPIO_GROUP(GPIODV_24, EE_OFF), 246 GPIO_GROUP(GPIODV_25, EE_OFF), 247 GPIO_GROUP(GPIODV_26, EE_OFF), 248 GPIO_GROUP(GPIODV_27, EE_OFF), 249 GPIO_GROUP(GPIODV_28, EE_OFF), 250 GPIO_GROUP(GPIODV_29, EE_OFF), 251 252 GPIO_GROUP(GPIOY_0, EE_OFF), 253 GPIO_GROUP(GPIOY_1, EE_OFF), 254 GPIO_GROUP(GPIOY_2, EE_OFF), 255 GPIO_GROUP(GPIOY_3, EE_OFF), 256 GPIO_GROUP(GPIOY_4, EE_OFF), 257 GPIO_GROUP(GPIOY_5, EE_OFF), 258 GPIO_GROUP(GPIOY_6, EE_OFF), 259 GPIO_GROUP(GPIOY_7, EE_OFF), 260 GPIO_GROUP(GPIOY_8, EE_OFF), 261 GPIO_GROUP(GPIOY_9, EE_OFF), 262 GPIO_GROUP(GPIOY_10, EE_OFF), 263 GPIO_GROUP(GPIOY_11, EE_OFF), 264 GPIO_GROUP(GPIOY_12, EE_OFF), 265 GPIO_GROUP(GPIOY_13, EE_OFF), 266 GPIO_GROUP(GPIOY_14, EE_OFF), 267 GPIO_GROUP(GPIOY_15, EE_OFF), 268 GPIO_GROUP(GPIOY_16, EE_OFF), 269 270 GPIO_GROUP(GPIOX_0, EE_OFF), 271 GPIO_GROUP(GPIOX_1, EE_OFF), 272 GPIO_GROUP(GPIOX_2, EE_OFF), 273 GPIO_GROUP(GPIOX_3, EE_OFF), 274 GPIO_GROUP(GPIOX_4, EE_OFF), 275 GPIO_GROUP(GPIOX_5, EE_OFF), 276 GPIO_GROUP(GPIOX_6, EE_OFF), 277 GPIO_GROUP(GPIOX_7, EE_OFF), 278 GPIO_GROUP(GPIOX_8, EE_OFF), 279 GPIO_GROUP(GPIOX_9, EE_OFF), 280 GPIO_GROUP(GPIOX_10, EE_OFF), 281 GPIO_GROUP(GPIOX_11, EE_OFF), 282 GPIO_GROUP(GPIOX_12, EE_OFF), 283 GPIO_GROUP(GPIOX_13, EE_OFF), 284 GPIO_GROUP(GPIOX_14, EE_OFF), 285 GPIO_GROUP(GPIOX_15, EE_OFF), 286 GPIO_GROUP(GPIOX_16, EE_OFF), 287 GPIO_GROUP(GPIOX_17, EE_OFF), 288 GPIO_GROUP(GPIOX_18, EE_OFF), 289 GPIO_GROUP(GPIOX_19, EE_OFF), 290 GPIO_GROUP(GPIOX_20, EE_OFF), 291 GPIO_GROUP(GPIOX_21, EE_OFF), 292 GPIO_GROUP(GPIOX_22, EE_OFF), 293 294 GPIO_GROUP(GPIOCLK_0, EE_OFF), 295 GPIO_GROUP(GPIOCLK_1, EE_OFF), 296 GPIO_GROUP(GPIOCLK_2, EE_OFF), 297 GPIO_GROUP(GPIOCLK_3, EE_OFF), 298 299 GPIO_GROUP(GPIO_TEST_N, EE_OFF), 300 }; 301 302 static struct meson_pmx_group meson_gxbb_aobus_groups[] = { 303 GPIO_GROUP(GPIOAO_0, 0), 304 GPIO_GROUP(GPIOAO_1, 0), 305 GPIO_GROUP(GPIOAO_2, 0), 306 GPIO_GROUP(GPIOAO_3, 0), 307 GPIO_GROUP(GPIOAO_4, 0), 308 GPIO_GROUP(GPIOAO_5, 0), 309 GPIO_GROUP(GPIOAO_6, 0), 310 GPIO_GROUP(GPIOAO_7, 0), 311 GPIO_GROUP(GPIOAO_8, 0), 312 GPIO_GROUP(GPIOAO_9, 0), 313 GPIO_GROUP(GPIOAO_10, 0), 314 GPIO_GROUP(GPIOAO_11, 0), 315 GPIO_GROUP(GPIOAO_12, 0), 316 GPIO_GROUP(GPIOAO_13, 0), 317 318 /* bank AO */ 319 GROUP(uart_tx_ao_a, 0, 12), 320 GROUP(uart_rx_ao_a, 0, 11), 321 GROUP(uart_cts_ao_a, 0, 10), 322 GROUP(uart_rts_ao_a, 0, 9), 323 }; 324 325 static const char * const gpio_periphs_groups[] = { 326 "GPIOZ_0", "GPIOZ_1", "GPIOZ_2", "GPIOZ_3", "GPIOZ_4", 327 "GPIOZ_5", "GPIOZ_6", "GPIOZ_7", "GPIOZ_8", "GPIOZ_9", 328 "GPIOZ_10", "GPIOZ_11", "GPIOZ_12", "GPIOZ_13", "GPIOZ_14", 329 "GPIOZ_15", 330 331 "GPIOH_0", "GPIOH_1", "GPIOH_2", "GPIOH_3", 332 333 "BOOT_0", "BOOT_1", "BOOT_2", "BOOT_3", "BOOT_4", 334 "BOOT_5", "BOOT_6", "BOOT_7", "BOOT_8", "BOOT_9", 335 "BOOT_10", "BOOT_11", "BOOT_12", "BOOT_13", "BOOT_14", 336 "BOOT_15", "BOOT_16", "BOOT_17", 337 338 "CARD_0", "CARD_1", "CARD_2", "CARD_3", "CARD_4", 339 "CARD_5", "CARD_6", 340 341 "GPIODV_0", "GPIODV_1", "GPIODV_2", "GPIODV_3", "GPIODV_4", 342 "GPIODV_5", "GPIODV_6", "GPIODV_7", "GPIODV_8", "GPIODV_9", 343 "GPIODV_10", "GPIODV_11", "GPIODV_12", "GPIODV_13", "GPIODV_14", 344 "GPIODV_15", "GPIODV_16", "GPIODV_17", "GPIODV_18", "GPIODV_19", 345 "GPIODV_20", "GPIODV_21", "GPIODV_22", "GPIODV_23", "GPIODV_24", 346 "GPIODV_25", "GPIODV_26", "GPIODV_27", "GPIODV_28", "GPIODV_29", 347 348 "GPIOY_0", "GPIOY_1", "GPIOY_2", "GPIOY_3", "GPIOY_4", 349 "GPIOY_5", "GPIOY_6", "GPIOY_7", "GPIOY_8", "GPIOY_9", 350 "GPIOY_10", "GPIOY_11", "GPIOY_12", "GPIOY_13", "GPIOY_14", 351 "GPIOY_15", "GPIOY_16", 352 353 "GPIOX_0", "GPIOX_1", "GPIOX_2", "GPIOX_3", "GPIOX_4", 354 "GPIOX_5", "GPIOX_6", "GPIOX_7", "GPIOX_8", "GPIOX_9", 355 "GPIOX_10", "GPIOX_11", "GPIOX_12", "GPIOX_13", "GPIOX_14", 356 "GPIOX_15", "GPIOX_16", "GPIOX_17", "GPIOX_18", "GPIOX_19", 357 "GPIOX_20", "GPIOX_21", "GPIOX_22", 358 359 "GPIO_TEST_N", 360 }; 361 362 static const char * const gpio_aobus_groups[] = { 363 "GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3", "GPIOAO_4", 364 "GPIOAO_5", "GPIOAO_6", "GPIOAO_7", "GPIOAO_8", "GPIOAO_9", 365 "GPIOAO_10", "GPIOAO_11", "GPIOAO_12", "GPIOAO_13", 366 }; 367 368 static const char * const uart_ao_groups[] = { 369 "uart_tx_ao_a", "uart_rx_ao_a", "uart_cts_ao_a", "uart_rts_ao_a" 370 }; 371 372 static struct meson_pmx_func meson_gxbb_periphs_functions[] = { 373 FUNCTION(gpio_periphs), 374 }; 375 376 static struct meson_pmx_func meson_gxbb_aobus_functions[] = { 377 FUNCTION(gpio_aobus), 378 FUNCTION(uart_ao), 379 }; 380 381 static struct meson_bank meson_gxbb_periphs_banks[] = { 382 /* name first last pullen pull dir out in */ 383 BANK("X", PIN(GPIOX_0, EE_OFF), PIN(GPIOX_22, EE_OFF), 4, 0, 4, 0, 12, 0, 13, 0, 14, 0), 384 BANK("Y", PIN(GPIOY_0, EE_OFF), PIN(GPIOY_16, EE_OFF), 1, 0, 1, 0, 3, 0, 4, 0, 5, 0), 385 BANK("DV", PIN(GPIODV_0, EE_OFF), PIN(GPIODV_29, EE_OFF), 0, 0, 0, 0, 0, 0, 1, 0, 2, 0), 386 BANK("H", PIN(GPIOH_0, EE_OFF), PIN(GPIOH_3, EE_OFF), 1, 20, 1, 20, 3, 20, 4, 20, 5, 20), 387 BANK("Z", PIN(GPIOZ_0, EE_OFF), PIN(GPIOZ_15, EE_OFF), 3, 0, 3, 0, 9, 0, 10, 0, 11, 0), 388 BANK("CARD", PIN(CARD_0, EE_OFF), PIN(CARD_6, EE_OFF), 2, 20, 2, 20, 6, 20, 7, 20, 8, 20), 389 BANK("BOOT", PIN(BOOT_0, EE_OFF), PIN(BOOT_17, EE_OFF), 2, 0, 2, 0, 6, 0, 7, 0, 8, 0), 390 BANK("CLK", PIN(GPIOCLK_0, EE_OFF), PIN(GPIOCLK_3, EE_OFF), 3, 28, 3, 28, 9, 28, 10, 28, 11, 28), 391 }; 392 393 static struct meson_bank meson_gxbb_aobus_banks[] = { 394 /* name first last pullen pull dir out in */ 395 BANK("AO", PIN(GPIOAO_0, 0), PIN(GPIOAO_13, 0), 0, 0, 0, 16, 0, 0, 0, 16, 1, 0), 396 }; 397 398 static struct meson_domain_data meson_gxbb_periphs_domain_data = { 399 .name = "periphs-banks", 400 .banks = meson_gxbb_periphs_banks, 401 .num_banks = ARRAY_SIZE(meson_gxbb_periphs_banks), 402 .pin_base = 14, 403 .num_pins = 120, 404 }; 405 406 static struct meson_domain_data meson_gxbb_aobus_domain_data = { 407 .name = "aobus-banks", 408 .banks = meson_gxbb_aobus_banks, 409 .num_banks = ARRAY_SIZE(meson_gxbb_aobus_banks), 410 .pin_base = 0, 411 .num_pins = 14, 412 }; 413 414 struct meson_pinctrl_data meson_gxbb_periphs_pinctrl_data = { 415 .pins = meson_gxbb_periphs_pins, 416 .groups = meson_gxbb_periphs_groups, 417 .funcs = meson_gxbb_periphs_functions, 418 .domain_data = &meson_gxbb_periphs_domain_data, 419 .num_pins = ARRAY_SIZE(meson_gxbb_periphs_pins), 420 .num_groups = ARRAY_SIZE(meson_gxbb_periphs_groups), 421 .num_funcs = ARRAY_SIZE(meson_gxbb_periphs_functions), 422 }; 423 424 struct meson_pinctrl_data meson_gxbb_aobus_pinctrl_data = { 425 .pins = meson_gxbb_aobus_pins, 426 .groups = meson_gxbb_aobus_groups, 427 .funcs = meson_gxbb_aobus_functions, 428 .domain_data = &meson_gxbb_aobus_domain_data, 429 .num_pins = ARRAY_SIZE(meson_gxbb_aobus_pins), 430 .num_groups = ARRAY_SIZE(meson_gxbb_aobus_groups), 431 .num_funcs = ARRAY_SIZE(meson_gxbb_aobus_functions), 432 }; 433