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

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

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

#include "pinctrl-msm.h"

static const char * const qcs404_tiles[] =;

enum {};

#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 qcs404_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();
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_rclk_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 sdc2_clk_pins[] =;
static const unsigned int sdc2_cmd_pins[] =;
static const unsigned int sdc2_data_pins[] =;

enum qcs404_functions {};

static const char * const gpio_groups[] =;

static const char * const hdmi_tx_groups[] =;

static const char * const hdmi_ddc_groups[] =;

static const char * const blsp_uart_tx_a2_groups[] =;

static const char * const blsp_spi2_groups[] =;

static const char * const m_voc_groups[] =;

static const char * const qdss_cti_trig_in_a0_groups[] =;

static const char * const blsp_uart_rx_a2_groups[] =;

static const char * const qdss_tracectl_a_groups[] =;

static const char * const blsp_uart2_groups[] =;

static const char * const aud_cdc_groups[] =;

static const char * const blsp_i2c_sda_a2_groups[] =;

static const char * const qdss_tracedata_a_groups[] =;

static const char * const blsp_i2c_scl_a2_groups[] =;

static const char * const qdss_tracectl_b_groups[] =;

static const char * const qdss_cti_trig_in_b0_groups[] =;

static const char * const blsp_uart1_groups[] =;

static const char * const blsp_spi_mosi_a1_groups[] =;

static const char * const blsp_spi_miso_a1_groups[] =;

static const char * const qdss_tracedata_b_groups[] =;

static const char * const blsp_i2c1_groups[] =;

static const char * const blsp_spi_cs_n_a1_groups[] =;

static const char * const gcc_plltest_groups[] =;

static const char * const blsp_spi_clk_a1_groups[] =;

static const char * const rgb_data0_groups[] =;

static const char * const blsp_uart5_groups[] =;

static const char * const blsp_spi5_groups[] =;

static const char * const adsp_ext_groups[] =;

static const char * const rgb_data1_groups[] =;

static const char * const prng_rosc_groups[] =;

static const char * const rgb_data2_groups[] =;

static const char * const blsp_i2c5_groups[] =;

static const char * const gcc_gp1_clk_b_groups[] =;

static const char * const rgb_data3_groups[] =;

static const char * const gcc_gp2_clk_b_groups[] =;

static const char * const blsp_spi0_groups[] =;

static const char * const blsp_uart0_groups[] =;

static const char * const gcc_gp3_clk_b_groups[] =;

static const char * const blsp_i2c0_groups[] =;

static const char * const qdss_traceclk_b_groups[] =;

static const char * const pcie_clk_groups[] =;

static const char * const nfc_irq_groups[] =;

static const char * const blsp_spi4_groups[] =;

static const char * const nfc_dwl_groups[] =;

static const char * const audio_ts_groups[] =;

static const char * const rgb_data4_groups[] =;

static const char * const spi_lcd_groups[] =;

static const char * const blsp_uart_tx_b2_groups[] =;

static const char * const gcc_gp3_clk_a_groups[] =;

static const char * const rgb_data5_groups[] =;

static const char * const blsp_uart_rx_b2_groups[] =;

static const char * const blsp_i2c_sda_b2_groups[] =;

static const char * const blsp_i2c_scl_b2_groups[] =;

static const char * const pwm_led11_groups[] =;

static const char * const i2s_3_data0_a_groups[] =;

static const char * const ebi2_lcd_groups[] =;

static const char * const i2s_3_data1_a_groups[] =;

static const char * const i2s_3_data2_a_groups[] =;

static const char * const atest_char_groups[] =;

static const char * const pwm_led3_groups[] =;

static const char * const i2s_3_data3_a_groups[] =;

static const char * const pwm_led4_groups[] =;

static const char * const i2s_4_groups[] =;

static const char * const ebi2_a_groups[] =;

static const char * const dsd_clk_b_groups[] =;

static const char * const pwm_led5_groups[] =;

static const char * const pwm_led6_groups[] =;

static const char * const pwm_led7_groups[] =;

static const char * const pwm_led8_groups[] =;

static const char * const pwm_led24_groups[] =;

static const char * const spkr_dac0_groups[] =;

static const char * const blsp_i2c4_groups[] =;

static const char * const pwm_led9_groups[] =;

static const char * const pwm_led10_groups[] =;

static const char * const spdifrx_opt_groups[] =;

static const char * const pwm_led12_groups[] =;

static const char * const pwm_led13_groups[] =;

static const char * const pwm_led14_groups[] =;

static const char * const wlan1_adc1_groups[] =;

static const char * const rgb_data_b0_groups[] =;

static const char * const pwm_led15_groups[] =;

static const char * const blsp_spi_mosi_b1_groups[] =;

static const char * const wlan1_adc0_groups[] =;

static const char * const rgb_data_b1_groups[] =;

static const char * const pwm_led16_groups[] =;

static const char * const blsp_spi_miso_b1_groups[] =;

static const char * const qdss_cti_trig_out_b0_groups[] =;

static const char * const wlan2_adc1_groups[] =;

static const char * const rgb_data_b2_groups[] =;

static const char * const pwm_led17_groups[] =;

static const char * const blsp_spi_cs_n_b1_groups[] =;

static const char * const wlan2_adc0_groups[] =;

static const char * const rgb_data_b3_groups[] =;

