1*5a6ca1f2SKrzysztof Kozlowski // SPDX-License-Identifier: GPL-2.0-only 2*5a6ca1f2SKrzysztof Kozlowski /* 3*5a6ca1f2SKrzysztof Kozlowski * Copyright (c) 2022-2023 Linaro Ltd. 4*5a6ca1f2SKrzysztof Kozlowski */ 5*5a6ca1f2SKrzysztof Kozlowski 6*5a6ca1f2SKrzysztof Kozlowski #include <linux/gpio/driver.h> 7*5a6ca1f2SKrzysztof Kozlowski #include <linux/module.h> 8*5a6ca1f2SKrzysztof Kozlowski #include <linux/platform_device.h> 9*5a6ca1f2SKrzysztof Kozlowski 10*5a6ca1f2SKrzysztof Kozlowski #include "pinctrl-lpass-lpi.h" 11*5a6ca1f2SKrzysztof Kozlowski 12*5a6ca1f2SKrzysztof Kozlowski enum lpass_lpi_functions { 13*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic1_clk, 14*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic1_data, 15*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic2_clk, 16*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic2_data, 17*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic3_clk, 18*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic3_data, 19*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic4_clk, 20*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic4_data, 21*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s0_clk, 22*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s0_data, 23*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s0_ws, 24*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s1_clk, 25*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s1_data, 26*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s1_ws, 27*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s2_clk, 28*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s2_data, 29*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s2_ws, 30*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s3_clk, 31*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s3_data, 32*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s3_ws, 33*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s4_clk, 34*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s4_data, 35*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s4_ws, 36*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_slimbus_clk, 37*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_slimbus_data, 38*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_swr_rx_clk, 39*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_swr_rx_data, 40*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_swr_tx_clk, 41*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_swr_tx_data, 42*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_wsa_swr_clk, 43*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_wsa_swr_data, 44*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_wsa2_swr_clk, 45*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_wsa2_swr_data, 46*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_ext_mclk1_a, 47*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_ext_mclk1_b, 48*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_ext_mclk1_c, 49*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_ext_mclk1_d, 50*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_ext_mclk1_e, 51*5a6ca1f2SKrzysztof Kozlowski LPI_MUX_gpio, 52*5a6ca1f2SKrzysztof Kozlowski LPI_MUX__, 53*5a6ca1f2SKrzysztof Kozlowski }; 54*5a6ca1f2SKrzysztof Kozlowski 55*5a6ca1f2SKrzysztof Kozlowski static int gpio0_pins[] = { 0 }; 56*5a6ca1f2SKrzysztof Kozlowski static int gpio1_pins[] = { 1 }; 57*5a6ca1f2SKrzysztof Kozlowski static int gpio2_pins[] = { 2 }; 58*5a6ca1f2SKrzysztof Kozlowski static int gpio3_pins[] = { 3 }; 59*5a6ca1f2SKrzysztof Kozlowski static int gpio4_pins[] = { 4 }; 60*5a6ca1f2SKrzysztof Kozlowski static int gpio5_pins[] = { 5 }; 61*5a6ca1f2SKrzysztof Kozlowski static int gpio6_pins[] = { 6 }; 62*5a6ca1f2SKrzysztof Kozlowski static int gpio7_pins[] = { 7 }; 63*5a6ca1f2SKrzysztof Kozlowski static int gpio8_pins[] = { 8 }; 64*5a6ca1f2SKrzysztof Kozlowski static int gpio9_pins[] = { 9 }; 65*5a6ca1f2SKrzysztof Kozlowski static int gpio10_pins[] = { 10 }; 66*5a6ca1f2SKrzysztof Kozlowski static int gpio11_pins[] = { 11 }; 67*5a6ca1f2SKrzysztof Kozlowski static int gpio12_pins[] = { 12 }; 68*5a6ca1f2SKrzysztof Kozlowski static int gpio13_pins[] = { 13 }; 69*5a6ca1f2SKrzysztof Kozlowski static int gpio14_pins[] = { 14 }; 70*5a6ca1f2SKrzysztof Kozlowski static int gpio15_pins[] = { 15 }; 71*5a6ca1f2SKrzysztof Kozlowski static int gpio16_pins[] = { 16 }; 72*5a6ca1f2SKrzysztof Kozlowski static int gpio17_pins[] = { 17 }; 73*5a6ca1f2SKrzysztof Kozlowski static int gpio18_pins[] = { 18 }; 74*5a6ca1f2SKrzysztof Kozlowski static int gpio19_pins[] = { 19 }; 75*5a6ca1f2SKrzysztof Kozlowski static int gpio20_pins[] = { 20 }; 76*5a6ca1f2SKrzysztof Kozlowski static int gpio21_pins[] = { 21 }; 77*5a6ca1f2SKrzysztof Kozlowski static int gpio22_pins[] = { 22 }; 78*5a6ca1f2SKrzysztof Kozlowski 79*5a6ca1f2SKrzysztof Kozlowski static const struct pinctrl_pin_desc sm8550_lpi_pins[] = { 80*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(0, "gpio0"), 81*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(1, "gpio1"), 82*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(2, "gpio2"), 83*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(3, "gpio3"), 84*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(4, "gpio4"), 85*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(5, "gpio5"), 86*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(6, "gpio6"), 87*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(7, "gpio7"), 88*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(8, "gpio8"), 89*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(9, "gpio9"), 90*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(10, "gpio10"), 91*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(11, "gpio11"), 92*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(12, "gpio12"), 93*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(13, "gpio13"), 94*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(14, "gpio14"), 95*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(15, "gpio15"), 96*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(16, "gpio16"), 97*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(17, "gpio17"), 98*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(18, "gpio18"), 99*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(19, "gpio19"), 100*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(20, "gpio20"), 101*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(21, "gpio21"), 102*5a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(22, "gpio22"), 103*5a6ca1f2SKrzysztof Kozlowski }; 104*5a6ca1f2SKrzysztof Kozlowski 105*5a6ca1f2SKrzysztof Kozlowski static const char * const dmic1_clk_groups[] = { "gpio6" }; 106*5a6ca1f2SKrzysztof Kozlowski static const char * const dmic1_data_groups[] = { "gpio7" }; 107*5a6ca1f2SKrzysztof Kozlowski static const char * const dmic2_clk_groups[] = { "gpio8" }; 108*5a6ca1f2SKrzysztof Kozlowski static const char * const dmic2_data_groups[] = { "gpio9" }; 109*5a6ca1f2SKrzysztof Kozlowski static const char * const dmic3_clk_groups[] = { "gpio12" }; 110*5a6ca1f2SKrzysztof Kozlowski static const char * const dmic3_data_groups[] = { "gpio13" }; 111*5a6ca1f2SKrzysztof Kozlowski static const char * const dmic4_clk_groups[] = { "gpio17" }; 112*5a6ca1f2SKrzysztof Kozlowski static const char * const dmic4_data_groups[] = { "gpio18" }; 113*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s0_clk_groups[] = { "gpio0" }; 114*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s0_ws_groups[] = { "gpio1" }; 115*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s0_data_groups[] = { "gpio2", "gpio3", "gpio4", "gpio5" }; 116*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s1_clk_groups[] = { "gpio6" }; 117*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s1_ws_groups[] = { "gpio7" }; 118*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s1_data_groups[] = { "gpio8", "gpio9" }; 119*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s2_clk_groups[] = { "gpio10" }; 120*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s2_ws_groups[] = { "gpio11" }; 121*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s2_data_groups[] = { "gpio15", "gpio16" }; 122*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s3_clk_groups[] = { "gpio12" }; 123*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s3_ws_groups[] = { "gpio13" }; 124*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s3_data_groups[] = { "gpio17", "gpio18" }; 125*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s4_clk_groups[] = { "gpio19"}; 126*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s4_ws_groups[] = { "gpio20"}; 127*5a6ca1f2SKrzysztof Kozlowski static const char * const i2s4_data_groups[] = { "gpio21", "gpio22"}; 128*5a6ca1f2SKrzysztof Kozlowski static const char * const slimbus_clk_groups[] = { "gpio19"}; 129*5a6ca1f2SKrzysztof Kozlowski static const char * const slimbus_data_groups[] = { "gpio20"}; 130*5a6ca1f2SKrzysztof Kozlowski static const char * const swr_tx_clk_groups[] = { "gpio0" }; 131*5a6ca1f2SKrzysztof Kozlowski static const char * const swr_tx_data_groups[] = { "gpio1", "gpio2", "gpio14" }; 132*5a6ca1f2SKrzysztof Kozlowski static const char * const swr_rx_clk_groups[] = { "gpio3" }; 133*5a6ca1f2SKrzysztof Kozlowski static const char * const swr_rx_data_groups[] = { "gpio4", "gpio5", "gpio15" }; 134*5a6ca1f2SKrzysztof Kozlowski static const char * const wsa_swr_clk_groups[] = { "gpio10" }; 135*5a6ca1f2SKrzysztof Kozlowski static const char * const wsa_swr_data_groups[] = { "gpio11" }; 136*5a6ca1f2SKrzysztof Kozlowski static const char * const wsa2_swr_clk_groups[] = { "gpio15" }; 137*5a6ca1f2SKrzysztof Kozlowski static const char * const wsa2_swr_data_groups[] = { "gpio16" }; 138*5a6ca1f2SKrzysztof Kozlowski static const char * const ext_mclk1_c_groups[] = { "gpio5" }; 139*5a6ca1f2SKrzysztof Kozlowski static const char * const ext_mclk1_b_groups[] = { "gpio9" }; 140*5a6ca1f2SKrzysztof Kozlowski static const char * const ext_mclk1_a_groups[] = { "gpio13" }; 141*5a6ca1f2SKrzysztof Kozlowski static const char * const ext_mclk1_d_groups[] = { "gpio14" }; 142*5a6ca1f2SKrzysztof Kozlowski static const char * const ext_mclk1_e_groups[] = { "gpio22" }; 143*5a6ca1f2SKrzysztof Kozlowski 144*5a6ca1f2SKrzysztof Kozlowski static const struct lpi_pingroup sm8550_groups[] = { 145*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(0, 0, swr_tx_clk, i2s0_clk, _, _), 146*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(1, 2, swr_tx_data, i2s0_ws, _, _), 147*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(2, 4, swr_tx_data, i2s0_data, _, _), 148*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(3, 8, swr_rx_clk, i2s0_data, _, _), 149*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(4, 10, swr_rx_data, i2s0_data, _, _), 150*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(5, 12, swr_rx_data, ext_mclk1_c, i2s0_data, _), 151*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(6, LPI_NO_SLEW, dmic1_clk, i2s1_clk, _, _), 152*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(7, LPI_NO_SLEW, dmic1_data, i2s1_ws, _, _), 153*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(8, LPI_NO_SLEW, dmic2_clk, i2s1_data, _, _), 154*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(9, LPI_NO_SLEW, dmic2_data, i2s1_data, ext_mclk1_b, _), 155*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(10, 16, i2s2_clk, wsa_swr_clk, _, _), 156*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(11, 18, i2s2_ws, wsa_swr_data, _, _), 157*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(12, LPI_NO_SLEW, dmic3_clk, i2s3_clk, _, _), 158*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(13, LPI_NO_SLEW, dmic3_data, i2s3_ws, ext_mclk1_a, _), 159*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(14, 6, swr_tx_data, ext_mclk1_d, _, _), 160*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(15, 20, i2s2_data, wsa2_swr_clk, _, _), 161*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(16, 22, i2s2_data, wsa2_swr_data, _, _), 162*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(17, LPI_NO_SLEW, dmic4_clk, i2s3_data, _, _), 163*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(18, LPI_NO_SLEW, dmic4_data, i2s3_data, _, _), 164*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(19, LPI_NO_SLEW, i2s4_clk, slimbus_clk, _, _), 165*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(20, LPI_NO_SLEW, i2s4_ws, slimbus_data, _, _), 166*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(21, LPI_NO_SLEW, i2s4_data, _, _, _), 167*5a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(22, LPI_NO_SLEW, i2s4_data, ext_mclk1_e, _, _), 168*5a6ca1f2SKrzysztof Kozlowski }; 169*5a6ca1f2SKrzysztof Kozlowski 170*5a6ca1f2SKrzysztof Kozlowski static const struct lpi_function sm8550_functions[] = { 171*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic1_clk), 172*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic1_data), 173*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic2_clk), 174*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic2_data), 175*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic3_clk), 176*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic3_data), 177*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic4_clk), 178*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic4_data), 179*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s0_clk), 180*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s0_data), 181*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s0_ws), 182*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s1_clk), 183*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s1_data), 184*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s1_ws), 185*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s2_clk), 186*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s2_data), 187*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s2_ws), 188*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s3_clk), 189*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s3_data), 190*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s3_ws), 191*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s4_clk), 192*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s4_data), 193*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s4_ws), 194*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(slimbus_clk), 195*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(slimbus_data), 196*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(swr_rx_clk), 197*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(swr_rx_data), 198*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(swr_tx_clk), 199*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(swr_tx_data), 200*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(wsa_swr_clk), 201*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(wsa_swr_data), 202*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(wsa2_swr_clk), 203*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(wsa2_swr_data), 204*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(ext_mclk1_a), 205*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(ext_mclk1_b), 206*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(ext_mclk1_c), 207*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(ext_mclk1_d), 208*5a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(ext_mclk1_e), 209*5a6ca1f2SKrzysztof Kozlowski }; 210*5a6ca1f2SKrzysztof Kozlowski 211*5a6ca1f2SKrzysztof Kozlowski static const struct lpi_pinctrl_variant_data sm8550_lpi_data = { 212*5a6ca1f2SKrzysztof Kozlowski .pins = sm8550_lpi_pins, 213*5a6ca1f2SKrzysztof Kozlowski .npins = ARRAY_SIZE(sm8550_lpi_pins), 214*5a6ca1f2SKrzysztof Kozlowski .groups = sm8550_groups, 215*5a6ca1f2SKrzysztof Kozlowski .ngroups = ARRAY_SIZE(sm8550_groups), 216*5a6ca1f2SKrzysztof Kozlowski .functions = sm8550_functions, 217*5a6ca1f2SKrzysztof Kozlowski .nfunctions = ARRAY_SIZE(sm8550_functions), 218*5a6ca1f2SKrzysztof Kozlowski }; 219*5a6ca1f2SKrzysztof Kozlowski 220*5a6ca1f2SKrzysztof Kozlowski static const struct of_device_id lpi_pinctrl_of_match[] = { 221*5a6ca1f2SKrzysztof Kozlowski { 222*5a6ca1f2SKrzysztof Kozlowski .compatible = "qcom,sm8550-lpass-lpi-pinctrl", 223*5a6ca1f2SKrzysztof Kozlowski .data = &sm8550_lpi_data, 224*5a6ca1f2SKrzysztof Kozlowski }, 225*5a6ca1f2SKrzysztof Kozlowski { } 226*5a6ca1f2SKrzysztof Kozlowski }; 227*5a6ca1f2SKrzysztof Kozlowski MODULE_DEVICE_TABLE(of, lpi_pinctrl_of_match); 228*5a6ca1f2SKrzysztof Kozlowski 229*5a6ca1f2SKrzysztof Kozlowski static struct platform_driver lpi_pinctrl_driver = { 230*5a6ca1f2SKrzysztof Kozlowski .driver = { 231*5a6ca1f2SKrzysztof Kozlowski .name = "qcom-sm8550-lpass-lpi-pinctrl", 232*5a6ca1f2SKrzysztof Kozlowski .of_match_table = lpi_pinctrl_of_match, 233*5a6ca1f2SKrzysztof Kozlowski }, 234*5a6ca1f2SKrzysztof Kozlowski .probe = lpi_pinctrl_probe, 235*5a6ca1f2SKrzysztof Kozlowski .remove = lpi_pinctrl_remove, 236*5a6ca1f2SKrzysztof Kozlowski }; 237*5a6ca1f2SKrzysztof Kozlowski 238*5a6ca1f2SKrzysztof Kozlowski module_platform_driver(lpi_pinctrl_driver); 239*5a6ca1f2SKrzysztof Kozlowski MODULE_DESCRIPTION("Qualcomm SM8550 LPI GPIO pin control driver"); 240*5a6ca1f2SKrzysztof Kozlowski MODULE_LICENSE("GPL"); 241