linux/drivers/pinctrl/qcom/pinctrl-sdm660.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018, Craig Tatlor.
 */

#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>

#include "pinctrl-msm.h"

static const char * const sdm660_tiles[] =;

enum {};

#define REG_SIZE

#define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9)

#define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv)

static const struct pinctrl_pin_desc sdm660_pins[] =;

#define DECLARE_MSM_GPIO_PINS(pin)
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();
DECLARE_MSM_GPIO_PINS();

static const unsigned int sdc1_clk_pins[] =;
static const unsigned int sdc1_cmd_pins[] =;
static const unsigned int sdc1_data_pins[] =;
static const unsigned int sdc1_rclk_pins[] =;
static const unsigned int sdc2_clk_pins[] =;
static const unsigned int sdc2_cmd_pins[] =;
static const unsigned int sdc2_data_pins[] =;

enum sdm660_functions {};

static const char * const gpio_groups[] =;

static const char * const adsp_ext_groups[] =;
static const char * const agera_pll_groups[] =;
static const char * const atest_char0_groups[] =;
static const char * const atest_char1_groups[] =;
static const char * const atest_char2_groups[] =;
static const char * const atest_char3_groups[] =;
static const char * const atest_char_groups[] =;
static const char * const atest_gpsadc0_groups[] =;
static const char * const atest_gpsadc1_groups[] =;
static const char * const atest_tsens2_groups[] =;
static const char * const atest_tsens_groups[] =;
static const char * const atest_usb10_groups[] =;
static const char * const atest_usb11_groups[] =;
static const char * const atest_usb12_groups[] =;
static const char * const atest_usb13_groups[] =;
static const char * const atest_usb1_groups[] =;
static const char * const atest_usb20_groups[] =;
static const char * const atest_usb21_groups[] =;
static const char * const atest_usb22_groups[] =;
static const char * const atest_usb23_groups[] =;
static const char * const atest_usb2_groups[] =;
static const char * const audio_ref_groups[] =;
static const char * const bimc_dte0_groups[] =;
static const char * const bimc_dte1_groups[] =;
static const char * const blsp_i2c1_groups[] =;
static const char * const blsp_i2c2_groups[] =;
static const char * const blsp_i2c3_groups[] =;
static const char * const blsp_i2c4_groups[] =;
static const char * const blsp_i2c5_groups[] =;
static const char * const blsp_i2c6_groups[] =;
static const char * const blsp_i2c7_groups[] =;
static const char * const blsp_i2c8_a_groups[] =;
static const char * const blsp_i2c8_b_groups[] =;
static const char * const blsp_spi1_groups[] =;
static const char * const blsp_spi2_groups[] =;
static const char * const blsp_spi3_cs1_groups[] =;
static const char * const blsp_spi3_cs2_groups[] =;
static const char * const blsp_spi3_groups[] =;
static const char * const blsp_spi4_groups[] =;
static const char * const blsp_spi5_groups[] =;
static const char * const blsp_spi6_groups[] =;
static const char * const blsp_spi7_groups[] =;
static const char * const blsp_spi8_a_groups[] =;
static const char * const blsp_spi8_b_groups[] =;
static const char * const blsp_spi8_cs1_groups[] =;
static const char * const blsp_spi8_cs2_groups[] =;
static const char * const blsp_uart1_groups[] =;
static const char * const blsp_uart2_groups[] =;
static const char * const blsp_uart5_groups[] =;
static const char * const blsp_uart6_a_groups[] =;
static const char * const blsp_uart6_b_groups[] =;
static const char * const blsp_uim1_groups[] =;
static const char * const blsp_uim2_groups[] =;
static const char * const blsp_uim5_groups[] =;
static const char * const blsp_uim6_groups[] =;
static const char * const cam_mclk_groups[] =;
static const char * const cci_async_groups[] =;
static const char * const cci_i2c_groups[] =;
static const char * const cri_trng0_groups[] =;
static const char * const cri_trng1_groups[] =;
static const char * const cri_trng_groups[] =;
static const char * const dbg_out_groups[] =;
static const char * const ddr_bist_groups[] =;
static const char * const gcc_gp1_groups[] =;
static const char * const gcc_gp2_groups[] =;
static const char * const gcc_gp3_groups[] =;
static const char * const gps_tx_a_groups[] =;
static const char * const gps_tx_b_groups[] =;
static const char * const gps_tx_c_groups[] =;
static const char * const isense_dbg_groups[] =;
static const char * const jitter_bist_groups[] =;
static const char * const ldo_en_groups[] =;
static const char * const ldo_update_groups[] =;
static const char * const m_voc_groups[] =;
static const char * const mdp_vsync_groups[] =;
static const char * const mdss_vsync0_groups[] =;
static const char * const mdss_vsync1_groups[] =;
static const char * const mdss_vsync2_groups[] =;
static const char * const mdss_vsync3_groups[] =;
static const char * const mss_lte_groups[] =;
static const char * const nav_pps_a_groups[] =;
static const char * const nav_pps_b_groups[] =;
static const char * const nav_pps_c_groups[] =;
static const char * const pa_indicator_groups[] =;
static const char * const phase_flag0_groups[] =;
static const char * const phase_flag1_groups[] =;
static const char * const phase_flag2_groups[] =;
static const char * const phase_flag3_groups[] =;
static const char * const phase_flag4_groups[] =;
static const char * const phase_flag5_groups[] =;
static const char * const phase_flag6_groups[] =;
static const char * const phase_flag7_groups[] =;
static const char * const phase_flag8_groups[] =;
static const char * const phase_flag9_groups[] =;
static const char * const phase_flag10_groups[] =;
static const char * const phase_flag11_groups[] =;
static const char * const phase_flag12_groups[] =;
static const char * const phase_flag13_groups[] =;
static const char * const phase_flag14_groups[] =;
static const char * const phase_flag15_groups[] =;
static const char * const phase_flag16_groups[] =;
static const char * const phase_flag17_groups[] =;
static const char * const phase_flag18_groups[] =;
static const char * const phase_flag19_groups[] =;
static const char * const phase_flag20_groups[] =;
static const char * const phase_flag21_groups[] =;
static const char * const phase_flag22_groups[] =;
static const char * const phase_flag23_groups[] =;
static const char * const phase_flag24_groups[] =;
static const char * const phase_flag25_groups[] =;
static const char * const phase_flag26_groups[] =;
static const char * const phase_flag27_groups[] =;
static const char * const phase_flag28_groups[] =;
static const char * const phase_flag29_groups[] =;
static const char * const phase_flag30_groups[] =;
static const char * const phase_flag31_groups[] =;
static const char * const pll_bypassnl_groups[] =;
static const char * const pll_reset_groups[] =;
static const char * const pri_mi2s_groups[] =;
static const char * const pri_mi2s_ws_groups[] =;
static const char * const prng_rosc_groups[] =;
static const char * const pwr_crypto_groups[] =;
static const char * const pwr_modem_groups[] =;
static const char * const pwr_nav_groups[] =;
static const char * const qdss_cti0_a_groups[] =;
static const char * const qdss_cti0_b_groups[] =;
static const char * const qdss_cti1_a_groups[] =;
static const char * const qdss_cti1_b_groups[] =;
static const char * const qdss_gpio0_groups[] =;
static const char * const qdss_gpio10_groups[] =;
static const char * const qdss_gpio11_groups[] =;
static const char * const qdss_gpio12_groups[] =;
static const char * const qdss_gpio13_groups[] =;
static const char * const qdss_gpio14_groups[] =;
static const char * const qdss_gpio15_groups[] =;
static const char * const qdss_gpio1_groups[] =;
static const char * const qdss_gpio2_groups[] =;
static const char * const qdss_gpio3_groups[] =;
static const char * const qdss_gpio4_groups[] =;
static const char * const qdss_gpio5_groups[] =;
static const char * const qdss_gpio6_groups[] =;
static const char * const qdss_gpio7_groups[] =;
static const char * const qdss_gpio8_groups[] =;
static const char * const qdss_gpio9_groups[] =;
static const char * const qdss_gpio_groups[] =;
static const char * const qlink_enable_groups[] =;
static const char * const qlink_request_groups[] =;
static const char * const qspi_clk_groups[] =;
static const char * const qspi_cs_groups[] =;
static const char * const qspi_data0_groups[] =;
static const char * const qspi_data1_groups[] =;
static const char * const qspi_data2_groups[] =;
static const char * const qspi_data3_groups[] =;
static const char * const qspi_resetn_groups[] =;
static const char * const sec_mi2s_groups[] =;
static const char * const sndwire_clk_groups[] =;
static const char * const sndwire_data_groups[] =;
static const char * const sp_cmu_groups[] =;
static const char * const ssc_irq_groups[] =;
static const char * const tgu_ch0_groups[] =;
static const char * const tgu_ch1_groups[] =;
static const char * const tsense_pwm1_groups[] =;
static const char * const tsense_pwm2_groups[] =;
static const char * const uim1_clk_groups[] =;
static const char * const uim1_data_groups[] =;
static const char * const uim1_present_groups[] =;
static const char * const uim1_reset_groups[] =;
static const char * const uim2_clk_groups[] =;
static const char * const uim2_data_groups[] =;
static const char * const uim2_present_groups[] =;
static const char * const uim2_reset_groups[] =;
static const char * const uim_batt_groups[] =;
static const char * const vfr_1_groups[] =;
static const char * const vsense_clkout_groups[] =;
static const char * const vsense_data0_groups[] =;
static const char * const vsense_data1_groups[] =;
static const char * const vsense_mode_groups[] =;
static const char * const wlan1_adc0_groups[] =;
static const char * const wlan1_adc1_groups[] =;
static const char * const wlan2_adc0_groups[] =;
static const char * const wlan2_adc1_groups[] =;

static const struct pinfunction sdm660_functions[] =;

static const struct msm_pingroup sdm660_groups[] =;

static const struct msm_gpio_wakeirq_map sdm660_mpm_map[] =;

static const struct msm_pinctrl_soc_data sdm660_pinctrl =;

static int sdm660_pinctrl_probe(struct platform_device *pdev)
{}

static const struct of_device_id sdm660_pinctrl_of_match[] =;

static struct platform_driver sdm660_pinctrl_driver =;

static int __init sdm660_pinctrl_init(void)
{}
arch_initcall(sdm660_pinctrl_init);

static void __exit sdm660_pinctrl_exit(void)
{}
module_exit(sdm660_pinctrl_exit);

MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_DEVICE_TABLE(of, sdm660_pinctrl_of_match);