Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: qcom: msm8226: Add MPM pin mappings

Add pin <-> wakeirq mappings to allow for waking up the AP from sleep
through MPM-connected pins.

Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Reviewed-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20230923131432.21721-2-matti.lehtimaki@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Matti Lehtimäki and committed by
Linus Walleij
259fe3cb ba369b3b

+12
+12
drivers/pinctrl/qcom/pinctrl-msm8226.c
··· 616 616 617 617 #define NUM_GPIO_PINGROUPS 117 618 618 619 + static const struct msm_gpio_wakeirq_map msm8226_mpm_map[] = { 620 + { 1, 3 }, { 4, 4 }, { 5, 5 }, { 9, 6 }, { 13, 7 }, { 17, 8 }, 621 + { 21, 9 }, { 27, 10 }, { 29, 11 }, { 31, 12 }, { 33, 13 }, { 35, 14 }, 622 + { 37, 15 }, { 38, 16 }, { 39, 17 }, { 41, 18 }, { 46, 19 }, { 48, 20 }, 623 + { 49, 21 }, { 50, 22 }, { 51, 23 }, { 52, 24 }, { 54, 25 }, { 62, 26 }, 624 + { 63, 27 }, { 64, 28 }, { 65, 29 }, { 66, 30 }, { 67, 31 }, { 68, 32 }, 625 + { 69, 33 }, { 71, 34 }, { 72, 35 }, { 106, 36 }, { 107, 37 }, { 108, 38 }, 626 + { 109, 39 }, { 110, 40 }, { 111, 54 }, { 113, 55 }, { 115, 41 }, 627 + }; 628 + 619 629 static const struct msm_pinctrl_soc_data msm8226_pinctrl = { 620 630 .pins = msm8226_pins, 621 631 .npins = ARRAY_SIZE(msm8226_pins), ··· 634 624 .groups = msm8226_groups, 635 625 .ngroups = ARRAY_SIZE(msm8226_groups), 636 626 .ngpios = NUM_GPIO_PINGROUPS, 627 + .wakeirq_map = msm8226_mpm_map, 628 + .nwakeirq_map = ARRAY_SIZE(msm8226_mpm_map), 637 629 }; 638 630 639 631 static int msm8226_pinctrl_probe(struct platform_device *pdev)