From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22916CE7A89 for ; Sat, 23 Sep 2023 13:21:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229643AbjIWNVb (ORCPT ); Sat, 23 Sep 2023 09:21:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbjIWNVa (ORCPT ); Sat, 23 Sep 2023 09:21:30 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EDFE11D; Sat, 23 Sep 2023 06:21:24 -0700 (PDT) Received: from g550jk.localnet (k10064.upc-k.chello.nl [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 504B8D0F49; Sat, 23 Sep 2023 13:20:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1695475252; bh=iHvBiQzorU0EG6kr/U8qttUZDmGPcm76uY0tqu2HcNo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ebZzoxdWLbWYX/Or2eyq2ZhgXvDatM9iwHqwO2K0KhZMXy77gGYA6bPNcij9tTraY hyZ7MVaTnCemeQcnYgJ9TFtuuHz9MPvE5ZSll6zxlUNFQw91wwlkJBy3LZ82HS9STJ WuoFvJ1l+t4UVlfHtV8UsSV6XovH8sKTOLFm098Q= From: Luca Weiss To: linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Matti =?ISO-8859-1?Q?Lehtim=E4ki?= , Bjorn Andersson , Andy Gross , Konrad Dybcio , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Matti =?ISO-8859-1?Q?Lehtim=E4ki?= Subject: Re: [PATCH v2 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings Date: Sat, 23 Sep 2023 15:20:51 +0200 Message-ID: <1866740.CQOukoFCf9@z3ntu.xyz> In-Reply-To: <20230923131432.21721-2-matti.lehtimaki@gmail.com> References: <20230923131432.21721-1-matti.lehtimaki@gmail.com> <20230923131432.21721-2-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Samstag, 23. September 2023 15:14:31 CEST Matti Lehtim=E4ki wrote: > Add pin <-> wakeirq mappings to allow for waking up the AP from sleep > through MPM-connected pins. >=20 > Signed-off-by: Matti Lehtim=E4ki Looks good now :) Reviewed-by: Luca Weiss > --- > Changes in v2: > - Add missing entry to mapping > --- > drivers/pinctrl/qcom/pinctrl-msm8226.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) >=20 > 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[] = =3D { >=20 > #define NUM_GPIO_PINGROUPS 117 >=20 > +static const struct msm_gpio_wakeirq_map msm8226_mpm_map[] =3D { > + { 1, 3 }, { 4, 4 }, { 5, 5 }, { 9, 6 }, { 13, 7 }, { 17, 8 }, > + { 21, 9 }, { 27, 10 }, { 29, 11 }, { 31, 12 }, { 33, 13 }, { 35, 14=20 }, > + { 37, 15 }, { 38, 16 }, { 39, 17 }, { 41, 18 }, { 46, 19 }, { 48, 20=20 }, > + { 49, 21 }, { 50, 22 }, { 51, 23 }, { 52, 24 }, { 54, 25 }, { 62, 26=20 }, > + { 63, 27 }, { 64, 28 }, { 65, 29 }, { 66, 30 }, { 67, 31 }, { 68, 32=20 }, > + { 69, 33 }, { 71, 34 }, { 72, 35 }, { 106, 36 }, { 107, 37 }, { 108,=20 38 }, > + { 109, 39 }, { 110, 40 }, { 111, 54 }, { 113, 55 }, { 115, 41 }, +}; > + > static const struct msm_pinctrl_soc_data msm8226_pinctrl =3D { > .pins =3D msm8226_pins, > .npins =3D ARRAY_SIZE(msm8226_pins), > @@ -620,6 +630,8 @@ static const struct msm_pinctrl_soc_data msm8226_pinc= trl > =3D { .groups =3D msm8226_groups, > .ngroups =3D ARRAY_SIZE(msm8226_groups), > .ngpios =3D NUM_GPIO_PINGROUPS, > + .wakeirq_map =3D msm8226_mpm_map, > + .nwakeirq_map =3D ARRAY_SIZE(msm8226_mpm_map), > }; >=20 > static int msm8226_pinctrl_probe(struct platform_device *pdev)