15a6ca1f2SKrzysztof Kozlowski // SPDX-License-Identifier: GPL-2.0-only 25a6ca1f2SKrzysztof Kozlowski /* 35a6ca1f2SKrzysztof Kozlowski * Copyright (c) 2022-2023 Linaro Ltd. 45a6ca1f2SKrzysztof Kozlowski */ 55a6ca1f2SKrzysztof Kozlowski 65a6ca1f2SKrzysztof Kozlowski #include <linux/gpio/driver.h> 75a6ca1f2SKrzysztof Kozlowski #include <linux/module.h> 85a6ca1f2SKrzysztof Kozlowski #include <linux/platform_device.h> 95a6ca1f2SKrzysztof Kozlowski 105a6ca1f2SKrzysztof Kozlowski #include "pinctrl-lpass-lpi.h" 115a6ca1f2SKrzysztof Kozlowski 125a6ca1f2SKrzysztof Kozlowski enum lpass_lpi_functions { 135a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic1_clk, 145a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic1_data, 155a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic2_clk, 165a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic2_data, 175a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic3_clk, 185a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic3_data, 195a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic4_clk, 205a6ca1f2SKrzysztof Kozlowski LPI_MUX_dmic4_data, 215a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s0_clk, 225a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s0_data, 235a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s0_ws, 245a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s1_clk, 255a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s1_data, 265a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s1_ws, 275a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s2_clk, 285a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s2_data, 295a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s2_ws, 305a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s3_clk, 315a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s3_data, 325a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s3_ws, 335a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s4_clk, 345a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s4_data, 355a6ca1f2SKrzysztof Kozlowski LPI_MUX_i2s4_ws, 365a6ca1f2SKrzysztof Kozlowski LPI_MUX_slimbus_clk, 375a6ca1f2SKrzysztof Kozlowski LPI_MUX_slimbus_data, 385a6ca1f2SKrzysztof Kozlowski LPI_MUX_swr_rx_clk, 395a6ca1f2SKrzysztof Kozlowski LPI_MUX_swr_rx_data, 405a6ca1f2SKrzysztof Kozlowski LPI_MUX_swr_tx_clk, 415a6ca1f2SKrzysztof Kozlowski LPI_MUX_swr_tx_data, 425a6ca1f2SKrzysztof Kozlowski LPI_MUX_wsa_swr_clk, 435a6ca1f2SKrzysztof Kozlowski LPI_MUX_wsa_swr_data, 445a6ca1f2SKrzysztof Kozlowski LPI_MUX_wsa2_swr_clk, 455a6ca1f2SKrzysztof Kozlowski LPI_MUX_wsa2_swr_data, 465a6ca1f2SKrzysztof Kozlowski LPI_MUX_ext_mclk1_a, 475a6ca1f2SKrzysztof Kozlowski LPI_MUX_ext_mclk1_b, 485a6ca1f2SKrzysztof Kozlowski LPI_MUX_ext_mclk1_c, 495a6ca1f2SKrzysztof Kozlowski LPI_MUX_ext_mclk1_d, 505a6ca1f2SKrzysztof Kozlowski LPI_MUX_ext_mclk1_e, 515a6ca1f2SKrzysztof Kozlowski LPI_MUX_gpio, 525a6ca1f2SKrzysztof Kozlowski LPI_MUX__, 535a6ca1f2SKrzysztof Kozlowski }; 545a6ca1f2SKrzysztof Kozlowski 555a6ca1f2SKrzysztof Kozlowski static int gpio0_pins[] = { 0 }; 565a6ca1f2SKrzysztof Kozlowski static int gpio1_pins[] = { 1 }; 575a6ca1f2SKrzysztof Kozlowski static int gpio2_pins[] = { 2 }; 585a6ca1f2SKrzysztof Kozlowski static int gpio3_pins[] = { 3 }; 595a6ca1f2SKrzysztof Kozlowski static int gpio4_pins[] = { 4 }; 605a6ca1f2SKrzysztof Kozlowski static int gpio5_pins[] = { 5 }; 615a6ca1f2SKrzysztof Kozlowski static int gpio6_pins[] = { 6 }; 625a6ca1f2SKrzysztof Kozlowski static int gpio7_pins[] = { 7 }; 635a6ca1f2SKrzysztof Kozlowski static int gpio8_pins[] = { 8 }; 645a6ca1f2SKrzysztof Kozlowski static int gpio9_pins[] = { 9 }; 655a6ca1f2SKrzysztof Kozlowski static int gpio10_pins[] = { 10 }; 665a6ca1f2SKrzysztof Kozlowski static int gpio11_pins[] = { 11 }; 675a6ca1f2SKrzysztof Kozlowski static int gpio12_pins[] = { 12 }; 685a6ca1f2SKrzysztof Kozlowski static int gpio13_pins[] = { 13 }; 695a6ca1f2SKrzysztof Kozlowski static int gpio14_pins[] = { 14 }; 705a6ca1f2SKrzysztof Kozlowski static int gpio15_pins[] = { 15 }; 715a6ca1f2SKrzysztof Kozlowski static int gpio16_pins[] = { 16 }; 725a6ca1f2SKrzysztof Kozlowski static int gpio17_pins[] = { 17 }; 735a6ca1f2SKrzysztof Kozlowski static int gpio18_pins[] = { 18 }; 745a6ca1f2SKrzysztof Kozlowski static int gpio19_pins[] = { 19 }; 755a6ca1f2SKrzysztof Kozlowski static int gpio20_pins[] = { 20 }; 765a6ca1f2SKrzysztof Kozlowski static int gpio21_pins[] = { 21 }; 775a6ca1f2SKrzysztof Kozlowski static int gpio22_pins[] = { 22 }; 785a6ca1f2SKrzysztof Kozlowski 795a6ca1f2SKrzysztof Kozlowski static const struct pinctrl_pin_desc sm8550_lpi_pins[] = { 805a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(0, "gpio0"), 815a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(1, "gpio1"), 825a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(2, "gpio2"), 835a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(3, "gpio3"), 845a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(4, "gpio4"), 855a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(5, "gpio5"), 865a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(6, "gpio6"), 875a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(7, "gpio7"), 885a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(8, "gpio8"), 895a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(9, "gpio9"), 905a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(10, "gpio10"), 915a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(11, "gpio11"), 925a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(12, "gpio12"), 935a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(13, "gpio13"), 945a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(14, "gpio14"), 955a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(15, "gpio15"), 965a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(16, "gpio16"), 975a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(17, "gpio17"), 985a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(18, "gpio18"), 995a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(19, "gpio19"), 1005a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(20, "gpio20"), 1015a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(21, "gpio21"), 1025a6ca1f2SKrzysztof Kozlowski PINCTRL_PIN(22, "gpio22"), 1035a6ca1f2SKrzysztof Kozlowski }; 1045a6ca1f2SKrzysztof Kozlowski 105*10fe4a13SKrzysztof Kozlowski static const char * const gpio_groups[] = { 106*10fe4a13SKrzysztof Kozlowski "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 107*10fe4a13SKrzysztof Kozlowski "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 108*10fe4a13SKrzysztof Kozlowski "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 109*10fe4a13SKrzysztof Kozlowski "gpio22", 110*10fe4a13SKrzysztof Kozlowski }; 111*10fe4a13SKrzysztof Kozlowski 1125a6ca1f2SKrzysztof Kozlowski static const char * const dmic1_clk_groups[] = { "gpio6" }; 1135a6ca1f2SKrzysztof Kozlowski static const char * const dmic1_data_groups[] = { "gpio7" }; 1145a6ca1f2SKrzysztof Kozlowski static const char * const dmic2_clk_groups[] = { "gpio8" }; 1155a6ca1f2SKrzysztof Kozlowski static const char * const dmic2_data_groups[] = { "gpio9" }; 1165a6ca1f2SKrzysztof Kozlowski static const char * const dmic3_clk_groups[] = { "gpio12" }; 1175a6ca1f2SKrzysztof Kozlowski static const char * const dmic3_data_groups[] = { "gpio13" }; 1185a6ca1f2SKrzysztof Kozlowski static const char * const dmic4_clk_groups[] = { "gpio17" }; 1195a6ca1f2SKrzysztof Kozlowski static const char * const dmic4_data_groups[] = { "gpio18" }; 1205a6ca1f2SKrzysztof Kozlowski static const char * const i2s0_clk_groups[] = { "gpio0" }; 1215a6ca1f2SKrzysztof Kozlowski static const char * const i2s0_ws_groups[] = { "gpio1" }; 1225a6ca1f2SKrzysztof Kozlowski static const char * const i2s0_data_groups[] = { "gpio2", "gpio3", "gpio4", "gpio5" }; 1235a6ca1f2SKrzysztof Kozlowski static const char * const i2s1_clk_groups[] = { "gpio6" }; 1245a6ca1f2SKrzysztof Kozlowski static const char * const i2s1_ws_groups[] = { "gpio7" }; 1255a6ca1f2SKrzysztof Kozlowski static const char * const i2s1_data_groups[] = { "gpio8", "gpio9" }; 1265a6ca1f2SKrzysztof Kozlowski static const char * const i2s2_clk_groups[] = { "gpio10" }; 1275a6ca1f2SKrzysztof Kozlowski static const char * const i2s2_ws_groups[] = { "gpio11" }; 1285a6ca1f2SKrzysztof Kozlowski static const char * const i2s2_data_groups[] = { "gpio15", "gpio16" }; 1295a6ca1f2SKrzysztof Kozlowski static const char * const i2s3_clk_groups[] = { "gpio12" }; 1305a6ca1f2SKrzysztof Kozlowski static const char * const i2s3_ws_groups[] = { "gpio13" }; 1315a6ca1f2SKrzysztof Kozlowski static const char * const i2s3_data_groups[] = { "gpio17", "gpio18" }; 1325a6ca1f2SKrzysztof Kozlowski static const char * const i2s4_clk_groups[] = { "gpio19"}; 1335a6ca1f2SKrzysztof Kozlowski static const char * const i2s4_ws_groups[] = { "gpio20"}; 1345a6ca1f2SKrzysztof Kozlowski static const char * const i2s4_data_groups[] = { "gpio21", "gpio22"}; 1355a6ca1f2SKrzysztof Kozlowski static const char * const slimbus_clk_groups[] = { "gpio19"}; 1365a6ca1f2SKrzysztof Kozlowski static const char * const slimbus_data_groups[] = { "gpio20"}; 1375a6ca1f2SKrzysztof Kozlowski static const char * const swr_tx_clk_groups[] = { "gpio0" }; 1385a6ca1f2SKrzysztof Kozlowski static const char * const swr_tx_data_groups[] = { "gpio1", "gpio2", "gpio14" }; 1395a6ca1f2SKrzysztof Kozlowski static const char * const swr_rx_clk_groups[] = { "gpio3" }; 1405a6ca1f2SKrzysztof Kozlowski static const char * const swr_rx_data_groups[] = { "gpio4", "gpio5", "gpio15" }; 1415a6ca1f2SKrzysztof Kozlowski static const char * const wsa_swr_clk_groups[] = { "gpio10" }; 1425a6ca1f2SKrzysztof Kozlowski static const char * const wsa_swr_data_groups[] = { "gpio11" }; 1435a6ca1f2SKrzysztof Kozlowski static const char * const wsa2_swr_clk_groups[] = { "gpio15" }; 1445a6ca1f2SKrzysztof Kozlowski static const char * const wsa2_swr_data_groups[] = { "gpio16" }; 1455a6ca1f2SKrzysztof Kozlowski static const char * const ext_mclk1_c_groups[] = { "gpio5" }; 1465a6ca1f2SKrzysztof Kozlowski static const char * const ext_mclk1_b_groups[] = { "gpio9" }; 1475a6ca1f2SKrzysztof Kozlowski static const char * const ext_mclk1_a_groups[] = { "gpio13" }; 1485a6ca1f2SKrzysztof Kozlowski static const char * const ext_mclk1_d_groups[] = { "gpio14" }; 1495a6ca1f2SKrzysztof Kozlowski static const char * const ext_mclk1_e_groups[] = { "gpio22" }; 1505a6ca1f2SKrzysztof Kozlowski 1515a6ca1f2SKrzysztof Kozlowski static const struct lpi_pingroup sm8550_groups[] = { 1525a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(0, 0, swr_tx_clk, i2s0_clk, _, _), 1535a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(1, 2, swr_tx_data, i2s0_ws, _, _), 1545a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(2, 4, swr_tx_data, i2s0_data, _, _), 1555a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(3, 8, swr_rx_clk, i2s0_data, _, _), 1565a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(4, 10, swr_rx_data, i2s0_data, _, _), 1575a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(5, 12, swr_rx_data, ext_mclk1_c, i2s0_data, _), 1585a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(6, LPI_NO_SLEW, dmic1_clk, i2s1_clk, _, _), 1595a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(7, LPI_NO_SLEW, dmic1_data, i2s1_ws, _, _), 1605a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(8, LPI_NO_SLEW, dmic2_clk, i2s1_data, _, _), 1615a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(9, LPI_NO_SLEW, dmic2_data, i2s1_data, ext_mclk1_b, _), 1625a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(10, 16, i2s2_clk, wsa_swr_clk, _, _), 1635a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(11, 18, i2s2_ws, wsa_swr_data, _, _), 1645a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(12, LPI_NO_SLEW, dmic3_clk, i2s3_clk, _, _), 1655a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(13, LPI_NO_SLEW, dmic3_data, i2s3_ws, ext_mclk1_a, _), 1665a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(14, 6, swr_tx_data, ext_mclk1_d, _, _), 1675a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(15, 20, i2s2_data, wsa2_swr_clk, _, _), 1685a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(16, 22, i2s2_data, wsa2_swr_data, _, _), 1695a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(17, LPI_NO_SLEW, dmic4_clk, i2s3_data, _, _), 1705a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(18, LPI_NO_SLEW, dmic4_data, i2s3_data, _, _), 1715a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(19, LPI_NO_SLEW, i2s4_clk, slimbus_clk, _, _), 1725a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(20, LPI_NO_SLEW, i2s4_ws, slimbus_data, _, _), 1735a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(21, LPI_NO_SLEW, i2s4_data, _, _, _), 1745a6ca1f2SKrzysztof Kozlowski LPI_PINGROUP(22, LPI_NO_SLEW, i2s4_data, ext_mclk1_e, _, _), 1755a6ca1f2SKrzysztof Kozlowski }; 1765a6ca1f2SKrzysztof Kozlowski 1775a6ca1f2SKrzysztof Kozlowski static const struct lpi_function sm8550_functions[] = { 178*10fe4a13SKrzysztof Kozlowski LPI_FUNCTION(gpio), 1795a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic1_clk), 1805a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic1_data), 1815a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic2_clk), 1825a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic2_data), 1835a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic3_clk), 1845a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic3_data), 1855a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic4_clk), 1865a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(dmic4_data), 1875a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s0_clk), 1885a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s0_data), 1895a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s0_ws), 1905a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s1_clk), 1915a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s1_data), 1925a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s1_ws), 1935a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s2_clk), 1945a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s2_data), 1955a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s2_ws), 1965a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s3_clk), 1975a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s3_data), 1985a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s3_ws), 1995a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s4_clk), 2005a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s4_data), 2015a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(i2s4_ws), 2025a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(slimbus_clk), 2035a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(slimbus_data), 2045a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(swr_rx_clk), 2055a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(swr_rx_data), 2065a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(swr_tx_clk), 2075a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(swr_tx_data), 2085a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(wsa_swr_clk), 2095a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(wsa_swr_data), 2105a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(wsa2_swr_clk), 2115a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(wsa2_swr_data), 2125a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(ext_mclk1_a), 2135a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(ext_mclk1_b), 2145a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(ext_mclk1_c), 2155a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(ext_mclk1_d), 2165a6ca1f2SKrzysztof Kozlowski LPI_FUNCTION(ext_mclk1_e), 2175a6ca1f2SKrzysztof Kozlowski }; 2185a6ca1f2SKrzysztof Kozlowski 2195a6ca1f2SKrzysztof Kozlowski static const struct lpi_pinctrl_variant_data sm8550_lpi_data = { 2205a6ca1f2SKrzysztof Kozlowski .pins = sm8550_lpi_pins, 2215a6ca1f2SKrzysztof Kozlowski .npins = ARRAY_SIZE(sm8550_lpi_pins), 2225a6ca1f2SKrzysztof Kozlowski .groups = sm8550_groups, 2235a6ca1f2SKrzysztof Kozlowski .ngroups = ARRAY_SIZE(sm8550_groups), 2245a6ca1f2SKrzysztof Kozlowski .functions = sm8550_functions, 2255a6ca1f2SKrzysztof Kozlowski .nfunctions = ARRAY_SIZE(sm8550_functions), 2265a6ca1f2SKrzysztof Kozlowski }; 2275a6ca1f2SKrzysztof Kozlowski 2285a6ca1f2SKrzysztof Kozlowski static const struct of_device_id lpi_pinctrl_of_match[] = { 2295a6ca1f2SKrzysztof Kozlowski { 2305a6ca1f2SKrzysztof Kozlowski .compatible = "qcom,sm8550-lpass-lpi-pinctrl", 2315a6ca1f2SKrzysztof Kozlowski .data = &sm8550_lpi_data, 2325a6ca1f2SKrzysztof Kozlowski }, 2335a6ca1f2SKrzysztof Kozlowski { } 2345a6ca1f2SKrzysztof Kozlowski }; 2355a6ca1f2SKrzysztof Kozlowski MODULE_DEVICE_TABLE(of, lpi_pinctrl_of_match); 2365a6ca1f2SKrzysztof Kozlowski 2375a6ca1f2SKrzysztof Kozlowski static struct platform_driver lpi_pinctrl_driver = { 2385a6ca1f2SKrzysztof Kozlowski .driver = { 2395a6ca1f2SKrzysztof Kozlowski .name = "qcom-sm8550-lpass-lpi-pinctrl", 2405a6ca1f2SKrzysztof Kozlowski .of_match_table = lpi_pinctrl_of_match, 2415a6ca1f2SKrzysztof Kozlowski }, 2425a6ca1f2SKrzysztof Kozlowski .probe = lpi_pinctrl_probe, 2435a6ca1f2SKrzysztof Kozlowski .remove = lpi_pinctrl_remove, 2445a6ca1f2SKrzysztof Kozlowski }; 2455a6ca1f2SKrzysztof Kozlowski 2465a6ca1f2SKrzysztof Kozlowski module_platform_driver(lpi_pinctrl_driver); 2475a6ca1f2SKrzysztof Kozlowski MODULE_DESCRIPTION("Qualcomm SM8550 LPI GPIO pin control driver"); 2485a6ca1f2SKrzysztof Kozlowski MODULE_LICENSE("GPL"); 249