From patchwork Wed Aug 9 19:38:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 133601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp44941vqi; Wed, 9 Aug 2023 15:26:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRvU6kq39tbl4yfYLSkNtwIK+M3cBLimtpQYDtueNAsmlTgOdB8pl6wZdhas8Ie7SkHImH X-Received: by 2002:a17:907:75ca:b0:993:da87:1c81 with SMTP id jl10-20020a17090775ca00b00993da871c81mr291828ejc.20.1691619983050; Wed, 09 Aug 2023 15:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691619983; cv=none; d=google.com; s=arc-20160816; b=pfXUU02v0bSiaBtH2E0HKxu85CMrnqw++TTVSPiqEj4yXXQ5iBujden958Ij75KBnY GtQ/AuFeZwB4Kd428TKWus2Ve3cjh+yyuebUyS1pcFkto9LqTQ6euFUp1Q5zX7U7SSMg o+iIPmJuYFRf/g0JRh8w63BPM6iUjCt/VdA68yugVAgNl56q+FKaTGSljJs75Fj4KZZd nAfEr9w8K++gGuftltRYNBbj64u3dFlVtxJjvSkeJvC3C1NT6Zz2pbccS8q19JYzv9Mf 8B1XLsxms4HEWrUSo6UxwQkxQcUkvIdNBRPevaKyDjNjgDzSLmJbLb1cC+XB6/DxwdOS PXJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=L/ZCzffNd4VjgfPfI3FvCPGEBawQZB9kqBgHWNy6ki8=; fh=Q7377YtYPxEK2mHohJ7HS85471CKYZKSZEjsfZ022V4=; b=CZBJAbOadN6tDkd0bz6mQ039RzbdxORcXHHFBkfW4YZ4nawFbJckFhyTMTylE4hmFu X09CHaOVYN58IG5U3cJ7d2NHgW/8SGlwwiYXJ3w68VAYx93T2J3IJnngyStU9JTFNBiM ZmwGKwTtvf+hc1bJeEEKPLQqB7mNpzheMCQPm/bcUNdlzpaCE1TSUmeDMcYZq25LUjQr /2fdu+r7ghUkgoxjSEMjMW5x7It2jmqZnsZRBxJH3Q2mbA5OZxa4xTPw89bTdPWc0eCJ Z31KLD8uBOyjnNDdP+tH2AhGHdS4QK3wiwaEkdv2tDpeDvJ7bRPQS3PVX8IWaM93gNC7 IB7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W6DC5u2z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lh14-20020a170906f8ce00b0099332c48e49si161352ejb.133.2023.08.09.15.25.35; Wed, 09 Aug 2023 15:26:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W6DC5u2z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233922AbjHITjN (ORCPT + 99 others); Wed, 9 Aug 2023 15:39:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233406AbjHITjM (ORCPT ); Wed, 9 Aug 2023 15:39:12 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 773F110DA for ; Wed, 9 Aug 2023 12:39:11 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b72161c6e9so15411901fa.0 for ; Wed, 09 Aug 2023 12:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691609950; x=1692214750; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=L/ZCzffNd4VjgfPfI3FvCPGEBawQZB9kqBgHWNy6ki8=; b=W6DC5u2ztKlZ6rKzWGCpk0KZHaZCvGOVzHvJ1QLxXNCV6FoYgB38PohUvaDpxZgGHw kSSjj31ZJMVDUDZVclLt8MunljCGYsTU0bAWBuX4HGRWOJQ3cPKSHuazQYwbfpMeY7Zo 0yECewWD7YzNj2bgr+c8vxEb3JT6/rKVoWgGZEYDz7XXz86hUS4s4Fg7JBJyZRh2gOXb v/9zNjd7W9ooqZsgyq13tQVFnAcMKE5BKHC/2KTLtZNM41KRCTkZyJoEQmAvCkUQBeaJ awazdnn7pETP44FxuFdzdgnihm8p9I1yLR4M/AZVHW2PkYbK5DWD9fYGCApuFi/nZHKS p09g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691609950; x=1692214750; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L/ZCzffNd4VjgfPfI3FvCPGEBawQZB9kqBgHWNy6ki8=; b=PkjbeCR+thUQZ68HVb33/TEeIaVe7CFsu2IX1gjpg7eNe5SbAa10Q8RNNnr2aTqLfn rB0SoN0qLSBdW2Vm5a+pm7F/RRt78KlYo2JWwlx0W0RmrqMMsQhzjkUj5buFXRCmCwwY Y69LoQp4/6JJW9WztcP4JCl+1R+c5lb4v8L3YNrGD5H6L/ohvolRZKtAYqHYgzOQAG5l fUiwoJn2HP6Fmr7nj2ISJo5XJkATf8UHF9UJYoTxL23whH+A/stv0hCBW/R1CiHLwCJh O/epwfoLXUfJNXPuF8ijo6nA6AbgAuODG9cUkgz1+/2Tree1wKQxHM0iLDuatFS+w9nT KKUg== X-Gm-Message-State: AOJu0YyVC71Odt8uvIHKUwHr+cK80GnaoSiShFrpBdd3A4IymyOPgQxR KfuqkqJGrJt8fXh3xlSGoeTL1qcd/OEuvPHkVok= X-Received: by 2002:a05:651c:c91:b0:2b9:e705:6303 with SMTP id bz17-20020a05651c0c9100b002b9e7056303mr215972ljb.4.1691609949650; Wed, 09 Aug 2023 12:39:09 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id x6-20020a2e9c86000000b002b9fe77d00dsm2885287lji.93.2023.08.09.12.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 12:39:09 -0700 (PDT) From: Konrad Dybcio Date: Wed, 09 Aug 2023 21:38:54 +0200 Subject: [PATCH 1/5] pinctrl: qcom: msm8998: Fix MPM mappings MIME-Version: 1.0 Message-Id: <20230809-topic-mpm_mappings-v1-1-5e17dd76b3c8@linaro.org> References: <20230809-topic-mpm_mappings-v1-0-5e17dd76b3c8@linaro.org> In-Reply-To: <20230809-topic-mpm_mappings-v1-0-5e17dd76b3c8@linaro.org> To: Andy Gross , Bjorn Andersson , Linus Walleij Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691609947; l=2512; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=hCfkcXPkFWRhbSb1h+V6CJXQhWHaCdAB8TPVfPD9pXM=; b=S8jiSSCI5NcJ3Fq5TU/y5Yf0Pu1Z4aSwXDxAv9ccPX9HiW/hlU9rRM/sHWbZ50t6iK10+z8r/ 4sRvLNwCrsIBOzGkAtxxfKzboXAWnNb0p8oMCEuAzwfO3d5PyEz8Ske X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773792115591184574 X-GMAIL-MSGID: 1773792115591184574 Commit 29f6e7e379fd ("pinctrl: qcom: msm8998: Add MPM pin mappings") added a map of pins <-> wakeirqs. The values in each tuple were swapped and the last one was missing. Fix that. Fixes: 29f6e7e379fd ("pinctrl: qcom: msm8998: Add MPM pin mappings") Signed-off-by: Konrad Dybcio --- drivers/pinctrl/qcom/pinctrl-msm8998.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm8998.c b/drivers/pinctrl/qcom/pinctrl-msm8998.c index b7cbf32b3125..08d6e555652a 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm8998.c +++ b/drivers/pinctrl/qcom/pinctrl-msm8998.c @@ -1496,15 +1496,16 @@ static const struct msm_pingroup msm8998_groups[] = { }; static const struct msm_gpio_wakeirq_map msm8998_mpm_map[] = { - { 1, 3 }, { 5, 4 }, { 9, 5 }, { 11, 6 }, { 22, 8 }, { 24, 9 }, { 26, 10 }, - { 34, 11 }, { 36, 12 }, { 37, 13 }, { 38, 14 }, { 40, 15 }, { 42, 16 }, { 46, 17 }, - { 50, 18 }, { 53, 19 }, { 54, 20 }, { 56, 21 }, { 57, 22 }, { 58, 23 }, { 59, 24 }, - { 60, 25 }, { 61, 26 }, { 62, 27 }, { 63, 28 }, { 64, 29 }, { 66, 7 }, { 71, 30 }, - { 73, 31 }, { 77, 32 }, { 78, 33 }, { 79, 34 }, { 80, 35 }, { 82, 36 }, { 86, 37 }, - { 91, 38 }, { 92, 39 }, { 95, 40 }, { 97, 41 }, { 101, 42 }, { 104, 43 }, { 106, 44 }, - { 108, 45 }, { 110, 48 }, { 112, 46 }, { 113, 47 }, { 115, 51 }, { 116, 54 }, { 117, 55 }, - { 118, 56 }, { 119, 57 }, { 120, 58 }, { 121, 59 }, { 122, 60 }, { 123, 61 }, { 124, 62 }, - { 125, 63 }, { 126, 64 }, { 127, 50 }, { 129, 65 }, { 131, 66 }, { 132, 67 }, { 133, 68 }, + { 3, 1 }, { 4, 5 }, { 5, 9 }, { 6, 11 }, { 8, 22 }, { 9, 24 }, { 10, 26 }, + { 11, 34 }, { 12, 36 }, { 13, 37 }, { 14, 38 }, { 15, 40 }, { 16, 42 }, { 17, 46 }, + { 18, 50 }, { 19, 53 }, { 20, 54 }, { 21, 56 }, { 22, 57 }, { 23, 58 }, { 24, 59 }, + { 25, 60 }, { 26, 61 }, { 27, 62 }, { 28, 63 }, { 29, 64 }, { 7, 66 }, { 30, 71 }, + { 31, 73 }, { 32, 77 }, { 33, 78 }, { 34, 79 }, { 35, 80 }, { 36, 82 }, { 37, 86 }, + { 38, 91 }, { 39, 92 }, { 40, 95 }, { 41, 97 }, { 42, 101 }, { 43, 104 }, { 44, 106 }, + { 45, 108 }, { 48, 110 }, { 46, 112 }, { 47, 113 }, { 51, 115 }, { 54, 116 }, { 55, 117 }, + { 56, 118 }, { 57, 119 }, { 58, 120 }, { 59, 121 }, { 60, 122 }, { 61, 123 }, { 62, 124 }, + { 63, 125 }, { 64, 126 }, { 50, 127 }, { 65, 129 }, { 66, 131 }, { 67, 132 }, { 68, 133 }, + { 69, 145 }, }; static const struct msm_pinctrl_soc_data msm8998_pinctrl = { From patchwork Wed Aug 9 19:38:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 133580 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp39146vqi; Wed, 9 Aug 2023 15:14:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDrGJKQzEuxxpfSmvezHcubtUb70PTzToEEajP0BjN6jXIVN4VzsDPLynltohtwLG0ouY7 X-Received: by 2002:a17:906:53d3:b0:99b:ed8d:de4 with SMTP id p19-20020a17090653d300b0099bed8d0de4mr308173ejo.20.1691619256301; Wed, 09 Aug 2023 15:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691619256; cv=none; d=google.com; s=arc-20160816; b=fbvaadVInTSDmfDOQlis8SLN+Sn00M2Cyx5iq+tbfAP2/C/cHwGH7Lp5vTxcfcUJvh w08cORctqwt6O5gy7CmiopZYIdmvKBnCzQJzRhhAU4JhDQsOd13ul/iUMYY2Zl568txC iGlDb0cpd7fWu3maX4At4bpPY2WXsJ+eVPoZ4ZDmw7Xbxrd1QcFT/ZhKscRti1sOT5ti g0ILVmclZ9Vnt/Or6amHyisDSOKrosKP6lgwszXjAn0vY0yg4lCz0lU9vBKXWgbO1gQh y06t4O1VhhYp5ZoKC03Vvrnfb8U3omMGpUx7gsC2mNhtIHjwG1gKXi1drxKUySOHlVrP OaBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=VZH5r6HM3EYDwBhEb2o8W4vo+HLiDTKfIHnYWGsrXi4=; fh=Q7377YtYPxEK2mHohJ7HS85471CKYZKSZEjsfZ022V4=; b=ifJJbnye9vlvzVMYiFJAjU+juMOYkdzGFiBL4i3EgWhfRs3VrtqHvQAM3Jtob0uoZo h3s9K2mp7Oi1sy06vehHfByZBB/UrwSJFo6XMQRgaz9OGQRGEUPphkWr4qGS8EaV2l81 eoYtUlZNUZ5CqrE+FHZroOorJT+JHnxmIEeX4yNgcQzk159ozKvyypd1kf/csdIP2xYr 2Wii36u/KqkLcFXw82BF+XntFU9SKAxuUM+RsrZ1uwIfMqTlpeslRbRIgn+UvBXyXH1p gW8GRD6rbgpjGAtGLhLjT42C6xrsv3n6zG2xWJ4djsgzJcwiMATEv2R37JFplW5BEaks zQJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=inSmMhpl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jj1-20020a170907984100b0099202eaf99asi118889ejc.724.2023.08.09.15.13.50; Wed, 09 Aug 2023 15:14:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=inSmMhpl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234060AbjHITjT (ORCPT + 99 others); Wed, 9 Aug 2023 15:39:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233927AbjHITjN (ORCPT ); Wed, 9 Aug 2023 15:39:13 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 770DF10EC for ; Wed, 9 Aug 2023 12:39:12 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b9d3dacb33so2841951fa.1 for ; Wed, 09 Aug 2023 12:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691609951; x=1692214751; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=VZH5r6HM3EYDwBhEb2o8W4vo+HLiDTKfIHnYWGsrXi4=; b=inSmMhplBZ1gKK1uL2aKws3Bbw8nkUZQlUJdB/uSuwQQYNr1lxbdEZrKNoKzvAhq2Z 2NRh1CXEFfqbbaDv7mUKmLooT8W38a5qYQyulJOkKTSFczymga2bj/4ZrlwioXheY86a aJ5Pq7IWosLBX5086bxErY2Xqv9WvQ6zUWeIWMSpyI8ssogA3EmbyC0WduubSciL0WqN bxqIT0jpNp75D9jovYLXxeodL0b7jajkNih+SGBPrkGJVmbLVM0H+wddYrRFVHAyX6AL MBL8e7UbEhcZ5FTOuQzFEfR5D53pAoENxom+kHQMueGgAN78OP+8MtJn1bz3a/KMzIyn gzGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691609951; x=1692214751; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VZH5r6HM3EYDwBhEb2o8W4vo+HLiDTKfIHnYWGsrXi4=; b=KBTkd2bfy3/2yzt9D2mw7RAfQ7eBF8+w63SLKoEF4F3atw00zZia8AVwxTZ4UOe4qL Xq2oukVTaSWGzh6O7Qaumb5SwXTEdbJOm3SLxADkqSvnD6OToqz5O0Sgkly1sUQtgT6D i9UCT8IHqcScurNjIjm96fB8jC96UE69HEFmoxLzEOibDhFVpWAhW1Hw4EcpiH+xbxJJ O6YBMgO2HQYy29X8Rd2t/8ALD7utnVx3mMqO2W4i77/iOEOpBb5CmFXo1jYzBvD1lM4z Os67HfeMtJEuQ2vSfBueJzVKH9uakyw0kE4RxwW1px/7UNddPqPkPCaGJHY5rSoEiieo A/Vg== X-Gm-Message-State: AOJu0Yw0QsU6guH/phXF3OoU1YlhUMZo+TnSWKHGrzndHuAKFCIy6gcV hwZMUbx+jJLdHFpYTe0H9vqZ7g== X-Received: by 2002:a2e:800b:0:b0:2b6:ee99:fffc with SMTP id j11-20020a2e800b000000b002b6ee99fffcmr117312ljg.36.1691609950750; Wed, 09 Aug 2023 12:39:10 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id x6-20020a2e9c86000000b002b9fe77d00dsm2885287lji.93.2023.08.09.12.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 12:39:10 -0700 (PDT) From: Konrad Dybcio Date: Wed, 09 Aug 2023 21:38:55 +0200 Subject: [PATCH 2/5] pinctrl: qcom: msm8996: Add MPM pin mappings MIME-Version: 1.0 Message-Id: <20230809-topic-mpm_mappings-v1-2-5e17dd76b3c8@linaro.org> References: <20230809-topic-mpm_mappings-v1-0-5e17dd76b3c8@linaro.org> In-Reply-To: <20230809-topic-mpm_mappings-v1-0-5e17dd76b3c8@linaro.org> To: Andy Gross , Bjorn Andersson , Linus Walleij Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691609947; l=1982; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=eXELqUbYWkn05tL5Nv5++G9RQagHZuWO/8CJtyHMRPg=; b=ioMbfv1KCwupI22zHn4/VvXqRKWdAxpBz8yxkSBgDrywWU87gGBBethwQHMSYv0MZbkn7fRCn RGvqEnbSmANCSBc9Ak83mJBezNJYBHifIocVfYFItIuCHSWieYkke8Y X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773791353276879585 X-GMAIL-MSGID: 1773791353276879585 Add pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins. Signed-off-by: Konrad Dybcio --- drivers/pinctrl/qcom/pinctrl-msm8996.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-msm8996.c b/drivers/pinctrl/qcom/pinctrl-msm8996.c index 46cc0b49dbab..a3f7e8ed9112 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm8996.c +++ b/drivers/pinctrl/qcom/pinctrl-msm8996.c @@ -1880,6 +1880,19 @@ static const struct msm_pingroup msm8996_groups[] = { SDC_QDSD_PINGROUP(sdc1_rclk, 0x12c000, 15, 0), }; +static const struct msm_gpio_wakeirq_map msm8996_mpm_map[] = { + { 3, 1 }, { 4, 5 }, { 5, 9 }, { 6, 11 }, { 7, 66 }, { 8, 22 }, { 9, 24 }, { 10, 26 }, + { 11, 34 }, { 12, 36 }, { 13, 37 }, { 14, 38 }, { 15, 40 }, { 16, 42 }, { 17, 46 }, + { 18, 50 }, { 19, 53 }, { 20, 54 }, { 21, 56 }, { 22, 57 }, { 23, 58 }, { 24, 59 }, + { 25, 60 }, { 26, 61 }, { 27, 62 }, { 28, 63 }, { 29, 64 }, { 30, 71 }, { 31, 73 }, + { 32, 77 }, { 33, 78 }, { 34, 79 }, { 35, 80 }, { 36, 82 }, { 37, 86 }, { 38, 91 }, + { 39, 92 }, { 40, 95 }, { 41, 97 }, { 42, 101 }, { 43, 104 }, { 44, 106 }, { 45, 108 }, + { 46, 112 }, { 47, 113 }, { 48, 110 }, { 50, 127 }, { 51, 115 }, { 54, 116 }, + { 55, 117 }, { 56, 118 }, { 57, 119 }, { 58, 120 }, { 59, 121 }, { 60, 122 }, + { 61, 123 }, { 62, 124 }, { 63, 125 }, { 64, 126 }, { 65, 129 }, { 66, 131 }, + { 67, 132 }, { 68, 133 }, { 69, 145 }, +}; + static const struct msm_pinctrl_soc_data msm8996_pinctrl = { .pins = msm8996_pins, .npins = ARRAY_SIZE(msm8996_pins), @@ -1888,6 +1901,8 @@ static const struct msm_pinctrl_soc_data msm8996_pinctrl = { .groups = msm8996_groups, .ngroups = ARRAY_SIZE(msm8996_groups), .ngpios = 150, + .wakeirq_map = msm8996_mpm_map, + .nwakeirq_map = ARRAY_SIZE(msm8996_mpm_map), }; static int msm8996_pinctrl_probe(struct platform_device *pdev) From patchwork Wed Aug 9 19:38:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 133475 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp3047034vqr; Wed, 9 Aug 2023 13:12:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7DV6497g46kBLpI/CJIOtMepClpTvrEstQD+N3VDrMlQfc2wVblY/Hhkcb140xwuaHgZX X-Received: by 2002:a05:6512:3414:b0:4f8:70f8:d424 with SMTP id i20-20020a056512341400b004f870f8d424mr115019lfr.65.1691611921915; Wed, 09 Aug 2023 13:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691611921; cv=none; d=google.com; s=arc-20160816; b=KLyooiHo83zW3dKuqI35ondd1iU6NaBCm0VYdiMmqBiOqGKZnx3lgKvYiESl0nfJ+V HKhpmyA8aPyB4TsBv6ZM4Hm5lLllVU539/ErL87vMmjnEim6OjCI4yMcPYEJY6v6RKtW HnpkMdgda81MQzCCIKoXg683lCpJ2/UBrYenVuwCBzrEjVX4tSUzWlw8XKiF7WnzuznW Mt4L6Sj1mrQ/Y2WIIwezBBdbngTR+FQmm7LneGpwprf3QzhZ0ZmLEO1RY3JiE2hV4gtF fc1uvpumifGfb/k5wezc1DJKf2WPdpu1tq2lYQ9NxSrTUIsNRgOsF0Z0KC90mSF48HJi /yDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=4yYYbomUJVYgsT+0D2+rI323JIj5qrFGSdCe33pVIZs=; fh=Q7377YtYPxEK2mHohJ7HS85471CKYZKSZEjsfZ022V4=; b=jW/OKtOJzi7PZ+21tzvJDIu38xlRNPTF+FtNxSPn8rWyS0/EVZPGChetDCzfgV4WSU gjDzyvCqHuD7tNvFDVQx8vIenJgukv6KTQFI5QItaHUs4pUj4MfxIxjd3JKcTSGRhRVm IXNUCGYS7eqMSv6+txWeK9K+hvAsWIeCnoMjUkGu1DQ8rPUMwCmUiOb+qgtV9Kledkra lMEQq+450ammzMCq4quB7H7m5iZXQhljrg+GLACdwmDXBmT6ys5gpf7GnarekUMipU0S /FL+OGv4HhgVKJTZ0wQgt1GroHrM3qtGMKVNd54pYVEPc6mw1oXz6fz7CYdtG/zO8MCI JkGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tqnNXFLL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020aa7c048000000b005231e5514ebsi3596220edo.685.2023.08.09.13.11.37; Wed, 09 Aug 2023 13:12:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tqnNXFLL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233543AbjHITjW (ORCPT + 99 others); Wed, 9 Aug 2023 15:39:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233940AbjHITjS (ORCPT ); Wed, 9 Aug 2023 15:39:18 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2C7710DC for ; Wed, 9 Aug 2023 12:39:13 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b962c226ceso2934891fa.3 for ; Wed, 09 Aug 2023 12:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691609952; x=1692214752; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4yYYbomUJVYgsT+0D2+rI323JIj5qrFGSdCe33pVIZs=; b=tqnNXFLLqfg0t6tHjegrEctrUV42CI2guavbdlc24Kg1Lu94eGiLVXp5vbUp+lf8RJ gtJnAslFI2VXyKE+/KDGNPXn5ngn9WC7PUlvLlHkmEbNOaEVdsYkxZiXreaPEzOFdgS1 jKe56kNjLHQzN/Nvx+lW0NNUwinIhHH+q8xquYD94jhVWAweDkuAXFHthoW915Qa3UU+ Hn3r+rqgpJ+YezmkXn7SEwW7R4/6CwEPbyKgbRLq0xvf7KT3HTHDc0hob9PhZw4Lu2ik bph6Yu6vmddOLcvEoZyfzZviwyQOIAqUwVDxKf61RSbL4r/BcCol7eAVI6GO51XW0rsg kd2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691609952; x=1692214752; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4yYYbomUJVYgsT+0D2+rI323JIj5qrFGSdCe33pVIZs=; b=gPkxMlpQb61gKxkFdhvEZqIKgRElRe+Mi9oHRd42E/eArZRjxlM3gMFXRS+OZYjckO D0K8cQF7Kf6PojyQrQuoA5DkTnnEs0zyiWQqAKZcxnAW8MGkzFbBKgEmePGNshYGfm7u NNWHj4OnLzttVtHB7onUZ7+Lcp1YAVwgL0tiiBcsbEhk0rymJaDomPA64s257PszgZGY HrbyfHhETQXXQArMhcpdvZhfgJq4OlwiiMu+og46mr4lkzOsRxDafVyGZwCYmKQ2WeAX NnXvxanvrqkcC6IKhdgeVIWa0Y4xRW4m6us9T4zj2X7UhApbabrI0ShkeopwEx8ZZHSN 1xaw== X-Gm-Message-State: AOJu0YwuilMalqDfp5zjEu54ARyXhlhCLwp+DMcN85ZQFi5SXAj4J3N0 UoGI6lGKUE0I213hEmW5vZrmbw== X-Received: by 2002:a2e:8057:0:b0:2b6:efa0:7c36 with SMTP id p23-20020a2e8057000000b002b6efa07c36mr120940ljg.21.1691609952056; Wed, 09 Aug 2023 12:39:12 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id x6-20020a2e9c86000000b002b9fe77d00dsm2885287lji.93.2023.08.09.12.39.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 12:39:11 -0700 (PDT) From: Konrad Dybcio Date: Wed, 09 Aug 2023 21:38:56 +0200 Subject: [PATCH 3/5] pinctrl: qcom: sm6115: Add MPM pin mappings MIME-Version: 1.0 Message-Id: <20230809-topic-mpm_mappings-v1-3-5e17dd76b3c8@linaro.org> References: <20230809-topic-mpm_mappings-v1-0-5e17dd76b3c8@linaro.org> In-Reply-To: <20230809-topic-mpm_mappings-v1-0-5e17dd76b3c8@linaro.org> To: Andy Gross , Bjorn Andersson , Linus Walleij Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691609947; l=1748; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=T9v/mfuQb1OwiuFmWNxxzc2HXqjuVkV8vrJqKXZTL10=; b=gR9SWreVvqNicNvyIa61OzGWUuYDZRtlOOTQBHFGGKy6KmJn32HLSCWEsfHjrB/HvNLv6yE4S zaXUPOwt+4wCIxSkEzzd/HfqJHUBJy8qKOcaP80qsIRfXhgiEIttYUQ X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773783662169835470 X-GMAIL-MSGID: 1773783662169835470 Add pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins. Signed-off-by: Konrad Dybcio --- drivers/pinctrl/qcom/pinctrl-sm6115.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sm6115.c b/drivers/pinctrl/qcom/pinctrl-sm6115.c index 2a06025f4885..4e91c75ad952 100644 --- a/drivers/pinctrl/qcom/pinctrl-sm6115.c +++ b/drivers/pinctrl/qcom/pinctrl-sm6115.c @@ -867,6 +867,16 @@ static const struct msm_pingroup sm6115_groups[] = { [120] = SDC_QDSD_PINGROUP(sdc2_data, SOUTH, 0x73000, 9, 0), }; +static const struct msm_gpio_wakeirq_map sm6115_mpm_map[] = { + { 0, 84 }, { 3, 75 }, { 4, 16 }, { 6, 59 }, { 8, 63 }, { 11, 17 }, { 13, 18 }, + { 14, 51 }, { 17, 20 }, { 18, 52 }, { 19, 53 }, { 24, 6 }, { 25, 71 }, { 27, 73 }, + { 28, 41 }, { 31, 27 }, { 32, 54 }, { 33, 55 }, { 34, 56 }, { 35, 57 }, { 36, 58 }, + { 39, 28 }, { 46, 29 }, { 62, 60 }, { 63, 61 }, { 64, 62 }, { 65, 30 }, { 66, 31 }, + { 67, 32 }, { 69, 33 }, { 70, 34 }, { 72, 72 }, { 75, 35 }, { 79, 36 }, { 80, 21 }, + { 81, 38 }, { 83, 9 }, { 84, 39 }, { 85, 40 }, { 86, 19 }, { 87, 42 }, { 88, 43 }, + { 89, 45 }, { 91, 74 }, { 93, 46 }, { 94, 47 }, { 95, 48 }, { 96, 49 }, { 97, 50 }, +}; + static const struct msm_pinctrl_soc_data sm6115_tlmm = { .pins = sm6115_pins, .npins = ARRAY_SIZE(sm6115_pins), @@ -877,6 +887,8 @@ static const struct msm_pinctrl_soc_data sm6115_tlmm = { .ngpios = 114, .tiles = sm6115_tiles, .ntiles = ARRAY_SIZE(sm6115_tiles), + .wakeirq_map = sm6115_mpm_map, + .nwakeirq_map = ARRAY_SIZE(sm6115_mpm_map), }; static int sm6115_tlmm_probe(struct platform_device *pdev) From patchwork Wed Aug 9 19:38:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 133576 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp38895vqi; Wed, 9 Aug 2023 15:13:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPjniLHNGSfld1bZXcy3ioPJJ16YJoqCgFp0Bb+JxKoiR7lOXGwKXOigVqPDNorGaEOfKD X-Received: by 2002:aa7:d3c5:0:b0:523:3e7e:451b with SMTP id o5-20020aa7d3c5000000b005233e7e451bmr405011edr.37.1691619221075; Wed, 09 Aug 2023 15:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691619221; cv=none; d=google.com; s=arc-20160816; b=G7zIikaWobLKNA5B3Vq2Xd3/l+QS9/wT+U/UesdaFEXYBSE6h9U3Mkuo6U65WOwRCZ Woe0ceAb3iWT1+L0LgHfvIfgSlCUkij5lRpHSJyplZzvQf9H1gCYG5QmaC+DgRqZWn5o ibSuIaIKwIo/ZctM3aDVwk3VFWC4KGi8bWUb89wNLh/dBVcGObxEPK3tcxsKL1GiCid1 SpjX+UGGPpBYWmEYwQJew3hc+0CCjSwttWLcPblbBszllABYk2tSiFQ2Cj8bm1BCkMMZ nV6kq1TUuhCH+sZFT3MAkas1PYjXj971fvfkcLMHXs1b01P30N8cgBdgM4GWFjZsW3Va lTBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=scHhpJUMzh48LPTYd+vtq/rRvZwD6bIb5v4LTSQLFkQ=; fh=Q7377YtYPxEK2mHohJ7HS85471CKYZKSZEjsfZ022V4=; b=pHDgRynMrdsIdBYqHrEEkl5aUT2mLN56sva6WU9rkxMwDBgy5LPu8veQE0ogP7IcDI UQhk2npk/ykhD56PgSeKLn6uy8wfU0FyyqAdcIRWVhDL8xapQqcU+VTld2bYWaelvkwI 7nEUyzYhQ8Oic2bKGsC2PHxvEHJ6zGbSw0QzGBwVFAQ7qB2TQolw/L4B3LpiGyiDitIR 8heVx2Z8fRAGNE+r8pjq7/Q/XQ6lzJ+jbsYg8JzH7jM8Q8ty0h4CgUrILBZSOurzTQXC MpLIO5g5zgDk5ENNb+cj/XBWMkeR9/OKjxuTRQKFFBGQvFICYgOLlsxidiX1jUOcrkw0 VtIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tsbL6KN4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r7-20020aa7d147000000b00522e4a1f1c2si64251edo.469.2023.08.09.15.13.18; Wed, 09 Aug 2023 15:13:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tsbL6KN4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234101AbjHITjY (ORCPT + 99 others); Wed, 9 Aug 2023 15:39:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233975AbjHITjS (ORCPT ); Wed, 9 Aug 2023 15:39:18 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED6831BF7 for ; Wed, 9 Aug 2023 12:39:14 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b962535808so3084531fa.0 for ; Wed, 09 Aug 2023 12:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691609953; x=1692214753; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=scHhpJUMzh48LPTYd+vtq/rRvZwD6bIb5v4LTSQLFkQ=; b=tsbL6KN45SrtH2mGdzr+Zt/Heo9gCqN1luo5IfDxltewLZb4je6A3xZBiF70XwEWIB 5/kkAQ3lD++wgVYBMjIsjkbWiau3wnCaukyNgyI93YoEb5OJkX3muVyzabPqJMIBl+nl ub3zt+OuDoqZ75qMLvyiwmK0QAvoEDJfzh0Q1xPNlk7/W0ZbGTguua5IJPqu9oLDZbOM DUXP7LwxjxFmrq3foWNENFYd9XlOsQ8hA6Y6Y+WXWW+bWmwY9H4WGpf9oIU+7/FVdwX6 peVLhBGmy9MnaWV00tMbD2qIUg8hYLJUElPakv161O1YWsKLikJIydpNOCTq4BRS3Iu6 id8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691609953; x=1692214753; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=scHhpJUMzh48LPTYd+vtq/rRvZwD6bIb5v4LTSQLFkQ=; b=BKNYYBFt4wJtswBmDgERhASiRV0Vf8CPsFNuctOQqFRi97gcjm+ZeVuSB8p5EZkf7s Ns0IZ+Hy2eTyoMZZ7nAzKOleGCo2rcfKqYyosmOFTyEaZPwdoP12Y3sT4utqvz62oRYR 9m0T1vxZiqcBkfyjD61yaqO6zHzzzWOugMJI1Zs3xlPyNSfYlDsOSokZNo66FnbuNDUZ jbG81KZ/rx0O0O5INdqYXgQRC+TafOJQmnbeNhwzO+ns6JZZ+XsuWCwvHfZkZWgkpbZJ ++Ei4+/oZUL5PHjVm56nFFprfmMJzxx36CPetbgMkvVZhSjgOsjISspJIcPDAXpkyKnB QKWw== X-Gm-Message-State: AOJu0Yw5y8DAXsBMQj0+OfRWQoIaJPeZSyxBLTTYIU6e6mEP/oZ3GBCx s6Dq3jRQcNlN9WFJ/9VsaOZctw== X-Received: by 2002:a2e:3109:0:b0:2b6:ef2b:da5e with SMTP id x9-20020a2e3109000000b002b6ef2bda5emr110152ljx.49.1691609953018; Wed, 09 Aug 2023 12:39:13 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id x6-20020a2e9c86000000b002b9fe77d00dsm2885287lji.93.2023.08.09.12.39.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 12:39:12 -0700 (PDT) From: Konrad Dybcio Date: Wed, 09 Aug 2023 21:38:57 +0200 Subject: [PATCH 4/5] pinctrl: qcom: sm6125: Add MPM pin mappings MIME-Version: 1.0 Message-Id: <20230809-topic-mpm_mappings-v1-4-5e17dd76b3c8@linaro.org> References: <20230809-topic-mpm_mappings-v1-0-5e17dd76b3c8@linaro.org> In-Reply-To: <20230809-topic-mpm_mappings-v1-0-5e17dd76b3c8@linaro.org> To: Andy Gross , Bjorn Andersson , Linus Walleij Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691609947; l=1945; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=mi6tyaaFaIGRYVB8wfaRQeWL03aQpxrSwoKIZ8Ywe4k=; b=mQplNLrfdABOmb0kAk8NkBnDyjp6NS61Zp5QhFo49xa/giZvIaw/v49QXdunxFribHHeXcUiL 6MILr9GgvUHD8e6Q/vpIbFqr/HUEb4NTEVHBJdUgfkrlV3gVEXNd2E3 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773791316607449681 X-GMAIL-MSGID: 1773791316607449681 Add pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins. Signed-off-by: Konrad Dybcio --- drivers/pinctrl/qcom/pinctrl-sm6125.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sm6125.c b/drivers/pinctrl/qcom/pinctrl-sm6125.c index d5e2b896954c..ea377f025d60 100644 --- a/drivers/pinctrl/qcom/pinctrl-sm6125.c +++ b/drivers/pinctrl/qcom/pinctrl-sm6125.c @@ -1221,6 +1221,18 @@ static const struct msm_pingroup sm6125_groups[] = { [140] = SDC_QDSD_PINGROUP(sdc2_data, SOUTH, 0x58b000, 9, 0), }; +static const struct msm_gpio_wakeirq_map sm6125_mpm_map[] = { + { 5, 43 }, { 6, 45 }, { 7, 59 }, { 8, 72 }, { 9, 83 }, { 13, 124 }, { 14, 1 }, { 15, 3 }, + { 16, 4 }, { 17, 9 }, { 18, 13 }, { 19, 15 }, { 20, 17 }, { 21, 19 }, { 22, 21 }, + { 23, 14 }, { 24, 25 }, { 25, 26 }, { 26, 27 }, { 27, 29 }, { 28, 33 }, { 29, 36 }, + { 30, 42 }, { 31, 44 }, { 32, 47 }, { 33, 50 }, { 34, 70 }, { 35, 75 }, { 36, 79 }, + { 37, 80 }, { 38, 81 }, { 39, 82 }, { 40, 85 }, { 41, 86 }, { 42, 88 }, { 43, 89 }, + { 44, 91 }, { 45, 92 }, { 46, 93 }, { 47, 94 }, { 48, 95 }, { 49, 96 }, { 50, 98 }, + { 51, 99 }, { 52, 101 }, { 53, 102 }, { 54, 105 }, { 55, 107 }, { 56, 110 }, { 57, 111 }, + { 58, 112 }, { 59, 118 }, { 60, 122 }, { 61, 123 }, { 62, 126 }, { 63, 128 }, { 64, 100 }, + { 65, 130 }, { 66, 131 }, { 67, 132 }, { 70, 97 }, { 71, 120 }, { 84, 22 }, +}; + static const struct msm_pinctrl_soc_data sm6125_tlmm = { .pins = sm6125_pins, .npins = ARRAY_SIZE(sm6125_pins), @@ -1231,6 +1243,8 @@ static const struct msm_pinctrl_soc_data sm6125_tlmm = { .ngpios = 134, .tiles = sm6125_tiles, .ntiles = ARRAY_SIZE(sm6125_tiles), + .wakeirq_map = sm6125_mpm_map, + .nwakeirq_map = ARRAY_SIZE(sm6125_mpm_map), }; static int sm6125_tlmm_probe(struct platform_device *pdev) From patchwork Wed Aug 9 19:38:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 133476 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp3047857vqr; Wed, 9 Aug 2023 13:13:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPDEBmgum5Afps7UuexMmSLAVT1WrNoW0ZRBUcoZbkxNsxUI/m7ON5Yy4HA6yAIPQ/lBeO X-Received: by 2002:a05:6e02:1b89:b0:346:5bd7:4a16 with SMTP id h9-20020a056e021b8900b003465bd74a16mr158621ili.4.1691612009092; Wed, 09 Aug 2023 13:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691612009; cv=none; d=google.com; s=arc-20160816; b=M7JFhbaHKzvimBdFhQr27eR078e+UZH0AJUGo1x1ZovAhTXO6gX9UFv+ClyllyOLSA +krHihuNgd5OsI31X/dC5A0ZuFG+IwbGn4Ua1RifZE+1gRtUioRgkdxx8XF6MJdq2L4y xu52biyL6mDhWpcq1LwdMg3/MtSbgmr4+zQjUR2mRBW0Dbq6I3L+ZE5K/Xgchs4cQPjK q5R4I5WmD0JV5ojyGdbR+MbNI1Hi6YvA+kaPpAgNqb64HNUPsiYIxb5UNXNOcTB/H/kk 5Oq6yJwuv4A5aNMaNs7cvT6T8OQmLoZP4xeDbT6l+R8gc5dIJLoaCUGXyLYv8jvCAkWf xdRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=FaJD50ZdNlLd8aAV2rJ5UObu1uOPthET0/BzYuBazXo=; fh=Q7377YtYPxEK2mHohJ7HS85471CKYZKSZEjsfZ022V4=; b=k8LoSy6KclVJpw7LFDVMlxP0f03QJt+ZiaDO2LALqlerV1rIYOyjSLmpeAzxdeq+ox SB7zPBh8fzHeoCSfnOgjQ4Hsot68lRV7B8vMjiIjqTxFANf1UQslSqUv4SgCpCemf7md 1gqu7Yff/fYvpiqEM3YnvV9LXINnP4PGAx5unwBwZGBJePBG6wfONmMkK2cUh6MLACLe nE4HuV1EAQbtM2RyboGoqXBoI5cqONPyOMaaoZ9OvufR4eGP6T086M886F2fiDhKMaAp mA13STZkxUPREMNlstXfzDwWn8DYReFY4zLRQE1pULPoCDsd4YXB6Fg/357T09gc58yK O90w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IWEFDVYU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 24-20020a631258000000b0055fe651e9cesi7245872pgs.796.2023.08.09.13.13.14; Wed, 09 Aug 2023 13:13:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IWEFDVYU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbjHITj0 (ORCPT + 99 others); Wed, 9 Aug 2023 15:39:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233992AbjHITjS (ORCPT ); Wed, 9 Aug 2023 15:39:18 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93FD61FCC for ; Wed, 9 Aug 2023 12:39:15 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b9bf52cd08so2716281fa.2 for ; Wed, 09 Aug 2023 12:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691609954; x=1692214754; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=FaJD50ZdNlLd8aAV2rJ5UObu1uOPthET0/BzYuBazXo=; b=IWEFDVYUNwwuG8brMaU6ojkleuncxUL14b8nv5klpLv0aLDUrWPtlSnVIYDSJgiUyP Y7MkRNePGKQwpxzdknXNDCYic6inj9kTR0jjd198/VYCl1Da9nuNIoB6ikRC3FiFGSCP mwfLMKBENi2vCXVKIaVlgAWsV58rcHm0cLGXC6mOOas9Pi+ZUYK9/GuSepaF0QrW1hpu joTNjdCUUc51wBiAR8MGiW6Xu3gBSkMo5syZRqQ8JRZ76mh7eIAutbAjpCGZbDN/ckXe mSAbuCkUoynSIi8BObS2duNI97T+Iz2r/QPQq138839rsynRl/OC6Hja5Gos9v89xbUQ yGQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691609954; x=1692214754; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FaJD50ZdNlLd8aAV2rJ5UObu1uOPthET0/BzYuBazXo=; b=dAswkqtPO6fmfR/bFcwtB+lfkl5H+Gr08UOUDLi/+KONc3g/C3PYSpp0h1m0wMOZZm gFlupc7kAx0trQAwBB16WMJe2slZiJqNPZXL8yNE5sAnTYjlJ81nVLMStsmTdx90nZk5 LvoWkxRatUkp6QuaUSgTWIPVpav/Pyqrw9aPV+SuK3NEjkIsyUVHR1lIf2JCpBqQS8SY 5QjmSNVHxSfJ7DSFcXVTfsH/E/xuN1mP5Mv8JNL3CEUEPF7NHGESVKKxDv4U+6djoQRN GkbWuhZCpbsCi/MIaOTpadKFKqynKLKUzqkOfg9398CmuAFKrqFkb/krkM0WLnjU440N /jsA== X-Gm-Message-State: AOJu0YzNzjlNBGLKdIFFm1kVEPO/7wuwMbIY6JCqo1tEfxuYsiIYBm6/ fJFaDRy9zp/AVVzbDMWlVVHNaqK5HrG8kgNCfpw= X-Received: by 2002:a2e:9997:0:b0:2b6:e283:32cb with SMTP id w23-20020a2e9997000000b002b6e28332cbmr151913lji.23.1691609953946; Wed, 09 Aug 2023 12:39:13 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id x6-20020a2e9c86000000b002b9fe77d00dsm2885287lji.93.2023.08.09.12.39.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 12:39:13 -0700 (PDT) From: Konrad Dybcio Date: Wed, 09 Aug 2023 21:38:58 +0200 Subject: [PATCH 5/5] pinctrl: qcom: sdm660: Add MPM pin mappings MIME-Version: 1.0 Message-Id: <20230809-topic-mpm_mappings-v1-5-5e17dd76b3c8@linaro.org> References: <20230809-topic-mpm_mappings-v1-0-5e17dd76b3c8@linaro.org> In-Reply-To: <20230809-topic-mpm_mappings-v1-0-5e17dd76b3c8@linaro.org> To: Andy Gross , Bjorn Andersson , Linus Walleij Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691609947; l=1937; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=0NrXmn7119mRGGGI3miqjrwIUUJ2pi2cRUPmNiZdlUk=; b=0m63GWmp2DcB0guuYRK14UZ6i2eeIvWiqemEA5UR5ObDtsNrUDFXirayo4EwRo+nZXWzFrlUV D1HumSCL5CgDapRA5NHEpxTgXllT7b+Y+e3TOCZzJHWWB4gM8csFhWA X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773783753615264987 X-GMAIL-MSGID: 1773783753615264987 Add pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins. Signed-off-by: Konrad Dybcio --- drivers/pinctrl/qcom/pinctrl-sdm660.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sdm660.c b/drivers/pinctrl/qcom/pinctrl-sdm660.c index c2e0d5c034ac..5deabe8ca581 100644 --- a/drivers/pinctrl/qcom/pinctrl-sdm660.c +++ b/drivers/pinctrl/qcom/pinctrl-sdm660.c @@ -1399,6 +1399,18 @@ static const struct msm_pingroup sdm660_groups[] = { SDC_QDSD_PINGROUP(sdc1_rclk, 0x9a000, 15, 0), }; +static const struct msm_gpio_wakeirq_map sdm660_mpm_map[] = { + { 3, 1 }, { 4, 5 }, { 5, 9 }, { 6, 10 }, { 7, 66 }, { 8, 22 }, { 9, 25 }, { 10, 28 }, + { 11, 58 }, { 13, 41 }, { 14, 43 }, { 15, 40 }, { 16, 42 }, { 17, 46 }, { 18, 50 }, + { 19, 44 }, { 21, 56 }, { 22, 45 }, { 23, 68 }, { 24, 69 }, { 25, 70 }, { 26, 71 }, + { 27, 72 }, { 28, 73 }, { 29, 64 }, { 30, 2 }, { 31, 13 }, { 32, 111 }, { 33, 74 }, + { 34, 75 }, { 35, 76 }, { 36, 82 }, { 37, 17 }, { 38, 77 }, { 39, 47 }, { 40, 54 }, + { 41, 48 }, { 42, 101 }, { 43, 49 }, { 44, 51 }, { 45, 86 }, { 46, 90 }, { 47, 91 }, + { 48, 52 }, { 50, 55 }, { 51, 6 }, { 53, 65 }, { 55, 67 }, { 56, 83 }, { 57, 84 }, + { 58, 85 }, { 59, 87 }, { 63, 21 }, { 64, 78 }, { 65, 113 }, { 66, 60 }, { 67, 98 }, + { 68, 30 }, { 70, 31 }, { 71, 29 }, { 76, 107 }, { 83, 109 }, { 84, 103 }, { 85, 105 }, +}; + static const struct msm_pinctrl_soc_data sdm660_pinctrl = { .pins = sdm660_pins, .npins = ARRAY_SIZE(sdm660_pins), @@ -1409,6 +1421,8 @@ static const struct msm_pinctrl_soc_data sdm660_pinctrl = { .ngpios = 114, .tiles = sdm660_tiles, .ntiles = ARRAY_SIZE(sdm660_tiles), + .wakeirq_map = sdm660_mpm_map, + .nwakeirq_map = ARRAY_SIZE(sdm660_mpm_map), }; static int sdm660_pinctrl_probe(struct platform_device *pdev)