162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+ 262306a36Sopenharmony_ci// 362306a36Sopenharmony_ci// Copyright (C) 2015-2017 Socionext Inc. 462306a36Sopenharmony_ci// Author: Masahiro Yamada <yamada.masahiro@socionext.com> 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#include <linux/kernel.h> 762306a36Sopenharmony_ci#include <linux/init.h> 862306a36Sopenharmony_ci#include <linux/mod_devicetable.h> 962306a36Sopenharmony_ci#include <linux/pinctrl/pinctrl.h> 1062306a36Sopenharmony_ci#include <linux/platform_device.h> 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#include "pinctrl-uniphier.h" 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_cistatic const struct pinctrl_pin_desc uniphier_ld4_pins[] = { 1562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(0, "EA1", UNIPHIER_PIN_IECTRL_NONE, 1662306a36Sopenharmony_ci 8, UNIPHIER_PIN_DRV_1BIT, 1762306a36Sopenharmony_ci 8, UNIPHIER_PIN_PULL_DOWN), 1862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(1, "EA2", UNIPHIER_PIN_IECTRL_NONE, 1962306a36Sopenharmony_ci 9, UNIPHIER_PIN_DRV_1BIT, 2062306a36Sopenharmony_ci 9, UNIPHIER_PIN_PULL_DOWN), 2162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(2, "EA3", UNIPHIER_PIN_IECTRL_NONE, 2262306a36Sopenharmony_ci 10, UNIPHIER_PIN_DRV_1BIT, 2362306a36Sopenharmony_ci 10, UNIPHIER_PIN_PULL_DOWN), 2462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(3, "EA4", UNIPHIER_PIN_IECTRL_NONE, 2562306a36Sopenharmony_ci 11, UNIPHIER_PIN_DRV_1BIT, 2662306a36Sopenharmony_ci 11, UNIPHIER_PIN_PULL_DOWN), 2762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(4, "EA5", UNIPHIER_PIN_IECTRL_NONE, 2862306a36Sopenharmony_ci 12, UNIPHIER_PIN_DRV_1BIT, 2962306a36Sopenharmony_ci 12, UNIPHIER_PIN_PULL_DOWN), 3062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(5, "EA6", UNIPHIER_PIN_IECTRL_NONE, 3162306a36Sopenharmony_ci 13, UNIPHIER_PIN_DRV_1BIT, 3262306a36Sopenharmony_ci 13, UNIPHIER_PIN_PULL_DOWN), 3362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(6, "EA7", UNIPHIER_PIN_IECTRL_NONE, 3462306a36Sopenharmony_ci 14, UNIPHIER_PIN_DRV_1BIT, 3562306a36Sopenharmony_ci 14, UNIPHIER_PIN_PULL_DOWN), 3662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(7, "EA8", 0, 3762306a36Sopenharmony_ci 15, UNIPHIER_PIN_DRV_1BIT, 3862306a36Sopenharmony_ci 15, UNIPHIER_PIN_PULL_DOWN), 3962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(8, "EA9", 0, 4062306a36Sopenharmony_ci 16, UNIPHIER_PIN_DRV_1BIT, 4162306a36Sopenharmony_ci 16, UNIPHIER_PIN_PULL_DOWN), 4262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(9, "EA10", 0, 4362306a36Sopenharmony_ci 17, UNIPHIER_PIN_DRV_1BIT, 4462306a36Sopenharmony_ci 17, UNIPHIER_PIN_PULL_DOWN), 4562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(10, "EA11", 0, 4662306a36Sopenharmony_ci 18, UNIPHIER_PIN_DRV_1BIT, 4762306a36Sopenharmony_ci 18, UNIPHIER_PIN_PULL_DOWN), 4862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(11, "EA12", 0, 4962306a36Sopenharmony_ci 19, UNIPHIER_PIN_DRV_1BIT, 5062306a36Sopenharmony_ci 19, UNIPHIER_PIN_PULL_DOWN), 5162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(12, "EA13", 0, 5262306a36Sopenharmony_ci 20, UNIPHIER_PIN_DRV_1BIT, 5362306a36Sopenharmony_ci 20, UNIPHIER_PIN_PULL_DOWN), 5462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(13, "EA14", 0, 5562306a36Sopenharmony_ci 21, UNIPHIER_PIN_DRV_1BIT, 5662306a36Sopenharmony_ci 21, UNIPHIER_PIN_PULL_DOWN), 5762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(14, "EA15", 0, 5862306a36Sopenharmony_ci 22, UNIPHIER_PIN_DRV_1BIT, 5962306a36Sopenharmony_ci 22, UNIPHIER_PIN_PULL_DOWN), 6062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(15, "ECLK", UNIPHIER_PIN_IECTRL_NONE, 6162306a36Sopenharmony_ci 23, UNIPHIER_PIN_DRV_1BIT, 6262306a36Sopenharmony_ci 23, UNIPHIER_PIN_PULL_DOWN), 6362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(16, "XERWE0", UNIPHIER_PIN_IECTRL_NONE, 6462306a36Sopenharmony_ci 24, UNIPHIER_PIN_DRV_1BIT, 6562306a36Sopenharmony_ci 24, UNIPHIER_PIN_PULL_UP), 6662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(17, "XERWE1", UNIPHIER_PIN_IECTRL_NONE, 6762306a36Sopenharmony_ci 25, UNIPHIER_PIN_DRV_1BIT, 6862306a36Sopenharmony_ci 25, UNIPHIER_PIN_PULL_UP), 6962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(18, "ES0", UNIPHIER_PIN_IECTRL_NONE, 7062306a36Sopenharmony_ci 27, UNIPHIER_PIN_DRV_1BIT, 7162306a36Sopenharmony_ci 27, UNIPHIER_PIN_PULL_UP), 7262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(19, "ES1", UNIPHIER_PIN_IECTRL_NONE, 7362306a36Sopenharmony_ci 28, UNIPHIER_PIN_DRV_1BIT, 7462306a36Sopenharmony_ci 28, UNIPHIER_PIN_PULL_UP), 7562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(20, "ES2", UNIPHIER_PIN_IECTRL_NONE, 7662306a36Sopenharmony_ci 29, UNIPHIER_PIN_DRV_1BIT, 7762306a36Sopenharmony_ci 29, UNIPHIER_PIN_PULL_UP), 7862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(21, "XERST", UNIPHIER_PIN_IECTRL_NONE, 7962306a36Sopenharmony_ci 38, UNIPHIER_PIN_DRV_1BIT, 8062306a36Sopenharmony_ci 38, UNIPHIER_PIN_PULL_UP), 8162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(22, "MMCCLK", UNIPHIER_PIN_IECTRL_NONE, 8262306a36Sopenharmony_ci 0, UNIPHIER_PIN_DRV_2BIT, 8362306a36Sopenharmony_ci 146, UNIPHIER_PIN_PULL_UP), 8462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(23, "MMCCMD", UNIPHIER_PIN_IECTRL_NONE, 8562306a36Sopenharmony_ci 1, UNIPHIER_PIN_DRV_2BIT, 8662306a36Sopenharmony_ci 147, UNIPHIER_PIN_PULL_UP), 8762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(24, "MMCDAT0", UNIPHIER_PIN_IECTRL_NONE, 8862306a36Sopenharmony_ci 2, UNIPHIER_PIN_DRV_2BIT, 8962306a36Sopenharmony_ci 148, UNIPHIER_PIN_PULL_UP), 9062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(25, "MMCDAT1", UNIPHIER_PIN_IECTRL_NONE, 9162306a36Sopenharmony_ci 3, UNIPHIER_PIN_DRV_2BIT, 9262306a36Sopenharmony_ci 149, UNIPHIER_PIN_PULL_UP), 9362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(26, "MMCDAT2", UNIPHIER_PIN_IECTRL_NONE, 9462306a36Sopenharmony_ci 4, UNIPHIER_PIN_DRV_2BIT, 9562306a36Sopenharmony_ci 150, UNIPHIER_PIN_PULL_UP), 9662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(27, "MMCDAT3", UNIPHIER_PIN_IECTRL_NONE, 9762306a36Sopenharmony_ci 5, UNIPHIER_PIN_DRV_2BIT, 9862306a36Sopenharmony_ci 151, UNIPHIER_PIN_PULL_UP), 9962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(28, "MMCDAT4", UNIPHIER_PIN_IECTRL_NONE, 10062306a36Sopenharmony_ci 6, UNIPHIER_PIN_DRV_2BIT, 10162306a36Sopenharmony_ci 152, UNIPHIER_PIN_PULL_UP), 10262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(29, "MMCDAT5", UNIPHIER_PIN_IECTRL_NONE, 10362306a36Sopenharmony_ci 7, UNIPHIER_PIN_DRV_2BIT, 10462306a36Sopenharmony_ci 153, UNIPHIER_PIN_PULL_UP), 10562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(30, "MMCDAT6", UNIPHIER_PIN_IECTRL_NONE, 10662306a36Sopenharmony_ci 8, UNIPHIER_PIN_DRV_2BIT, 10762306a36Sopenharmony_ci 154, UNIPHIER_PIN_PULL_UP), 10862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(31, "MMCDAT7", UNIPHIER_PIN_IECTRL_NONE, 10962306a36Sopenharmony_ci 9, UNIPHIER_PIN_DRV_2BIT, 11062306a36Sopenharmony_ci 155, UNIPHIER_PIN_PULL_UP), 11162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(32, "RMII_RXD0", 6, 11262306a36Sopenharmony_ci 39, UNIPHIER_PIN_DRV_1BIT, 11362306a36Sopenharmony_ci 39, UNIPHIER_PIN_PULL_DOWN), 11462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(33, "RMII_RXD1", 6, 11562306a36Sopenharmony_ci 40, UNIPHIER_PIN_DRV_1BIT, 11662306a36Sopenharmony_ci 40, UNIPHIER_PIN_PULL_DOWN), 11762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(34, "RMII_CRS_DV", 6, 11862306a36Sopenharmony_ci 41, UNIPHIER_PIN_DRV_1BIT, 11962306a36Sopenharmony_ci 41, UNIPHIER_PIN_PULL_DOWN), 12062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(35, "RMII_RXER", 6, 12162306a36Sopenharmony_ci 42, UNIPHIER_PIN_DRV_1BIT, 12262306a36Sopenharmony_ci 42, UNIPHIER_PIN_PULL_DOWN), 12362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(36, "RMII_REFCLK", 6, 12462306a36Sopenharmony_ci 43, UNIPHIER_PIN_DRV_1BIT, 12562306a36Sopenharmony_ci 43, UNIPHIER_PIN_PULL_DOWN), 12662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(37, "RMII_TXD0", 6, 12762306a36Sopenharmony_ci 44, UNIPHIER_PIN_DRV_1BIT, 12862306a36Sopenharmony_ci 44, UNIPHIER_PIN_PULL_DOWN), 12962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(38, "RMII_TXD1", 6, 13062306a36Sopenharmony_ci 45, UNIPHIER_PIN_DRV_1BIT, 13162306a36Sopenharmony_ci 45, UNIPHIER_PIN_PULL_DOWN), 13262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(39, "RMII_TXEN", 6, 13362306a36Sopenharmony_ci 46, UNIPHIER_PIN_DRV_1BIT, 13462306a36Sopenharmony_ci 46, UNIPHIER_PIN_PULL_DOWN), 13562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(40, "MDC", 6, 13662306a36Sopenharmony_ci 47, UNIPHIER_PIN_DRV_1BIT, 13762306a36Sopenharmony_ci 47, UNIPHIER_PIN_PULL_DOWN), 13862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(41, "MDIO", 6, 13962306a36Sopenharmony_ci 48, UNIPHIER_PIN_DRV_1BIT, 14062306a36Sopenharmony_ci 48, UNIPHIER_PIN_PULL_DOWN), 14162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(42, "MDIO_INTL", 6, 14262306a36Sopenharmony_ci 49, UNIPHIER_PIN_DRV_1BIT, 14362306a36Sopenharmony_ci 49, UNIPHIER_PIN_PULL_DOWN), 14462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(43, "PHYRSTL", 6, 14562306a36Sopenharmony_ci 50, UNIPHIER_PIN_DRV_1BIT, 14662306a36Sopenharmony_ci 50, UNIPHIER_PIN_PULL_DOWN), 14762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(44, "SDCLK", UNIPHIER_PIN_IECTRL_NONE, 14862306a36Sopenharmony_ci 10, UNIPHIER_PIN_DRV_2BIT, 14962306a36Sopenharmony_ci 156, UNIPHIER_PIN_PULL_UP), 15062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(45, "SDCMD", UNIPHIER_PIN_IECTRL_NONE, 15162306a36Sopenharmony_ci 11, UNIPHIER_PIN_DRV_2BIT, 15262306a36Sopenharmony_ci 157, UNIPHIER_PIN_PULL_UP), 15362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(46, "SDDAT0", UNIPHIER_PIN_IECTRL_NONE, 15462306a36Sopenharmony_ci 12, UNIPHIER_PIN_DRV_2BIT, 15562306a36Sopenharmony_ci 158, UNIPHIER_PIN_PULL_UP), 15662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(47, "SDDAT1", UNIPHIER_PIN_IECTRL_NONE, 15762306a36Sopenharmony_ci 13, UNIPHIER_PIN_DRV_2BIT, 15862306a36Sopenharmony_ci 159, UNIPHIER_PIN_PULL_UP), 15962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(48, "SDDAT2", UNIPHIER_PIN_IECTRL_NONE, 16062306a36Sopenharmony_ci 14, UNIPHIER_PIN_DRV_2BIT, 16162306a36Sopenharmony_ci 160, UNIPHIER_PIN_PULL_UP), 16262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(49, "SDDAT3", UNIPHIER_PIN_IECTRL_NONE, 16362306a36Sopenharmony_ci 15, UNIPHIER_PIN_DRV_2BIT, 16462306a36Sopenharmony_ci 161, UNIPHIER_PIN_PULL_UP), 16562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(50, "SDCD", UNIPHIER_PIN_IECTRL_NONE, 16662306a36Sopenharmony_ci 51, UNIPHIER_PIN_DRV_1BIT, 16762306a36Sopenharmony_ci 51, UNIPHIER_PIN_PULL_UP), 16862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(51, "SDWP", UNIPHIER_PIN_IECTRL_NONE, 16962306a36Sopenharmony_ci 52, UNIPHIER_PIN_DRV_1BIT, 17062306a36Sopenharmony_ci 52, UNIPHIER_PIN_PULL_UP), 17162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(52, "SDVOLC", UNIPHIER_PIN_IECTRL_NONE, 17262306a36Sopenharmony_ci 53, UNIPHIER_PIN_DRV_1BIT, 17362306a36Sopenharmony_ci 53, UNIPHIER_PIN_PULL_UP), 17462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(53, "USB0VBUS", 0, 17562306a36Sopenharmony_ci 54, UNIPHIER_PIN_DRV_1BIT, 17662306a36Sopenharmony_ci 54, UNIPHIER_PIN_PULL_DOWN), 17762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(54, "USB0OD", 0, 17862306a36Sopenharmony_ci 55, UNIPHIER_PIN_DRV_1BIT, 17962306a36Sopenharmony_ci 55, UNIPHIER_PIN_PULL_DOWN), 18062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(55, "USB1VBUS", 0, 18162306a36Sopenharmony_ci 56, UNIPHIER_PIN_DRV_1BIT, 18262306a36Sopenharmony_ci 56, UNIPHIER_PIN_PULL_DOWN), 18362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(56, "USB1OD", 0, 18462306a36Sopenharmony_ci 57, UNIPHIER_PIN_DRV_1BIT, 18562306a36Sopenharmony_ci 57, UNIPHIER_PIN_PULL_DOWN), 18662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(57, "PCRESET", 0, 18762306a36Sopenharmony_ci 58, UNIPHIER_PIN_DRV_1BIT, 18862306a36Sopenharmony_ci 58, UNIPHIER_PIN_PULL_DOWN), 18962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(58, "PCREG", 0, 19062306a36Sopenharmony_ci 59, UNIPHIER_PIN_DRV_1BIT, 19162306a36Sopenharmony_ci 59, UNIPHIER_PIN_PULL_DOWN), 19262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(59, "PCCE2", 0, 19362306a36Sopenharmony_ci 60, UNIPHIER_PIN_DRV_1BIT, 19462306a36Sopenharmony_ci 60, UNIPHIER_PIN_PULL_DOWN), 19562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(60, "PCVS1", 0, 19662306a36Sopenharmony_ci 61, UNIPHIER_PIN_DRV_1BIT, 19762306a36Sopenharmony_ci 61, UNIPHIER_PIN_PULL_DOWN), 19862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(61, "PCCD2", 0, 19962306a36Sopenharmony_ci 62, UNIPHIER_PIN_DRV_1BIT, 20062306a36Sopenharmony_ci 62, UNIPHIER_PIN_PULL_DOWN), 20162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(62, "PCCD1", 0, 20262306a36Sopenharmony_ci 63, UNIPHIER_PIN_DRV_1BIT, 20362306a36Sopenharmony_ci 63, UNIPHIER_PIN_PULL_DOWN), 20462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(63, "PCREADY", 0, 20562306a36Sopenharmony_ci 64, UNIPHIER_PIN_DRV_1BIT, 20662306a36Sopenharmony_ci 64, UNIPHIER_PIN_PULL_DOWN), 20762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(64, "PCDOE", 0, 20862306a36Sopenharmony_ci 65, UNIPHIER_PIN_DRV_1BIT, 20962306a36Sopenharmony_ci 65, UNIPHIER_PIN_PULL_DOWN), 21062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(65, "PCCE1", 0, 21162306a36Sopenharmony_ci 66, UNIPHIER_PIN_DRV_1BIT, 21262306a36Sopenharmony_ci 66, UNIPHIER_PIN_PULL_DOWN), 21362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(66, "PCWE", 0, 21462306a36Sopenharmony_ci 67, UNIPHIER_PIN_DRV_1BIT, 21562306a36Sopenharmony_ci 67, UNIPHIER_PIN_PULL_DOWN), 21662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(67, "PCOE", 0, 21762306a36Sopenharmony_ci 68, UNIPHIER_PIN_DRV_1BIT, 21862306a36Sopenharmony_ci 68, UNIPHIER_PIN_PULL_DOWN), 21962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(68, "PCWAIT", 0, 22062306a36Sopenharmony_ci 69, UNIPHIER_PIN_DRV_1BIT, 22162306a36Sopenharmony_ci 69, UNIPHIER_PIN_PULL_DOWN), 22262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(69, "PCIOWR", 0, 22362306a36Sopenharmony_ci 70, UNIPHIER_PIN_DRV_1BIT, 22462306a36Sopenharmony_ci 70, UNIPHIER_PIN_PULL_DOWN), 22562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(70, "PCIORD", 0, 22662306a36Sopenharmony_ci 71, UNIPHIER_PIN_DRV_1BIT, 22762306a36Sopenharmony_ci 71, UNIPHIER_PIN_PULL_DOWN), 22862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(71, "HS0DIN0", 0, 22962306a36Sopenharmony_ci 72, UNIPHIER_PIN_DRV_1BIT, 23062306a36Sopenharmony_ci 72, UNIPHIER_PIN_PULL_DOWN), 23162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(72, "HS0DIN1", 0, 23262306a36Sopenharmony_ci 73, UNIPHIER_PIN_DRV_1BIT, 23362306a36Sopenharmony_ci 73, UNIPHIER_PIN_PULL_DOWN), 23462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(73, "HS0DIN2", 0, 23562306a36Sopenharmony_ci 74, UNIPHIER_PIN_DRV_1BIT, 23662306a36Sopenharmony_ci 74, UNIPHIER_PIN_PULL_DOWN), 23762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(74, "HS0DIN3", 0, 23862306a36Sopenharmony_ci 75, UNIPHIER_PIN_DRV_1BIT, 23962306a36Sopenharmony_ci 75, UNIPHIER_PIN_PULL_DOWN), 24062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(75, "HS0DIN4", 0, 24162306a36Sopenharmony_ci 76, UNIPHIER_PIN_DRV_1BIT, 24262306a36Sopenharmony_ci 76, UNIPHIER_PIN_PULL_DOWN), 24362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(76, "HS0DIN5", 0, 24462306a36Sopenharmony_ci 77, UNIPHIER_PIN_DRV_1BIT, 24562306a36Sopenharmony_ci 77, UNIPHIER_PIN_PULL_DOWN), 24662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(77, "HS0DIN6", 0, 24762306a36Sopenharmony_ci 78, UNIPHIER_PIN_DRV_1BIT, 24862306a36Sopenharmony_ci 78, UNIPHIER_PIN_PULL_DOWN), 24962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(78, "HS0DIN7", 0, 25062306a36Sopenharmony_ci 79, UNIPHIER_PIN_DRV_1BIT, 25162306a36Sopenharmony_ci 79, UNIPHIER_PIN_PULL_DOWN), 25262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(79, "HS0BCLKIN", 0, 25362306a36Sopenharmony_ci 80, UNIPHIER_PIN_DRV_1BIT, 25462306a36Sopenharmony_ci 80, UNIPHIER_PIN_PULL_DOWN), 25562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(80, "HS0VALIN", 0, 25662306a36Sopenharmony_ci 81, UNIPHIER_PIN_DRV_1BIT, 25762306a36Sopenharmony_ci 81, UNIPHIER_PIN_PULL_DOWN), 25862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(81, "HS0SYNCIN", 0, 25962306a36Sopenharmony_ci 82, UNIPHIER_PIN_DRV_1BIT, 26062306a36Sopenharmony_ci 82, UNIPHIER_PIN_PULL_DOWN), 26162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(82, "HSDOUT0", 0, 26262306a36Sopenharmony_ci 83, UNIPHIER_PIN_DRV_1BIT, 26362306a36Sopenharmony_ci 83, UNIPHIER_PIN_PULL_DOWN), 26462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(83, "HSDOUT1", 0, 26562306a36Sopenharmony_ci 84, UNIPHIER_PIN_DRV_1BIT, 26662306a36Sopenharmony_ci 84, UNIPHIER_PIN_PULL_DOWN), 26762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(84, "HSDOUT2", 0, 26862306a36Sopenharmony_ci 85, UNIPHIER_PIN_DRV_1BIT, 26962306a36Sopenharmony_ci 85, UNIPHIER_PIN_PULL_DOWN), 27062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(85, "HSDOUT3", 0, 27162306a36Sopenharmony_ci 86, UNIPHIER_PIN_DRV_1BIT, 27262306a36Sopenharmony_ci 86, UNIPHIER_PIN_PULL_DOWN), 27362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(86, "HSDOUT4", 0, 27462306a36Sopenharmony_ci 87, UNIPHIER_PIN_DRV_1BIT, 27562306a36Sopenharmony_ci 87, UNIPHIER_PIN_PULL_DOWN), 27662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(87, "HSDOUT5", 0, 27762306a36Sopenharmony_ci 88, UNIPHIER_PIN_DRV_1BIT, 27862306a36Sopenharmony_ci 88, UNIPHIER_PIN_PULL_DOWN), 27962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(88, "HSDOUT6", 0, 28062306a36Sopenharmony_ci 89, UNIPHIER_PIN_DRV_1BIT, 28162306a36Sopenharmony_ci 89, UNIPHIER_PIN_PULL_DOWN), 28262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(89, "HSDOUT7", 0, 28362306a36Sopenharmony_ci 90, UNIPHIER_PIN_DRV_1BIT, 28462306a36Sopenharmony_ci 90, UNIPHIER_PIN_PULL_DOWN), 28562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(90, "HSBCLKOUT", 0, 28662306a36Sopenharmony_ci 91, UNIPHIER_PIN_DRV_1BIT, 28762306a36Sopenharmony_ci 91, UNIPHIER_PIN_PULL_DOWN), 28862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(91, "HSVALOUT", 0, 28962306a36Sopenharmony_ci 92, UNIPHIER_PIN_DRV_1BIT, 29062306a36Sopenharmony_ci 92, UNIPHIER_PIN_PULL_DOWN), 29162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(92, "HSSYNCOUT", 0, 29262306a36Sopenharmony_ci 93, UNIPHIER_PIN_DRV_1BIT, 29362306a36Sopenharmony_ci 93, UNIPHIER_PIN_PULL_DOWN), 29462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(93, "AGCI", 3, 29562306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED4, 29662306a36Sopenharmony_ci 162, UNIPHIER_PIN_PULL_DOWN), 29762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(94, "AGCR", 4, 29862306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED4, 29962306a36Sopenharmony_ci 163, UNIPHIER_PIN_PULL_DOWN), 30062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(95, "AGCBS", 5, 30162306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED4, 30262306a36Sopenharmony_ci 164, UNIPHIER_PIN_PULL_DOWN), 30362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(96, "IECOUT", 0, 30462306a36Sopenharmony_ci 94, UNIPHIER_PIN_DRV_1BIT, 30562306a36Sopenharmony_ci 94, UNIPHIER_PIN_PULL_DOWN), 30662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(97, "ASMCK", 0, 30762306a36Sopenharmony_ci 95, UNIPHIER_PIN_DRV_1BIT, 30862306a36Sopenharmony_ci 95, UNIPHIER_PIN_PULL_DOWN), 30962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(98, "ABCKO", UNIPHIER_PIN_IECTRL_NONE, 31062306a36Sopenharmony_ci 96, UNIPHIER_PIN_DRV_1BIT, 31162306a36Sopenharmony_ci 96, UNIPHIER_PIN_PULL_DOWN), 31262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(99, "ALRCKO", UNIPHIER_PIN_IECTRL_NONE, 31362306a36Sopenharmony_ci 97, UNIPHIER_PIN_DRV_1BIT, 31462306a36Sopenharmony_ci 97, UNIPHIER_PIN_PULL_DOWN), 31562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(100, "ASDOUT0", UNIPHIER_PIN_IECTRL_NONE, 31662306a36Sopenharmony_ci 98, UNIPHIER_PIN_DRV_1BIT, 31762306a36Sopenharmony_ci 98, UNIPHIER_PIN_PULL_DOWN), 31862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(101, "ARCOUT", 0, 31962306a36Sopenharmony_ci 99, UNIPHIER_PIN_DRV_1BIT, 32062306a36Sopenharmony_ci 99, UNIPHIER_PIN_PULL_DOWN), 32162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(102, "SDA0", UNIPHIER_PIN_IECTRL_NONE, 32262306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED4, 32362306a36Sopenharmony_ci -1, UNIPHIER_PIN_PULL_NONE), 32462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(103, "SCL0", UNIPHIER_PIN_IECTRL_NONE, 32562306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED4, 32662306a36Sopenharmony_ci -1, UNIPHIER_PIN_PULL_NONE), 32762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(104, "SDA1", UNIPHIER_PIN_IECTRL_NONE, 32862306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED4, 32962306a36Sopenharmony_ci -1, UNIPHIER_PIN_PULL_NONE), 33062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(105, "SCL1", UNIPHIER_PIN_IECTRL_NONE, 33162306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED4, 33262306a36Sopenharmony_ci -1, UNIPHIER_PIN_PULL_NONE), 33362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(106, "DMDSDA0", UNIPHIER_PIN_IECTRL_NONE, 33462306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED4, 33562306a36Sopenharmony_ci -1, UNIPHIER_PIN_PULL_NONE), 33662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(107, "DMDSCL0", UNIPHIER_PIN_IECTRL_NONE, 33762306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED4, 33862306a36Sopenharmony_ci -1, UNIPHIER_PIN_PULL_NONE), 33962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(108, "DMDSDA1", UNIPHIER_PIN_IECTRL_NONE, 34062306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED4, 34162306a36Sopenharmony_ci -1, UNIPHIER_PIN_PULL_NONE), 34262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(109, "DMDSCL1", UNIPHIER_PIN_IECTRL_NONE, 34362306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED4, 34462306a36Sopenharmony_ci -1, UNIPHIER_PIN_PULL_NONE), 34562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(110, "SBO0", UNIPHIER_PIN_IECTRL_NONE, 34662306a36Sopenharmony_ci 100, UNIPHIER_PIN_DRV_1BIT, 34762306a36Sopenharmony_ci 100, UNIPHIER_PIN_PULL_UP), 34862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(111, "SBI0", UNIPHIER_PIN_IECTRL_NONE, 34962306a36Sopenharmony_ci 101, UNIPHIER_PIN_DRV_1BIT, 35062306a36Sopenharmony_ci 101, UNIPHIER_PIN_PULL_UP), 35162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(112, "HIN", 1, 35262306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED5, 35362306a36Sopenharmony_ci -1, UNIPHIER_PIN_PULL_NONE), 35462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(113, "VIN", 2, 35562306a36Sopenharmony_ci -1, UNIPHIER_PIN_DRV_FIXED5, 35662306a36Sopenharmony_ci -1, UNIPHIER_PIN_PULL_NONE), 35762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(114, "TCON0", UNIPHIER_PIN_IECTRL_NONE, 35862306a36Sopenharmony_ci 102, UNIPHIER_PIN_DRV_1BIT, 35962306a36Sopenharmony_ci 102, UNIPHIER_PIN_PULL_DOWN), 36062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(115, "TCON1", UNIPHIER_PIN_IECTRL_NONE, 36162306a36Sopenharmony_ci 103, UNIPHIER_PIN_DRV_1BIT, 36262306a36Sopenharmony_ci 103, UNIPHIER_PIN_PULL_DOWN), 36362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(116, "TCON2", UNIPHIER_PIN_IECTRL_NONE, 36462306a36Sopenharmony_ci 104, UNIPHIER_PIN_DRV_1BIT, 36562306a36Sopenharmony_ci 104, UNIPHIER_PIN_PULL_DOWN), 36662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(117, "TCON3", UNIPHIER_PIN_IECTRL_NONE, 36762306a36Sopenharmony_ci 105, UNIPHIER_PIN_DRV_1BIT, 36862306a36Sopenharmony_ci 105, UNIPHIER_PIN_PULL_DOWN), 36962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(118, "TCON4", UNIPHIER_PIN_IECTRL_NONE, 37062306a36Sopenharmony_ci 106, UNIPHIER_PIN_DRV_1BIT, 37162306a36Sopenharmony_ci 106, UNIPHIER_PIN_PULL_DOWN), 37262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(119, "TCON5", UNIPHIER_PIN_IECTRL_NONE, 37362306a36Sopenharmony_ci 107, UNIPHIER_PIN_DRV_1BIT, 37462306a36Sopenharmony_ci 107, UNIPHIER_PIN_PULL_DOWN), 37562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(120, "TCON6", 0, 37662306a36Sopenharmony_ci 108, UNIPHIER_PIN_DRV_1BIT, 37762306a36Sopenharmony_ci 108, UNIPHIER_PIN_PULL_DOWN), 37862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(121, "TCON7", 0, 37962306a36Sopenharmony_ci 109, UNIPHIER_PIN_DRV_1BIT, 38062306a36Sopenharmony_ci 109, UNIPHIER_PIN_PULL_DOWN), 38162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(122, "PWMA", 0, 38262306a36Sopenharmony_ci 110, UNIPHIER_PIN_DRV_1BIT, 38362306a36Sopenharmony_ci 110, UNIPHIER_PIN_PULL_DOWN), 38462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(123, "XIRQ1", 0, 38562306a36Sopenharmony_ci 111, UNIPHIER_PIN_DRV_1BIT, 38662306a36Sopenharmony_ci 111, UNIPHIER_PIN_PULL_DOWN), 38762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(124, "XIRQ2", 0, 38862306a36Sopenharmony_ci 112, UNIPHIER_PIN_DRV_1BIT, 38962306a36Sopenharmony_ci 112, UNIPHIER_PIN_PULL_DOWN), 39062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(125, "XIRQ3", 0, 39162306a36Sopenharmony_ci 113, UNIPHIER_PIN_DRV_1BIT, 39262306a36Sopenharmony_ci 113, UNIPHIER_PIN_PULL_DOWN), 39362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(126, "XIRQ4", 0, 39462306a36Sopenharmony_ci 114, UNIPHIER_PIN_DRV_1BIT, 39562306a36Sopenharmony_ci 114, UNIPHIER_PIN_PULL_DOWN), 39662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(127, "XIRQ5", 0, 39762306a36Sopenharmony_ci 115, UNIPHIER_PIN_DRV_1BIT, 39862306a36Sopenharmony_ci 115, UNIPHIER_PIN_PULL_DOWN), 39962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(128, "XIRQ6", 0, 40062306a36Sopenharmony_ci 116, UNIPHIER_PIN_DRV_1BIT, 40162306a36Sopenharmony_ci 116, UNIPHIER_PIN_PULL_DOWN), 40262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(129, "XIRQ7", 0, 40362306a36Sopenharmony_ci 117, UNIPHIER_PIN_DRV_1BIT, 40462306a36Sopenharmony_ci 117, UNIPHIER_PIN_PULL_DOWN), 40562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(130, "XIRQ8", 0, 40662306a36Sopenharmony_ci 118, UNIPHIER_PIN_DRV_1BIT, 40762306a36Sopenharmony_ci 118, UNIPHIER_PIN_PULL_DOWN), 40862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(131, "XIRQ9", 0, 40962306a36Sopenharmony_ci 119, UNIPHIER_PIN_DRV_1BIT, 41062306a36Sopenharmony_ci 119, UNIPHIER_PIN_PULL_DOWN), 41162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(132, "XIRQ10", 0, 41262306a36Sopenharmony_ci 120, UNIPHIER_PIN_DRV_1BIT, 41362306a36Sopenharmony_ci 120, UNIPHIER_PIN_PULL_DOWN), 41462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(133, "XIRQ11", 0, 41562306a36Sopenharmony_ci 121, UNIPHIER_PIN_DRV_1BIT, 41662306a36Sopenharmony_ci 121, UNIPHIER_PIN_PULL_DOWN), 41762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(134, "XIRQ14", 0, 41862306a36Sopenharmony_ci 122, UNIPHIER_PIN_DRV_1BIT, 41962306a36Sopenharmony_ci 122, UNIPHIER_PIN_PULL_DOWN), 42062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(135, "PORT00", 0, 42162306a36Sopenharmony_ci 123, UNIPHIER_PIN_DRV_1BIT, 42262306a36Sopenharmony_ci 123, UNIPHIER_PIN_PULL_DOWN), 42362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(136, "PORT01", 0, 42462306a36Sopenharmony_ci 124, UNIPHIER_PIN_DRV_1BIT, 42562306a36Sopenharmony_ci 124, UNIPHIER_PIN_PULL_DOWN), 42662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(137, "PORT02", 0, 42762306a36Sopenharmony_ci 125, UNIPHIER_PIN_DRV_1BIT, 42862306a36Sopenharmony_ci 125, UNIPHIER_PIN_PULL_DOWN), 42962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(138, "PORT03", 0, 43062306a36Sopenharmony_ci 126, UNIPHIER_PIN_DRV_1BIT, 43162306a36Sopenharmony_ci 126, UNIPHIER_PIN_PULL_DOWN), 43262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(139, "PORT04", 0, 43362306a36Sopenharmony_ci 127, UNIPHIER_PIN_DRV_1BIT, 43462306a36Sopenharmony_ci 127, UNIPHIER_PIN_PULL_DOWN), 43562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(140, "PORT05", 0, 43662306a36Sopenharmony_ci 128, UNIPHIER_PIN_DRV_1BIT, 43762306a36Sopenharmony_ci 128, UNIPHIER_PIN_PULL_DOWN), 43862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(141, "PORT06", 0, 43962306a36Sopenharmony_ci 129, UNIPHIER_PIN_DRV_1BIT, 44062306a36Sopenharmony_ci 129, UNIPHIER_PIN_PULL_DOWN), 44162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(142, "PORT07", 0, 44262306a36Sopenharmony_ci 130, UNIPHIER_PIN_DRV_1BIT, 44362306a36Sopenharmony_ci 130, UNIPHIER_PIN_PULL_DOWN), 44462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(143, "PORT10", 0, 44562306a36Sopenharmony_ci 131, UNIPHIER_PIN_DRV_1BIT, 44662306a36Sopenharmony_ci 131, UNIPHIER_PIN_PULL_DOWN), 44762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(144, "PORT11", 0, 44862306a36Sopenharmony_ci 132, UNIPHIER_PIN_DRV_1BIT, 44962306a36Sopenharmony_ci 132, UNIPHIER_PIN_PULL_DOWN), 45062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(145, "PORT12", 0, 45162306a36Sopenharmony_ci 133, UNIPHIER_PIN_DRV_1BIT, 45262306a36Sopenharmony_ci 133, UNIPHIER_PIN_PULL_DOWN), 45362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(146, "PORT13", 0, 45462306a36Sopenharmony_ci 134, UNIPHIER_PIN_DRV_1BIT, 45562306a36Sopenharmony_ci 134, UNIPHIER_PIN_PULL_DOWN), 45662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(147, "PORT14", 0, 45762306a36Sopenharmony_ci 135, UNIPHIER_PIN_DRV_1BIT, 45862306a36Sopenharmony_ci 135, UNIPHIER_PIN_PULL_DOWN), 45962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(148, "PORT15", 0, 46062306a36Sopenharmony_ci 136, UNIPHIER_PIN_DRV_1BIT, 46162306a36Sopenharmony_ci 136, UNIPHIER_PIN_PULL_DOWN), 46262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(149, "PORT16", 0, 46362306a36Sopenharmony_ci 137, UNIPHIER_PIN_DRV_1BIT, 46462306a36Sopenharmony_ci 137, UNIPHIER_PIN_PULL_DOWN), 46562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(150, "PORT17", UNIPHIER_PIN_IECTRL_NONE, 46662306a36Sopenharmony_ci 138, UNIPHIER_PIN_DRV_1BIT, 46762306a36Sopenharmony_ci 138, UNIPHIER_PIN_PULL_DOWN), 46862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(151, "PORT20", 0, 46962306a36Sopenharmony_ci 139, UNIPHIER_PIN_DRV_1BIT, 47062306a36Sopenharmony_ci 139, UNIPHIER_PIN_PULL_DOWN), 47162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(152, "PORT21", 0, 47262306a36Sopenharmony_ci 140, UNIPHIER_PIN_DRV_1BIT, 47362306a36Sopenharmony_ci 140, UNIPHIER_PIN_PULL_DOWN), 47462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(153, "PORT22", 0, 47562306a36Sopenharmony_ci 141, UNIPHIER_PIN_DRV_1BIT, 47662306a36Sopenharmony_ci 141, UNIPHIER_PIN_PULL_DOWN), 47762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(154, "PORT23", 0, 47862306a36Sopenharmony_ci 142, UNIPHIER_PIN_DRV_1BIT, 47962306a36Sopenharmony_ci 142, UNIPHIER_PIN_PULL_DOWN), 48062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(155, "PORT24", UNIPHIER_PIN_IECTRL_NONE, 48162306a36Sopenharmony_ci 143, UNIPHIER_PIN_DRV_1BIT, 48262306a36Sopenharmony_ci 143, UNIPHIER_PIN_PULL_DOWN), 48362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(156, "PORT25", 0, 48462306a36Sopenharmony_ci 144, UNIPHIER_PIN_DRV_1BIT, 48562306a36Sopenharmony_ci 144, UNIPHIER_PIN_PULL_DOWN), 48662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(157, "PORT26", 0, 48762306a36Sopenharmony_ci 145, UNIPHIER_PIN_DRV_1BIT, 48862306a36Sopenharmony_ci 145, UNIPHIER_PIN_PULL_DOWN), 48962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(158, "XNFRE", UNIPHIER_PIN_IECTRL_NONE, 49062306a36Sopenharmony_ci 31, UNIPHIER_PIN_DRV_1BIT, 49162306a36Sopenharmony_ci 31, UNIPHIER_PIN_PULL_UP), 49262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(159, "XNFWE", UNIPHIER_PIN_IECTRL_NONE, 49362306a36Sopenharmony_ci 32, UNIPHIER_PIN_DRV_1BIT, 49462306a36Sopenharmony_ci 32, UNIPHIER_PIN_PULL_UP), 49562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(160, "NFALE", UNIPHIER_PIN_IECTRL_NONE, 49662306a36Sopenharmony_ci 33, UNIPHIER_PIN_DRV_1BIT, 49762306a36Sopenharmony_ci 33, UNIPHIER_PIN_PULL_DOWN), 49862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(161, "NFCLE", UNIPHIER_PIN_IECTRL_NONE, 49962306a36Sopenharmony_ci 34, UNIPHIER_PIN_DRV_1BIT, 50062306a36Sopenharmony_ci 34, UNIPHIER_PIN_PULL_DOWN), 50162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(162, "XNFWP", UNIPHIER_PIN_IECTRL_NONE, 50262306a36Sopenharmony_ci 35, UNIPHIER_PIN_DRV_1BIT, 50362306a36Sopenharmony_ci 35, UNIPHIER_PIN_PULL_DOWN), 50462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(163, "XNFCE0", UNIPHIER_PIN_IECTRL_NONE, 50562306a36Sopenharmony_ci 36, UNIPHIER_PIN_DRV_1BIT, 50662306a36Sopenharmony_ci 36, UNIPHIER_PIN_PULL_UP), 50762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(164, "NANDRYBY0", UNIPHIER_PIN_IECTRL_NONE, 50862306a36Sopenharmony_ci 37, UNIPHIER_PIN_DRV_1BIT, 50962306a36Sopenharmony_ci 37, UNIPHIER_PIN_PULL_UP), 51062306a36Sopenharmony_ci /* dedicated pins */ 51162306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(165, "ED0", -1, 51262306a36Sopenharmony_ci 0, UNIPHIER_PIN_DRV_1BIT, 51362306a36Sopenharmony_ci 0, UNIPHIER_PIN_PULL_DOWN), 51462306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(166, "ED1", -1, 51562306a36Sopenharmony_ci 1, UNIPHIER_PIN_DRV_1BIT, 51662306a36Sopenharmony_ci 1, UNIPHIER_PIN_PULL_DOWN), 51762306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(167, "ED2", -1, 51862306a36Sopenharmony_ci 2, UNIPHIER_PIN_DRV_1BIT, 51962306a36Sopenharmony_ci 2, UNIPHIER_PIN_PULL_DOWN), 52062306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(168, "ED3", -1, 52162306a36Sopenharmony_ci 3, UNIPHIER_PIN_DRV_1BIT, 52262306a36Sopenharmony_ci 3, UNIPHIER_PIN_PULL_DOWN), 52362306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(169, "ED4", -1, 52462306a36Sopenharmony_ci 4, UNIPHIER_PIN_DRV_1BIT, 52562306a36Sopenharmony_ci 4, UNIPHIER_PIN_PULL_DOWN), 52662306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(170, "ED5", -1, 52762306a36Sopenharmony_ci 5, UNIPHIER_PIN_DRV_1BIT, 52862306a36Sopenharmony_ci 5, UNIPHIER_PIN_PULL_DOWN), 52962306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(171, "ED6", -1, 53062306a36Sopenharmony_ci 6, UNIPHIER_PIN_DRV_1BIT, 53162306a36Sopenharmony_ci 6, UNIPHIER_PIN_PULL_DOWN), 53262306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(172, "ED7", -1, 53362306a36Sopenharmony_ci 7, UNIPHIER_PIN_DRV_1BIT, 53462306a36Sopenharmony_ci 7, UNIPHIER_PIN_PULL_DOWN), 53562306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(173, "ERXW", -1, 53662306a36Sopenharmony_ci 26, UNIPHIER_PIN_DRV_1BIT, 53762306a36Sopenharmony_ci 26, UNIPHIER_PIN_PULL_UP), 53862306a36Sopenharmony_ci UNIPHIER_PINCTRL_PIN(174, "XECS1", -1, 53962306a36Sopenharmony_ci 30, UNIPHIER_PIN_DRV_1BIT, 54062306a36Sopenharmony_ci 30, UNIPHIER_PIN_PULL_UP), 54162306a36Sopenharmony_ci}; 54262306a36Sopenharmony_ci 54362306a36Sopenharmony_cistatic const unsigned emmc_pins[] = {21, 22, 23, 24, 25, 26, 27}; 54462306a36Sopenharmony_cistatic const int emmc_muxvals[] = {0, 1, 1, 1, 1, 1, 1}; 54562306a36Sopenharmony_cistatic const unsigned emmc_dat8_pins[] = {28, 29, 30, 31}; 54662306a36Sopenharmony_cistatic const int emmc_dat8_muxvals[] = {1, 1, 1, 1}; 54762306a36Sopenharmony_cistatic const unsigned ether_mii_pins[] = {32, 33, 34, 35, 36, 37, 38, 39, 40, 54862306a36Sopenharmony_ci 41, 42, 43, 136, 137, 138, 139, 140, 54962306a36Sopenharmony_ci 141, 142}; 55062306a36Sopenharmony_cistatic const int ether_mii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55162306a36Sopenharmony_ci 4, 4, 4, 4, 4, 4, 4}; 55262306a36Sopenharmony_cistatic const unsigned ether_rmii_pins[] = {32, 33, 34, 35, 36, 37, 38, 39, 40, 55362306a36Sopenharmony_ci 41, 42, 43}; 55462306a36Sopenharmony_cistatic const int ether_rmii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; 55562306a36Sopenharmony_cistatic const unsigned i2c0_pins[] = {102, 103}; 55662306a36Sopenharmony_cistatic const int i2c0_muxvals[] = {0, 0}; 55762306a36Sopenharmony_cistatic const unsigned i2c1_pins[] = {104, 105}; 55862306a36Sopenharmony_cistatic const int i2c1_muxvals[] = {0, 0}; 55962306a36Sopenharmony_cistatic const unsigned i2c2_pins[] = {108, 109}; 56062306a36Sopenharmony_cistatic const int i2c2_muxvals[] = {2, 2}; 56162306a36Sopenharmony_cistatic const unsigned i2c3_pins[] = {108, 109}; 56262306a36Sopenharmony_cistatic const int i2c3_muxvals[] = {3, 3}; 56362306a36Sopenharmony_cistatic const unsigned nand_pins[] = {24, 25, 26, 27, 28, 29, 30, 31, 158, 159, 56462306a36Sopenharmony_ci 160, 161, 162, 163, 164}; 56562306a36Sopenharmony_cistatic const int nand_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; 56662306a36Sopenharmony_cistatic const unsigned nand_cs1_pins[] = {22, 23}; 56762306a36Sopenharmony_cistatic const int nand_cs1_muxvals[] = {0, 0}; 56862306a36Sopenharmony_cistatic const unsigned sd_pins[] = {44, 45, 46, 47, 48, 49, 50, 51, 52}; 56962306a36Sopenharmony_cistatic const int sd_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0}; 57062306a36Sopenharmony_cistatic const unsigned spi0_pins[] = {135, 136, 137, 138}; 57162306a36Sopenharmony_cistatic const int spi0_muxvals[] = {12, 12, 12, 12}; 57262306a36Sopenharmony_cistatic const unsigned system_bus_pins[] = {16, 17, 18, 19, 20, 165, 166, 167, 57362306a36Sopenharmony_ci 168, 169, 170, 171, 172, 173}; 57462306a36Sopenharmony_cistatic const int system_bus_muxvals[] = {0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 57562306a36Sopenharmony_ci -1, -1, -1}; 57662306a36Sopenharmony_cistatic const unsigned system_bus_cs0_pins[] = {155}; 57762306a36Sopenharmony_cistatic const int system_bus_cs0_muxvals[] = {1}; 57862306a36Sopenharmony_cistatic const unsigned system_bus_cs1_pins[] = {174}; 57962306a36Sopenharmony_cistatic const int system_bus_cs1_muxvals[] = {-1}; 58062306a36Sopenharmony_cistatic const unsigned system_bus_cs2_pins[] = {64}; 58162306a36Sopenharmony_cistatic const int system_bus_cs2_muxvals[] = {1}; 58262306a36Sopenharmony_cistatic const unsigned system_bus_cs3_pins[] = {156}; 58362306a36Sopenharmony_cistatic const int system_bus_cs3_muxvals[] = {1}; 58462306a36Sopenharmony_cistatic const unsigned uart0_pins[] = {85, 88}; 58562306a36Sopenharmony_cistatic const int uart0_muxvals[] = {1, 1}; 58662306a36Sopenharmony_cistatic const unsigned uart0_ctsrts_pins[] = {86, 89}; 58762306a36Sopenharmony_cistatic const int uart0_ctsrts_muxvals[] = {1, 1}; 58862306a36Sopenharmony_cistatic const unsigned uart0_modem_pins[] = {87}; 58962306a36Sopenharmony_cistatic const int uart0_modem_muxvals[] = {1}; 59062306a36Sopenharmony_cistatic const unsigned uart1_pins[] = {155, 156}; 59162306a36Sopenharmony_cistatic const int uart1_muxvals[] = {13, 13}; 59262306a36Sopenharmony_cistatic const unsigned uart1b_pins[] = {69, 70}; 59362306a36Sopenharmony_cistatic const int uart1b_muxvals[] = {23, 23}; 59462306a36Sopenharmony_cistatic const unsigned uart2_pins[] = {128, 129}; 59562306a36Sopenharmony_cistatic const int uart2_muxvals[] = {13, 13}; 59662306a36Sopenharmony_cistatic const unsigned uart3_pins[] = {110, 111}; 59762306a36Sopenharmony_cistatic const int uart3_muxvals[] = {1, 1}; 59862306a36Sopenharmony_cistatic const unsigned usb0_pins[] = {53, 54}; 59962306a36Sopenharmony_cistatic const int usb0_muxvals[] = {0, 0}; 60062306a36Sopenharmony_cistatic const unsigned usb1_pins[] = {55, 56}; 60162306a36Sopenharmony_cistatic const int usb1_muxvals[] = {0, 0}; 60262306a36Sopenharmony_cistatic const unsigned usb2_pins[] = {155, 156}; 60362306a36Sopenharmony_cistatic const int usb2_muxvals[] = {4, 4}; 60462306a36Sopenharmony_cistatic const unsigned usb2b_pins[] = {67, 68}; 60562306a36Sopenharmony_cistatic const int usb2b_muxvals[] = {23, 23}; 60662306a36Sopenharmony_cistatic const unsigned int gpio_range_pins[] = { 60762306a36Sopenharmony_ci 135, 136, 137, 138, 139, 140, 141, 142, /* PORT0x */ 60862306a36Sopenharmony_ci 143, 144, 145, 146, 147, 148, 149, 150, /* PORT1x */ 60962306a36Sopenharmony_ci 151, 152, 153, 154, 155, 156, 157, 0, /* PORT2x */ 61062306a36Sopenharmony_ci 1, 2, 3, 4, 5, 120, 121, 122, /* PORT3x */ 61162306a36Sopenharmony_ci 24, 25, 26, 27, 28, 29, 30, 31, /* PORT4x */ 61262306a36Sopenharmony_ci 40, 41, 42, 43, 44, 45, 46, 47, /* PORT5x */ 61362306a36Sopenharmony_ci 48, 49, 50, 51, 52, 53, 54, 55, /* PORT6x */ 61462306a36Sopenharmony_ci 56, 85, 84, 59, 82, 61, 64, 65, /* PORT7x */ 61562306a36Sopenharmony_ci 8, 9, 10, 11, 12, 13, 14, 15, /* PORT8x */ 61662306a36Sopenharmony_ci 66, 67, 68, 69, 70, 71, 72, 73, /* PORT9x */ 61762306a36Sopenharmony_ci 74, 75, 89, 86, 78, 79, 80, 81, /* PORT10x */ 61862306a36Sopenharmony_ci 60, 83, 58, 57, 88, 87, 77, 76, /* PORT11x */ 61962306a36Sopenharmony_ci 90, 91, 92, 93, 94, 95, 96, 97, /* PORT12x */ 62062306a36Sopenharmony_ci 98, 99, 100, 6, 101, 114, 115, 116, /* PORT13x */ 62162306a36Sopenharmony_ci 103, 108, 21, 22, 23, 117, 118, 119, /* PORT14x */ 62262306a36Sopenharmony_ci 151, 123, 124, 125, 126, 127, 128, 129, /* XIRQ0-7 */ 62362306a36Sopenharmony_ci 130, 131, 132, 133, 62, 7, 134, 63, /* XIRQ8-12, PORT165, XIRQ14-15 */ 62462306a36Sopenharmony_ci}; 62562306a36Sopenharmony_ci 62662306a36Sopenharmony_cistatic const struct uniphier_pinctrl_group uniphier_ld4_groups[] = { 62762306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(emmc), 62862306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(emmc_dat8), 62962306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(ether_mii), 63062306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(ether_rmii), 63162306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(i2c0), 63262306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(i2c1), 63362306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(i2c2), 63462306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(i2c3), 63562306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(nand), 63662306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(nand_cs1), 63762306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(sd), 63862306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(spi0), 63962306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(system_bus), 64062306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(system_bus_cs0), 64162306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(system_bus_cs1), 64262306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(system_bus_cs2), 64362306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(system_bus_cs3), 64462306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(uart0), 64562306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(uart0_ctsrts), 64662306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(uart0_modem), 64762306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(uart1), 64862306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(uart1b), 64962306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(uart2), 65062306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(uart3), 65162306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(usb0), 65262306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(usb1), 65362306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(usb2), 65462306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP(usb2b), 65562306a36Sopenharmony_ci UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range), 65662306a36Sopenharmony_ci}; 65762306a36Sopenharmony_ci 65862306a36Sopenharmony_cistatic const char * const emmc_groups[] = {"emmc", "emmc_dat8"}; 65962306a36Sopenharmony_cistatic const char * const ether_mii_groups[] = {"ether_mii"}; 66062306a36Sopenharmony_cistatic const char * const ether_rmii_groups[] = {"ether_rmii"}; 66162306a36Sopenharmony_cistatic const char * const i2c0_groups[] = {"i2c0"}; 66262306a36Sopenharmony_cistatic const char * const i2c1_groups[] = {"i2c1"}; 66362306a36Sopenharmony_cistatic const char * const i2c2_groups[] = {"i2c2"}; 66462306a36Sopenharmony_cistatic const char * const i2c3_groups[] = {"i2c3"}; 66562306a36Sopenharmony_cistatic const char * const nand_groups[] = {"nand", "nand_cs1"}; 66662306a36Sopenharmony_cistatic const char * const sd_groups[] = {"sd"}; 66762306a36Sopenharmony_cistatic const char * const spi0_groups[] = {"spi0"}; 66862306a36Sopenharmony_cistatic const char * const system_bus_groups[] = {"system_bus", 66962306a36Sopenharmony_ci "system_bus_cs0", 67062306a36Sopenharmony_ci "system_bus_cs1", 67162306a36Sopenharmony_ci "system_bus_cs2", 67262306a36Sopenharmony_ci "system_bus_cs3"}; 67362306a36Sopenharmony_cistatic const char * const uart0_groups[] = {"uart0", "uart0_ctsrts", 67462306a36Sopenharmony_ci "uart0_modem"}; 67562306a36Sopenharmony_cistatic const char * const uart1_groups[] = {"uart1", "uart1b"}; 67662306a36Sopenharmony_cistatic const char * const uart2_groups[] = {"uart2"}; 67762306a36Sopenharmony_cistatic const char * const uart3_groups[] = {"uart3"}; 67862306a36Sopenharmony_cistatic const char * const usb0_groups[] = {"usb0"}; 67962306a36Sopenharmony_cistatic const char * const usb1_groups[] = {"usb1"}; 68062306a36Sopenharmony_cistatic const char * const usb2_groups[] = {"usb2", "usb2b"}; 68162306a36Sopenharmony_ci 68262306a36Sopenharmony_cistatic const struct uniphier_pinmux_function uniphier_ld4_functions[] = { 68362306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(emmc), 68462306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(ether_mii), 68562306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(ether_rmii), 68662306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(i2c0), 68762306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(i2c1), 68862306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(i2c2), 68962306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(i2c3), 69062306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(nand), 69162306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(sd), 69262306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(spi0), 69362306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(system_bus), 69462306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(uart0), 69562306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(uart1), 69662306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(uart2), 69762306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(uart3), 69862306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(usb0), 69962306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(usb1), 70062306a36Sopenharmony_ci UNIPHIER_PINMUX_FUNCTION(usb2), 70162306a36Sopenharmony_ci}; 70262306a36Sopenharmony_ci 70362306a36Sopenharmony_cistatic int uniphier_ld4_get_gpio_muxval(unsigned int pin, 70462306a36Sopenharmony_ci unsigned int gpio_offset) 70562306a36Sopenharmony_ci{ 70662306a36Sopenharmony_ci switch (gpio_offset) { 70762306a36Sopenharmony_ci case 0 ... 22: /* PORT00-PORT26 */ 70862306a36Sopenharmony_ci case 121 ... 131: /* XIRQ1-XIRQ11 */ 70962306a36Sopenharmony_ci case 134: /* XIRQ14 */ 71062306a36Sopenharmony_ci return 0; 71162306a36Sopenharmony_ci case 120: /* XIRQ0 */ 71262306a36Sopenharmony_ci case 132: /* XIRQ12 */ 71362306a36Sopenharmony_ci case 135: /* XIRQ15 */ 71462306a36Sopenharmony_ci return 14; 71562306a36Sopenharmony_ci default: 71662306a36Sopenharmony_ci return 15; 71762306a36Sopenharmony_ci } 71862306a36Sopenharmony_ci} 71962306a36Sopenharmony_ci 72062306a36Sopenharmony_cistatic const struct uniphier_pinctrl_socdata uniphier_ld4_pindata = { 72162306a36Sopenharmony_ci .pins = uniphier_ld4_pins, 72262306a36Sopenharmony_ci .npins = ARRAY_SIZE(uniphier_ld4_pins), 72362306a36Sopenharmony_ci .groups = uniphier_ld4_groups, 72462306a36Sopenharmony_ci .groups_count = ARRAY_SIZE(uniphier_ld4_groups), 72562306a36Sopenharmony_ci .functions = uniphier_ld4_functions, 72662306a36Sopenharmony_ci .functions_count = ARRAY_SIZE(uniphier_ld4_functions), 72762306a36Sopenharmony_ci .get_gpio_muxval = uniphier_ld4_get_gpio_muxval, 72862306a36Sopenharmony_ci .caps = 0, 72962306a36Sopenharmony_ci}; 73062306a36Sopenharmony_ci 73162306a36Sopenharmony_cistatic int uniphier_ld4_pinctrl_probe(struct platform_device *pdev) 73262306a36Sopenharmony_ci{ 73362306a36Sopenharmony_ci return uniphier_pinctrl_probe(pdev, &uniphier_ld4_pindata); 73462306a36Sopenharmony_ci} 73562306a36Sopenharmony_ci 73662306a36Sopenharmony_cistatic const struct of_device_id uniphier_ld4_pinctrl_match[] = { 73762306a36Sopenharmony_ci { .compatible = "socionext,uniphier-ld4-pinctrl" }, 73862306a36Sopenharmony_ci { /* sentinel */ } 73962306a36Sopenharmony_ci}; 74062306a36Sopenharmony_ci 74162306a36Sopenharmony_cistatic struct platform_driver uniphier_ld4_pinctrl_driver = { 74262306a36Sopenharmony_ci .probe = uniphier_ld4_pinctrl_probe, 74362306a36Sopenharmony_ci .driver = { 74462306a36Sopenharmony_ci .name = "uniphier-ld4-pinctrl", 74562306a36Sopenharmony_ci .of_match_table = uniphier_ld4_pinctrl_match, 74662306a36Sopenharmony_ci .pm = &uniphier_pinctrl_pm_ops, 74762306a36Sopenharmony_ci }, 74862306a36Sopenharmony_ci}; 74962306a36Sopenharmony_cibuiltin_platform_driver(uniphier_ld4_pinctrl_driver); 750