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: 66466 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp589798wrd; Wed, 8 Mar 2023 13:47:02 -0800 (PST) X-Google-Smtp-Source: AK7set/ecAjohKrDt1MbHbamOy/eqAdpMcO4YcxBir/LdZkppa/egSREWPrw9NolDeOeIHlc9oK9 X-Received: by 2002:a17:902:bc42:b0:19c:faaf:b9d6 with SMTP id t2-20020a170902bc4200b0019cfaafb9d6mr18020886plz.8.1678312022317; Wed, 08 Mar 2023 13:47:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678312022; cv=none; d=google.com; s=arc-20160816; b=QTHOHYCToZM3ALxo408tQNjcFuLxi+0lnuS+JJHq0PCACnVwOO9MrFHDyk8NU7MDo3 lg9Z1EadDZ6VVcYBGwsD0Xv6I/BlVXrsYeIrvzEcYeCPgRf0ZqSFl3lpxJpRggIEiB6g sBwgvhA5RdGhj8PlQXVm1dSWoGCPjAg6RaJOUlSN0lw3jNbX7/ioYiAvWoiJGmwnmT1u NxiKMBB97PsF0hvgUOTHDBoRrWV4uwSPlrDe4Asraa4YYXSnRYEVJGYdAkjN6cqWSgYX 69t+MCwgDQU4S841wYCCHXs7xMqlm6F3x2CwvIAp8mV4X+xVuT2Iocl/xbEYFT25Zz/1 81+w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=rJ2JnYKphgULZ1WukulUiOrRt/1FnNLmapvkEFPxKD0=; b=ezwg8F5WRabhnsxPNHgIVQWQgBuj7CnTTnN/ijnK+MYCKnuRBmNZcDG909O2VX4MGc E1KxCnRN8PGxhXFU2TJxOM0yWN4wkyUA8hzZsH4lc8nPxqHwtokyGHAEeL2loNdBPaXM 4Uk1VUhKLUrdpFQZ1Uufv16u7h2rOHCcg0GBfZ20TTL2Yu6vZN4XvyYr6rABB3gTJmVb UsEKUNUWWPRJlJCgwhoAKMLfS4X3AMsG+px5JKsLAjBi4tdjyAdAwgNquh6fw3aQIuAW lgPrbnaWN3ZfF+5//L92BOxMqwk7SdEds36YO5jOuZKV1eTUYU+bjAjwSCqL35IUWsbu Q1vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r9LIl4XS; 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 bj10-20020a170902850a00b001842f465c10si14511191plb.438.2023.03.08.13.46.49; Wed, 08 Mar 2023 13:47:02 -0800 (PST) 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=r9LIl4XS; 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 S229917AbjCHViz (ORCPT + 99 others); Wed, 8 Mar 2023 16:38:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbjCHVid (ORCPT ); Wed, 8 Mar 2023 16:38:33 -0500 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8274ED13C1 for ; Wed, 8 Mar 2023 13:37:38 -0800 (PST) Received: by mail-lj1-x22b.google.com with SMTP id h9so18044015ljq.2 for ; Wed, 08 Mar 2023 13:37:38 -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=atG2voGNOIJBwPJNTiRXSG4b8McTK4ygJebI3LRkHQGEtu3lJM+dFJkCT/AuIlqrA4 vEWynxq/s4bP4nQtb+58rNbQauKqZbM0A9DKX6i8tH5DOEoBTyMIyDCt+C2+sOdF4W0J F0uV4ABCnuuIf+PFH7U3D01BjMjCTB30YtgJSgQQtJwlbmndFQZFth/BNZ6+Ay8s9Bn1 cbt43B7ameqTyC1bM8l5we5SMhrChNlEV8dcExuD8DF1G/Xngr/05OmppsSbdMwBCcwn 2RHCZVYChytosMgNuDtUhY+iaPF0jBH/OvaGAEAHDxK5k1ANXngYydgzPIXqAJ9k1wH5 VVFg== X-Gm-Message-State: AO0yUKUfbyS++aN1ZOXlcFXwSQnnbEp6bjzRzPUz6NSB7rU+YhQGiODr EqH1iQsyqvI19QBSoEJHv/OYrg== 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 X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_HTTP,RCVD_IN_SORBS_SOCKS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759837707286220645?= X-GMAIL-MSGID: =?utf-8?q?1759837707286220645?= 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)