18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2017, The Linux Foundation. All rights reserved. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include <linux/module.h> 78c2ecf20Sopenharmony_ci#include <linux/of.h> 88c2ecf20Sopenharmony_ci#include <linux/platform_device.h> 98c2ecf20Sopenharmony_ci#include <linux/pinctrl/pinctrl.h> 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include "pinctrl-msm.h" 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define FUNCTION(fname) \ 148c2ecf20Sopenharmony_ci [msm_mux_##fname] = { \ 158c2ecf20Sopenharmony_ci .name = #fname, \ 168c2ecf20Sopenharmony_ci .groups = fname##_groups, \ 178c2ecf20Sopenharmony_ci .ngroups = ARRAY_SIZE(fname##_groups), \ 188c2ecf20Sopenharmony_ci } 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#define REG_SIZE 0x1000 218c2ecf20Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ 228c2ecf20Sopenharmony_ci { \ 238c2ecf20Sopenharmony_ci .name = "gpio" #id, \ 248c2ecf20Sopenharmony_ci .pins = gpio##id##_pins, \ 258c2ecf20Sopenharmony_ci .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \ 268c2ecf20Sopenharmony_ci .funcs = (int[]){ \ 278c2ecf20Sopenharmony_ci msm_mux_gpio, /* gpio mode */ \ 288c2ecf20Sopenharmony_ci msm_mux_##f1, \ 298c2ecf20Sopenharmony_ci msm_mux_##f2, \ 308c2ecf20Sopenharmony_ci msm_mux_##f3, \ 318c2ecf20Sopenharmony_ci msm_mux_##f4, \ 328c2ecf20Sopenharmony_ci msm_mux_##f5, \ 338c2ecf20Sopenharmony_ci msm_mux_##f6, \ 348c2ecf20Sopenharmony_ci msm_mux_##f7, \ 358c2ecf20Sopenharmony_ci msm_mux_##f8, \ 368c2ecf20Sopenharmony_ci msm_mux_##f9 \ 378c2ecf20Sopenharmony_ci }, \ 388c2ecf20Sopenharmony_ci .nfuncs = 10, \ 398c2ecf20Sopenharmony_ci .ctl_reg = REG_SIZE * id, \ 408c2ecf20Sopenharmony_ci .io_reg = 0x4 + REG_SIZE * id, \ 418c2ecf20Sopenharmony_ci .intr_cfg_reg = 0x8 + REG_SIZE * id, \ 428c2ecf20Sopenharmony_ci .intr_status_reg = 0xc + REG_SIZE * id, \ 438c2ecf20Sopenharmony_ci .intr_target_reg = 0x8 + REG_SIZE * id, \ 448c2ecf20Sopenharmony_ci .mux_bit = 2, \ 458c2ecf20Sopenharmony_ci .pull_bit = 0, \ 468c2ecf20Sopenharmony_ci .drv_bit = 6, \ 478c2ecf20Sopenharmony_ci .oe_bit = 9, \ 488c2ecf20Sopenharmony_ci .in_bit = 0, \ 498c2ecf20Sopenharmony_ci .out_bit = 1, \ 508c2ecf20Sopenharmony_ci .intr_enable_bit = 0, \ 518c2ecf20Sopenharmony_ci .intr_status_bit = 0, \ 528c2ecf20Sopenharmony_ci .intr_target_bit = 5, \ 538c2ecf20Sopenharmony_ci .intr_target_kpss_val = 3, \ 548c2ecf20Sopenharmony_ci .intr_raw_status_bit = 4, \ 558c2ecf20Sopenharmony_ci .intr_polarity_bit = 1, \ 568c2ecf20Sopenharmony_ci .intr_detection_bit = 2, \ 578c2ecf20Sopenharmony_ci .intr_detection_width = 2, \ 588c2ecf20Sopenharmony_ci } 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_cistatic const struct pinctrl_pin_desc ipq8074_pins[] = { 618c2ecf20Sopenharmony_ci PINCTRL_PIN(0, "GPIO_0"), 628c2ecf20Sopenharmony_ci PINCTRL_PIN(1, "GPIO_1"), 638c2ecf20Sopenharmony_ci PINCTRL_PIN(2, "GPIO_2"), 648c2ecf20Sopenharmony_ci PINCTRL_PIN(3, "GPIO_3"), 658c2ecf20Sopenharmony_ci PINCTRL_PIN(4, "GPIO_4"), 668c2ecf20Sopenharmony_ci PINCTRL_PIN(5, "GPIO_5"), 678c2ecf20Sopenharmony_ci PINCTRL_PIN(6, "GPIO_6"), 688c2ecf20Sopenharmony_ci PINCTRL_PIN(7, "GPIO_7"), 698c2ecf20Sopenharmony_ci PINCTRL_PIN(8, "GPIO_8"), 708c2ecf20Sopenharmony_ci PINCTRL_PIN(9, "GPIO_9"), 718c2ecf20Sopenharmony_ci PINCTRL_PIN(10, "GPIO_10"), 728c2ecf20Sopenharmony_ci PINCTRL_PIN(11, "GPIO_11"), 738c2ecf20Sopenharmony_ci PINCTRL_PIN(12, "GPIO_12"), 748c2ecf20Sopenharmony_ci PINCTRL_PIN(13, "GPIO_13"), 758c2ecf20Sopenharmony_ci PINCTRL_PIN(14, "GPIO_14"), 768c2ecf20Sopenharmony_ci PINCTRL_PIN(15, "GPIO_15"), 778c2ecf20Sopenharmony_ci PINCTRL_PIN(16, "GPIO_16"), 788c2ecf20Sopenharmony_ci PINCTRL_PIN(17, "GPIO_17"), 798c2ecf20Sopenharmony_ci PINCTRL_PIN(18, "GPIO_18"), 808c2ecf20Sopenharmony_ci PINCTRL_PIN(19, "GPIO_19"), 818c2ecf20Sopenharmony_ci PINCTRL_PIN(20, "GPIO_20"), 828c2ecf20Sopenharmony_ci PINCTRL_PIN(21, "GPIO_21"), 838c2ecf20Sopenharmony_ci PINCTRL_PIN(22, "GPIO_22"), 848c2ecf20Sopenharmony_ci PINCTRL_PIN(23, "GPIO_23"), 858c2ecf20Sopenharmony_ci PINCTRL_PIN(24, "GPIO_24"), 868c2ecf20Sopenharmony_ci PINCTRL_PIN(25, "GPIO_25"), 878c2ecf20Sopenharmony_ci PINCTRL_PIN(26, "GPIO_26"), 888c2ecf20Sopenharmony_ci PINCTRL_PIN(27, "GPIO_27"), 898c2ecf20Sopenharmony_ci PINCTRL_PIN(28, "GPIO_28"), 908c2ecf20Sopenharmony_ci PINCTRL_PIN(29, "GPIO_29"), 918c2ecf20Sopenharmony_ci PINCTRL_PIN(30, "GPIO_30"), 928c2ecf20Sopenharmony_ci PINCTRL_PIN(31, "GPIO_31"), 938c2ecf20Sopenharmony_ci PINCTRL_PIN(32, "GPIO_32"), 948c2ecf20Sopenharmony_ci PINCTRL_PIN(33, "GPIO_33"), 958c2ecf20Sopenharmony_ci PINCTRL_PIN(34, "GPIO_34"), 968c2ecf20Sopenharmony_ci PINCTRL_PIN(35, "GPIO_35"), 978c2ecf20Sopenharmony_ci PINCTRL_PIN(36, "GPIO_36"), 988c2ecf20Sopenharmony_ci PINCTRL_PIN(37, "GPIO_37"), 998c2ecf20Sopenharmony_ci PINCTRL_PIN(38, "GPIO_38"), 1008c2ecf20Sopenharmony_ci PINCTRL_PIN(39, "GPIO_39"), 1018c2ecf20Sopenharmony_ci PINCTRL_PIN(40, "GPIO_40"), 1028c2ecf20Sopenharmony_ci PINCTRL_PIN(41, "GPIO_41"), 1038c2ecf20Sopenharmony_ci PINCTRL_PIN(42, "GPIO_42"), 1048c2ecf20Sopenharmony_ci PINCTRL_PIN(43, "GPIO_43"), 1058c2ecf20Sopenharmony_ci PINCTRL_PIN(44, "GPIO_44"), 1068c2ecf20Sopenharmony_ci PINCTRL_PIN(45, "GPIO_45"), 1078c2ecf20Sopenharmony_ci PINCTRL_PIN(46, "GPIO_46"), 1088c2ecf20Sopenharmony_ci PINCTRL_PIN(47, "GPIO_47"), 1098c2ecf20Sopenharmony_ci PINCTRL_PIN(48, "GPIO_48"), 1108c2ecf20Sopenharmony_ci PINCTRL_PIN(49, "GPIO_49"), 1118c2ecf20Sopenharmony_ci PINCTRL_PIN(50, "GPIO_50"), 1128c2ecf20Sopenharmony_ci PINCTRL_PIN(51, "GPIO_51"), 1138c2ecf20Sopenharmony_ci PINCTRL_PIN(52, "GPIO_52"), 1148c2ecf20Sopenharmony_ci PINCTRL_PIN(53, "GPIO_53"), 1158c2ecf20Sopenharmony_ci PINCTRL_PIN(54, "GPIO_54"), 1168c2ecf20Sopenharmony_ci PINCTRL_PIN(55, "GPIO_55"), 1178c2ecf20Sopenharmony_ci PINCTRL_PIN(56, "GPIO_56"), 1188c2ecf20Sopenharmony_ci PINCTRL_PIN(57, "GPIO_57"), 1198c2ecf20Sopenharmony_ci PINCTRL_PIN(58, "GPIO_58"), 1208c2ecf20Sopenharmony_ci PINCTRL_PIN(59, "GPIO_59"), 1218c2ecf20Sopenharmony_ci PINCTRL_PIN(60, "GPIO_60"), 1228c2ecf20Sopenharmony_ci PINCTRL_PIN(61, "GPIO_61"), 1238c2ecf20Sopenharmony_ci PINCTRL_PIN(62, "GPIO_62"), 1248c2ecf20Sopenharmony_ci PINCTRL_PIN(63, "GPIO_63"), 1258c2ecf20Sopenharmony_ci PINCTRL_PIN(64, "GPIO_64"), 1268c2ecf20Sopenharmony_ci PINCTRL_PIN(65, "GPIO_65"), 1278c2ecf20Sopenharmony_ci PINCTRL_PIN(66, "GPIO_66"), 1288c2ecf20Sopenharmony_ci PINCTRL_PIN(67, "GPIO_67"), 1298c2ecf20Sopenharmony_ci PINCTRL_PIN(68, "GPIO_68"), 1308c2ecf20Sopenharmony_ci PINCTRL_PIN(69, "GPIO_69"), 1318c2ecf20Sopenharmony_ci}; 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) \ 1348c2ecf20Sopenharmony_ci static const unsigned int gpio##pin##_pins[] = { pin } 1358c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0); 1368c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1); 1378c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2); 1388c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3); 1398c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4); 1408c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5); 1418c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6); 1428c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7); 1438c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8); 1448c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9); 1458c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10); 1468c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11); 1478c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12); 1488c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13); 1498c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14); 1508c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15); 1518c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16); 1528c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17); 1538c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18); 1548c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19); 1558c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20); 1568c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21); 1578c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22); 1588c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23); 1598c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24); 1608c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25); 1618c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26); 1628c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27); 1638c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28); 1648c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29); 1658c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30); 1668c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31); 1678c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32); 1688c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33); 1698c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34); 1708c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35); 1718c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36); 1728c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37); 1738c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38); 1748c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39); 1758c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40); 1768c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41); 1778c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42); 1788c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43); 1798c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44); 1808c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45); 1818c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46); 1828c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47); 1838c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48); 1848c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49); 1858c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50); 1868c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51); 1878c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52); 1888c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53); 1898c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54); 1908c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55); 1918c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56); 1928c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57); 1938c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58); 1948c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59); 1958c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60); 1968c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61); 1978c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62); 1988c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63); 1998c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64); 2008c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65); 2018c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66); 2028c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67); 2038c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68); 2048c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69); 2058c2ecf20Sopenharmony_ci 2068c2ecf20Sopenharmony_cienum ipq8074_functions { 2078c2ecf20Sopenharmony_ci msm_mux_atest_char, 2088c2ecf20Sopenharmony_ci msm_mux_atest_char0, 2098c2ecf20Sopenharmony_ci msm_mux_atest_char1, 2108c2ecf20Sopenharmony_ci msm_mux_atest_char2, 2118c2ecf20Sopenharmony_ci msm_mux_atest_char3, 2128c2ecf20Sopenharmony_ci msm_mux_audio_rxbclk, 2138c2ecf20Sopenharmony_ci msm_mux_audio_rxd, 2148c2ecf20Sopenharmony_ci msm_mux_audio_rxfsync, 2158c2ecf20Sopenharmony_ci msm_mux_audio_rxmclk, 2168c2ecf20Sopenharmony_ci msm_mux_audio_txbclk, 2178c2ecf20Sopenharmony_ci msm_mux_audio_txd, 2188c2ecf20Sopenharmony_ci msm_mux_audio_txfsync, 2198c2ecf20Sopenharmony_ci msm_mux_audio_txmclk, 2208c2ecf20Sopenharmony_ci msm_mux_blsp0_i2c, 2218c2ecf20Sopenharmony_ci msm_mux_blsp0_spi, 2228c2ecf20Sopenharmony_ci msm_mux_blsp0_uart, 2238c2ecf20Sopenharmony_ci msm_mux_blsp1_i2c, 2248c2ecf20Sopenharmony_ci msm_mux_blsp1_spi, 2258c2ecf20Sopenharmony_ci msm_mux_blsp1_uart, 2268c2ecf20Sopenharmony_ci msm_mux_blsp2_i2c, 2278c2ecf20Sopenharmony_ci msm_mux_blsp2_spi, 2288c2ecf20Sopenharmony_ci msm_mux_blsp2_uart, 2298c2ecf20Sopenharmony_ci msm_mux_blsp3_i2c, 2308c2ecf20Sopenharmony_ci msm_mux_blsp3_spi, 2318c2ecf20Sopenharmony_ci msm_mux_blsp3_spi0, 2328c2ecf20Sopenharmony_ci msm_mux_blsp3_spi1, 2338c2ecf20Sopenharmony_ci msm_mux_blsp3_spi2, 2348c2ecf20Sopenharmony_ci msm_mux_blsp3_spi3, 2358c2ecf20Sopenharmony_ci msm_mux_blsp3_uart, 2368c2ecf20Sopenharmony_ci msm_mux_blsp4_i2c0, 2378c2ecf20Sopenharmony_ci msm_mux_blsp4_i2c1, 2388c2ecf20Sopenharmony_ci msm_mux_blsp4_spi0, 2398c2ecf20Sopenharmony_ci msm_mux_blsp4_spi1, 2408c2ecf20Sopenharmony_ci msm_mux_blsp4_uart0, 2418c2ecf20Sopenharmony_ci msm_mux_blsp4_uart1, 2428c2ecf20Sopenharmony_ci msm_mux_blsp5_i2c, 2438c2ecf20Sopenharmony_ci msm_mux_blsp5_spi, 2448c2ecf20Sopenharmony_ci msm_mux_blsp5_uart, 2458c2ecf20Sopenharmony_ci msm_mux_burn0, 2468c2ecf20Sopenharmony_ci msm_mux_burn1, 2478c2ecf20Sopenharmony_ci msm_mux_cri_trng, 2488c2ecf20Sopenharmony_ci msm_mux_cri_trng0, 2498c2ecf20Sopenharmony_ci msm_mux_cri_trng1, 2508c2ecf20Sopenharmony_ci msm_mux_cxc0, 2518c2ecf20Sopenharmony_ci msm_mux_cxc1, 2528c2ecf20Sopenharmony_ci msm_mux_dbg_out, 2538c2ecf20Sopenharmony_ci msm_mux_gcc_plltest, 2548c2ecf20Sopenharmony_ci msm_mux_gcc_tlmm, 2558c2ecf20Sopenharmony_ci msm_mux_gpio, 2568c2ecf20Sopenharmony_ci msm_mux_ldo_en, 2578c2ecf20Sopenharmony_ci msm_mux_ldo_update, 2588c2ecf20Sopenharmony_ci msm_mux_led0, 2598c2ecf20Sopenharmony_ci msm_mux_led1, 2608c2ecf20Sopenharmony_ci msm_mux_led2, 2618c2ecf20Sopenharmony_ci msm_mux_mac0_sa0, 2628c2ecf20Sopenharmony_ci msm_mux_mac0_sa1, 2638c2ecf20Sopenharmony_ci msm_mux_mac1_sa0, 2648c2ecf20Sopenharmony_ci msm_mux_mac1_sa1, 2658c2ecf20Sopenharmony_ci msm_mux_mac1_sa2, 2668c2ecf20Sopenharmony_ci msm_mux_mac1_sa3, 2678c2ecf20Sopenharmony_ci msm_mux_mac2_sa0, 2688c2ecf20Sopenharmony_ci msm_mux_mac2_sa1, 2698c2ecf20Sopenharmony_ci msm_mux_mdc, 2708c2ecf20Sopenharmony_ci msm_mux_mdio, 2718c2ecf20Sopenharmony_ci msm_mux_pcie0_clk, 2728c2ecf20Sopenharmony_ci msm_mux_pcie0_rst, 2738c2ecf20Sopenharmony_ci msm_mux_pcie0_wake, 2748c2ecf20Sopenharmony_ci msm_mux_pcie1_clk, 2758c2ecf20Sopenharmony_ci msm_mux_pcie1_rst, 2768c2ecf20Sopenharmony_ci msm_mux_pcie1_wake, 2778c2ecf20Sopenharmony_ci msm_mux_pcm_drx, 2788c2ecf20Sopenharmony_ci msm_mux_pcm_dtx, 2798c2ecf20Sopenharmony_ci msm_mux_pcm_fsync, 2808c2ecf20Sopenharmony_ci msm_mux_pcm_pclk, 2818c2ecf20Sopenharmony_ci msm_mux_pcm_zsi0, 2828c2ecf20Sopenharmony_ci msm_mux_pcm_zsi1, 2838c2ecf20Sopenharmony_ci msm_mux_prng_rosc, 2848c2ecf20Sopenharmony_ci msm_mux_pta1_0, 2858c2ecf20Sopenharmony_ci msm_mux_pta1_1, 2868c2ecf20Sopenharmony_ci msm_mux_pta1_2, 2878c2ecf20Sopenharmony_ci msm_mux_pta2_0, 2888c2ecf20Sopenharmony_ci msm_mux_pta2_1, 2898c2ecf20Sopenharmony_ci msm_mux_pta2_2, 2908c2ecf20Sopenharmony_ci msm_mux_pwm0, 2918c2ecf20Sopenharmony_ci msm_mux_pwm1, 2928c2ecf20Sopenharmony_ci msm_mux_pwm2, 2938c2ecf20Sopenharmony_ci msm_mux_pwm3, 2948c2ecf20Sopenharmony_ci msm_mux_qdss_cti_trig_in_a0, 2958c2ecf20Sopenharmony_ci msm_mux_qdss_cti_trig_in_a1, 2968c2ecf20Sopenharmony_ci msm_mux_qdss_cti_trig_in_b0, 2978c2ecf20Sopenharmony_ci msm_mux_qdss_cti_trig_in_b1, 2988c2ecf20Sopenharmony_ci msm_mux_qdss_cti_trig_out_a0, 2998c2ecf20Sopenharmony_ci msm_mux_qdss_cti_trig_out_a1, 3008c2ecf20Sopenharmony_ci msm_mux_qdss_cti_trig_out_b0, 3018c2ecf20Sopenharmony_ci msm_mux_qdss_cti_trig_out_b1, 3028c2ecf20Sopenharmony_ci msm_mux_qdss_traceclk_a, 3038c2ecf20Sopenharmony_ci msm_mux_qdss_traceclk_b, 3048c2ecf20Sopenharmony_ci msm_mux_qdss_tracectl_a, 3058c2ecf20Sopenharmony_ci msm_mux_qdss_tracectl_b, 3068c2ecf20Sopenharmony_ci msm_mux_qdss_tracedata_a, 3078c2ecf20Sopenharmony_ci msm_mux_qdss_tracedata_b, 3088c2ecf20Sopenharmony_ci msm_mux_qpic, 3098c2ecf20Sopenharmony_ci msm_mux_rx0, 3108c2ecf20Sopenharmony_ci msm_mux_rx1, 3118c2ecf20Sopenharmony_ci msm_mux_rx2, 3128c2ecf20Sopenharmony_ci msm_mux_sd_card, 3138c2ecf20Sopenharmony_ci msm_mux_sd_write, 3148c2ecf20Sopenharmony_ci msm_mux_tsens_max, 3158c2ecf20Sopenharmony_ci msm_mux_wci2a, 3168c2ecf20Sopenharmony_ci msm_mux_wci2b, 3178c2ecf20Sopenharmony_ci msm_mux_wci2c, 3188c2ecf20Sopenharmony_ci msm_mux_wci2d, 3198c2ecf20Sopenharmony_ci msm_mux_NA, 3208c2ecf20Sopenharmony_ci}; 3218c2ecf20Sopenharmony_ci 3228c2ecf20Sopenharmony_cistatic const char * const qpic_groups[] = { 3238c2ecf20Sopenharmony_ci "gpio0", /* LCD_TE */ 3248c2ecf20Sopenharmony_ci "gpio1", /* BUSY_N */ 3258c2ecf20Sopenharmony_ci "gpio2", /* LCD_RS_N */ 3268c2ecf20Sopenharmony_ci "gpio3", /* WE_N */ 3278c2ecf20Sopenharmony_ci "gpio4", /* OE_N */ 3288c2ecf20Sopenharmony_ci "gpio5", /* DATA[0] */ 3298c2ecf20Sopenharmony_ci "gpio6", /* DATA[1] */ 3308c2ecf20Sopenharmony_ci "gpio7", /* DATA[2] */ 3318c2ecf20Sopenharmony_ci "gpio8", /* DATA[3] */ 3328c2ecf20Sopenharmony_ci "gpio9", /* CS_CSR_LCD */ 3338c2ecf20Sopenharmony_ci "gpio10", /* CLE */ 3348c2ecf20Sopenharmony_ci "gpio11", /* NAND_CS_N */ 3358c2ecf20Sopenharmony_ci "gpio12", /* DATA[4] */ 3368c2ecf20Sopenharmony_ci "gpio13", /* DATA[5] */ 3378c2ecf20Sopenharmony_ci "gpio14", /* DATA[6] */ 3388c2ecf20Sopenharmony_ci "gpio15", /* DATA[7] */ 3398c2ecf20Sopenharmony_ci "gpio16", /* DATA[8] */ 3408c2ecf20Sopenharmony_ci "gpio17", /* ALE */ 3418c2ecf20Sopenharmony_ci}; 3428c2ecf20Sopenharmony_ci 3438c2ecf20Sopenharmony_cistatic const char * const blsp5_i2c_groups[] = { 3448c2ecf20Sopenharmony_ci "gpio0", "gpio2", 3458c2ecf20Sopenharmony_ci}; 3468c2ecf20Sopenharmony_ci 3478c2ecf20Sopenharmony_cistatic const char * const blsp5_spi_groups[] = { 3488c2ecf20Sopenharmony_ci "gpio0", "gpio2", "gpio9", "gpio16", 3498c2ecf20Sopenharmony_ci}; 3508c2ecf20Sopenharmony_ci 3518c2ecf20Sopenharmony_cistatic const char * const wci2a_groups[] = { 3528c2ecf20Sopenharmony_ci "gpio0", "gpio2", 3538c2ecf20Sopenharmony_ci}; 3548c2ecf20Sopenharmony_ci 3558c2ecf20Sopenharmony_cistatic const char * const blsp3_spi3_groups[] = { 3568c2ecf20Sopenharmony_ci "gpio0", "gpio2", "gpio9", 3578c2ecf20Sopenharmony_ci}; 3588c2ecf20Sopenharmony_ci 3598c2ecf20Sopenharmony_cistatic const char * const burn0_groups[] = { 3608c2ecf20Sopenharmony_ci "gpio0", 3618c2ecf20Sopenharmony_ci}; 3628c2ecf20Sopenharmony_ci 3638c2ecf20Sopenharmony_cistatic const char * const pcm_zsi0_groups[] = { 3648c2ecf20Sopenharmony_ci "gpio1", 3658c2ecf20Sopenharmony_ci}; 3668c2ecf20Sopenharmony_ci 3678c2ecf20Sopenharmony_cistatic const char * const blsp5_uart_groups[] = { 3688c2ecf20Sopenharmony_ci "gpio0", "gpio2", "gpio9", "gpio16", 3698c2ecf20Sopenharmony_ci}; 3708c2ecf20Sopenharmony_ci 3718c2ecf20Sopenharmony_cistatic const char * const mac1_sa2_groups[] = { 3728c2ecf20Sopenharmony_ci "gpio1", "gpio11", 3738c2ecf20Sopenharmony_ci}; 3748c2ecf20Sopenharmony_ci 3758c2ecf20Sopenharmony_cistatic const char * const blsp3_spi0_groups[] = { 3768c2ecf20Sopenharmony_ci "gpio1", "gpio3", "gpio4", 3778c2ecf20Sopenharmony_ci}; 3788c2ecf20Sopenharmony_ci 3798c2ecf20Sopenharmony_cistatic const char * const burn1_groups[] = { 3808c2ecf20Sopenharmony_ci "gpio1", 3818c2ecf20Sopenharmony_ci}; 3828c2ecf20Sopenharmony_ci 3838c2ecf20Sopenharmony_cistatic const char * const mac0_sa1_groups[] = { 3848c2ecf20Sopenharmony_ci "gpio3", "gpio4", 3858c2ecf20Sopenharmony_ci}; 3868c2ecf20Sopenharmony_ci 3878c2ecf20Sopenharmony_cistatic const char * const qdss_cti_trig_out_b0_groups[] = { 3888c2ecf20Sopenharmony_ci "gpio3", 3898c2ecf20Sopenharmony_ci}; 3908c2ecf20Sopenharmony_ci 3918c2ecf20Sopenharmony_cistatic const char * const qdss_cti_trig_in_b0_groups[] = { 3928c2ecf20Sopenharmony_ci "gpio4", 3938c2ecf20Sopenharmony_ci}; 3948c2ecf20Sopenharmony_ci 3958c2ecf20Sopenharmony_cistatic const char * const blsp4_uart0_groups[] = { 3968c2ecf20Sopenharmony_ci "gpio5", "gpio6", "gpio7", "gpio8", 3978c2ecf20Sopenharmony_ci}; 3988c2ecf20Sopenharmony_ci 3998c2ecf20Sopenharmony_cistatic const char * const blsp4_i2c0_groups[] = { 4008c2ecf20Sopenharmony_ci "gpio5", "gpio6", 4018c2ecf20Sopenharmony_ci}; 4028c2ecf20Sopenharmony_ci 4038c2ecf20Sopenharmony_cistatic const char * const blsp4_spi0_groups[] = { 4048c2ecf20Sopenharmony_ci "gpio5", "gpio6", "gpio7", "gpio8", 4058c2ecf20Sopenharmony_ci}; 4068c2ecf20Sopenharmony_ci 4078c2ecf20Sopenharmony_cistatic const char * const mac2_sa1_groups[] = { 4088c2ecf20Sopenharmony_ci "gpio5", "gpio6", 4098c2ecf20Sopenharmony_ci}; 4108c2ecf20Sopenharmony_ci 4118c2ecf20Sopenharmony_cistatic const char * const qdss_cti_trig_out_b1_groups[] = { 4128c2ecf20Sopenharmony_ci "gpio5", 4138c2ecf20Sopenharmony_ci}; 4148c2ecf20Sopenharmony_ci 4158c2ecf20Sopenharmony_cistatic const char * const qdss_cti_trig_in_b1_groups[] = { 4168c2ecf20Sopenharmony_ci "gpio6", 4178c2ecf20Sopenharmony_ci}; 4188c2ecf20Sopenharmony_ci 4198c2ecf20Sopenharmony_cistatic const char * const cxc0_groups[] = { 4208c2ecf20Sopenharmony_ci "gpio9", "gpio16", 4218c2ecf20Sopenharmony_ci}; 4228c2ecf20Sopenharmony_ci 4238c2ecf20Sopenharmony_cistatic const char * const mac1_sa3_groups[] = { 4248c2ecf20Sopenharmony_ci "gpio9", "gpio16", 4258c2ecf20Sopenharmony_ci}; 4268c2ecf20Sopenharmony_ci 4278c2ecf20Sopenharmony_cistatic const char * const qdss_cti_trig_in_a1_groups[] = { 4288c2ecf20Sopenharmony_ci "gpio9", 4298c2ecf20Sopenharmony_ci}; 4308c2ecf20Sopenharmony_ci 4318c2ecf20Sopenharmony_cistatic const char * const qdss_cti_trig_out_a1_groups[] = { 4328c2ecf20Sopenharmony_ci "gpio10", 4338c2ecf20Sopenharmony_ci}; 4348c2ecf20Sopenharmony_ci 4358c2ecf20Sopenharmony_cistatic const char * const wci2c_groups[] = { 4368c2ecf20Sopenharmony_ci "gpio11", "gpio17", 4378c2ecf20Sopenharmony_ci}; 4388c2ecf20Sopenharmony_ci 4398c2ecf20Sopenharmony_cistatic const char * const qdss_cti_trig_in_a0_groups[] = { 4408c2ecf20Sopenharmony_ci "gpio11", 4418c2ecf20Sopenharmony_ci}; 4428c2ecf20Sopenharmony_ci 4438c2ecf20Sopenharmony_cistatic const char * const qdss_cti_trig_out_a0_groups[] = { 4448c2ecf20Sopenharmony_ci "gpio12", 4458c2ecf20Sopenharmony_ci}; 4468c2ecf20Sopenharmony_ci 4478c2ecf20Sopenharmony_cistatic const char * const qdss_traceclk_b_groups[] = { 4488c2ecf20Sopenharmony_ci "gpio14", 4498c2ecf20Sopenharmony_ci}; 4508c2ecf20Sopenharmony_ci 4518c2ecf20Sopenharmony_cistatic const char * const qdss_tracectl_b_groups[] = { 4528c2ecf20Sopenharmony_ci "gpio15", 4538c2ecf20Sopenharmony_ci}; 4548c2ecf20Sopenharmony_ci 4558c2ecf20Sopenharmony_cistatic const char * const pcm_zsi1_groups[] = { 4568c2ecf20Sopenharmony_ci "gpio16", 4578c2ecf20Sopenharmony_ci}; 4588c2ecf20Sopenharmony_ci 4598c2ecf20Sopenharmony_cistatic const char * const qdss_tracedata_b_groups[] = { 4608c2ecf20Sopenharmony_ci "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", "gpio22", 4618c2ecf20Sopenharmony_ci "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio29", 4628c2ecf20Sopenharmony_ci "gpio30", "gpio31", 4638c2ecf20Sopenharmony_ci}; 4648c2ecf20Sopenharmony_ci 4658c2ecf20Sopenharmony_cistatic const char * const led0_groups[] = { 4668c2ecf20Sopenharmony_ci "gpio18", 4678c2ecf20Sopenharmony_ci}; 4688c2ecf20Sopenharmony_ci 4698c2ecf20Sopenharmony_cistatic const char * const pwm0_groups[] = { 4708c2ecf20Sopenharmony_ci "gpio18", "gpio21", "gpio25", "gpio29", "gpio63", 4718c2ecf20Sopenharmony_ci}; 4728c2ecf20Sopenharmony_ci 4738c2ecf20Sopenharmony_cistatic const char * const led1_groups[] = { 4748c2ecf20Sopenharmony_ci "gpio19", 4758c2ecf20Sopenharmony_ci}; 4768c2ecf20Sopenharmony_ci 4778c2ecf20Sopenharmony_cistatic const char * const pwm1_groups[] = { 4788c2ecf20Sopenharmony_ci "gpio19", "gpio22", "gpio26", "gpio30", "gpio64", 4798c2ecf20Sopenharmony_ci}; 4808c2ecf20Sopenharmony_ci 4818c2ecf20Sopenharmony_cistatic const char * const led2_groups[] = { 4828c2ecf20Sopenharmony_ci "gpio20", 4838c2ecf20Sopenharmony_ci}; 4848c2ecf20Sopenharmony_ci 4858c2ecf20Sopenharmony_cistatic const char * const pwm2_groups[] = { 4868c2ecf20Sopenharmony_ci "gpio20", "gpio23", "gpio27", "gpio31", "gpio66", 4878c2ecf20Sopenharmony_ci}; 4888c2ecf20Sopenharmony_ci 4898c2ecf20Sopenharmony_cistatic const char * const blsp4_uart1_groups[] = { 4908c2ecf20Sopenharmony_ci "gpio21", "gpio22", "gpio23", "gpio24", 4918c2ecf20Sopenharmony_ci}; 4928c2ecf20Sopenharmony_ci 4938c2ecf20Sopenharmony_cistatic const char * const blsp4_i2c1_groups[] = { 4948c2ecf20Sopenharmony_ci "gpio21", "gpio22", 4958c2ecf20Sopenharmony_ci}; 4968c2ecf20Sopenharmony_ci 4978c2ecf20Sopenharmony_cistatic const char * const blsp4_spi1_groups[] = { 4988c2ecf20Sopenharmony_ci "gpio21", "gpio22", "gpio23", "gpio24", 4998c2ecf20Sopenharmony_ci}; 5008c2ecf20Sopenharmony_ci 5018c2ecf20Sopenharmony_cistatic const char * const wci2d_groups[] = { 5028c2ecf20Sopenharmony_ci "gpio21", "gpio22", 5038c2ecf20Sopenharmony_ci}; 5048c2ecf20Sopenharmony_ci 5058c2ecf20Sopenharmony_cistatic const char * const mac1_sa1_groups[] = { 5068c2ecf20Sopenharmony_ci "gpio21", "gpio22", 5078c2ecf20Sopenharmony_ci}; 5088c2ecf20Sopenharmony_ci 5098c2ecf20Sopenharmony_cistatic const char * const blsp3_spi2_groups[] = { 5108c2ecf20Sopenharmony_ci "gpio21", "gpio22", "gpio23", 5118c2ecf20Sopenharmony_ci}; 5128c2ecf20Sopenharmony_ci 5138c2ecf20Sopenharmony_cistatic const char * const pwm3_groups[] = { 5148c2ecf20Sopenharmony_ci "gpio24", "gpio28", "gpio32", "gpio67", 5158c2ecf20Sopenharmony_ci}; 5168c2ecf20Sopenharmony_ci 5178c2ecf20Sopenharmony_cistatic const char * const audio_txmclk_groups[] = { 5188c2ecf20Sopenharmony_ci "gpio25", 5198c2ecf20Sopenharmony_ci}; 5208c2ecf20Sopenharmony_ci 5218c2ecf20Sopenharmony_cistatic const char * const audio_txbclk_groups[] = { 5228c2ecf20Sopenharmony_ci "gpio26", 5238c2ecf20Sopenharmony_ci}; 5248c2ecf20Sopenharmony_ci 5258c2ecf20Sopenharmony_cistatic const char * const audio_txfsync_groups[] = { 5268c2ecf20Sopenharmony_ci "gpio27", 5278c2ecf20Sopenharmony_ci}; 5288c2ecf20Sopenharmony_ci 5298c2ecf20Sopenharmony_cistatic const char * const audio_txd_groups[] = { 5308c2ecf20Sopenharmony_ci "gpio28", 5318c2ecf20Sopenharmony_ci}; 5328c2ecf20Sopenharmony_ci 5338c2ecf20Sopenharmony_cistatic const char * const audio_rxmclk_groups[] = { 5348c2ecf20Sopenharmony_ci "gpio29", 5358c2ecf20Sopenharmony_ci}; 5368c2ecf20Sopenharmony_ci 5378c2ecf20Sopenharmony_cistatic const char * const atest_char0_groups[] = { 5388c2ecf20Sopenharmony_ci "gpio29", 5398c2ecf20Sopenharmony_ci}; 5408c2ecf20Sopenharmony_ci 5418c2ecf20Sopenharmony_cistatic const char * const audio_rxbclk_groups[] = { 5428c2ecf20Sopenharmony_ci "gpio30", 5438c2ecf20Sopenharmony_ci}; 5448c2ecf20Sopenharmony_ci 5458c2ecf20Sopenharmony_cistatic const char * const atest_char1_groups[] = { 5468c2ecf20Sopenharmony_ci "gpio30", 5478c2ecf20Sopenharmony_ci}; 5488c2ecf20Sopenharmony_ci 5498c2ecf20Sopenharmony_cistatic const char * const audio_rxfsync_groups[] = { 5508c2ecf20Sopenharmony_ci "gpio31", 5518c2ecf20Sopenharmony_ci}; 5528c2ecf20Sopenharmony_ci 5538c2ecf20Sopenharmony_cistatic const char * const atest_char2_groups[] = { 5548c2ecf20Sopenharmony_ci "gpio31", 5558c2ecf20Sopenharmony_ci}; 5568c2ecf20Sopenharmony_ci 5578c2ecf20Sopenharmony_cistatic const char * const audio_rxd_groups[] = { 5588c2ecf20Sopenharmony_ci "gpio32", 5598c2ecf20Sopenharmony_ci}; 5608c2ecf20Sopenharmony_ci 5618c2ecf20Sopenharmony_cistatic const char * const atest_char3_groups[] = { 5628c2ecf20Sopenharmony_ci "gpio32", 5638c2ecf20Sopenharmony_ci}; 5648c2ecf20Sopenharmony_ci 5658c2ecf20Sopenharmony_cistatic const char * const pcm_drx_groups[] = { 5668c2ecf20Sopenharmony_ci "gpio33", 5678c2ecf20Sopenharmony_ci}; 5688c2ecf20Sopenharmony_ci 5698c2ecf20Sopenharmony_cistatic const char * const mac1_sa0_groups[] = { 5708c2ecf20Sopenharmony_ci "gpio33", "gpio34", 5718c2ecf20Sopenharmony_ci}; 5728c2ecf20Sopenharmony_ci 5738c2ecf20Sopenharmony_cistatic const char * const mac0_sa0_groups[] = { 5748c2ecf20Sopenharmony_ci "gpio33", "gpio34", 5758c2ecf20Sopenharmony_ci}; 5768c2ecf20Sopenharmony_ci 5778c2ecf20Sopenharmony_cistatic const char * const pcm_dtx_groups[] = { 5788c2ecf20Sopenharmony_ci "gpio34", 5798c2ecf20Sopenharmony_ci}; 5808c2ecf20Sopenharmony_ci 5818c2ecf20Sopenharmony_cistatic const char * const pcm_fsync_groups[] = { 5828c2ecf20Sopenharmony_ci "gpio35", 5838c2ecf20Sopenharmony_ci}; 5848c2ecf20Sopenharmony_ci 5858c2ecf20Sopenharmony_cistatic const char * const mac2_sa0_groups[] = { 5868c2ecf20Sopenharmony_ci "gpio35", "gpio36", 5878c2ecf20Sopenharmony_ci}; 5888c2ecf20Sopenharmony_ci 5898c2ecf20Sopenharmony_cistatic const char * const qdss_traceclk_a_groups[] = { 5908c2ecf20Sopenharmony_ci "gpio35", 5918c2ecf20Sopenharmony_ci}; 5928c2ecf20Sopenharmony_ci 5938c2ecf20Sopenharmony_cistatic const char * const pcm_pclk_groups[] = { 5948c2ecf20Sopenharmony_ci "gpio36", 5958c2ecf20Sopenharmony_ci}; 5968c2ecf20Sopenharmony_ci 5978c2ecf20Sopenharmony_cistatic const char * const qdss_tracectl_a_groups[] = { 5988c2ecf20Sopenharmony_ci "gpio36", 5998c2ecf20Sopenharmony_ci}; 6008c2ecf20Sopenharmony_ci 6018c2ecf20Sopenharmony_cistatic const char * const atest_char_groups[] = { 6028c2ecf20Sopenharmony_ci "gpio37", 6038c2ecf20Sopenharmony_ci}; 6048c2ecf20Sopenharmony_ci 6058c2ecf20Sopenharmony_cistatic const char * const qdss_tracedata_a_groups[] = { 6068c2ecf20Sopenharmony_ci "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", "gpio43", 6078c2ecf20Sopenharmony_ci "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", "gpio50", 6088c2ecf20Sopenharmony_ci "gpio51", "gpio52", 6098c2ecf20Sopenharmony_ci}; 6108c2ecf20Sopenharmony_ci 6118c2ecf20Sopenharmony_cistatic const char * const blsp0_uart_groups[] = { 6128c2ecf20Sopenharmony_ci "gpio38", "gpio39", "gpio40", "gpio41", 6138c2ecf20Sopenharmony_ci}; 6148c2ecf20Sopenharmony_ci 6158c2ecf20Sopenharmony_cistatic const char * const blsp0_i2c_groups[] = { 6168c2ecf20Sopenharmony_ci "gpio38", "gpio39", 6178c2ecf20Sopenharmony_ci}; 6188c2ecf20Sopenharmony_ci 6198c2ecf20Sopenharmony_cistatic const char * const blsp0_spi_groups[] = { 6208c2ecf20Sopenharmony_ci "gpio38", "gpio39", "gpio40", "gpio41", 6218c2ecf20Sopenharmony_ci}; 6228c2ecf20Sopenharmony_ci 6238c2ecf20Sopenharmony_cistatic const char * const blsp1_uart_groups[] = { 6248c2ecf20Sopenharmony_ci "gpio42", "gpio43", "gpio44", "gpio45", 6258c2ecf20Sopenharmony_ci}; 6268c2ecf20Sopenharmony_ci 6278c2ecf20Sopenharmony_cistatic const char * const blsp1_i2c_groups[] = { 6288c2ecf20Sopenharmony_ci "gpio42", "gpio43", 6298c2ecf20Sopenharmony_ci}; 6308c2ecf20Sopenharmony_ci 6318c2ecf20Sopenharmony_cistatic const char * const blsp1_spi_groups[] = { 6328c2ecf20Sopenharmony_ci "gpio42", "gpio43", "gpio44", "gpio45", 6338c2ecf20Sopenharmony_ci}; 6348c2ecf20Sopenharmony_ci 6358c2ecf20Sopenharmony_cistatic const char * const blsp2_uart_groups[] = { 6368c2ecf20Sopenharmony_ci "gpio46", "gpio47", "gpio48", "gpio49", 6378c2ecf20Sopenharmony_ci}; 6388c2ecf20Sopenharmony_ci 6398c2ecf20Sopenharmony_cistatic const char * const blsp2_i2c_groups[] = { 6408c2ecf20Sopenharmony_ci "gpio46", "gpio47", 6418c2ecf20Sopenharmony_ci}; 6428c2ecf20Sopenharmony_ci 6438c2ecf20Sopenharmony_cistatic const char * const blsp2_spi_groups[] = { 6448c2ecf20Sopenharmony_ci "gpio46", "gpio47", "gpio48", "gpio49", 6458c2ecf20Sopenharmony_ci}; 6468c2ecf20Sopenharmony_ci 6478c2ecf20Sopenharmony_cistatic const char * const blsp3_uart_groups[] = { 6488c2ecf20Sopenharmony_ci "gpio50", "gpio51", "gpio52", "gpio53", 6498c2ecf20Sopenharmony_ci}; 6508c2ecf20Sopenharmony_ci 6518c2ecf20Sopenharmony_cistatic const char * const blsp3_i2c_groups[] = { 6528c2ecf20Sopenharmony_ci "gpio50", "gpio51", 6538c2ecf20Sopenharmony_ci}; 6548c2ecf20Sopenharmony_ci 6558c2ecf20Sopenharmony_cistatic const char * const blsp3_spi_groups[] = { 6568c2ecf20Sopenharmony_ci "gpio50", "gpio51", "gpio52", "gpio53", 6578c2ecf20Sopenharmony_ci}; 6588c2ecf20Sopenharmony_ci 6598c2ecf20Sopenharmony_cistatic const char * const pta2_0_groups[] = { 6608c2ecf20Sopenharmony_ci "gpio54", 6618c2ecf20Sopenharmony_ci}; 6628c2ecf20Sopenharmony_ci 6638c2ecf20Sopenharmony_cistatic const char * const wci2b_groups[] = { 6648c2ecf20Sopenharmony_ci "gpio54", "gpio56", 6658c2ecf20Sopenharmony_ci}; 6668c2ecf20Sopenharmony_ci 6678c2ecf20Sopenharmony_cistatic const char * const cxc1_groups[] = { 6688c2ecf20Sopenharmony_ci "gpio54", "gpio56", 6698c2ecf20Sopenharmony_ci}; 6708c2ecf20Sopenharmony_ci 6718c2ecf20Sopenharmony_cistatic const char * const blsp3_spi1_groups[] = { 6728c2ecf20Sopenharmony_ci "gpio54", "gpio55", "gpio56", 6738c2ecf20Sopenharmony_ci}; 6748c2ecf20Sopenharmony_ci 6758c2ecf20Sopenharmony_cistatic const char * const pta2_1_groups[] = { 6768c2ecf20Sopenharmony_ci "gpio55", 6778c2ecf20Sopenharmony_ci}; 6788c2ecf20Sopenharmony_ci 6798c2ecf20Sopenharmony_cistatic const char * const pta2_2_groups[] = { 6808c2ecf20Sopenharmony_ci "gpio56", 6818c2ecf20Sopenharmony_ci}; 6828c2ecf20Sopenharmony_ci 6838c2ecf20Sopenharmony_cistatic const char * const pcie0_clk_groups[] = { 6848c2ecf20Sopenharmony_ci "gpio57", 6858c2ecf20Sopenharmony_ci}; 6868c2ecf20Sopenharmony_ci 6878c2ecf20Sopenharmony_cistatic const char * const dbg_out_groups[] = { 6888c2ecf20Sopenharmony_ci "gpio57", 6898c2ecf20Sopenharmony_ci}; 6908c2ecf20Sopenharmony_ci 6918c2ecf20Sopenharmony_cistatic const char * const cri_trng0_groups[] = { 6928c2ecf20Sopenharmony_ci "gpio57", 6938c2ecf20Sopenharmony_ci}; 6948c2ecf20Sopenharmony_ci 6958c2ecf20Sopenharmony_cistatic const char * const pcie0_rst_groups[] = { 6968c2ecf20Sopenharmony_ci "gpio58", 6978c2ecf20Sopenharmony_ci}; 6988c2ecf20Sopenharmony_ci 6998c2ecf20Sopenharmony_cistatic const char * const cri_trng1_groups[] = { 7008c2ecf20Sopenharmony_ci "gpio58", 7018c2ecf20Sopenharmony_ci}; 7028c2ecf20Sopenharmony_ci 7038c2ecf20Sopenharmony_cistatic const char * const pcie0_wake_groups[] = { 7048c2ecf20Sopenharmony_ci "gpio59", 7058c2ecf20Sopenharmony_ci}; 7068c2ecf20Sopenharmony_ci 7078c2ecf20Sopenharmony_cistatic const char * const cri_trng_groups[] = { 7088c2ecf20Sopenharmony_ci "gpio59", 7098c2ecf20Sopenharmony_ci}; 7108c2ecf20Sopenharmony_ci 7118c2ecf20Sopenharmony_cistatic const char * const pcie1_clk_groups[] = { 7128c2ecf20Sopenharmony_ci "gpio60", 7138c2ecf20Sopenharmony_ci}; 7148c2ecf20Sopenharmony_ci 7158c2ecf20Sopenharmony_cistatic const char * const rx2_groups[] = { 7168c2ecf20Sopenharmony_ci "gpio60", 7178c2ecf20Sopenharmony_ci}; 7188c2ecf20Sopenharmony_ci 7198c2ecf20Sopenharmony_cistatic const char * const ldo_update_groups[] = { 7208c2ecf20Sopenharmony_ci "gpio60", 7218c2ecf20Sopenharmony_ci}; 7228c2ecf20Sopenharmony_ci 7238c2ecf20Sopenharmony_cistatic const char * const pcie1_rst_groups[] = { 7248c2ecf20Sopenharmony_ci "gpio61", 7258c2ecf20Sopenharmony_ci}; 7268c2ecf20Sopenharmony_ci 7278c2ecf20Sopenharmony_cistatic const char * const ldo_en_groups[] = { 7288c2ecf20Sopenharmony_ci "gpio61", 7298c2ecf20Sopenharmony_ci}; 7308c2ecf20Sopenharmony_ci 7318c2ecf20Sopenharmony_cistatic const char * const pcie1_wake_groups[] = { 7328c2ecf20Sopenharmony_ci "gpio62", 7338c2ecf20Sopenharmony_ci}; 7348c2ecf20Sopenharmony_ci 7358c2ecf20Sopenharmony_cistatic const char * const gcc_plltest_groups[] = { 7368c2ecf20Sopenharmony_ci "gpio62", "gpio63", 7378c2ecf20Sopenharmony_ci}; 7388c2ecf20Sopenharmony_ci 7398c2ecf20Sopenharmony_cistatic const char * const sd_card_groups[] = { 7408c2ecf20Sopenharmony_ci "gpio63", 7418c2ecf20Sopenharmony_ci}; 7428c2ecf20Sopenharmony_ci 7438c2ecf20Sopenharmony_cistatic const char * const pta1_1_groups[] = { 7448c2ecf20Sopenharmony_ci "gpio64", 7458c2ecf20Sopenharmony_ci}; 7468c2ecf20Sopenharmony_ci 7478c2ecf20Sopenharmony_cistatic const char * const rx1_groups[] = { 7488c2ecf20Sopenharmony_ci "gpio64", 7498c2ecf20Sopenharmony_ci}; 7508c2ecf20Sopenharmony_ci 7518c2ecf20Sopenharmony_cistatic const char * const pta1_2_groups[] = { 7528c2ecf20Sopenharmony_ci "gpio65", 7538c2ecf20Sopenharmony_ci}; 7548c2ecf20Sopenharmony_ci 7558c2ecf20Sopenharmony_cistatic const char * const gcc_tlmm_groups[] = { 7568c2ecf20Sopenharmony_ci "gpio65", 7578c2ecf20Sopenharmony_ci}; 7588c2ecf20Sopenharmony_ci 7598c2ecf20Sopenharmony_cistatic const char * const pta1_0_groups[] = { 7608c2ecf20Sopenharmony_ci "gpio66", 7618c2ecf20Sopenharmony_ci}; 7628c2ecf20Sopenharmony_ci 7638c2ecf20Sopenharmony_cistatic const char * const prng_rosc_groups[] = { 7648c2ecf20Sopenharmony_ci "gpio66", 7658c2ecf20Sopenharmony_ci}; 7668c2ecf20Sopenharmony_ci 7678c2ecf20Sopenharmony_cistatic const char * const sd_write_groups[] = { 7688c2ecf20Sopenharmony_ci "gpio67", 7698c2ecf20Sopenharmony_ci}; 7708c2ecf20Sopenharmony_ci 7718c2ecf20Sopenharmony_cistatic const char * const rx0_groups[] = { 7728c2ecf20Sopenharmony_ci "gpio67", 7738c2ecf20Sopenharmony_ci}; 7748c2ecf20Sopenharmony_ci 7758c2ecf20Sopenharmony_cistatic const char * const tsens_max_groups[] = { 7768c2ecf20Sopenharmony_ci "gpio67", 7778c2ecf20Sopenharmony_ci}; 7788c2ecf20Sopenharmony_ci 7798c2ecf20Sopenharmony_cistatic const char * const mdc_groups[] = { 7808c2ecf20Sopenharmony_ci "gpio68", 7818c2ecf20Sopenharmony_ci}; 7828c2ecf20Sopenharmony_ci 7838c2ecf20Sopenharmony_cistatic const char * const mdio_groups[] = { 7848c2ecf20Sopenharmony_ci "gpio69", 7858c2ecf20Sopenharmony_ci}; 7868c2ecf20Sopenharmony_ci 7878c2ecf20Sopenharmony_cistatic const char * const gpio_groups[] = { 7888c2ecf20Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 7898c2ecf20Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 7908c2ecf20Sopenharmony_ci "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 7918c2ecf20Sopenharmony_ci "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", 7928c2ecf20Sopenharmony_ci "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 7938c2ecf20Sopenharmony_ci "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", 7948c2ecf20Sopenharmony_ci "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", 7958c2ecf20Sopenharmony_ci "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 7968c2ecf20Sopenharmony_ci "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 7978c2ecf20Sopenharmony_ci "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", 7988c2ecf20Sopenharmony_ci}; 7998c2ecf20Sopenharmony_ci 8008c2ecf20Sopenharmony_cistatic const struct msm_function ipq8074_functions[] = { 8018c2ecf20Sopenharmony_ci FUNCTION(atest_char), 8028c2ecf20Sopenharmony_ci FUNCTION(atest_char0), 8038c2ecf20Sopenharmony_ci FUNCTION(atest_char1), 8048c2ecf20Sopenharmony_ci FUNCTION(atest_char2), 8058c2ecf20Sopenharmony_ci FUNCTION(atest_char3), 8068c2ecf20Sopenharmony_ci FUNCTION(audio_rxbclk), 8078c2ecf20Sopenharmony_ci FUNCTION(audio_rxd), 8088c2ecf20Sopenharmony_ci FUNCTION(audio_rxfsync), 8098c2ecf20Sopenharmony_ci FUNCTION(audio_rxmclk), 8108c2ecf20Sopenharmony_ci FUNCTION(audio_txbclk), 8118c2ecf20Sopenharmony_ci FUNCTION(audio_txd), 8128c2ecf20Sopenharmony_ci FUNCTION(audio_txfsync), 8138c2ecf20Sopenharmony_ci FUNCTION(audio_txmclk), 8148c2ecf20Sopenharmony_ci FUNCTION(blsp0_i2c), 8158c2ecf20Sopenharmony_ci FUNCTION(blsp0_spi), 8168c2ecf20Sopenharmony_ci FUNCTION(blsp0_uart), 8178c2ecf20Sopenharmony_ci FUNCTION(blsp1_i2c), 8188c2ecf20Sopenharmony_ci FUNCTION(blsp1_spi), 8198c2ecf20Sopenharmony_ci FUNCTION(blsp1_uart), 8208c2ecf20Sopenharmony_ci FUNCTION(blsp2_i2c), 8218c2ecf20Sopenharmony_ci FUNCTION(blsp2_spi), 8228c2ecf20Sopenharmony_ci FUNCTION(blsp2_uart), 8238c2ecf20Sopenharmony_ci FUNCTION(blsp3_i2c), 8248c2ecf20Sopenharmony_ci FUNCTION(blsp3_spi), 8258c2ecf20Sopenharmony_ci FUNCTION(blsp3_spi0), 8268c2ecf20Sopenharmony_ci FUNCTION(blsp3_spi1), 8278c2ecf20Sopenharmony_ci FUNCTION(blsp3_spi2), 8288c2ecf20Sopenharmony_ci FUNCTION(blsp3_spi3), 8298c2ecf20Sopenharmony_ci FUNCTION(blsp3_uart), 8308c2ecf20Sopenharmony_ci FUNCTION(blsp4_i2c0), 8318c2ecf20Sopenharmony_ci FUNCTION(blsp4_i2c1), 8328c2ecf20Sopenharmony_ci FUNCTION(blsp4_spi0), 8338c2ecf20Sopenharmony_ci FUNCTION(blsp4_spi1), 8348c2ecf20Sopenharmony_ci FUNCTION(blsp4_uart0), 8358c2ecf20Sopenharmony_ci FUNCTION(blsp4_uart1), 8368c2ecf20Sopenharmony_ci FUNCTION(blsp5_i2c), 8378c2ecf20Sopenharmony_ci FUNCTION(blsp5_spi), 8388c2ecf20Sopenharmony_ci FUNCTION(blsp5_uart), 8398c2ecf20Sopenharmony_ci FUNCTION(burn0), 8408c2ecf20Sopenharmony_ci FUNCTION(burn1), 8418c2ecf20Sopenharmony_ci FUNCTION(cri_trng), 8428c2ecf20Sopenharmony_ci FUNCTION(cri_trng0), 8438c2ecf20Sopenharmony_ci FUNCTION(cri_trng1), 8448c2ecf20Sopenharmony_ci FUNCTION(cxc0), 8458c2ecf20Sopenharmony_ci FUNCTION(cxc1), 8468c2ecf20Sopenharmony_ci FUNCTION(dbg_out), 8478c2ecf20Sopenharmony_ci FUNCTION(gcc_plltest), 8488c2ecf20Sopenharmony_ci FUNCTION(gcc_tlmm), 8498c2ecf20Sopenharmony_ci FUNCTION(gpio), 8508c2ecf20Sopenharmony_ci FUNCTION(ldo_en), 8518c2ecf20Sopenharmony_ci FUNCTION(ldo_update), 8528c2ecf20Sopenharmony_ci FUNCTION(led0), 8538c2ecf20Sopenharmony_ci FUNCTION(led1), 8548c2ecf20Sopenharmony_ci FUNCTION(led2), 8558c2ecf20Sopenharmony_ci FUNCTION(mac0_sa0), 8568c2ecf20Sopenharmony_ci FUNCTION(mac0_sa1), 8578c2ecf20Sopenharmony_ci FUNCTION(mac1_sa0), 8588c2ecf20Sopenharmony_ci FUNCTION(mac1_sa1), 8598c2ecf20Sopenharmony_ci FUNCTION(mac1_sa2), 8608c2ecf20Sopenharmony_ci FUNCTION(mac1_sa3), 8618c2ecf20Sopenharmony_ci FUNCTION(mac2_sa0), 8628c2ecf20Sopenharmony_ci FUNCTION(mac2_sa1), 8638c2ecf20Sopenharmony_ci FUNCTION(mdc), 8648c2ecf20Sopenharmony_ci FUNCTION(mdio), 8658c2ecf20Sopenharmony_ci FUNCTION(pcie0_clk), 8668c2ecf20Sopenharmony_ci FUNCTION(pcie0_rst), 8678c2ecf20Sopenharmony_ci FUNCTION(pcie0_wake), 8688c2ecf20Sopenharmony_ci FUNCTION(pcie1_clk), 8698c2ecf20Sopenharmony_ci FUNCTION(pcie1_rst), 8708c2ecf20Sopenharmony_ci FUNCTION(pcie1_wake), 8718c2ecf20Sopenharmony_ci FUNCTION(pcm_drx), 8728c2ecf20Sopenharmony_ci FUNCTION(pcm_dtx), 8738c2ecf20Sopenharmony_ci FUNCTION(pcm_fsync), 8748c2ecf20Sopenharmony_ci FUNCTION(pcm_pclk), 8758c2ecf20Sopenharmony_ci FUNCTION(pcm_zsi0), 8768c2ecf20Sopenharmony_ci FUNCTION(pcm_zsi1), 8778c2ecf20Sopenharmony_ci FUNCTION(prng_rosc), 8788c2ecf20Sopenharmony_ci FUNCTION(pta1_0), 8798c2ecf20Sopenharmony_ci FUNCTION(pta1_1), 8808c2ecf20Sopenharmony_ci FUNCTION(pta1_2), 8818c2ecf20Sopenharmony_ci FUNCTION(pta2_0), 8828c2ecf20Sopenharmony_ci FUNCTION(pta2_1), 8838c2ecf20Sopenharmony_ci FUNCTION(pta2_2), 8848c2ecf20Sopenharmony_ci FUNCTION(pwm0), 8858c2ecf20Sopenharmony_ci FUNCTION(pwm1), 8868c2ecf20Sopenharmony_ci FUNCTION(pwm2), 8878c2ecf20Sopenharmony_ci FUNCTION(pwm3), 8888c2ecf20Sopenharmony_ci FUNCTION(qdss_cti_trig_in_a0), 8898c2ecf20Sopenharmony_ci FUNCTION(qdss_cti_trig_in_a1), 8908c2ecf20Sopenharmony_ci FUNCTION(qdss_cti_trig_in_b0), 8918c2ecf20Sopenharmony_ci FUNCTION(qdss_cti_trig_in_b1), 8928c2ecf20Sopenharmony_ci FUNCTION(qdss_cti_trig_out_a0), 8938c2ecf20Sopenharmony_ci FUNCTION(qdss_cti_trig_out_a1), 8948c2ecf20Sopenharmony_ci FUNCTION(qdss_cti_trig_out_b0), 8958c2ecf20Sopenharmony_ci FUNCTION(qdss_cti_trig_out_b1), 8968c2ecf20Sopenharmony_ci FUNCTION(qdss_traceclk_a), 8978c2ecf20Sopenharmony_ci FUNCTION(qdss_traceclk_b), 8988c2ecf20Sopenharmony_ci FUNCTION(qdss_tracectl_a), 8998c2ecf20Sopenharmony_ci FUNCTION(qdss_tracectl_b), 9008c2ecf20Sopenharmony_ci FUNCTION(qdss_tracedata_a), 9018c2ecf20Sopenharmony_ci FUNCTION(qdss_tracedata_b), 9028c2ecf20Sopenharmony_ci FUNCTION(qpic), 9038c2ecf20Sopenharmony_ci FUNCTION(rx0), 9048c2ecf20Sopenharmony_ci FUNCTION(rx1), 9058c2ecf20Sopenharmony_ci FUNCTION(rx2), 9068c2ecf20Sopenharmony_ci FUNCTION(sd_card), 9078c2ecf20Sopenharmony_ci FUNCTION(sd_write), 9088c2ecf20Sopenharmony_ci FUNCTION(tsens_max), 9098c2ecf20Sopenharmony_ci FUNCTION(wci2a), 9108c2ecf20Sopenharmony_ci FUNCTION(wci2b), 9118c2ecf20Sopenharmony_ci FUNCTION(wci2c), 9128c2ecf20Sopenharmony_ci FUNCTION(wci2d), 9138c2ecf20Sopenharmony_ci}; 9148c2ecf20Sopenharmony_ci 9158c2ecf20Sopenharmony_cistatic const struct msm_pingroup ipq8074_groups[] = { 9168c2ecf20Sopenharmony_ci PINGROUP(0, qpic, blsp5_uart, blsp5_i2c, blsp5_spi, wci2a, 9178c2ecf20Sopenharmony_ci blsp3_spi3, NA, burn0, NA), 9188c2ecf20Sopenharmony_ci PINGROUP(1, qpic, pcm_zsi0, mac1_sa2, blsp3_spi0, NA, burn1, NA, NA, 9198c2ecf20Sopenharmony_ci NA), 9208c2ecf20Sopenharmony_ci PINGROUP(2, qpic, blsp5_uart, blsp5_i2c, blsp5_spi, wci2a, 9218c2ecf20Sopenharmony_ci blsp3_spi3, NA, NA, NA), 9228c2ecf20Sopenharmony_ci PINGROUP(3, qpic, mac0_sa1, blsp3_spi0, qdss_cti_trig_out_b0, NA, NA, 9238c2ecf20Sopenharmony_ci NA, NA, NA), 9248c2ecf20Sopenharmony_ci PINGROUP(4, qpic, mac0_sa1, blsp3_spi0, qdss_cti_trig_in_b0, NA, NA, 9258c2ecf20Sopenharmony_ci NA, NA, NA), 9268c2ecf20Sopenharmony_ci PINGROUP(5, qpic, blsp4_uart0, blsp4_i2c0, blsp4_spi0, mac2_sa1, 9278c2ecf20Sopenharmony_ci qdss_cti_trig_out_b1, NA, NA, NA), 9288c2ecf20Sopenharmony_ci PINGROUP(6, qpic, blsp4_uart0, blsp4_i2c0, blsp4_spi0, mac2_sa1, 9298c2ecf20Sopenharmony_ci qdss_cti_trig_in_b1, NA, NA, NA), 9308c2ecf20Sopenharmony_ci PINGROUP(7, qpic, blsp4_uart0, blsp4_spi0, NA, NA, NA, NA, NA, NA), 9318c2ecf20Sopenharmony_ci PINGROUP(8, qpic, blsp4_uart0, blsp4_spi0, NA, NA, NA, NA, NA, NA), 9328c2ecf20Sopenharmony_ci PINGROUP(9, qpic, blsp5_uart, blsp5_spi, cxc0, mac1_sa3, blsp3_spi3, 9338c2ecf20Sopenharmony_ci qdss_cti_trig_in_a1, NA, NA), 9348c2ecf20Sopenharmony_ci PINGROUP(10, qpic, qdss_cti_trig_out_a1, NA, NA, NA, NA, NA, NA, 9358c2ecf20Sopenharmony_ci NA), 9368c2ecf20Sopenharmony_ci PINGROUP(11, qpic, wci2c, mac1_sa2, qdss_cti_trig_in_a0, NA, NA, NA, 9378c2ecf20Sopenharmony_ci NA, NA), 9388c2ecf20Sopenharmony_ci PINGROUP(12, qpic, qdss_cti_trig_out_a0, NA, NA, NA, NA, NA, NA, 9398c2ecf20Sopenharmony_ci NA), 9408c2ecf20Sopenharmony_ci PINGROUP(13, qpic, NA, NA, NA, NA, NA, NA, NA, NA), 9418c2ecf20Sopenharmony_ci PINGROUP(14, qpic, qdss_traceclk_b, NA, NA, NA, NA, NA, NA, NA), 9428c2ecf20Sopenharmony_ci PINGROUP(15, qpic, qdss_tracectl_b, NA, NA, NA, NA, NA, NA, NA), 9438c2ecf20Sopenharmony_ci PINGROUP(16, qpic, blsp5_uart, pcm_zsi1, blsp5_spi, cxc0, mac1_sa3, 9448c2ecf20Sopenharmony_ci qdss_tracedata_b, NA, NA), 9458c2ecf20Sopenharmony_ci PINGROUP(17, qpic, wci2c, qdss_tracedata_b, NA, NA, NA, NA, NA, NA), 9468c2ecf20Sopenharmony_ci PINGROUP(18, led0, pwm0, qdss_tracedata_b, NA, NA, NA, NA, NA, NA), 9478c2ecf20Sopenharmony_ci PINGROUP(19, led1, pwm1, NA, qdss_tracedata_b, NA, NA, NA, NA, NA), 9488c2ecf20Sopenharmony_ci PINGROUP(20, led2, pwm2, NA, qdss_tracedata_b, NA, NA, NA, NA, NA), 9498c2ecf20Sopenharmony_ci PINGROUP(21, pwm0, blsp4_uart1, blsp4_i2c1, blsp4_spi1, wci2d, mac1_sa1, 9508c2ecf20Sopenharmony_ci blsp3_spi2, NA, qdss_tracedata_b), 9518c2ecf20Sopenharmony_ci PINGROUP(22, pwm1, blsp4_uart1, blsp4_i2c1, blsp4_spi1, wci2d, mac1_sa1, 9528c2ecf20Sopenharmony_ci blsp3_spi2, NA, qdss_tracedata_b), 9538c2ecf20Sopenharmony_ci PINGROUP(23, pwm2, blsp4_uart1, blsp4_spi1, blsp3_spi2, NA, 9548c2ecf20Sopenharmony_ci qdss_tracedata_b, NA, NA, NA), 9558c2ecf20Sopenharmony_ci PINGROUP(24, pwm3, blsp4_uart1, blsp4_spi1, NA, qdss_tracedata_b, NA, 9568c2ecf20Sopenharmony_ci NA, NA, NA), 9578c2ecf20Sopenharmony_ci PINGROUP(25, audio_txmclk, pwm0, NA, qdss_tracedata_b, NA, NA, NA, NA, 9588c2ecf20Sopenharmony_ci NA), 9598c2ecf20Sopenharmony_ci PINGROUP(26, audio_txbclk, pwm1, NA, qdss_tracedata_b, NA, NA, NA, NA, 9608c2ecf20Sopenharmony_ci NA), 9618c2ecf20Sopenharmony_ci PINGROUP(27, audio_txfsync, pwm2, NA, qdss_tracedata_b, NA, NA, NA, 9628c2ecf20Sopenharmony_ci NA, NA), 9638c2ecf20Sopenharmony_ci PINGROUP(28, audio_txd, pwm3, NA, qdss_tracedata_b, NA, NA, NA, NA, 9648c2ecf20Sopenharmony_ci NA), 9658c2ecf20Sopenharmony_ci PINGROUP(29, audio_rxmclk, pwm0, atest_char0, NA, qdss_tracedata_b, 9668c2ecf20Sopenharmony_ci NA, NA, NA, NA), 9678c2ecf20Sopenharmony_ci PINGROUP(30, audio_rxbclk, pwm1, atest_char1, NA, qdss_tracedata_b, 9688c2ecf20Sopenharmony_ci NA, NA, NA, NA), 9698c2ecf20Sopenharmony_ci PINGROUP(31, audio_rxfsync, pwm2, atest_char2, NA, qdss_tracedata_b, 9708c2ecf20Sopenharmony_ci NA, NA, NA, NA), 9718c2ecf20Sopenharmony_ci PINGROUP(32, audio_rxd, pwm3, atest_char3, NA, NA, NA, NA, NA, NA), 9728c2ecf20Sopenharmony_ci PINGROUP(33, pcm_drx, mac1_sa0, mac0_sa0, NA, NA, NA, NA, NA, NA), 9738c2ecf20Sopenharmony_ci PINGROUP(34, pcm_dtx, mac1_sa0, mac0_sa0, NA, NA, NA, NA, NA, NA), 9748c2ecf20Sopenharmony_ci PINGROUP(35, pcm_fsync, mac2_sa0, qdss_traceclk_a, NA, NA, NA, NA, NA, NA), 9758c2ecf20Sopenharmony_ci PINGROUP(36, pcm_pclk, mac2_sa0, NA, qdss_tracectl_a, NA, NA, NA, NA, NA), 9768c2ecf20Sopenharmony_ci PINGROUP(37, atest_char, NA, qdss_tracedata_a, NA, NA, NA, NA, NA, NA), 9778c2ecf20Sopenharmony_ci PINGROUP(38, blsp0_uart, blsp0_i2c, blsp0_spi, NA, qdss_tracedata_a, 9788c2ecf20Sopenharmony_ci NA, NA, NA, NA), 9798c2ecf20Sopenharmony_ci PINGROUP(39, blsp0_uart, blsp0_i2c, blsp0_spi, NA, qdss_tracedata_a, 9808c2ecf20Sopenharmony_ci NA, NA, NA, NA), 9818c2ecf20Sopenharmony_ci PINGROUP(40, blsp0_uart, blsp0_spi, NA, qdss_tracedata_a, NA, NA, NA, 9828c2ecf20Sopenharmony_ci NA, NA), 9838c2ecf20Sopenharmony_ci PINGROUP(41, blsp0_uart, blsp0_spi, NA, qdss_tracedata_a, NA, NA, NA, 9848c2ecf20Sopenharmony_ci NA, NA), 9858c2ecf20Sopenharmony_ci PINGROUP(42, blsp1_uart, blsp1_i2c, blsp1_spi, NA, qdss_tracedata_a, 9868c2ecf20Sopenharmony_ci NA, NA, NA, NA), 9878c2ecf20Sopenharmony_ci PINGROUP(43, blsp1_uart, blsp1_i2c, blsp1_spi, NA, qdss_tracedata_a, 9888c2ecf20Sopenharmony_ci NA, NA, NA, NA), 9898c2ecf20Sopenharmony_ci PINGROUP(44, blsp1_uart, blsp1_spi, NA, qdss_tracedata_a, NA, NA, NA, 9908c2ecf20Sopenharmony_ci NA, NA), 9918c2ecf20Sopenharmony_ci PINGROUP(45, blsp1_uart, blsp1_spi, qdss_tracedata_a, NA, NA, NA, NA, 9928c2ecf20Sopenharmony_ci NA, NA), 9938c2ecf20Sopenharmony_ci PINGROUP(46, blsp2_uart, blsp2_i2c, blsp2_spi, qdss_tracedata_a, NA, 9948c2ecf20Sopenharmony_ci NA, NA, NA, NA), 9958c2ecf20Sopenharmony_ci PINGROUP(47, blsp2_uart, blsp2_i2c, blsp2_spi, NA, qdss_tracedata_a, 9968c2ecf20Sopenharmony_ci NA, NA, NA, NA), 9978c2ecf20Sopenharmony_ci PINGROUP(48, blsp2_uart, blsp2_spi, NA, qdss_tracedata_a, NA, NA, NA, 9988c2ecf20Sopenharmony_ci NA, NA), 9998c2ecf20Sopenharmony_ci PINGROUP(49, blsp2_uart, blsp2_spi, NA, qdss_tracedata_a, NA, NA, NA, 10008c2ecf20Sopenharmony_ci NA, NA), 10018c2ecf20Sopenharmony_ci PINGROUP(50, blsp3_uart, blsp3_i2c, blsp3_spi, NA, qdss_tracedata_a, 10028c2ecf20Sopenharmony_ci NA, NA, NA, NA), 10038c2ecf20Sopenharmony_ci PINGROUP(51, blsp3_uart, blsp3_i2c, blsp3_spi, NA, qdss_tracedata_a, 10048c2ecf20Sopenharmony_ci NA, NA, NA, NA), 10058c2ecf20Sopenharmony_ci PINGROUP(52, blsp3_uart, blsp3_spi, NA, qdss_tracedata_a, NA, NA, NA, 10068c2ecf20Sopenharmony_ci NA, NA), 10078c2ecf20Sopenharmony_ci PINGROUP(53, blsp3_uart, blsp3_spi, NA, NA, NA, NA, NA, NA, NA), 10088c2ecf20Sopenharmony_ci PINGROUP(54, pta2_0, wci2b, cxc1, blsp3_spi1, NA, NA, NA, NA, NA), 10098c2ecf20Sopenharmony_ci PINGROUP(55, pta2_1, blsp3_spi1, NA, NA, NA, NA, NA, NA, NA), 10108c2ecf20Sopenharmony_ci PINGROUP(56, pta2_2, wci2b, cxc1, blsp3_spi1, NA, NA, NA, NA, NA), 10118c2ecf20Sopenharmony_ci PINGROUP(57, pcie0_clk, NA, dbg_out, cri_trng0, NA, NA, NA, NA, NA), 10128c2ecf20Sopenharmony_ci PINGROUP(58, pcie0_rst, NA, cri_trng1, NA, NA, NA, NA, NA, NA), 10138c2ecf20Sopenharmony_ci PINGROUP(59, pcie0_wake, NA, cri_trng, NA, NA, NA, NA, NA, NA), 10148c2ecf20Sopenharmony_ci PINGROUP(60, pcie1_clk, rx2, ldo_update, NA, NA, NA, NA, NA, NA), 10158c2ecf20Sopenharmony_ci PINGROUP(61, pcie1_rst, ldo_en, NA, NA, NA, NA, NA, NA, NA), 10168c2ecf20Sopenharmony_ci PINGROUP(62, pcie1_wake, gcc_plltest, NA, NA, NA, NA, NA, NA, NA), 10178c2ecf20Sopenharmony_ci PINGROUP(63, sd_card, pwm0, NA, gcc_plltest, NA, NA, NA, NA, NA), 10188c2ecf20Sopenharmony_ci PINGROUP(64, pta1_1, pwm1, NA, rx1, NA, NA, NA, NA, NA), 10198c2ecf20Sopenharmony_ci PINGROUP(65, pta1_2, NA, gcc_tlmm, NA, NA, NA, NA, NA, NA), 10208c2ecf20Sopenharmony_ci PINGROUP(66, pta1_0, pwm2, prng_rosc, NA, NA, NA, NA, NA, NA), 10218c2ecf20Sopenharmony_ci PINGROUP(67, sd_write, pwm3, rx0, tsens_max, NA, NA, NA, NA, NA), 10228c2ecf20Sopenharmony_ci PINGROUP(68, mdc, NA, NA, NA, NA, NA, NA, NA, NA), 10238c2ecf20Sopenharmony_ci PINGROUP(69, mdio, NA, NA, NA, NA, NA, NA, NA, NA), 10248c2ecf20Sopenharmony_ci}; 10258c2ecf20Sopenharmony_ci 10268c2ecf20Sopenharmony_cistatic const struct msm_pinctrl_soc_data ipq8074_pinctrl = { 10278c2ecf20Sopenharmony_ci .pins = ipq8074_pins, 10288c2ecf20Sopenharmony_ci .npins = ARRAY_SIZE(ipq8074_pins), 10298c2ecf20Sopenharmony_ci .functions = ipq8074_functions, 10308c2ecf20Sopenharmony_ci .nfunctions = ARRAY_SIZE(ipq8074_functions), 10318c2ecf20Sopenharmony_ci .groups = ipq8074_groups, 10328c2ecf20Sopenharmony_ci .ngroups = ARRAY_SIZE(ipq8074_groups), 10338c2ecf20Sopenharmony_ci .ngpios = 70, 10348c2ecf20Sopenharmony_ci}; 10358c2ecf20Sopenharmony_ci 10368c2ecf20Sopenharmony_cistatic int ipq8074_pinctrl_probe(struct platform_device *pdev) 10378c2ecf20Sopenharmony_ci{ 10388c2ecf20Sopenharmony_ci return msm_pinctrl_probe(pdev, &ipq8074_pinctrl); 10398c2ecf20Sopenharmony_ci} 10408c2ecf20Sopenharmony_ci 10418c2ecf20Sopenharmony_cistatic const struct of_device_id ipq8074_pinctrl_of_match[] = { 10428c2ecf20Sopenharmony_ci { .compatible = "qcom,ipq8074-pinctrl", }, 10438c2ecf20Sopenharmony_ci { }, 10448c2ecf20Sopenharmony_ci}; 10458c2ecf20Sopenharmony_ci 10468c2ecf20Sopenharmony_cistatic struct platform_driver ipq8074_pinctrl_driver = { 10478c2ecf20Sopenharmony_ci .driver = { 10488c2ecf20Sopenharmony_ci .name = "ipq8074-pinctrl", 10498c2ecf20Sopenharmony_ci .of_match_table = ipq8074_pinctrl_of_match, 10508c2ecf20Sopenharmony_ci }, 10518c2ecf20Sopenharmony_ci .probe = ipq8074_pinctrl_probe, 10528c2ecf20Sopenharmony_ci .remove = msm_pinctrl_remove, 10538c2ecf20Sopenharmony_ci}; 10548c2ecf20Sopenharmony_ci 10558c2ecf20Sopenharmony_cistatic int __init ipq8074_pinctrl_init(void) 10568c2ecf20Sopenharmony_ci{ 10578c2ecf20Sopenharmony_ci return platform_driver_register(&ipq8074_pinctrl_driver); 10588c2ecf20Sopenharmony_ci} 10598c2ecf20Sopenharmony_ciarch_initcall(ipq8074_pinctrl_init); 10608c2ecf20Sopenharmony_ci 10618c2ecf20Sopenharmony_cistatic void __exit ipq8074_pinctrl_exit(void) 10628c2ecf20Sopenharmony_ci{ 10638c2ecf20Sopenharmony_ci platform_driver_unregister(&ipq8074_pinctrl_driver); 10648c2ecf20Sopenharmony_ci} 10658c2ecf20Sopenharmony_cimodule_exit(ipq8074_pinctrl_exit); 10668c2ecf20Sopenharmony_ci 10678c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm ipq8074 pinctrl driver"); 10688c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL v2"); 10698c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(of, ipq8074_pinctrl_of_match); 1070