static const char * const pwm_led18_groups[] =;

static const char * const blsp_spi_clk_b1_groups[] =;

static const char * const rgb_data_b4_groups[] =;

static const char * const pwm_led19_groups[] =;

static const char * const ext_mclk1_b_groups[] =;

static const char * const qdss_traceclk_a_groups[] =;

static const char * const rgb_data_b5_groups[] =;

static const char * const pwm_led20_groups[] =;

static const char * const atest_char3_groups[] =;

static const char * const i2s_3_sck_b_groups[] =;

static const char * const ldo_update_groups[] =;

static const char * const bimc_dte0_groups[] =;

static const char * const rgb_hsync_groups[] =;

static const char * const pwm_led21_groups[] =;

static const char * const i2s_3_ws_b_groups[] =;

static const char * const dbg_out_groups[] =;

static const char * const rgb_vsync_groups[] =;

static const char * const i2s_3_data0_b_groups[] =;

static const char * const ldo_en_groups[] =;

static const char * const hdmi_dtest_groups[] =;

static const char * const rgb_de_groups[] =;

static const char * const i2s_3_data1_b_groups[] =;

static const char * const hdmi_lbk9_groups[] =;

static const char * const rgb_clk_groups[] =;

static const char * const atest_char1_groups[] =;

static const char * const i2s_3_data2_b_groups[] =;

static const char * const ebi_cdc_groups[] =;

static const char * const hdmi_lbk8_groups[] =;

static const char * const rgb_mdp_groups[] =;

static const char * const atest_char0_groups[] =;

static const char * const i2s_3_data3_b_groups[] =;

static const char * const hdmi_lbk7_groups[] =;

static const char * const rgb_data_b6_groups[] =;

static const char * const rgb_data_b7_groups[] =;

static const char * const hdmi_lbk6_groups[] =;

static const char * const rgmii_int_groups[] =;

static const char * const cri_trng1_groups[] =;

static const char * const rgmii_wol_groups[] =;

static const char * const cri_trng0_groups[] =;

static const char * const gcc_tlmm_groups[] =;

static const char * const rgmii_ck_groups[] =;

static const char * const rgmii_tx_groups[] =;

static const char * const hdmi_lbk5_groups[] =;

static const char * const hdmi_pixel_groups[] =;

static const char * const hdmi_rcv_groups[] =;

static const char * const hdmi_lbk4_groups[] =;

static const char * const rgmii_ctl_groups[] =;

static const char * const ext_lpass_groups[] =;

static const char * const rgmii_rx_groups[] =;

static const char * const cri_trng_groups[] =;

static const char * const hdmi_lbk3_groups[] =;

static const char * const hdmi_lbk2_groups[] =;

static const char * const qdss_cti_trig_out_b1_groups[] =;

static const char * const rgmii_mdio_groups[] =;

static const char * const hdmi_lbk1_groups[] =;

static const char * const rgmii_mdc_groups[] =;

static const char * const hdmi_lbk0_groups[] =;

static const char * const ir_in_groups[] =;

static const char * const wsa_en_groups[] =;

static const char * const rgb_data6_groups[] =;

static const char * const rgb_data7_groups[] =;

static const char * const atest_char2_groups[] =;

static const char * const ebi_ch0_groups[] =;

static const char * const blsp_uart3_groups[] =;

static const char * const blsp_spi3_groups[] =;

static const char * const sd_write_groups[] =;

static const char * const blsp_i2c3_groups[] =;

static const char * const gcc_gp1_clk_a_groups[] =;

static const char * const qdss_cti_trig_in_b1_groups[] =;

static const char * const gcc_gp2_clk_a_groups[] =;

static const char * const ext_mclk0_groups[] =;

static const char * const mclk_in1_groups[] =;

static const char * const i2s_1_groups[] =;

static const char * const dsd_clk_a_groups[] =;

static const char * const qdss_cti_trig_in_a1_groups[] =;

static const char * const rgmi_dll1_groups[] =;

static const char * const pwm_led22_groups[] =;

static const char * const pwm_led23_groups[] =;

static const char * const qdss_cti_trig_out_a0_groups[] =;

static const char * const rgmi_dll2_groups[] =;

static const char * const pwm_led1_groups[] =;

static const char * const qdss_cti_trig_out_a1_groups[] =;

static const char * const pwm_led2_groups[] =;

static const char * const i2s_2_groups[] =;

static const char * const pll_bist_groups[] =;

static const char * const ext_mclk1_a_groups[] =;

static const char * const mclk_in2_groups[] =;

static const char * const bimc_dte1_groups[] =;

static const char * const i2s_3_sck_a_groups[] =;

static const char * const i2s_3_ws_a_groups[] =;

static const struct pinfunction qcs404_functions[] =;

/* Every pin is maintained as a single group, and missing or non-existing pin
 * would be maintained as dummy group to synchronize pin group index with
 * pin descriptor registered with pinctrl core.
 * Clients would not be able to request these dummy pin groups.
 */
static const struct msm_pingroup qcs404_groups[] =;

static const struct msm_pinctrl_soc_data qcs404_pinctrl =;

static int qcs404_pinctrl_probe(struct platform_device *pdev)
{}

static const struct of_device_id qcs404_pinctrl_of_match[] =;

static struct platform_driver qcs404_pinctrl_driver =;

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

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

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