Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp224605rdh; Sat, 23 Sep 2023 07:57:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvB22c3TS98WQOeNyM09Q5PrR2osDknCSNbknHApu1UGjVsxuSaMzKpYUriIP7TegFIlTK X-Received: by 2002:a17:903:192:b0:1c3:8031:1d9e with SMTP id z18-20020a170903019200b001c380311d9emr2246919plg.15.1695481039586; Sat, 23 Sep 2023 07:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695481039; cv=none; d=google.com; s=arc-20160816; b=BYyMmUMnjMBqbZYsFnR+KZ/XJQ+tuIT5teoYNGRfQOutqzD2tp2iaMn29LCYHkI9gW VD7F1jo/g+lTVOfvAZEqKr9H9xeInCyFCa41WhT2IYWvFQsrm9BFY/+GPSFzzZMpCdoj A2XgWUFVOkwtMe8fg/wx6iRnh66s6IraHq8tOoYs7k36TLzvrCvbF+Qt2cVMypPDWSEq qg4H8tN1tQqHY68H7apaAT90JHN3TE0/f3TzjDuPt9GLsDpo964J/RkjjfUc5lyU/N3w NTXo2hLYfwG6i4907SFIDQeZ/ruuohrF4xSFlR4oG/yo0doFf+KYyylaMV1A4FhpI4lv +gqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=R5WuO/kIvwOA2l62shkA7IqyyLgqHQk3hs71zkcjwzA=; fh=yH4KQfy5tdTRYsScgTcPKWBPABMUFbe//dOqF0VNwc0=; b=gFMV1nFJVz4Jf/ympqy38QhLulYIFe9uY93SpLwLpndj6doH4KVIW5du4gK/S8ldZv ZPH4ELOKgW2XtGlRH5NOt68n1R9lFszLBvydUBNBJjXzyNvv4hnfwes4FxoEBoGb5nNb +16waSrmiuX3yFRql5cywF6wYVRkc3OIaGhzz3O2pIXcP4EUd5MqtmPIOYboWmCBbbHE ygkJrgwekDUIW8Q7a/oKgoH9YQJtZdjla5LF2B5+b1RQGMdt6cs87k0aHmtdim2dNoP+ 4iqC4lZNVAWczdcTqbnE+1Zt+Wj/td6A5sXGYfYckzmiKCzVTGXFAriled6PAqDtG2vJ 5UnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=E6p3uEeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id kx11-20020a170902f94b00b001c60636e426si758130plb.432.2023.09.23.07.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 07:57:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=E6p3uEeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 1DF8E83C23A2; Sat, 23 Sep 2023 04:53:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231479AbjIWLxZ (ORCPT + 99 others); Sat, 23 Sep 2023 07:53:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231446AbjIWLxX (ORCPT ); Sat, 23 Sep 2023 07:53:23 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03930199; Sat, 23 Sep 2023 04:53:17 -0700 (PDT) Received: from g550jk.localnet (k10064.upc-k.chello.nl [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 26024D0F49; Sat, 23 Sep 2023 11:52:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1695469965; bh=OKF1zzcs43ZDoi4cDiGqdLlW1pZIC+kMc6jGkGBwd0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=E6p3uEeWIWbNdfji9G0Dqf9szr70mHEXuu2bSClzufk+CT7OCosIoZBxpRe7elbZY cYGfeC/FXzvHXmtpY//wSNV1NA8CQeXmg3OOJo2fMJql4Trupg3PSq0uQd8cHFVyuZ KIhFlplG2nYWhtS7sG650wYiuwywHiUKqOs9nzqM= 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 2/2] pinctrl: qcom: msm8974: Add MPM pin mappings Date: Sat, 23 Sep 2023 13:52:44 +0200 Message-ID: <1769487.VLH7GnMWUR@z3ntu.xyz> In-Reply-To: <20230922224027.85291-3-matti.lehtimaki@gmail.com> References: <20230922224027.85291-1-matti.lehtimaki@gmail.com> <20230922224027.85291-3-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sat, 23 Sep 2023 04:53:31 -0700 (PDT) X-Spam-Level: ** On Samstag, 23. September 2023 00:40:27 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 Based on the discussion in the 8226 patch, this looks correct, compared wit= h=20 downstream arch/arm/boot/dts/msm8974pro-pm.dtsi. Reviewed-by: Luca Weiss > --- > drivers/pinctrl/qcom/pinctrl-msm8x74.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) >=20 > 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[] = =3D { >=20 > #define NUM_GPIO_PINGROUPS 146 >=20 > +static const struct msm_gpio_wakeirq_map msm8x74_mpm_map[] =3D { > + { 1, 4 }, { 5, 5 }, { 9, 6 }, { 18, 7 }, { 20, 8 }, { 24, 9 }, > + { 27, 10 }, { 28, 11 }, { 34, 12 }, { 35, 13 }, { 37, 14 }, { 42, 15=20 }, > + { 44, 16 }, { 46, 17 }, { 50, 18 }, { 54, 19 }, { 59, 20 }, { 61, 21=20 }, > + { 62, 22 }, { 64, 23 }, { 65, 24 }, { 66, 25 }, { 67, 26 }, { 68, 27=20 }, > + { 71, 28 }, { 72, 29 }, { 73, 30 }, { 74, 31 }, { 75, 32 }, { 77, 33=20 }, > + { 79, 34 }, { 80, 35 }, { 82, 36 }, { 86, 37 }, { 92, 38 }, { 93, 39=20 }, > + { 95, 40 }, { 102, 3 }, { 144, 41 }, > +}; > + > static const struct msm_pinctrl_soc_data msm8x74_pinctrl =3D { > .pins =3D msm8x74_pins, > .npins =3D ARRAY_SIZE(msm8x74_pins), > @@ -1053,6 +1063,8 @@ static const struct msm_pinctrl_soc_data > msm8x74_pinctrl =3D { .groups =3D msm8x74_groups, > .ngroups =3D ARRAY_SIZE(msm8x74_groups), > .ngpios =3D NUM_GPIO_PINGROUPS, > + .wakeirq_map =3D msm8x74_mpm_map, > + .nwakeirq_map =3D ARRAY_SIZE(msm8x74_mpm_map), > }; >=20 > static int msm8x74_pinctrl_probe(struct platform_device *pdev)