18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+
28c2ecf20Sopenharmony_ci//
38c2ecf20Sopenharmony_ci// Copyright (C) 2015-2017 Socionext Inc.
48c2ecf20Sopenharmony_ci//   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <linux/kernel.h>
78c2ecf20Sopenharmony_ci#include <linux/init.h>
88c2ecf20Sopenharmony_ci#include <linux/mod_devicetable.h>
98c2ecf20Sopenharmony_ci#include <linux/pinctrl/pinctrl.h>
108c2ecf20Sopenharmony_ci#include <linux/platform_device.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include "pinctrl-uniphier.h"
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_cistatic const struct pinctrl_pin_desc uniphier_ld4_pins[] = {
158c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(0, "EA1", UNIPHIER_PIN_IECTRL_NONE,
168c2ecf20Sopenharmony_ci			     8, UNIPHIER_PIN_DRV_1BIT,
178c2ecf20Sopenharmony_ci			     8, UNIPHIER_PIN_PULL_DOWN),
188c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(1, "EA2", UNIPHIER_PIN_IECTRL_NONE,
198c2ecf20Sopenharmony_ci			     9, UNIPHIER_PIN_DRV_1BIT,
208c2ecf20Sopenharmony_ci			     9, UNIPHIER_PIN_PULL_DOWN),
218c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(2, "EA3", UNIPHIER_PIN_IECTRL_NONE,
228c2ecf20Sopenharmony_ci			     10, UNIPHIER_PIN_DRV_1BIT,
238c2ecf20Sopenharmony_ci			     10, UNIPHIER_PIN_PULL_DOWN),
248c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(3, "EA4", UNIPHIER_PIN_IECTRL_NONE,
258c2ecf20Sopenharmony_ci			     11, UNIPHIER_PIN_DRV_1BIT,
268c2ecf20Sopenharmony_ci			     11, UNIPHIER_PIN_PULL_DOWN),
278c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(4, "EA5", UNIPHIER_PIN_IECTRL_NONE,
288c2ecf20Sopenharmony_ci			     12, UNIPHIER_PIN_DRV_1BIT,
298c2ecf20Sopenharmony_ci			     12, UNIPHIER_PIN_PULL_DOWN),
308c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(5, "EA6", UNIPHIER_PIN_IECTRL_NONE,
318c2ecf20Sopenharmony_ci			     13, UNIPHIER_PIN_DRV_1BIT,
328c2ecf20Sopenharmony_ci			     13, UNIPHIER_PIN_PULL_DOWN),
338c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(6, "EA7", UNIPHIER_PIN_IECTRL_NONE,
348c2ecf20Sopenharmony_ci			     14, UNIPHIER_PIN_DRV_1BIT,
358c2ecf20Sopenharmony_ci			     14, UNIPHIER_PIN_PULL_DOWN),
368c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(7, "EA8", 0,
378c2ecf20Sopenharmony_ci			     15, UNIPHIER_PIN_DRV_1BIT,
388c2ecf20Sopenharmony_ci			     15, UNIPHIER_PIN_PULL_DOWN),
398c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(8, "EA9", 0,
408c2ecf20Sopenharmony_ci			     16, UNIPHIER_PIN_DRV_1BIT,
418c2ecf20Sopenharmony_ci			     16, UNIPHIER_PIN_PULL_DOWN),
428c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(9, "EA10", 0,
438c2ecf20Sopenharmony_ci			     17, UNIPHIER_PIN_DRV_1BIT,
448c2ecf20Sopenharmony_ci			     17, UNIPHIER_PIN_PULL_DOWN),
458c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(10, "EA11", 0,
468c2ecf20Sopenharmony_ci			     18, UNIPHIER_PIN_DRV_1BIT,
478c2ecf20Sopenharmony_ci			     18, UNIPHIER_PIN_PULL_DOWN),
488c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(11, "EA12", 0,
498c2ecf20Sopenharmony_ci			     19, UNIPHIER_PIN_DRV_1BIT,
508c2ecf20Sopenharmony_ci			     19, UNIPHIER_PIN_PULL_DOWN),
518c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(12, "EA13", 0,
528c2ecf20Sopenharmony_ci			     20, UNIPHIER_PIN_DRV_1BIT,
538c2ecf20Sopenharmony_ci			     20, UNIPHIER_PIN_PULL_DOWN),
548c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(13, "EA14", 0,
558c2ecf20Sopenharmony_ci			     21, UNIPHIER_PIN_DRV_1BIT,
568c2ecf20Sopenharmony_ci			     21, UNIPHIER_PIN_PULL_DOWN),
578c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(14, "EA15", 0,
588c2ecf20Sopenharmony_ci			     22, UNIPHIER_PIN_DRV_1BIT,
598c2ecf20Sopenharmony_ci			     22, UNIPHIER_PIN_PULL_DOWN),
608c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(15, "ECLK", UNIPHIER_PIN_IECTRL_NONE,
618c2ecf20Sopenharmony_ci			     23, UNIPHIER_PIN_DRV_1BIT,
628c2ecf20Sopenharmony_ci			     23, UNIPHIER_PIN_PULL_DOWN),
638c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(16, "XERWE0", UNIPHIER_PIN_IECTRL_NONE,
648c2ecf20Sopenharmony_ci			     24, UNIPHIER_PIN_DRV_1BIT,
658c2ecf20Sopenharmony_ci			     24, UNIPHIER_PIN_PULL_UP),
668c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(17, "XERWE1", UNIPHIER_PIN_IECTRL_NONE,
678c2ecf20Sopenharmony_ci			     25, UNIPHIER_PIN_DRV_1BIT,
688c2ecf20Sopenharmony_ci			     25, UNIPHIER_PIN_PULL_UP),
698c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(18, "ES0", UNIPHIER_PIN_IECTRL_NONE,
708c2ecf20Sopenharmony_ci			     27, UNIPHIER_PIN_DRV_1BIT,
718c2ecf20Sopenharmony_ci			     27, UNIPHIER_PIN_PULL_UP),
728c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(19, "ES1", UNIPHIER_PIN_IECTRL_NONE,
738c2ecf20Sopenharmony_ci			     28, UNIPHIER_PIN_DRV_1BIT,
748c2ecf20Sopenharmony_ci			     28, UNIPHIER_PIN_PULL_UP),
758c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(20, "ES2", UNIPHIER_PIN_IECTRL_NONE,
768c2ecf20Sopenharmony_ci			     29, UNIPHIER_PIN_DRV_1BIT,
778c2ecf20Sopenharmony_ci			     29, UNIPHIER_PIN_PULL_UP),
788c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(21, "XERST", UNIPHIER_PIN_IECTRL_NONE,
798c2ecf20Sopenharmony_ci			     38, UNIPHIER_PIN_DRV_1BIT,
808c2ecf20Sopenharmony_ci			     38, UNIPHIER_PIN_PULL_UP),
818c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(22, "MMCCLK", UNIPHIER_PIN_IECTRL_NONE,
828c2ecf20Sopenharmony_ci			     0, UNIPHIER_PIN_DRV_2BIT,
838c2ecf20Sopenharmony_ci			     146, UNIPHIER_PIN_PULL_UP),
848c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(23, "MMCCMD", UNIPHIER_PIN_IECTRL_NONE,
858c2ecf20Sopenharmony_ci			     1, UNIPHIER_PIN_DRV_2BIT,
868c2ecf20Sopenharmony_ci			     147, UNIPHIER_PIN_PULL_UP),
878c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(24, "MMCDAT0", UNIPHIER_PIN_IECTRL_NONE,
888c2ecf20Sopenharmony_ci			     2, UNIPHIER_PIN_DRV_2BIT,
898c2ecf20Sopenharmony_ci			     148, UNIPHIER_PIN_PULL_UP),
908c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(25, "MMCDAT1", UNIPHIER_PIN_IECTRL_NONE,
918c2ecf20Sopenharmony_ci			     3, UNIPHIER_PIN_DRV_2BIT,
928c2ecf20Sopenharmony_ci			     149, UNIPHIER_PIN_PULL_UP),
938c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(26, "MMCDAT2", UNIPHIER_PIN_IECTRL_NONE,
948c2ecf20Sopenharmony_ci			     4, UNIPHIER_PIN_DRV_2BIT,
958c2ecf20Sopenharmony_ci			     150, UNIPHIER_PIN_PULL_UP),
968c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(27, "MMCDAT3", UNIPHIER_PIN_IECTRL_NONE,
978c2ecf20Sopenharmony_ci			     5, UNIPHIER_PIN_DRV_2BIT,
988c2ecf20Sopenharmony_ci			     151, UNIPHIER_PIN_PULL_UP),
998c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(28, "MMCDAT4", UNIPHIER_PIN_IECTRL_NONE,
1008c2ecf20Sopenharmony_ci			     6, UNIPHIER_PIN_DRV_2BIT,
1018c2ecf20Sopenharmony_ci			     152, UNIPHIER_PIN_PULL_UP),
1028c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(29, "MMCDAT5", UNIPHIER_PIN_IECTRL_NONE,
1038c2ecf20Sopenharmony_ci			     7, UNIPHIER_PIN_DRV_2BIT,
1048c2ecf20Sopenharmony_ci			     153, UNIPHIER_PIN_PULL_UP),
1058c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(30, "MMCDAT6", UNIPHIER_PIN_IECTRL_NONE,
1068c2ecf20Sopenharmony_ci			     8, UNIPHIER_PIN_DRV_2BIT,
1078c2ecf20Sopenharmony_ci			     154, UNIPHIER_PIN_PULL_UP),
1088c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(31, "MMCDAT7", UNIPHIER_PIN_IECTRL_NONE,
1098c2ecf20Sopenharmony_ci			     9, UNIPHIER_PIN_DRV_2BIT,
1108c2ecf20Sopenharmony_ci			     155, UNIPHIER_PIN_PULL_UP),
1118c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(32, "RMII_RXD0", 6,
1128c2ecf20Sopenharmony_ci			     39, UNIPHIER_PIN_DRV_1BIT,
1138c2ecf20Sopenharmony_ci			     39, UNIPHIER_PIN_PULL_DOWN),
1148c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(33, "RMII_RXD1", 6,
1158c2ecf20Sopenharmony_ci			     40, UNIPHIER_PIN_DRV_1BIT,
1168c2ecf20Sopenharmony_ci			     40, UNIPHIER_PIN_PULL_DOWN),
1178c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(34, "RMII_CRS_DV", 6,
1188c2ecf20Sopenharmony_ci			     41, UNIPHIER_PIN_DRV_1BIT,
1198c2ecf20Sopenharmony_ci			     41, UNIPHIER_PIN_PULL_DOWN),
1208c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(35, "RMII_RXER", 6,
1218c2ecf20Sopenharmony_ci			     42, UNIPHIER_PIN_DRV_1BIT,
1228c2ecf20Sopenharmony_ci			     42, UNIPHIER_PIN_PULL_DOWN),
1238c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(36, "RMII_REFCLK", 6,
1248c2ecf20Sopenharmony_ci			     43, UNIPHIER_PIN_DRV_1BIT,
1258c2ecf20Sopenharmony_ci			     43, UNIPHIER_PIN_PULL_DOWN),
1268c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(37, "RMII_TXD0", 6,
1278c2ecf20Sopenharmony_ci			     44, UNIPHIER_PIN_DRV_1BIT,
1288c2ecf20Sopenharmony_ci			     44, UNIPHIER_PIN_PULL_DOWN),
1298c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(38, "RMII_TXD1", 6,
1308c2ecf20Sopenharmony_ci			     45, UNIPHIER_PIN_DRV_1BIT,
1318c2ecf20Sopenharmony_ci			     45, UNIPHIER_PIN_PULL_DOWN),
1328c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(39, "RMII_TXEN", 6,
1338c2ecf20Sopenharmony_ci			     46, UNIPHIER_PIN_DRV_1BIT,
1348c2ecf20Sopenharmony_ci			     46, UNIPHIER_PIN_PULL_DOWN),
1358c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(40, "MDC", 6,
1368c2ecf20Sopenharmony_ci			     47, UNIPHIER_PIN_DRV_1BIT,
1378c2ecf20Sopenharmony_ci			     47, UNIPHIER_PIN_PULL_DOWN),
1388c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(41, "MDIO", 6,
1398c2ecf20Sopenharmony_ci			     48, UNIPHIER_PIN_DRV_1BIT,
1408c2ecf20Sopenharmony_ci			     48, UNIPHIER_PIN_PULL_DOWN),
1418c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(42, "MDIO_INTL", 6,
1428c2ecf20Sopenharmony_ci			     49, UNIPHIER_PIN_DRV_1BIT,
1438c2ecf20Sopenharmony_ci			     49, UNIPHIER_PIN_PULL_DOWN),
1448c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(43, "PHYRSTL", 6,
1458c2ecf20Sopenharmony_ci			     50, UNIPHIER_PIN_DRV_1BIT,
1468c2ecf20Sopenharmony_ci			     50, UNIPHIER_PIN_PULL_DOWN),
1478c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(44, "SDCLK", UNIPHIER_PIN_IECTRL_NONE,
1488c2ecf20Sopenharmony_ci			     10, UNIPHIER_PIN_DRV_2BIT,
1498c2ecf20Sopenharmony_ci			     156, UNIPHIER_PIN_PULL_UP),
1508c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(45, "SDCMD", UNIPHIER_PIN_IECTRL_NONE,
1518c2ecf20Sopenharmony_ci			     11, UNIPHIER_PIN_DRV_2BIT,
1528c2ecf20Sopenharmony_ci			     157, UNIPHIER_PIN_PULL_UP),
1538c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(46, "SDDAT0", UNIPHIER_PIN_IECTRL_NONE,
1548c2ecf20Sopenharmony_ci			     12, UNIPHIER_PIN_DRV_2BIT,
1558c2ecf20Sopenharmony_ci			     158, UNIPHIER_PIN_PULL_UP),
1568c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(47, "SDDAT1", UNIPHIER_PIN_IECTRL_NONE,
1578c2ecf20Sopenharmony_ci			     13, UNIPHIER_PIN_DRV_2BIT,
1588c2ecf20Sopenharmony_ci			     159, UNIPHIER_PIN_PULL_UP),
1598c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(48, "SDDAT2", UNIPHIER_PIN_IECTRL_NONE,
1608c2ecf20Sopenharmony_ci			     14, UNIPHIER_PIN_DRV_2BIT,
1618c2ecf20Sopenharmony_ci			     160, UNIPHIER_PIN_PULL_UP),
1628c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(49, "SDDAT3", UNIPHIER_PIN_IECTRL_NONE,
1638c2ecf20Sopenharmony_ci			     15, UNIPHIER_PIN_DRV_2BIT,
1648c2ecf20Sopenharmony_ci			     161, UNIPHIER_PIN_PULL_UP),
1658c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(50, "SDCD", UNIPHIER_PIN_IECTRL_NONE,
1668c2ecf20Sopenharmony_ci			     51, UNIPHIER_PIN_DRV_1BIT,
1678c2ecf20Sopenharmony_ci			     51, UNIPHIER_PIN_PULL_UP),
1688c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(51, "SDWP", UNIPHIER_PIN_IECTRL_NONE,
1698c2ecf20Sopenharmony_ci			     52, UNIPHIER_PIN_DRV_1BIT,
1708c2ecf20Sopenharmony_ci			     52, UNIPHIER_PIN_PULL_UP),
1718c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(52, "SDVOLC", UNIPHIER_PIN_IECTRL_NONE,
1728c2ecf20Sopenharmony_ci			     53, UNIPHIER_PIN_DRV_1BIT,
1738c2ecf20Sopenharmony_ci			     53, UNIPHIER_PIN_PULL_UP),
1748c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(53, "USB0VBUS", 0,
1758c2ecf20Sopenharmony_ci			     54, UNIPHIER_PIN_DRV_1BIT,
1768c2ecf20Sopenharmony_ci			     54, UNIPHIER_PIN_PULL_DOWN),
1778c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(54, "USB0OD", 0,
1788c2ecf20Sopenharmony_ci			     55, UNIPHIER_PIN_DRV_1BIT,
1798c2ecf20Sopenharmony_ci			     55, UNIPHIER_PIN_PULL_DOWN),
1808c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(55, "USB1VBUS", 0,
1818c2ecf20Sopenharmony_ci			     56, UNIPHIER_PIN_DRV_1BIT,
1828c2ecf20Sopenharmony_ci			     56, UNIPHIER_PIN_PULL_DOWN),
1838c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(56, "USB1OD", 0,
1848c2ecf20Sopenharmony_ci			     57, UNIPHIER_PIN_DRV_1BIT,
1858c2ecf20Sopenharmony_ci			     57, UNIPHIER_PIN_PULL_DOWN),
1868c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(57, "PCRESET", 0,
1878c2ecf20Sopenharmony_ci			     58, UNIPHIER_PIN_DRV_1BIT,
1888c2ecf20Sopenharmony_ci			     58, UNIPHIER_PIN_PULL_DOWN),
1898c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(58, "PCREG", 0,
1908c2ecf20Sopenharmony_ci			     59, UNIPHIER_PIN_DRV_1BIT,
1918c2ecf20Sopenharmony_ci			     59, UNIPHIER_PIN_PULL_DOWN),
1928c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(59, "PCCE2", 0,
1938c2ecf20Sopenharmony_ci			     60, UNIPHIER_PIN_DRV_1BIT,
1948c2ecf20Sopenharmony_ci			     60, UNIPHIER_PIN_PULL_DOWN),
1958c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(60, "PCVS1", 0,
1968c2ecf20Sopenharmony_ci			     61, UNIPHIER_PIN_DRV_1BIT,
1978c2ecf20Sopenharmony_ci			     61, UNIPHIER_PIN_PULL_DOWN),
1988c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(61, "PCCD2", 0,
1998c2ecf20Sopenharmony_ci			     62, UNIPHIER_PIN_DRV_1BIT,
2008c2ecf20Sopenharmony_ci			     62, UNIPHIER_PIN_PULL_DOWN),
2018c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(62, "PCCD1", 0,
2028c2ecf20Sopenharmony_ci			     63, UNIPHIER_PIN_DRV_1BIT,
2038c2ecf20Sopenharmony_ci			     63, UNIPHIER_PIN_PULL_DOWN),
2048c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(63, "PCREADY", 0,
2058c2ecf20Sopenharmony_ci			     64, UNIPHIER_PIN_DRV_1BIT,
2068c2ecf20Sopenharmony_ci			     64, UNIPHIER_PIN_PULL_DOWN),
2078c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(64, "PCDOE", 0,
2088c2ecf20Sopenharmony_ci			     65, UNIPHIER_PIN_DRV_1BIT,
2098c2ecf20Sopenharmony_ci			     65, UNIPHIER_PIN_PULL_DOWN),
2108c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(65, "PCCE1", 0,
2118c2ecf20Sopenharmony_ci			     66, UNIPHIER_PIN_DRV_1BIT,
2128c2ecf20Sopenharmony_ci			     66, UNIPHIER_PIN_PULL_DOWN),
2138c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(66, "PCWE", 0,
2148c2ecf20Sopenharmony_ci			     67, UNIPHIER_PIN_DRV_1BIT,
2158c2ecf20Sopenharmony_ci			     67, UNIPHIER_PIN_PULL_DOWN),
2168c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(67, "PCOE", 0,
2178c2ecf20Sopenharmony_ci			     68, UNIPHIER_PIN_DRV_1BIT,
2188c2ecf20Sopenharmony_ci			     68, UNIPHIER_PIN_PULL_DOWN),
2198c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(68, "PCWAIT", 0,
2208c2ecf20Sopenharmony_ci			     69, UNIPHIER_PIN_DRV_1BIT,
2218c2ecf20Sopenharmony_ci			     69, UNIPHIER_PIN_PULL_DOWN),
2228c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(69, "PCIOWR", 0,
2238c2ecf20Sopenharmony_ci			     70, UNIPHIER_PIN_DRV_1BIT,
2248c2ecf20Sopenharmony_ci			     70, UNIPHIER_PIN_PULL_DOWN),
2258c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(70, "PCIORD", 0,
2268c2ecf20Sopenharmony_ci			     71, UNIPHIER_PIN_DRV_1BIT,
2278c2ecf20Sopenharmony_ci			     71, UNIPHIER_PIN_PULL_DOWN),
2288c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(71, "HS0DIN0", 0,
2298c2ecf20Sopenharmony_ci			     72, UNIPHIER_PIN_DRV_1BIT,
2308c2ecf20Sopenharmony_ci			     72, UNIPHIER_PIN_PULL_DOWN),
2318c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(72, "HS0DIN1", 0,
2328c2ecf20Sopenharmony_ci			     73, UNIPHIER_PIN_DRV_1BIT,
2338c2ecf20Sopenharmony_ci			     73, UNIPHIER_PIN_PULL_DOWN),
2348c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(73, "HS0DIN2", 0,
2358c2ecf20Sopenharmony_ci			     74, UNIPHIER_PIN_DRV_1BIT,
2368c2ecf20Sopenharmony_ci			     74, UNIPHIER_PIN_PULL_DOWN),
2378c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(74, "HS0DIN3", 0,
2388c2ecf20Sopenharmony_ci			     75, UNIPHIER_PIN_DRV_1BIT,
2398c2ecf20Sopenharmony_ci			     75, UNIPHIER_PIN_PULL_DOWN),
2408c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(75, "HS0DIN4", 0,
2418c2ecf20Sopenharmony_ci			     76, UNIPHIER_PIN_DRV_1BIT,
2428c2ecf20Sopenharmony_ci			     76, UNIPHIER_PIN_PULL_DOWN),
2438c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(76, "HS0DIN5", 0,
2448c2ecf20Sopenharmony_ci			     77, UNIPHIER_PIN_DRV_1BIT,
2458c2ecf20Sopenharmony_ci			     77, UNIPHIER_PIN_PULL_DOWN),
2468c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(77, "HS0DIN6", 0,
2478c2ecf20Sopenharmony_ci			     78, UNIPHIER_PIN_DRV_1BIT,
2488c2ecf20Sopenharmony_ci			     78, UNIPHIER_PIN_PULL_DOWN),
2498c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(78, "HS0DIN7", 0,
2508c2ecf20Sopenharmony_ci			     79, UNIPHIER_PIN_DRV_1BIT,
2518c2ecf20Sopenharmony_ci			     79, UNIPHIER_PIN_PULL_DOWN),
2528c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(79, "HS0BCLKIN", 0,
2538c2ecf20Sopenharmony_ci			     80, UNIPHIER_PIN_DRV_1BIT,
2548c2ecf20Sopenharmony_ci			     80, UNIPHIER_PIN_PULL_DOWN),
2558c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(80, "HS0VALIN", 0,
2568c2ecf20Sopenharmony_ci			     81, UNIPHIER_PIN_DRV_1BIT,
2578c2ecf20Sopenharmony_ci			     81, UNIPHIER_PIN_PULL_DOWN),
2588c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(81, "HS0SYNCIN", 0,
2598c2ecf20Sopenharmony_ci			     82, UNIPHIER_PIN_DRV_1BIT,
2608c2ecf20Sopenharmony_ci			     82, UNIPHIER_PIN_PULL_DOWN),
2618c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(82, "HSDOUT0", 0,
2628c2ecf20Sopenharmony_ci			     83, UNIPHIER_PIN_DRV_1BIT,
2638c2ecf20Sopenharmony_ci			     83, UNIPHIER_PIN_PULL_DOWN),
2648c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(83, "HSDOUT1", 0,
2658c2ecf20Sopenharmony_ci			     84, UNIPHIER_PIN_DRV_1BIT,
2668c2ecf20Sopenharmony_ci			     84, UNIPHIER_PIN_PULL_DOWN),
2678c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(84, "HSDOUT2", 0,
2688c2ecf20Sopenharmony_ci			     85, UNIPHIER_PIN_DRV_1BIT,
2698c2ecf20Sopenharmony_ci			     85, UNIPHIER_PIN_PULL_DOWN),
2708c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(85, "HSDOUT3", 0,
2718c2ecf20Sopenharmony_ci			     86, UNIPHIER_PIN_DRV_1BIT,
2728c2ecf20Sopenharmony_ci			     86, UNIPHIER_PIN_PULL_DOWN),
2738c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(86, "HSDOUT4", 0,
2748c2ecf20Sopenharmony_ci			     87, UNIPHIER_PIN_DRV_1BIT,
2758c2ecf20Sopenharmony_ci			     87, UNIPHIER_PIN_PULL_DOWN),
2768c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(87, "HSDOUT5", 0,
2778c2ecf20Sopenharmony_ci			     88, UNIPHIER_PIN_DRV_1BIT,
2788c2ecf20Sopenharmony_ci			     88, UNIPHIER_PIN_PULL_DOWN),
2798c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(88, "HSDOUT6", 0,
2808c2ecf20Sopenharmony_ci			     89, UNIPHIER_PIN_DRV_1BIT,
2818c2ecf20Sopenharmony_ci			     89, UNIPHIER_PIN_PULL_DOWN),
2828c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(89, "HSDOUT7", 0,
2838c2ecf20Sopenharmony_ci			     90, UNIPHIER_PIN_DRV_1BIT,
2848c2ecf20Sopenharmony_ci			     90, UNIPHIER_PIN_PULL_DOWN),
2858c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(90, "HSBCLKOUT", 0,
2868c2ecf20Sopenharmony_ci			     91, UNIPHIER_PIN_DRV_1BIT,
2878c2ecf20Sopenharmony_ci			     91, UNIPHIER_PIN_PULL_DOWN),
2888c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(91, "HSVALOUT", 0,
2898c2ecf20Sopenharmony_ci			     92, UNIPHIER_PIN_DRV_1BIT,
2908c2ecf20Sopenharmony_ci			     92, UNIPHIER_PIN_PULL_DOWN),
2918c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(92, "HSSYNCOUT", 0,
2928c2ecf20Sopenharmony_ci			     93, UNIPHIER_PIN_DRV_1BIT,
2938c2ecf20Sopenharmony_ci			     93, UNIPHIER_PIN_PULL_DOWN),
2948c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(93, "AGCI", 3,
2958c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED4,
2968c2ecf20Sopenharmony_ci			     162, UNIPHIER_PIN_PULL_DOWN),
2978c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(94, "AGCR", 4,
2988c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED4,
2998c2ecf20Sopenharmony_ci			     163, UNIPHIER_PIN_PULL_DOWN),
3008c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(95, "AGCBS", 5,
3018c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED4,
3028c2ecf20Sopenharmony_ci			     164, UNIPHIER_PIN_PULL_DOWN),
3038c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(96, "IECOUT", 0,
3048c2ecf20Sopenharmony_ci			     94, UNIPHIER_PIN_DRV_1BIT,
3058c2ecf20Sopenharmony_ci			     94, UNIPHIER_PIN_PULL_DOWN),
3068c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(97, "ASMCK", 0,
3078c2ecf20Sopenharmony_ci			     95, UNIPHIER_PIN_DRV_1BIT,
3088c2ecf20Sopenharmony_ci			     95, UNIPHIER_PIN_PULL_DOWN),
3098c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(98, "ABCKO", UNIPHIER_PIN_IECTRL_NONE,
3108c2ecf20Sopenharmony_ci			     96, UNIPHIER_PIN_DRV_1BIT,
3118c2ecf20Sopenharmony_ci			     96, UNIPHIER_PIN_PULL_DOWN),
3128c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(99, "ALRCKO", UNIPHIER_PIN_IECTRL_NONE,
3138c2ecf20Sopenharmony_ci			     97, UNIPHIER_PIN_DRV_1BIT,
3148c2ecf20Sopenharmony_ci			     97, UNIPHIER_PIN_PULL_DOWN),
3158c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(100, "ASDOUT0", UNIPHIER_PIN_IECTRL_NONE,
3168c2ecf20Sopenharmony_ci			     98, UNIPHIER_PIN_DRV_1BIT,
3178c2ecf20Sopenharmony_ci			     98, UNIPHIER_PIN_PULL_DOWN),
3188c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(101, "ARCOUT", 0,
3198c2ecf20Sopenharmony_ci			     99, UNIPHIER_PIN_DRV_1BIT,
3208c2ecf20Sopenharmony_ci			     99, UNIPHIER_PIN_PULL_DOWN),
3218c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(102, "SDA0", UNIPHIER_PIN_IECTRL_NONE,
3228c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED4,
3238c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_PULL_NONE),
3248c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(103, "SCL0", UNIPHIER_PIN_IECTRL_NONE,
3258c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED4,
3268c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_PULL_NONE),
3278c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(104, "SDA1", UNIPHIER_PIN_IECTRL_NONE,
3288c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED4,
3298c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_PULL_NONE),
3308c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(105, "SCL1", UNIPHIER_PIN_IECTRL_NONE,
3318c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED4,
3328c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_PULL_NONE),
3338c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(106, "DMDSDA0", UNIPHIER_PIN_IECTRL_NONE,
3348c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED4,
3358c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_PULL_NONE),
3368c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(107, "DMDSCL0", UNIPHIER_PIN_IECTRL_NONE,
3378c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED4,
3388c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_PULL_NONE),
3398c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(108, "DMDSDA1", UNIPHIER_PIN_IECTRL_NONE,
3408c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED4,
3418c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_PULL_NONE),
3428c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(109, "DMDSCL1", UNIPHIER_PIN_IECTRL_NONE,
3438c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED4,
3448c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_PULL_NONE),
3458c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(110, "SBO0", UNIPHIER_PIN_IECTRL_NONE,
3468c2ecf20Sopenharmony_ci			     100, UNIPHIER_PIN_DRV_1BIT,
3478c2ecf20Sopenharmony_ci			     100, UNIPHIER_PIN_PULL_UP),
3488c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(111, "SBI0", UNIPHIER_PIN_IECTRL_NONE,
3498c2ecf20Sopenharmony_ci			     101, UNIPHIER_PIN_DRV_1BIT,
3508c2ecf20Sopenharmony_ci			     101, UNIPHIER_PIN_PULL_UP),
3518c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(112, "HIN", 1,
3528c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED5,
3538c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_PULL_NONE),
3548c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(113, "VIN", 2,
3558c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_DRV_FIXED5,
3568c2ecf20Sopenharmony_ci			     -1, UNIPHIER_PIN_PULL_NONE),
3578c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(114, "TCON0", UNIPHIER_PIN_IECTRL_NONE,
3588c2ecf20Sopenharmony_ci			     102, UNIPHIER_PIN_DRV_1BIT,
3598c2ecf20Sopenharmony_ci			     102, UNIPHIER_PIN_PULL_DOWN),
3608c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(115, "TCON1", UNIPHIER_PIN_IECTRL_NONE,
3618c2ecf20Sopenharmony_ci			     103, UNIPHIER_PIN_DRV_1BIT,
3628c2ecf20Sopenharmony_ci			     103, UNIPHIER_PIN_PULL_DOWN),
3638c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(116, "TCON2", UNIPHIER_PIN_IECTRL_NONE,
3648c2ecf20Sopenharmony_ci			     104, UNIPHIER_PIN_DRV_1BIT,
3658c2ecf20Sopenharmony_ci			     104, UNIPHIER_PIN_PULL_DOWN),
3668c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(117, "TCON3", UNIPHIER_PIN_IECTRL_NONE,
3678c2ecf20Sopenharmony_ci			     105, UNIPHIER_PIN_DRV_1BIT,
3688c2ecf20Sopenharmony_ci			     105, UNIPHIER_PIN_PULL_DOWN),
3698c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(118, "TCON4", UNIPHIER_PIN_IECTRL_NONE,
3708c2ecf20Sopenharmony_ci			     106, UNIPHIER_PIN_DRV_1BIT,
3718c2ecf20Sopenharmony_ci			     106, UNIPHIER_PIN_PULL_DOWN),
3728c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(119, "TCON5", UNIPHIER_PIN_IECTRL_NONE,
3738c2ecf20Sopenharmony_ci			     107, UNIPHIER_PIN_DRV_1BIT,
3748c2ecf20Sopenharmony_ci			     107, UNIPHIER_PIN_PULL_DOWN),
3758c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(120, "TCON6", 0,
3768c2ecf20Sopenharmony_ci			     108, UNIPHIER_PIN_DRV_1BIT,
3778c2ecf20Sopenharmony_ci			     108, UNIPHIER_PIN_PULL_DOWN),
3788c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(121, "TCON7", 0,
3798c2ecf20Sopenharmony_ci			     109, UNIPHIER_PIN_DRV_1BIT,
3808c2ecf20Sopenharmony_ci			     109, UNIPHIER_PIN_PULL_DOWN),
3818c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(122, "PWMA", 0,
3828c2ecf20Sopenharmony_ci			     110, UNIPHIER_PIN_DRV_1BIT,
3838c2ecf20Sopenharmony_ci			     110, UNIPHIER_PIN_PULL_DOWN),
3848c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(123, "XIRQ1", 0,
3858c2ecf20Sopenharmony_ci			     111, UNIPHIER_PIN_DRV_1BIT,
3868c2ecf20Sopenharmony_ci			     111, UNIPHIER_PIN_PULL_DOWN),
3878c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(124, "XIRQ2", 0,
3888c2ecf20Sopenharmony_ci			     112, UNIPHIER_PIN_DRV_1BIT,
3898c2ecf20Sopenharmony_ci			     112, UNIPHIER_PIN_PULL_DOWN),
3908c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(125, "XIRQ3", 0,
3918c2ecf20Sopenharmony_ci			     113, UNIPHIER_PIN_DRV_1BIT,
3928c2ecf20Sopenharmony_ci			     113, UNIPHIER_PIN_PULL_DOWN),
3938c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(126, "XIRQ4", 0,
3948c2ecf20Sopenharmony_ci			     114, UNIPHIER_PIN_DRV_1BIT,
3958c2ecf20Sopenharmony_ci			     114, UNIPHIER_PIN_PULL_DOWN),
3968c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(127, "XIRQ5", 0,
3978c2ecf20Sopenharmony_ci			     115, UNIPHIER_PIN_DRV_1BIT,
3988c2ecf20Sopenharmony_ci			     115, UNIPHIER_PIN_PULL_DOWN),
3998c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(128, "XIRQ6", 0,
4008c2ecf20Sopenharmony_ci			     116, UNIPHIER_PIN_DRV_1BIT,
4018c2ecf20Sopenharmony_ci			     116, UNIPHIER_PIN_PULL_DOWN),
4028c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(129, "XIRQ7", 0,
4038c2ecf20Sopenharmony_ci			     117, UNIPHIER_PIN_DRV_1BIT,
4048c2ecf20Sopenharmony_ci			     117, UNIPHIER_PIN_PULL_DOWN),
4058c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(130, "XIRQ8", 0,
4068c2ecf20Sopenharmony_ci			     118, UNIPHIER_PIN_DRV_1BIT,
4078c2ecf20Sopenharmony_ci			     118, UNIPHIER_PIN_PULL_DOWN),
4088c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(131, "XIRQ9", 0,
4098c2ecf20Sopenharmony_ci			     119, UNIPHIER_PIN_DRV_1BIT,
4108c2ecf20Sopenharmony_ci			     119, UNIPHIER_PIN_PULL_DOWN),
4118c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(132, "XIRQ10", 0,
4128c2ecf20Sopenharmony_ci			     120, UNIPHIER_PIN_DRV_1BIT,
4138c2ecf20Sopenharmony_ci			     120, UNIPHIER_PIN_PULL_DOWN),
4148c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(133, "XIRQ11", 0,
4158c2ecf20Sopenharmony_ci			     121, UNIPHIER_PIN_DRV_1BIT,
4168c2ecf20Sopenharmony_ci			     121, UNIPHIER_PIN_PULL_DOWN),
4178c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(134, "XIRQ14", 0,
4188c2ecf20Sopenharmony_ci			     122, UNIPHIER_PIN_DRV_1BIT,
4198c2ecf20Sopenharmony_ci			     122, UNIPHIER_PIN_PULL_DOWN),
4208c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(135, "PORT00", 0,
4218c2ecf20Sopenharmony_ci			     123, UNIPHIER_PIN_DRV_1BIT,
4228c2ecf20Sopenharmony_ci			     123, UNIPHIER_PIN_PULL_DOWN),
4238c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(136, "PORT01", 0,
4248c2ecf20Sopenharmony_ci			     124, UNIPHIER_PIN_DRV_1BIT,
4258c2ecf20Sopenharmony_ci			     124, UNIPHIER_PIN_PULL_DOWN),
4268c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(137, "PORT02", 0,
4278c2ecf20Sopenharmony_ci			     125, UNIPHIER_PIN_DRV_1BIT,
4288c2ecf20Sopenharmony_ci			     125, UNIPHIER_PIN_PULL_DOWN),
4298c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(138, "PORT03", 0,
4308c2ecf20Sopenharmony_ci			     126, UNIPHIER_PIN_DRV_1BIT,
4318c2ecf20Sopenharmony_ci			     126, UNIPHIER_PIN_PULL_DOWN),
4328c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(139, "PORT04", 0,
4338c2ecf20Sopenharmony_ci			     127, UNIPHIER_PIN_DRV_1BIT,
4348c2ecf20Sopenharmony_ci			     127, UNIPHIER_PIN_PULL_DOWN),
4358c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(140, "PORT05", 0,
4368c2ecf20Sopenharmony_ci			     128, UNIPHIER_PIN_DRV_1BIT,
4378c2ecf20Sopenharmony_ci			     128, UNIPHIER_PIN_PULL_DOWN),
4388c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(141, "PORT06", 0,
4398c2ecf20Sopenharmony_ci			     129, UNIPHIER_PIN_DRV_1BIT,
4408c2ecf20Sopenharmony_ci			     129, UNIPHIER_PIN_PULL_DOWN),
4418c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(142, "PORT07", 0,
4428c2ecf20Sopenharmony_ci			     130, UNIPHIER_PIN_DRV_1BIT,
4438c2ecf20Sopenharmony_ci			     130, UNIPHIER_PIN_PULL_DOWN),
4448c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(143, "PORT10", 0,
4458c2ecf20Sopenharmony_ci			     131, UNIPHIER_PIN_DRV_1BIT,
4468c2ecf20Sopenharmony_ci			     131, UNIPHIER_PIN_PULL_DOWN),
4478c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(144, "PORT11", 0,
4488c2ecf20Sopenharmony_ci			     132, UNIPHIER_PIN_DRV_1BIT,
4498c2ecf20Sopenharmony_ci			     132, UNIPHIER_PIN_PULL_DOWN),
4508c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(145, "PORT12", 0,
4518c2ecf20Sopenharmony_ci			     133, UNIPHIER_PIN_DRV_1BIT,
4528c2ecf20Sopenharmony_ci			     133, UNIPHIER_PIN_PULL_DOWN),
4538c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(146, "PORT13", 0,
4548c2ecf20Sopenharmony_ci			     134, UNIPHIER_PIN_DRV_1BIT,
4558c2ecf20Sopenharmony_ci			     134, UNIPHIER_PIN_PULL_DOWN),
4568c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(147, "PORT14", 0,
4578c2ecf20Sopenharmony_ci			     135, UNIPHIER_PIN_DRV_1BIT,
4588c2ecf20Sopenharmony_ci			     135, UNIPHIER_PIN_PULL_DOWN),
4598c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(148, "PORT15", 0,
4608c2ecf20Sopenharmony_ci			     136, UNIPHIER_PIN_DRV_1BIT,
4618c2ecf20Sopenharmony_ci			     136, UNIPHIER_PIN_PULL_DOWN),
4628c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(149, "PORT16", 0,
4638c2ecf20Sopenharmony_ci			     137, UNIPHIER_PIN_DRV_1BIT,
4648c2ecf20Sopenharmony_ci			     137, UNIPHIER_PIN_PULL_DOWN),
4658c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(150, "PORT17", UNIPHIER_PIN_IECTRL_NONE,
4668c2ecf20Sopenharmony_ci			     138, UNIPHIER_PIN_DRV_1BIT,
4678c2ecf20Sopenharmony_ci			     138, UNIPHIER_PIN_PULL_DOWN),
4688c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(151, "PORT20", 0,
4698c2ecf20Sopenharmony_ci			     139, UNIPHIER_PIN_DRV_1BIT,
4708c2ecf20Sopenharmony_ci			     139, UNIPHIER_PIN_PULL_DOWN),
4718c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(152, "PORT21", 0,
4728c2ecf20Sopenharmony_ci			     140, UNIPHIER_PIN_DRV_1BIT,
4738c2ecf20Sopenharmony_ci			     140, UNIPHIER_PIN_PULL_DOWN),
4748c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(153, "PORT22", 0,
4758c2ecf20Sopenharmony_ci			     141, UNIPHIER_PIN_DRV_1BIT,
4768c2ecf20Sopenharmony_ci			     141, UNIPHIER_PIN_PULL_DOWN),
4778c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(154, "PORT23", 0,
4788c2ecf20Sopenharmony_ci			     142, UNIPHIER_PIN_DRV_1BIT,
4798c2ecf20Sopenharmony_ci			     142, UNIPHIER_PIN_PULL_DOWN),
4808c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(155, "PORT24", UNIPHIER_PIN_IECTRL_NONE,
4818c2ecf20Sopenharmony_ci			     143, UNIPHIER_PIN_DRV_1BIT,
4828c2ecf20Sopenharmony_ci			     143, UNIPHIER_PIN_PULL_DOWN),
4838c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(156, "PORT25", 0,
4848c2ecf20Sopenharmony_ci			     144, UNIPHIER_PIN_DRV_1BIT,
4858c2ecf20Sopenharmony_ci			     144, UNIPHIER_PIN_PULL_DOWN),
4868c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(157, "PORT26", 0,
4878c2ecf20Sopenharmony_ci			     145, UNIPHIER_PIN_DRV_1BIT,
4888c2ecf20Sopenharmony_ci			     145, UNIPHIER_PIN_PULL_DOWN),
4898c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(158, "XNFRE", UNIPHIER_PIN_IECTRL_NONE,
4908c2ecf20Sopenharmony_ci			     31, UNIPHIER_PIN_DRV_1BIT,
4918c2ecf20Sopenharmony_ci			     31, UNIPHIER_PIN_PULL_UP),
4928c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(159, "XNFWE", UNIPHIER_PIN_IECTRL_NONE,
4938c2ecf20Sopenharmony_ci			     32, UNIPHIER_PIN_DRV_1BIT,
4948c2ecf20Sopenharmony_ci			     32, UNIPHIER_PIN_PULL_UP),
4958c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(160, "NFALE", UNIPHIER_PIN_IECTRL_NONE,
4968c2ecf20Sopenharmony_ci			     33, UNIPHIER_PIN_DRV_1BIT,
4978c2ecf20Sopenharmony_ci			     33, UNIPHIER_PIN_PULL_DOWN),
4988c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(161, "NFCLE", UNIPHIER_PIN_IECTRL_NONE,
4998c2ecf20Sopenharmony_ci			     34, UNIPHIER_PIN_DRV_1BIT,
5008c2ecf20Sopenharmony_ci			     34, UNIPHIER_PIN_PULL_DOWN),
5018c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(162, "XNFWP", UNIPHIER_PIN_IECTRL_NONE,
5028c2ecf20Sopenharmony_ci			     35, UNIPHIER_PIN_DRV_1BIT,
5038c2ecf20Sopenharmony_ci			     35, UNIPHIER_PIN_PULL_DOWN),
5048c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(163, "XNFCE0", UNIPHIER_PIN_IECTRL_NONE,
5058c2ecf20Sopenharmony_ci			     36, UNIPHIER_PIN_DRV_1BIT,
5068c2ecf20Sopenharmony_ci			     36, UNIPHIER_PIN_PULL_UP),
5078c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(164, "NANDRYBY0", UNIPHIER_PIN_IECTRL_NONE,
5088c2ecf20Sopenharmony_ci			     37, UNIPHIER_PIN_DRV_1BIT,
5098c2ecf20Sopenharmony_ci			     37, UNIPHIER_PIN_PULL_UP),
5108c2ecf20Sopenharmony_ci	/* dedicated pins */
5118c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(165, "ED0", -1,
5128c2ecf20Sopenharmony_ci			     0, UNIPHIER_PIN_DRV_1BIT,
5138c2ecf20Sopenharmony_ci			     0, UNIPHIER_PIN_PULL_DOWN),
5148c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(166, "ED1", -1,
5158c2ecf20Sopenharmony_ci			     1, UNIPHIER_PIN_DRV_1BIT,
5168c2ecf20Sopenharmony_ci			     1, UNIPHIER_PIN_PULL_DOWN),
5178c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(167, "ED2", -1,
5188c2ecf20Sopenharmony_ci			     2, UNIPHIER_PIN_DRV_1BIT,
5198c2ecf20Sopenharmony_ci			     2, UNIPHIER_PIN_PULL_DOWN),
5208c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(168, "ED3", -1,
5218c2ecf20Sopenharmony_ci			     3, UNIPHIER_PIN_DRV_1BIT,
5228c2ecf20Sopenharmony_ci			     3, UNIPHIER_PIN_PULL_DOWN),
5238c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(169, "ED4", -1,
5248c2ecf20Sopenharmony_ci			     4, UNIPHIER_PIN_DRV_1BIT,
5258c2ecf20Sopenharmony_ci			     4, UNIPHIER_PIN_PULL_DOWN),
5268c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(170, "ED5", -1,
5278c2ecf20Sopenharmony_ci			     5, UNIPHIER_PIN_DRV_1BIT,
5288c2ecf20Sopenharmony_ci			     5, UNIPHIER_PIN_PULL_DOWN),
5298c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(171, "ED6", -1,
5308c2ecf20Sopenharmony_ci			     6, UNIPHIER_PIN_DRV_1BIT,
5318c2ecf20Sopenharmony_ci			     6, UNIPHIER_PIN_PULL_DOWN),
5328c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(172, "ED7", -1,
5338c2ecf20Sopenharmony_ci			     7, UNIPHIER_PIN_DRV_1BIT,
5348c2ecf20Sopenharmony_ci			     7, UNIPHIER_PIN_PULL_DOWN),
5358c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(173, "ERXW", -1,
5368c2ecf20Sopenharmony_ci			     26, UNIPHIER_PIN_DRV_1BIT,
5378c2ecf20Sopenharmony_ci			     26, UNIPHIER_PIN_PULL_UP),
5388c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_PIN(174, "XECS1", -1,
5398c2ecf20Sopenharmony_ci			     30, UNIPHIER_PIN_DRV_1BIT,
5408c2ecf20Sopenharmony_ci			     30, UNIPHIER_PIN_PULL_UP),
5418c2ecf20Sopenharmony_ci};
5428c2ecf20Sopenharmony_ci
5438c2ecf20Sopenharmony_cistatic const unsigned emmc_pins[] = {21, 22, 23, 24, 25, 26, 27};
5448c2ecf20Sopenharmony_cistatic const int emmc_muxvals[] = {0, 1, 1, 1, 1, 1, 1};
5458c2ecf20Sopenharmony_cistatic const unsigned emmc_dat8_pins[] = {28, 29, 30, 31};
5468c2ecf20Sopenharmony_cistatic const int emmc_dat8_muxvals[] = {1, 1, 1, 1};
5478c2ecf20Sopenharmony_cistatic const unsigned ether_mii_pins[] = {32, 33, 34, 35, 36, 37, 38, 39, 40,
5488c2ecf20Sopenharmony_ci					  41, 42, 43, 136, 137, 138, 139, 140,
5498c2ecf20Sopenharmony_ci					  141, 142};
5508c2ecf20Sopenharmony_cistatic const int ether_mii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5518c2ecf20Sopenharmony_ci					4, 4, 4, 4, 4, 4, 4};
5528c2ecf20Sopenharmony_cistatic const unsigned ether_rmii_pins[] = {32, 33, 34, 35, 36, 37, 38, 39, 40,
5538c2ecf20Sopenharmony_ci					   41, 42, 43};
5548c2ecf20Sopenharmony_cistatic const int ether_rmii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
5558c2ecf20Sopenharmony_cistatic const unsigned i2c0_pins[] = {102, 103};
5568c2ecf20Sopenharmony_cistatic const int i2c0_muxvals[] = {0, 0};
5578c2ecf20Sopenharmony_cistatic const unsigned i2c1_pins[] = {104, 105};
5588c2ecf20Sopenharmony_cistatic const int i2c1_muxvals[] = {0, 0};
5598c2ecf20Sopenharmony_cistatic const unsigned i2c2_pins[] = {108, 109};
5608c2ecf20Sopenharmony_cistatic const int i2c2_muxvals[] = {2, 2};
5618c2ecf20Sopenharmony_cistatic const unsigned i2c3_pins[] = {108, 109};
5628c2ecf20Sopenharmony_cistatic const int i2c3_muxvals[] = {3, 3};
5638c2ecf20Sopenharmony_cistatic const unsigned nand_pins[] = {24, 25, 26, 27, 28, 29, 30, 31, 158, 159,
5648c2ecf20Sopenharmony_ci				     160, 161, 162, 163, 164};
5658c2ecf20Sopenharmony_cistatic const int nand_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
5668c2ecf20Sopenharmony_cistatic const unsigned nand_cs1_pins[] = {22, 23};
5678c2ecf20Sopenharmony_cistatic const int nand_cs1_muxvals[] = {0, 0};
5688c2ecf20Sopenharmony_cistatic const unsigned sd_pins[] = {44, 45, 46, 47, 48, 49, 50, 51, 52};
5698c2ecf20Sopenharmony_cistatic const int sd_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
5708c2ecf20Sopenharmony_cistatic const unsigned spi0_pins[] = {135, 136, 137, 138};
5718c2ecf20Sopenharmony_cistatic const int spi0_muxvals[] = {12, 12, 12, 12};
5728c2ecf20Sopenharmony_cistatic const unsigned system_bus_pins[] = {16, 17, 18, 19, 20, 165, 166, 167,
5738c2ecf20Sopenharmony_ci					   168, 169, 170, 171, 172, 173};
5748c2ecf20Sopenharmony_cistatic const int system_bus_muxvals[] = {0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1,
5758c2ecf20Sopenharmony_ci					 -1, -1, -1};
5768c2ecf20Sopenharmony_cistatic const unsigned system_bus_cs0_pins[] = {155};
5778c2ecf20Sopenharmony_cistatic const int system_bus_cs0_muxvals[] = {1};
5788c2ecf20Sopenharmony_cistatic const unsigned system_bus_cs1_pins[] = {174};
5798c2ecf20Sopenharmony_cistatic const int system_bus_cs1_muxvals[] = {-1};
5808c2ecf20Sopenharmony_cistatic const unsigned system_bus_cs2_pins[] = {64};
5818c2ecf20Sopenharmony_cistatic const int system_bus_cs2_muxvals[] = {1};
5828c2ecf20Sopenharmony_cistatic const unsigned system_bus_cs3_pins[] = {156};
5838c2ecf20Sopenharmony_cistatic const int system_bus_cs3_muxvals[] = {1};
5848c2ecf20Sopenharmony_cistatic const unsigned uart0_pins[] = {85, 88};
5858c2ecf20Sopenharmony_cistatic const int uart0_muxvals[] = {1, 1};
5868c2ecf20Sopenharmony_cistatic const unsigned uart0_ctsrts_pins[] = {86, 89};
5878c2ecf20Sopenharmony_cistatic const int uart0_ctsrts_muxvals[] = {1, 1};
5888c2ecf20Sopenharmony_cistatic const unsigned uart0_modem_pins[] = {87};
5898c2ecf20Sopenharmony_cistatic const int uart0_modem_muxvals[] = {1};
5908c2ecf20Sopenharmony_cistatic const unsigned uart1_pins[] = {155, 156};
5918c2ecf20Sopenharmony_cistatic const int uart1_muxvals[] = {13, 13};
5928c2ecf20Sopenharmony_cistatic const unsigned uart1b_pins[] = {69, 70};
5938c2ecf20Sopenharmony_cistatic const int uart1b_muxvals[] = {23, 23};
5948c2ecf20Sopenharmony_cistatic const unsigned uart2_pins[] = {128, 129};
5958c2ecf20Sopenharmony_cistatic const int uart2_muxvals[] = {13, 13};
5968c2ecf20Sopenharmony_cistatic const unsigned uart3_pins[] = {110, 111};
5978c2ecf20Sopenharmony_cistatic const int uart3_muxvals[] = {1, 1};
5988c2ecf20Sopenharmony_cistatic const unsigned usb0_pins[] = {53, 54};
5998c2ecf20Sopenharmony_cistatic const int usb0_muxvals[] = {0, 0};
6008c2ecf20Sopenharmony_cistatic const unsigned usb1_pins[] = {55, 56};
6018c2ecf20Sopenharmony_cistatic const int usb1_muxvals[] = {0, 0};
6028c2ecf20Sopenharmony_cistatic const unsigned usb2_pins[] = {155, 156};
6038c2ecf20Sopenharmony_cistatic const int usb2_muxvals[] = {4, 4};
6048c2ecf20Sopenharmony_cistatic const unsigned usb2b_pins[] = {67, 68};
6058c2ecf20Sopenharmony_cistatic const int usb2b_muxvals[] = {23, 23};
6068c2ecf20Sopenharmony_cistatic const unsigned int gpio_range_pins[] = {
6078c2ecf20Sopenharmony_ci	135, 136, 137, 138, 139, 140, 141, 142,	/* PORT0x */
6088c2ecf20Sopenharmony_ci	143, 144, 145, 146, 147, 148, 149, 150,	/* PORT1x */
6098c2ecf20Sopenharmony_ci	151, 152, 153, 154, 155, 156, 157, 0,	/* PORT2x */
6108c2ecf20Sopenharmony_ci	1, 2, 3, 4, 5, 120, 121, 122,		/* PORT3x */
6118c2ecf20Sopenharmony_ci	24, 25, 26, 27, 28, 29, 30, 31,		/* PORT4x */
6128c2ecf20Sopenharmony_ci	40, 41, 42, 43, 44, 45, 46, 47,		/* PORT5x */
6138c2ecf20Sopenharmony_ci	48, 49, 50, 51, 52, 53, 54, 55,		/* PORT6x */
6148c2ecf20Sopenharmony_ci	56, 85, 84, 59, 82, 61, 64, 65,		/* PORT7x */
6158c2ecf20Sopenharmony_ci	8, 9, 10, 11, 12, 13, 14, 15,		/* PORT8x */
6168c2ecf20Sopenharmony_ci	66, 67, 68, 69, 70, 71, 72, 73,		/* PORT9x */
6178c2ecf20Sopenharmony_ci	74, 75, 89, 86, 78, 79, 80, 81,		/* PORT10x */
6188c2ecf20Sopenharmony_ci	60, 83, 58, 57, 88, 87, 77, 76,		/* PORT11x */
6198c2ecf20Sopenharmony_ci	90, 91, 92, 93, 94, 95, 96, 97,		/* PORT12x */
6208c2ecf20Sopenharmony_ci	98, 99, 100, 6, 101, 114, 115, 116,	/* PORT13x */
6218c2ecf20Sopenharmony_ci	103, 108, 21, 22, 23, 117, 118, 119,	/* PORT14x */
6228c2ecf20Sopenharmony_ci	151, 123, 124, 125, 126, 127, 128, 129,	/* XIRQ0-7 */
6238c2ecf20Sopenharmony_ci	130, 131, 132, 133, 62, 7, 134, 63,   /* XIRQ8-12, PORT165, XIRQ14-15 */
6248c2ecf20Sopenharmony_ci};
6258c2ecf20Sopenharmony_ci
6268c2ecf20Sopenharmony_cistatic const struct uniphier_pinctrl_group uniphier_ld4_groups[] = {
6278c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(emmc),
6288c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(emmc_dat8),
6298c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(ether_mii),
6308c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(ether_rmii),
6318c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(i2c0),
6328c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(i2c1),
6338c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(i2c2),
6348c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(i2c3),
6358c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(nand),
6368c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(nand_cs1),
6378c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(sd),
6388c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(spi0),
6398c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(system_bus),
6408c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(system_bus_cs0),
6418c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(system_bus_cs1),
6428c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(system_bus_cs2),
6438c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(system_bus_cs3),
6448c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(uart0),
6458c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(uart0_ctsrts),
6468c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(uart0_modem),
6478c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(uart1),
6488c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(uart1b),
6498c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(uart2),
6508c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(uart3),
6518c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(usb0),
6528c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(usb1),
6538c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(usb2),
6548c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP(usb2b),
6558c2ecf20Sopenharmony_ci	UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range),
6568c2ecf20Sopenharmony_ci};
6578c2ecf20Sopenharmony_ci
6588c2ecf20Sopenharmony_cistatic const char * const emmc_groups[] = {"emmc", "emmc_dat8"};
6598c2ecf20Sopenharmony_cistatic const char * const ether_mii_groups[] = {"ether_mii"};
6608c2ecf20Sopenharmony_cistatic const char * const ether_rmii_groups[] = {"ether_rmii"};
6618c2ecf20Sopenharmony_cistatic const char * const i2c0_groups[] = {"i2c0"};
6628c2ecf20Sopenharmony_cistatic const char * const i2c1_groups[] = {"i2c1"};
6638c2ecf20Sopenharmony_cistatic const char * const i2c2_groups[] = {"i2c2"};
6648c2ecf20Sopenharmony_cistatic const char * const i2c3_groups[] = {"i2c3"};
6658c2ecf20Sopenharmony_cistatic const char * const nand_groups[] = {"nand", "nand_cs1"};
6668c2ecf20Sopenharmony_cistatic const char * const sd_groups[] = {"sd"};
6678c2ecf20Sopenharmony_cistatic const char * const spi0_groups[] = {"spi0"};
6688c2ecf20Sopenharmony_cistatic const char * const system_bus_groups[] = {"system_bus",
6698c2ecf20Sopenharmony_ci						 "system_bus_cs0",
6708c2ecf20Sopenharmony_ci						 "system_bus_cs1",
6718c2ecf20Sopenharmony_ci						 "system_bus_cs2",
6728c2ecf20Sopenharmony_ci						 "system_bus_cs3"};
6738c2ecf20Sopenharmony_cistatic const char * const uart0_groups[] = {"uart0", "uart0_ctsrts",
6748c2ecf20Sopenharmony_ci					    "uart0_modem"};
6758c2ecf20Sopenharmony_cistatic const char * const uart1_groups[] = {"uart1", "uart1b"};
6768c2ecf20Sopenharmony_cistatic const char * const uart2_groups[] = {"uart2"};
6778c2ecf20Sopenharmony_cistatic const char * const uart3_groups[] = {"uart3"};
6788c2ecf20Sopenharmony_cistatic const char * const usb0_groups[] = {"usb0"};
6798c2ecf20Sopenharmony_cistatic const char * const usb1_groups[] = {"usb1"};
6808c2ecf20Sopenharmony_cistatic const char * const usb2_groups[] = {"usb2", "usb2b"};
6818c2ecf20Sopenharmony_ci
6828c2ecf20Sopenharmony_cistatic const struct uniphier_pinmux_function uniphier_ld4_functions[] = {
6838c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(emmc),
6848c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(ether_mii),
6858c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(ether_rmii),
6868c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(i2c0),
6878c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(i2c1),
6888c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(i2c2),
6898c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(i2c3),
6908c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(nand),
6918c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(sd),
6928c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(spi0),
6938c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(system_bus),
6948c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(uart0),
6958c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(uart1),
6968c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(uart2),
6978c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(uart3),
6988c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(usb0),
6998c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(usb1),
7008c2ecf20Sopenharmony_ci	UNIPHIER_PINMUX_FUNCTION(usb2),
7018c2ecf20Sopenharmony_ci};
7028c2ecf20Sopenharmony_ci
7038c2ecf20Sopenharmony_cistatic int uniphier_ld4_get_gpio_muxval(unsigned int pin,
7048c2ecf20Sopenharmony_ci					unsigned int gpio_offset)
7058c2ecf20Sopenharmony_ci{
7068c2ecf20Sopenharmony_ci	switch (gpio_offset) {
7078c2ecf20Sopenharmony_ci	case 0 ... 22:		/* PORT00-PORT26 */
7088c2ecf20Sopenharmony_ci	case 121 ... 131:	/* XIRQ1-XIRQ11 */
7098c2ecf20Sopenharmony_ci	case 134:		/* XIRQ14 */
7108c2ecf20Sopenharmony_ci		return 0;
7118c2ecf20Sopenharmony_ci	case 120:		/* XIRQ0 */
7128c2ecf20Sopenharmony_ci	case 132:		/* XIRQ12 */
7138c2ecf20Sopenharmony_ci	case 135:		/* XIRQ15 */
7148c2ecf20Sopenharmony_ci		return 14;
7158c2ecf20Sopenharmony_ci	default:
7168c2ecf20Sopenharmony_ci		return 15;
7178c2ecf20Sopenharmony_ci	}
7188c2ecf20Sopenharmony_ci}
7198c2ecf20Sopenharmony_ci
7208c2ecf20Sopenharmony_cistatic const struct uniphier_pinctrl_socdata uniphier_ld4_pindata = {
7218c2ecf20Sopenharmony_ci	.pins = uniphier_ld4_pins,
7228c2ecf20Sopenharmony_ci	.npins = ARRAY_SIZE(uniphier_ld4_pins),
7238c2ecf20Sopenharmony_ci	.groups = uniphier_ld4_groups,
7248c2ecf20Sopenharmony_ci	.groups_count = ARRAY_SIZE(uniphier_ld4_groups),
7258c2ecf20Sopenharmony_ci	.functions = uniphier_ld4_functions,
7268c2ecf20Sopenharmony_ci	.functions_count = ARRAY_SIZE(uniphier_ld4_functions),
7278c2ecf20Sopenharmony_ci	.get_gpio_muxval = uniphier_ld4_get_gpio_muxval,
7288c2ecf20Sopenharmony_ci	.caps = 0,
7298c2ecf20Sopenharmony_ci};
7308c2ecf20Sopenharmony_ci
7318c2ecf20Sopenharmony_cistatic int uniphier_ld4_pinctrl_probe(struct platform_device *pdev)
7328c2ecf20Sopenharmony_ci{
7338c2ecf20Sopenharmony_ci	return uniphier_pinctrl_probe(pdev, &uniphier_ld4_pindata);
7348c2ecf20Sopenharmony_ci}
7358c2ecf20Sopenharmony_ci
7368c2ecf20Sopenharmony_cistatic const struct of_device_id uniphier_ld4_pinctrl_match[] = {
7378c2ecf20Sopenharmony_ci	{ .compatible = "socionext,uniphier-ld4-pinctrl" },
7388c2ecf20Sopenharmony_ci	{ /* sentinel */ }
7398c2ecf20Sopenharmony_ci};
7408c2ecf20Sopenharmony_ci
7418c2ecf20Sopenharmony_cistatic struct platform_driver uniphier_ld4_pinctrl_driver = {
7428c2ecf20Sopenharmony_ci	.probe = uniphier_ld4_pinctrl_probe,
7438c2ecf20Sopenharmony_ci	.driver = {
7448c2ecf20Sopenharmony_ci		.name = "uniphier-ld4-pinctrl",
7458c2ecf20Sopenharmony_ci		.of_match_table = uniphier_ld4_pinctrl_match,
7468c2ecf20Sopenharmony_ci		.pm = &uniphier_pinctrl_pm_ops,
7478c2ecf20Sopenharmony_ci	},
7488c2ecf20Sopenharmony_ci};
7498c2ecf20Sopenharmony_cibuiltin_platform_driver(uniphier_ld4_pinctrl_driver);
750