* [PATCH v2 0/2] MPM pin mappings for MSM8226 and MSM8974 @ 2023-09-23 13:14 Matti Lehtimäki 2023-09-23 13:14 ` [PATCH v2 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings Matti Lehtimäki 2023-09-23 13:14 ` [PATCH v2 2/2] pinctrl: qcom: msm8974: " Matti Lehtimäki 0 siblings, 2 replies; 5+ messages in thread From: Matti Lehtimäki @ 2023-09-23 13:14 UTC (permalink / raw) To: linux-arm-msm Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki, linux-gpio, linux-kernel This series adds the MPM wakeirq mappings for MSM8226 and MSM8974. Changes in v2: - Add missing entry to MSM8226 mapping - Add Reviewed-by tag to MSM8974 patch Matti Lehtimäki (2): pinctrl: qcom: msm8226: Add MPM pin mappings pinctrl: qcom: msm8974: Add MPM pin mappings drivers/pinctrl/qcom/pinctrl-msm8226.c | 12 ++++++++++++ drivers/pinctrl/qcom/pinctrl-msm8x74.c | 12 ++++++++++++ 2 files changed, 24 insertions(+) -- 2.39.2 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings 2023-09-23 13:14 [PATCH v2 0/2] MPM pin mappings for MSM8226 and MSM8974 Matti Lehtimäki @ 2023-09-23 13:14 ` Matti Lehtimäki 2023-09-23 13:20 ` Luca Weiss 2023-09-27 8:44 ` Linus Walleij 2023-09-23 13:14 ` [PATCH v2 2/2] pinctrl: qcom: msm8974: " Matti Lehtimäki 1 sibling, 2 replies; 5+ messages in thread From: Matti Lehtimäki @ 2023-09-23 13:14 UTC (permalink / raw) To: linux-arm-msm Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki, Bjorn Andersson, Andy Gross, Konrad Dybcio, Linus Walleij, linux-gpio, linux-kernel 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> --- Changes in v2: - Add missing entry to mapping --- drivers/pinctrl/qcom/pinctrl-msm8226.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-msm8226.c b/drivers/pinctrl/qcom/pinctrl-msm8226.c index 994619840a70..4030baa3715f 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm8226.c +++ b/drivers/pinctrl/qcom/pinctrl-msm8226.c @@ -612,6 +612,16 @@ static const struct msm_pingroup msm8226_groups[] = { #define NUM_GPIO_PINGROUPS 117 +static const struct msm_gpio_wakeirq_map msm8226_mpm_map[] = { + { 1, 3 }, { 4, 4 }, { 5, 5 }, { 9, 6 }, { 13, 7 }, { 17, 8 }, + { 21, 9 }, { 27, 10 }, { 29, 11 }, { 31, 12 }, { 33, 13 }, { 35, 14 }, + { 37, 15 }, { 38, 16 }, { 39, 17 }, { 41, 18 }, { 46, 19 }, { 48, 20 }, + { 49, 21 }, { 50, 22 }, { 51, 23 }, { 52, 24 }, { 54, 25 }, { 62, 26 }, + { 63, 27 }, { 64, 28 }, { 65, 29 }, { 66, 30 }, { 67, 31 }, { 68, 32 }, + { 69, 33 }, { 71, 34 }, { 72, 35 }, { 106, 36 }, { 107, 37 }, { 108, 38 }, + { 109, 39 }, { 110, 40 }, { 111, 54 }, { 113, 55 }, { 115, 41 }, +}; + static const struct msm_pinctrl_soc_data msm8226_pinctrl = { .pins = msm8226_pins, .npins = ARRAY_SIZE(msm8226_pins), @@ -620,6 +630,8 @@ static const struct msm_pinctrl_soc_data msm8226_pinctrl = { .groups = msm8226_groups, .ngroups = ARRAY_SIZE(msm8226_groups), .ngpios = NUM_GPIO_PINGROUPS, + .wakeirq_map = msm8226_mpm_map, + .nwakeirq_map = ARRAY_SIZE(msm8226_mpm_map), }; static int msm8226_pinctrl_probe(struct platform_device *pdev) -- 2.39.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings 2023-09-23 13:14 ` [PATCH v2 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings Matti Lehtimäki @ 2023-09-23 13:20 ` Luca Weiss 2023-09-27 8:44 ` Linus Walleij 1 sibling, 0 replies; 5+ messages in thread From: Luca Weiss @ 2023-09-23 13:20 UTC (permalink / raw) To: linux-arm-msm, ~postmarketos/upstreaming Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki, Bjorn Andersson, Andy Gross, Konrad Dybcio, Linus Walleij, linux-gpio, linux-kernel, Matti Lehtimäki On Samstag, 23. September 2023 15:14:31 CEST Matti Lehtimäki wrote: > 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> Looks good now :) Reviewed-by: Luca Weiss <luca@z3ntu.xyz> > --- > Changes in v2: > - Add missing entry to mapping > --- > drivers/pinctrl/qcom/pinctrl-msm8226.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/pinctrl/qcom/pinctrl-msm8226.c > b/drivers/pinctrl/qcom/pinctrl-msm8226.c index 994619840a70..4030baa3715f > 100644 > --- a/drivers/pinctrl/qcom/pinctrl-msm8226.c > +++ b/drivers/pinctrl/qcom/pinctrl-msm8226.c > @@ -612,6 +612,16 @@ static const struct msm_pingroup msm8226_groups[] = { > > #define NUM_GPIO_PINGROUPS 117 > > +static const struct msm_gpio_wakeirq_map msm8226_mpm_map[] = { > + { 1, 3 }, { 4, 4 }, { 5, 5 }, { 9, 6 }, { 13, 7 }, { 17, 8 }, > + { 21, 9 }, { 27, 10 }, { 29, 11 }, { 31, 12 }, { 33, 13 }, { 35, 14 }, > + { 37, 15 }, { 38, 16 }, { 39, 17 }, { 41, 18 }, { 46, 19 }, { 48, 20 }, > + { 49, 21 }, { 50, 22 }, { 51, 23 }, { 52, 24 }, { 54, 25 }, { 62, 26 }, > + { 63, 27 }, { 64, 28 }, { 65, 29 }, { 66, 30 }, { 67, 31 }, { 68, 32 }, > + { 69, 33 }, { 71, 34 }, { 72, 35 }, { 106, 36 }, { 107, 37 }, { 108, 38 }, > + { 109, 39 }, { 110, 40 }, { 111, 54 }, { 113, 55 }, { 115, 41 }, +}; > + > static const struct msm_pinctrl_soc_data msm8226_pinctrl = { > .pins = msm8226_pins, > .npins = ARRAY_SIZE(msm8226_pins), > @@ -620,6 +630,8 @@ static const struct msm_pinctrl_soc_data msm8226_pinctrl > = { .groups = msm8226_groups, > .ngroups = ARRAY_SIZE(msm8226_groups), > .ngpios = NUM_GPIO_PINGROUPS, > + .wakeirq_map = msm8226_mpm_map, > + .nwakeirq_map = ARRAY_SIZE(msm8226_mpm_map), > }; > > static int msm8226_pinctrl_probe(struct platform_device *pdev) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings 2023-09-23 13:14 ` [PATCH v2 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings Matti Lehtimäki 2023-09-23 13:20 ` Luca Weiss @ 2023-09-27 8:44 ` Linus Walleij 1 sibling, 0 replies; 5+ messages in thread From: Linus Walleij @ 2023-09-27 8:44 UTC (permalink / raw) To: Matti Lehtimäki Cc: linux-arm-msm, ~postmarketos/upstreaming, phone-devel, Bjorn Andersson, Andy Gross, Konrad Dybcio, linux-gpio, linux-kernel On Sat, Sep 23, 2023 at 3:14 PM Matti Lehtimäki <matti.lehtimaki@gmail.com> wrote: > 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> Both v2 patches applied! Yours, Linus Walleij ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] pinctrl: qcom: msm8974: Add MPM pin mappings 2023-09-23 13:14 [PATCH v2 0/2] MPM pin mappings for MSM8226 and MSM8974 Matti Lehtimäki 2023-09-23 13:14 ` [PATCH v2 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings Matti Lehtimäki @ 2023-09-23 13:14 ` Matti Lehtimäki 1 sibling, 0 replies; 5+ messages in thread From: Matti Lehtimäki @ 2023-09-23 13:14 UTC (permalink / raw) To: linux-arm-msm Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki, Luca Weiss, Bjorn Andersson, Andy Gross, Konrad Dybcio, Linus Walleij, linux-gpio, linux-kernel 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> --- Changes in v2: - Add Reviewed-by tag --- drivers/pinctrl/qcom/pinctrl-msm8x74.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-msm8x74.c b/drivers/pinctrl/qcom/pinctrl-msm8x74.c index d5fe62992849..238c83f6ec4f 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm8x74.c +++ b/drivers/pinctrl/qcom/pinctrl-msm8x74.c @@ -1045,6 +1045,16 @@ static const struct msm_pingroup msm8x74_groups[] = { #define NUM_GPIO_PINGROUPS 146 +static const struct msm_gpio_wakeirq_map msm8x74_mpm_map[] = { + { 1, 4 }, { 5, 5 }, { 9, 6 }, { 18, 7 }, { 20, 8 }, { 24, 9 }, + { 27, 10 }, { 28, 11 }, { 34, 12 }, { 35, 13 }, { 37, 14 }, { 42, 15 }, + { 44, 16 }, { 46, 17 }, { 50, 18 }, { 54, 19 }, { 59, 20 }, { 61, 21 }, + { 62, 22 }, { 64, 23 }, { 65, 24 }, { 66, 25 }, { 67, 26 }, { 68, 27 }, + { 71, 28 }, { 72, 29 }, { 73, 30 }, { 74, 31 }, { 75, 32 }, { 77, 33 }, + { 79, 34 }, { 80, 35 }, { 82, 36 }, { 86, 37 }, { 92, 38 }, { 93, 39 }, + { 95, 40 }, { 102, 3 }, { 144, 41 }, +}; + static const struct msm_pinctrl_soc_data msm8x74_pinctrl = { .pins = msm8x74_pins, .npins = ARRAY_SIZE(msm8x74_pins), @@ -1053,6 +1063,8 @@ static const struct msm_pinctrl_soc_data msm8x74_pinctrl = { .groups = msm8x74_groups, .ngroups = ARRAY_SIZE(msm8x74_groups), .ngpios = NUM_GPIO_PINGROUPS, + .wakeirq_map = msm8x74_mpm_map, + .nwakeirq_map = ARRAY_SIZE(msm8x74_mpm_map), }; static int msm8x74_pinctrl_probe(struct platform_device *pdev) -- 2.39.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-09-27 8:44 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-09-23 13:14 [PATCH v2 0/2] MPM pin mappings for MSM8226 and MSM8974 Matti Lehtimäki 2023-09-23 13:14 ` [PATCH v2 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings Matti Lehtimäki 2023-09-23 13:20 ` Luca Weiss 2023-09-27 8:44 ` Linus Walleij 2023-09-23 13:14 ` [PATCH v2 2/2] pinctrl: qcom: msm8974: " Matti Lehtimäki
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).