ipq807x: switch to kernel 6.1
[openwrt/staging/hauke.git] / target / linux / ipq807x / patches-5.15 / 0064-v6.0-pinctrl-qcom-pmic-gpio-add-support-for-PMP8074.patch
1 From 204cd3516f59eb7040b814429187e674f49ba065 Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Mon, 11 Jul 2022 22:34:05 +0200
4 Subject: [PATCH] pinctrl: qcom-pmic-gpio: add support for PMP8074
5
6 PMP8074 has 12 GPIO-s with holes on GPIO1 and GPIO12.
7
8 Signed-off-by: Robert Marko <robimarko@gmail.com>
9 Link: https://lore.kernel.org/r/20220711203408.2949888-4-robimarko@gmail.com
10 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
11 ---
12 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c
16 +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c
17 @@ -1167,6 +1167,8 @@ static const struct of_device_id pmic_gp
18 { .compatible = "qcom,pmi8998-gpio", .data = (void *) 14 },
19 { .compatible = "qcom,pmk8350-gpio", .data = (void *) 4 },
20 { .compatible = "qcom,pmm8155au-gpio", .data = (void *) 10 },
21 + /* pmp8074 has 12 GPIOs with holes on 1 and 12 */
22 + { .compatible = "qcom,pmp8074-gpio", .data = (void *) 12 },
23 { .compatible = "qcom,pmr735a-gpio", .data = (void *) 4 },
24 { .compatible = "qcom,pmr735b-gpio", .data = (void *) 4 },
25 /* pms405 has 12 GPIOs with holes on 1, 9, and 10 */