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 0A273C433FE for ; Mon, 22 Nov 2021 08:09:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238878AbhKVIM4 (ORCPT ); Mon, 22 Nov 2021 03:12:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230322AbhKVIMz (ORCPT ); Mon, 22 Nov 2021 03:12:55 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF0DFC061714 for ; Mon, 22 Nov 2021 00:09:48 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id gx15-20020a17090b124f00b001a695f3734aso14659685pjb.0 for ; Mon, 22 Nov 2021 00:09:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=uQ/+zOySUXz8+736XnP9ZMKw5v3u7n3hZqXwPthJL04=; b=svPsnqBijieqr4XxzbY5mKcYwOH4RdYULdK9wZuS0ZMBSA/pJPvoymRNmDiH/0UXOD LoBTnucxfDbqNIyEvlZ8onHUQfuLltO3R0h4A5DnWs3lakJr7/4FJ5DYSqIkWZRQkAbW CK92LnT8jI+thyer9KYxPLqy0075RdT3Ma1PI/V51NHpG3J6Mb7onEMbCeYGijXFMy9h /+2DC6Y3QcS4wUyy39zFPp4xu0eFuRRr4D84E5MmsEjpnvfdEicHSuvxJNUm40NK/D87 WtWKt7oFgmM73oo2LAS20E6tSPEEYSHxtxOloBdhloHNajcafJHaGbxS2jNWENISWUVk qEpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uQ/+zOySUXz8+736XnP9ZMKw5v3u7n3hZqXwPthJL04=; b=vW2WYN0i+654/ACsqhNoz1i6Tyf35QxDfmseG7ygjnSa+dO4Sfc4N/Je5e0HYIliwG FknGqKPIuzK0rnrjZ18YKqv9gUDxPDJb+9VuslDfbjlh9a3mUvgxJVuwnCHbbVgF78vg KwPH6Ms7R3ELnw006cM4nWtXzDO63usnGybA7MHp4sV+IATHBM3YiaZWJ4Skr+XnyKpL PkQlrjTKZzJ/PzTbVDz1hRZtZnRnIugHB1EXIWZnympE6sYAYTKIvRGWYYgcjSUCRozn 650Baf/BzXd7gWG0d+/CRPszTB53PuOPfbCwuczQi2S9/Z5Pn8B6G3VA5TXj2cmeIR08 RMig== X-Gm-Message-State: AOAM5323p65QfhkNJqZ6DHiXddsoJ4WPvwA8wvRBgeANDty8EmxAZv6a QzhBdLhIG0ra/pdl1CxY8+emSg== X-Google-Smtp-Source: ABdhPJybJrED/Lat35Z7w8WNd8v013GgDX61eCQ4gyX/sbBxICtNUU4BIT8hBCfnMDyy2Q9N5UKnag== X-Received: by 2002:a17:903:2445:b0:142:830:ea8e with SMTP id l5-20020a170903244500b001420830ea8emr104746579pls.54.1637568588467; Mon, 22 Nov 2021 00:09:48 -0800 (PST) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id il13sm19507813pjb.52.2021.11.22.00.09.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Nov 2021 00:09:48 -0800 (PST) From: Shawn Guo To: Linus Walleij Cc: Bjorn Andersson , Loic Poulain , linux-gpio@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH] pinctrl: qcom: qcm2290: Add GPIO wakeirq map Date: Mon, 22 Nov 2021 16:09:38 +0800 Message-Id: <20211122080938.20623-1-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It adds the map of wakeup capable GPIOs and the pins at MPM wake controller on QCM2290, so that these GPIOs can wake up the SoC from vlow/vmin low power mode. Signed-off-by: Shawn Guo --- drivers/pinctrl/qcom/pinctrl-qcm2290.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-qcm2290.c b/drivers/pinctrl/qcom/pinctrl-qcm2290.c index 3f05c0a24b79..aa9325f333fb 100644 --- a/drivers/pinctrl/qcom/pinctrl-qcm2290.c +++ b/drivers/pinctrl/qcom/pinctrl-qcm2290.c @@ -1083,6 +1083,16 @@ static const struct msm_pingroup qcm2290_groups[] = { [133] = SDC_QDSD_PINGROUP(sdc2_data, 0x86000, 9, 0), }; +static const struct msm_gpio_wakeirq_map qcm2290_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 }, { 69, 33 }, { 70, 34 }, { 72, 72 }, { 75, 35 }, + { 79, 36 }, { 80, 21 }, { 81, 38 }, { 86, 19 }, { 87, 42 }, { 88, 43 }, + { 89, 45 }, { 91, 74 }, { 94, 47 }, { 95, 48 }, { 96, 49 }, { 97, 50 }, +}; + static const struct msm_pinctrl_soc_data qcm2290_pinctrl = { .pins = qcm2290_pins, .npins = ARRAY_SIZE(qcm2290_pins), @@ -1091,6 +1101,8 @@ static const struct msm_pinctrl_soc_data qcm2290_pinctrl = { .groups = qcm2290_groups, .ngroups = ARRAY_SIZE(qcm2290_groups), .ngpios = 127, + .wakeirq_map = qcm2290_mpm_map, + .nwakeirq_map = ARRAY_SIZE(qcm2290_mpm_map), }; static int qcm2290_pinctrl_probe(struct platform_device *pdev) -- 2.17.1