Skip to content

Commit 61b32d4

Browse files
barni2000gregkh
authored andcommitted
pinctrl: qcom-pmic-gpio: add support for PM8937
[ Upstream commit 89265a5 ] PM8937 has 8 GPIO-s with holes on GPIO3, GPIO4 and GPIO6. Signed-off-by: Barnabás Czémán <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 631c1e6 commit 61b32d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pinctrl/qcom/pinctrl-spmi-gpio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,8 @@ static int pmic_gpio_remove(struct platform_device *pdev)
11061106
static const struct of_device_id pmic_gpio_of_match[] = {
11071107
{ .compatible = "qcom,pm8005-gpio", .data = (void *) 4 },
11081108
{ .compatible = "qcom,pm8916-gpio", .data = (void *) 4 },
1109+
/* pm8937 has 8 GPIOs with holes on 3, 4 and 6 */
1110+
{ .compatible = "qcom,pm8937-gpio", .data = (void *) 8 },
11091111
{ .compatible = "qcom,pm8941-gpio", .data = (void *) 36 },
11101112
{ .compatible = "qcom,pm8994-gpio", .data = (void *) 22 },
11111113
{ .compatible = "qcom,pmi8994-gpio", .data = (void *) 10 },

0 commit comments

Comments
 (0)