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

pinctrl: qcom: msm8974: 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-3-matti.lehtimaki@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Matti Lehtimäki and committed by
Linus Walleij
1d4b7855 259fe3cb

+12
+12
drivers/pinctrl/qcom/pinctrl-msm8x74.c
··· 1045 1045 1046 1046 #define NUM_GPIO_PINGROUPS 146 1047 1047 1048 + static const struct msm_gpio_wakeirq_map msm8x74_mpm_map[] = { 1049 + { 1, 4 }, { 5, 5 }, { 9, 6 }, { 18, 7 }, { 20, 8 }, { 24, 9 }, 1050 + { 27, 10 }, { 28, 11 }, { 34, 12 }, { 35, 13 }, { 37, 14 }, { 42, 15 }, 1051 + { 44, 16 }, { 46, 17 }, { 50, 18 }, { 54, 19 }, { 59, 20 }, { 61, 21 }, 1052 + { 62, 22 }, { 64, 23 }, { 65, 24 }, { 66, 25 }, { 67, 26 }, { 68, 27 }, 1053 + { 71, 28 }, { 72, 29 }, { 73, 30 }, { 74, 31 }, { 75, 32 }, { 77, 33 }, 1054 + { 79, 34 }, { 80, 35 }, { 82, 36 }, { 86, 37 }, { 92, 38 }, { 93, 39 }, 1055 + { 95, 40 }, { 102, 3 }, { 144, 41 }, 1056 + }; 1057 + 1048 1058 static const struct msm_pinctrl_soc_data msm8x74_pinctrl = { 1049 1059 .pins = msm8x74_pins, 1050 1060 .npins = ARRAY_SIZE(msm8x74_pins), ··· 1063 1053 .groups = msm8x74_groups, 1064 1054 .ngroups = ARRAY_SIZE(msm8x74_groups), 1065 1055 .ngpios = NUM_GPIO_PINGROUPS, 1056 + .wakeirq_map = msm8x74_mpm_map, 1057 + .nwakeirq_map = ARRAY_SIZE(msm8x74_mpm_map), 1066 1058 }; 1067 1059 1068 1060 static int msm8x74_pinctrl_probe(struct platform_device *pdev)