All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pinctrl: qcom: sm8250: Specify PDC map
@ 2020-10-28  4:36 Bjorn Andersson
  2020-11-05 13:59 ` Linus Walleij
  0 siblings, 1 reply; 5+ messages in thread
From: Bjorn Andersson @ 2020-10-28  4:36 UTC (permalink / raw)
  To: Dmitry Baryshkov, Bjorn Andersson, Andy Gross, Linus Walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel

Specify the PDC mapping for SM8250, so that gpio interrupts are
propertly mapped to the wakeup IRQs of the PDC.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 drivers/pinctrl/qcom/pinctrl-sm8250.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/drivers/pinctrl/qcom/pinctrl-sm8250.c b/drivers/pinctrl/qcom/pinctrl-sm8250.c
index 826df0d637ea..af144e724bd9 100644
--- a/drivers/pinctrl/qcom/pinctrl-sm8250.c
+++ b/drivers/pinctrl/qcom/pinctrl-sm8250.c
@@ -1313,6 +1313,22 @@ static const struct msm_pingroup sm8250_groups[] = {
 	[183] = SDC_PINGROUP(sdc2_data, 0xb7000, 9, 0),
 };
 
+static const struct msm_gpio_wakeirq_map sm8250_pdc_map[] = {
+	{ 0, 79 }, { 1, 84 }, { 2, 80 }, { 3, 82 }, { 4, 107 }, { 7, 43 },
+	{ 11, 42 }, { 14, 44 }, { 15, 52 }, { 19, 67 }, { 23, 68 }, { 24, 105 },
+	{ 27, 92 }, { 28, 106 }, { 31, 69 }, { 35, 70 }, { 39, 37 },
+	{ 40, 108 }, { 43, 71 }, { 45, 72 }, { 47, 83 }, { 51, 74 }, { 55, 77 },
+	{ 59, 78 }, { 63, 75 }, { 64, 81 }, { 65, 87 }, { 66, 88 }, { 67, 89 },
+	{ 68, 54 }, { 70, 85 }, { 77, 46 }, { 80, 90 }, { 81, 91 }, { 83, 97 },
+	{ 84, 98 }, { 86, 99 }, { 87, 100 }, { 88, 101 }, { 89, 102 },
+	{ 92, 103 }, { 93, 104 }, { 100, 53 }, { 103, 47 }, { 104, 48 },
+	{ 108, 49 }, { 109, 94 }, { 110, 95 }, { 111, 96 }, { 112, 55 },
+	{ 113, 56 }, { 118, 50 }, { 121, 51 }, { 122, 57 }, { 123, 58 },
+	{ 124, 45 }, { 126, 59 }, { 128, 76 }, { 129, 86 }, { 132, 93 },
+	{ 133, 65 }, { 134, 66 }, { 136, 62 }, { 137, 63 }, { 138, 64 },
+	{ 142, 60 }, { 143, 61 }
+};
+
 static const struct msm_pinctrl_soc_data sm8250_pinctrl = {
 	.pins = sm8250_pins,
 	.npins = ARRAY_SIZE(sm8250_pins),
@@ -1323,6 +1339,8 @@ static const struct msm_pinctrl_soc_data sm8250_pinctrl = {
 	.ngpios = 181,
 	.tiles = sm8250_tiles,
 	.ntiles = ARRAY_SIZE(sm8250_tiles),
+	.wakeirq_map = sm8250_pdc_map,
+	.nwakeirq_map = ARRAY_SIZE(sm8250_pdc_map),
 };
 
 static int sm8250_pinctrl_probe(struct platform_device *pdev)
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] pinctrl: qcom: sm8250: Specify PDC map
  2020-10-28  4:36 [PATCH] pinctrl: qcom: sm8250: Specify PDC map Bjorn Andersson
@ 2020-11-05 13:59 ` Linus Walleij
  2020-11-05 15:01   ` Dmitry Baryshkov
  0 siblings, 1 reply; 5+ messages in thread
From: Linus Walleij @ 2020-11-05 13:59 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Dmitry Baryshkov, Andy Gross, MSM, open list:GPIO SUBSYSTEM,
	linux-kernel

On Wed, Oct 28, 2020 at 5:36 AM Bjorn Andersson
<bjorn.andersson@linaro.org> wrote:

> Specify the PDC mapping for SM8250, so that gpio interrupts are
> propertly mapped to the wakeup IRQs of the PDC.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Patch applied for next (v5.11).

If this is urgent and needs to go into fixes, just provide me
a Fixes: tag and I will move it to the fixes branch.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pinctrl: qcom: sm8250: Specify PDC map
  2020-11-05 13:59 ` Linus Walleij
