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

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
 * Copyright (c) 2022, Linaro Ltd.
 */

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

#include "pinctrl-msm.h"

#define REG_SIZE
#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7)

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

#define UFS_RESET(pg_name, offset)
static const struct pinctrl_pin_desc sc8280xp_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();
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 ufs_reset_pins[] =;
static const unsigned int ufs1_reset_pins[] =;
static const unsigned int sdc2_clk_pins[] =;
static const unsigned int sdc2_cmd_pins[] =;
static const unsigned int sdc2_data_pins[] =;

enum sc8280xp_functions {};

static const char * const gpio_groups[] =;

static const char * const atest_char_groups[] =;

static const char * const atest_usb_groups[] =;

static const char * const audio_ref_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 cci_timer0_groups[] =;

static const char * const cci_timer1_groups[] =;

static const char * const cci_timer2_groups[] =;

static const char * const cci_timer3_groups[] =;

static const char * const cci_timer4_groups[] =;

static const char * const cci_timer5_groups[] =;

static const char * const cci_timer6_groups[] =;

static const char * const cci_timer7_groups[] =;

static const char * const cci_timer8_groups[] =;

static const char * const cci_timer9_groups[] =;

static const char * const cmu_rng_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 ddr_pxi0_groups[] =;

static const char * const ddr_pxi1_groups[] =;

static const char * const ddr_pxi2_groups[] =;

static const char * const ddr_pxi3_groups[] =;

static const char * const ddr_pxi4_groups[] =;

static const char * const ddr_pxi5_groups[] =;

static const char * const ddr_pxi6_groups[] =;

static const char * const ddr_pxi7_groups[] =;

static const char * const dp2_hot_groups[] =;

static const char * const dp3_hot_groups[] =;

static const char * const edp0_lcd_groups[] =;

static const char * const edp1_lcd_groups[] =;

static const char * const edp2_lcd_groups[] =;

static const char * const edp3_lcd_groups[] =;

static const char * const edp_hot_groups[] =;

static const char * const egpio_groups[] =;

static const char * const emac0_dll_groups[] =;

static const char * const emac0_mcg0_groups[] =;

static const char * const emac0_mcg1_groups[] =;

static const char * const emac0_mcg2_groups[] =;

static const char * const emac0_mcg3_groups[] =;

static const char * const emac0_phy_groups[] =;

static const char * const emac0_ptp_groups[] =;

static const char * const emac1_dll0_groups[] =;

static const char * const emac1_dll1_groups[] =;

static const char * const emac1_mcg0_groups[] =;

static const char * const emac1_mcg1_groups[] =;

static const char * const emac1_mcg2_groups[] =;

static const char * const emac1_mcg3_groups[] =;

static const char * const emac1_phy_groups[] =;

static const char * const emac1_ptp_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 gcc_gp4_groups[] =;

static const char * const gcc_gp5_groups[] =;

static const char * const hs1_mi2s_groups[] =;

static const char * const hs2_mi2s_groups[] =;

static const char * const hs3_mi2s_groups[] =;

static const char * const ibi_i3c_groups[] =;

static const char * const jitter_bist_groups[] =;

static const char * const lpass_slimbus_groups[] =;

static const char * const mdp0_vsync0_groups[] =;

static const char * const mdp0_vsync1_groups[] =;

static const char * const mdp0_vsync2_groups[] =;

static const char * const mdp0_vsync3_groups[] =;

static const char * const mdp0_vsync4_groups[] =;

static const char * const mdp0_vsync5_groups[] =;

static const char * const mdp0_vsync6_groups[] =;

static const char * const mdp0_vsync7_groups[] =;

static const char * const mdp0_vsync8_groups[] =;

static const char * const mdp1_vsync0_groups[] =;

static const char * const mdp1_vsync1_groups[] =;

static const char * const mdp1_vsync2_groups[] =;

static const char * const mdp1_vsync3_groups[] =;

static const char * const mdp1_vsync4_groups[] =;

static const char * const mdp1_vsync5_groups[] =;

static const char * const mdp1_vsync6_groups[] =;

static const char * const mdp1_vsync7_groups[] =;

static const char * const mdp1_vsync8_groups[] =;

static const char * const mdp_vsync_groups[] =;

static const char * const mi2s0_data0_groups[] =;

static const char * const mi2s0_data1_groups[] =;

static const char * const mi2s0_sck_groups[] =;

