From patchwork Wed Mar 8 21:36:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 660535 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 382DAC64EC4 for ; Wed, 8 Mar 2023 21:38:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230036AbjCHViy (ORCPT ); Wed, 8 Mar 2023 16:38:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbjCHVid (ORCPT ); Wed, 8 Mar 2023 16:38:33 -0500 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 A230CD13DB for ; Wed, 8 Mar 2023 13:37:41 -0800 (PST) Received: by mail-lj1-x236.google.com with SMTP id y14so18048710ljq.4 for ; Wed, 08 Mar 2023 13:37:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678311414; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rJ2JnYKphgULZ1WukulUiOrRt/1FnNLmapvkEFPxKD0=; b=r9LIl4XSQs7OKlujgiLWR7G77j2AtX6l5UZ+gPpG+PQokM4kkpyVdDNjT9tTIdAS2D Lt6V7SLf3UbZJk4UHm5LLT3HgUeZODY4RBryxwwkzYS4vp5RlLjlWrRoP8/FkkU5uH7h CqrrFu/5K2ImQlTj0WxabuGpqgNXWeV/JsjK4PRzT8oTdjfWpgxziQmOKAC+GMLGE6k6 5I2AXlSr1T2bdZCpITT2UBSeQg1UAqFdp4dxXIp7w7zAqsdFmDrb8aUk6qVKUkadJji8 vMRVWE/i0QY3KcRrknyk8J4hfS3ZpOzJrZmCcwgn0trBz4qVRSqWmThZkcsDp8+BAwEs KSYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678311414; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rJ2JnYKphgULZ1WukulUiOrRt/1FnNLmapvkEFPxKD0=; b=39gZMdKW6l5Bw0Ioxs6AP+wfOLsrqEkOdhjGkEniN2YQvBnvJF/mny/cOyJ+acf+QI gDWk6lhUTlY8m5pCWcqPS1JLhbzcESXpHlvc9rbLTJGbzJ6a8na1h/582AyzJF0RRO0M /0tCF36QXygpgGCot8AKi8QlYYcOUZVoYi5BjG/KOS3sZFKlXjeNIzg9ePiexzOwh5+n MAgBugjH1igSiF9wOGmFekiL14eEZaq3TcUPdSZo50IuD4Ykd+YdU4mlcQy+eE5bJOYI xiD1c7GHY5rJUSlvYBpCNclqc6G1ZgH/6JarUv/HMq3X47GgDjpyKwRx7aGD//ExWQZR 8H5A== X-Gm-Message-State: AO0yUKXGTglvMPR/s9UNP8YrJubOQWV1GtUUTC0fy+UtHfRN85QYjKvF EiOrs98MKdBYG5ty5/OJRSp/EWjDJhL8dPZwG/8= X-Google-Smtp-Source: AK7set93Mde/x199K21wD3Nt3Yvy2a6WF8aALGxR6cPON/jC7KCsOx8/6V/v8bmuwuVhf5IBPcscMw== X-Received: by 2002:a05:651c:543:b0:295:a3f6:43b5 with SMTP id q3-20020a05651c054300b00295a3f643b5mr9956414ljp.39.1678311414571; Wed, 08 Mar 2023 13:36:54 -0800 (PST) Received: from localhost.localdomain (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id i15-20020a05651c120f00b00295a96a0f6csm2621936lja.102.2023.03.08.13.36.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 13:36:53 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: qcom: msm8998: Add MPM pin mappings Date: Wed, 8 Mar 2023 22:36:51 +0100 Message-Id: <20230308213651.647098-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add MPM <-> TLMM pin mappings to allow for waking up the AP from sleep through MPM-connected pins. Signed-off-by: Konrad Dybcio --- drivers/pinctrl/qcom/pinctrl-msm8998.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-msm8998.c b/drivers/pinctrl/qcom/pinctrl-msm8998.c index a05f41fe2706..1a061bc9b8fa 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm8998.c +++ b/drivers/pinctrl/qcom/pinctrl-msm8998.c @@ -1503,6 +1503,18 @@ static const struct msm_pingroup msm8998_groups[] = { UFS_RESET(ufs_reset, 0x19d000), }; +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 }, +}; + static const struct msm_pinctrl_soc_data msm8998_pinctrl = { .pins = msm8998_pins, .npins = ARRAY_SIZE(msm8998_pins), @@ -1511,6 +1523,8 @@ static const struct msm_pinctrl_soc_data msm8998_pinctrl = { .groups = msm8998_groups, .ngroups = ARRAY_SIZE(msm8998_groups), .ngpios = 150, + .wakeirq_map = msm8998_mpm_map, + .nwakeirq_map = ARRAY_SIZE(msm8998_mpm_map), }; static int msm8998_pinctrl_probe(struct platform_device *pdev)