From nobody Mon Feb 9 12:43:19 2026 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 3D53FC05051 for ; Wed, 9 Aug 2023 19:39:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231542AbjHITjW (ORCPT ); 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-Google-Smtp-Source: AGHT+IHUl1v+fAW73b46poe0EsZeZKCAgbz1VooItCQHjAXRVgpu5we0yITth6++5WZknc0WXmfY8w== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/p= inctrl-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[] =3D { [120] =3D SDC_QDSD_PINGROUP(sdc2_data, SOUTH, 0x73000, 9, 0), }; =20 +static const struct msm_gpio_wakeirq_map sm6115_mpm_map[] =3D { + { 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 =3D { .pins =3D sm6115_pins, .npins =3D ARRAY_SIZE(sm6115_pins), @@ -877,6 +887,8 @@ static const struct msm_pinctrl_soc_data sm6115_tlmm = =3D { .ngpios =3D 114, .tiles =3D sm6115_tiles, .ntiles =3D ARRAY_SIZE(sm6115_tiles), + .wakeirq_map =3D sm6115_mpm_map, + .nwakeirq_map =3D ARRAY_SIZE(sm6115_mpm_map), }; =20 static int sm6115_tlmm_probe(struct platform_device *pdev) --=20 2.41.0