static const char * const mi2s0_ws_groups[] =;

static const char * const mi2s1_data0_groups[] =;

static const char * const mi2s1_data1_groups[] =;

static const char * const mi2s1_sck_groups[] =;

static const char * const mi2s1_ws_groups[] =;

static const char * const mi2s2_data0_groups[] =;

static const char * const mi2s2_data1_groups[] =;

static const char * const mi2s2_sck_groups[] =;

static const char * const mi2s2_ws_groups[] =;

static const char * const mi2s_mclk1_groups[] =;

static const char * const mi2s_mclk2_groups[] =;

static const char * const pcie2a_clkreq_groups[] =;

static const char * const pcie2b_clkreq_groups[] =;

static const char * const pcie3a_clkreq_groups[] =;

static const char * const pcie3b_clkreq_groups[] =;

static const char * const pcie4_clkreq_groups[] =;

static const char * const phase_flag_groups[] =;

static const char * const pll_bist_groups[] =;

static const char * const pll_clk_groups[] =;

static const char * const prng_rosc0_groups[] =;

static const char * const prng_rosc1_groups[] =;

static const char * const prng_rosc2_groups[] =;

static const char * const prng_rosc3_groups[] =;

static const char * const qdss_cti_groups[] =;

static const char * const qdss_gpio_groups[] =;

static const char * const qspi_clk_groups[] =;

static const char * const qspi_cs_groups[] =;

static const char * const qspi_groups[] =;

static const char * const qup0_groups[] =;

static const char * const qup10_groups[] =;

static const char * const qup11_groups[] =;

static const char * const qup12_groups[] =;

static const char * const qup13_groups[] =;

static const char * const qup14_groups[] =;

static const char * const qup15_groups[] =;

static const char * const qup16_groups[] =;

static const char * const qup17_groups[] =;

static const char * const qup18_groups[] =;

static const char * const qup19_groups[] =;

static const char * const qup1_groups[] =;

static const char * const qup20_groups[] =;

static const char * const qup21_groups[] =;

static const char * const qup22_groups[] =;

static const char * const qup23_groups[] =;

static const char * const qup2_groups[] =;

static const char * const qup3_groups[] =;

static const char * const qup4_groups[] =;

static const char * const qup5_groups[] =;

static const char * const qup6_groups[] =;

static const char * const qup7_groups[] =;

static const char * const qup8_groups[] =;

static const char * const qup9_groups[] =;

static const char * const rgmii_0_groups[] =;

static const char * const rgmii_1_groups[] =;

static const char * const sd_write_groups[] =;

static const char * const sdc40_groups[] =;

static const char * const sdc42_groups[] =;

static const char * const sdc43_groups[] =;

static const char * const sdc4_clk_groups[] =;

static const char * const sdc4_cmd_groups[] =;

static const char * const tb_trig_groups[] =;

static const char * const tgu_groups[] =;

static const char * const tsense_pwm1_groups[] =;

static const char * const tsense_pwm2_groups[] =;

static const char * const tsense_pwm3_groups[] =;

static const char * const tsense_pwm4_groups[] =;

static const char * const usb0_dp_groups[] =;

static const char * const usb0_phy_groups[] =;

static const char * const usb0_sbrx_groups[] =;

static const char * const usb0_sbtx_groups[] =;

static const char * const usb0_usb4_groups[] =;

static const char * const usb1_dp_groups[] =;

static const char * const usb1_phy_groups[] =;

static const char * const usb1_sbrx_groups[] =;

static const char * const usb1_sbtx_groups[] =;

static const char * const usb1_usb4_groups[] =;

static const char * const usb2phy_ac_groups[] =;

static const char * const vsense_trigger_groups[] =;

static const struct pinfunction sc8280xp_functions[] =;

static const struct msm_pingroup sc8280xp_groups[] =;

static const struct msm_gpio_wakeirq_map sc8280xp_pdc_map[] =;

static struct msm_pinctrl_soc_data sc8280xp_pinctrl =;

static int sc8280xp_pinctrl_probe(struct platform_device *pdev)
{}

static const struct of_device_id sc8280xp_pinctrl_of_match[] =;
MODULE_DEVICE_TABLE(of, sc8280xp_pinctrl_of_match);

static struct platform_driver sc8280xp_pinctrl_driver =;

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

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

MODULE_DESCRIPTION();
MODULE_LICENSE();