@ 2020-11-05 15:01   ` Dmitry Baryshkov
  2020-11-10 13:57     ` Linus Walleij
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Baryshkov @ 2020-11-05 15:01 UTC (permalink / raw)
  To: Linus Walleij, Bjorn Andersson
  Cc: Andy Gross, MSM, open list:GPIO SUBSYSTEM, linux-kernel

On 05/11/2020 16:59, Linus Walleij wrote:
> On Wed, Oct 28, 2020 at 5:36 AM Bjorn Andersson
> <bjorn.andersson@linaro.org> wrote:
> 
>> Specify the PDC mapping for SM8250, so that gpio interrupts are
>> propertly mapped to the wakeup IRQs of the PDC.
>>
>> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> 
> Patch applied for next (v5.11).
> 
> If this is urgent and needs to go into fixes, just provide me
> a Fixes: tag and I will move it to the fixes branch.

Yes, please:

Fixes: 4e3ec9e407ad ("pinctrl: qcom: Add sm8250 pinctrl driver.")

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pinctrl: qcom: sm8250: Specify PDC map
  2020-11-05 15:01   ` Dmitry Baryshkov
@ 2020-11-10 13:57     ` Linus Walleij
  2020-11-10 14:14       ` Dmitry Baryshkov
  0 siblings, 1 reply; 5+ messages in thread
From: Linus Walleij @ 2020-11-10 13:57 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Bjorn Andersson, Andy Gross, MSM, open list:GPIO SUBSYSTEM, linux-kernel

On Thu, Nov 5, 2020 at 4:01 PM Dmitry Baryshkov
<dmitry.baryshkov@linaro.org> wrote:
> On 05/11/2020 16:59, Linus Walleij wrote:
> > On Wed, Oct 28, 2020 at 5:36 AM Bjorn Andersson
> > <bjorn.andersson@linaro.org> wrote:
> >
> >> Specify the PDC mapping for SM8250, so that gpio interrupts are
> >> propertly mapped to the wakeup IRQs of the PDC.
> >>
> >> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> >
> > Patch applied for next (v5.11).
> >
> > If this is urgent and needs to go into fixes, just provide me
> > a Fixes: tag and I will move it to the fixes branch.
>
> Yes, please:
>
> Fixes: 4e3ec9e407ad ("pinctrl: qcom: Add sm8250 pinctrl driver.")

OK moved this over to fixes and added the tag.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pinctrl: qcom: sm8250: Specify PDC map
  2020-11-10 13:57     ` Linus Walleij
@ 2020-11-10 14:14       ` Dmitry Baryshkov
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Baryshkov @ 2020-11-10 14:14 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Bjorn Andersson, Andy Gross, MSM, open list:GPIO SUBSYSTEM, linux-kernel

On Tue, 10 Nov 2020 at 16:58, Linus Walleij <linus.walleij@linaro.org> wrote:
>
> On Thu, Nov 5, 2020 at 4:01 PM Dmitry Baryshkov
> <dmitry.baryshkov@linaro.org> wrote:
> > On 05/11/2020 16:59, Linus Walleij wrote:
> > > On Wed, Oct 28, 2020 at 5:36 AM Bjorn Andersson
> > > <bjorn.andersson@linaro.org> wrote:
> > >
> > >> Specify the PDC mapping for SM8250, so that gpio interrupts are
> > >> propertly mapped to the wakeup IRQs of the PDC.
> > >>
> > >> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> > >
> > > Patch applied for next (v5.11).
> > >
> > > If this is urgent and needs to go into fixes, just provide me
> > > a Fixes: tag and I will move it to the fixes branch.
> >
> > Yes, please:
> >
> > Fixes: 4e3ec9e407ad ("pinctrl: qcom: Add sm8250 pinctrl driver.")
>
> OK moved this over to fixes and added the tag.

Thank you!


-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-10 14:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-28  4:36 [PATCH] pinctrl: qcom: sm8250: Specify PDC map Bjorn Andersson
2020-11-05 13:59 ` Linus Walleij
2020-11-05 15:01   ` Dmitry Baryshkov
2020-11-10 13:57     ` Linus Walleij
2020-11-10 14:14       ` Dmitry Baryshkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.