]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pinctrl: qcom-pmic-gpio: add support for PM8937
authorBarnabás Czémán <barnabas.czeman@mainlining.org>
Thu, 31 Oct 2024 01:19:43 +0000 (02:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:54:46 +0000 (19:54 +0100)
[ Upstream commit 89265a58ff24e3885c2c9ca722bc3aaa47018be9 ]

PM8937 has 8 GPIO-s with holes on GPIO3, GPIO4 and GPIO6.

Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/20241031-msm8917-v2-2-8a075faa89b1@mainlining.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c

index effe32996bac60ca25a538b2508223e43ea5a832..63255cd35bd706db4c3110f9b9a8138faefba6a6 100644 (file)
@@ -1219,6 +1219,8 @@ static const struct of_device_id pmic_gpio_of_match[] = {
        { .compatible = "qcom,pm8350c-gpio", .data = (void *) 9 },
        { .compatible = "qcom,pm8450-gpio", .data = (void *) 4 },
        { .compatible = "qcom,pm8916-gpio", .data = (void *) 4 },
+       /* pm8937 has 8 GPIOs with holes on 3, 4 and 6 */
+       { .compatible = "qcom,pm8937-gpio", .data = (void *) 8 },
        { .compatible = "qcom,pm8941-gpio", .data = (void *) 36 },
        /* pm8950 has 8 GPIOs with holes on 3 */
        { .compatible = "qcom,pm8950-gpio", .data = (void *) 8 },