Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3542612ybc; Thu, 14 Nov 2019 10:40:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzQgEliXGm/wp5ejJoLSneaCpWx8/kD/MENn9DB77f41KsdmoCmJYo7NKPluZRUNFTmtX6L X-Received: by 2002:a19:5010:: with SMTP id e16mr8400177lfb.49.1573756834117; Thu, 14 Nov 2019 10:40:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573756834; cv=none; d=google.com; s=arc-20160816; b=zyJpgT+wM4s/1Hkn/hUrjJ0/0+pzNEfz/chZA3FkFAiK/NScrdtNhmDLXEeSL1zhei 8HAIGYq7nPZZDOOcoWdf9GJ7jwwZjhtCOfsi7KLHQP9DLN66uDfZ5V/ojC28R3rSjaXA ipvKoI+zV5dNj4Kyz9sWb/kXyyOG01+RZIozzT37HbqeL0LPP524ocJjp3thXVNnFYx0 qCHIq7iWAVuPRFGDNJL2zjxsEkpruq1nwX6PtQjtKWxuR3htxkFrTs1fnv1WYcVgjgpz VTQsMuLW1pKoWRWKBTmF8110Z4yGIcmeJbyyyHJAG+C6F2q2oWwMzK0/QNSxy4ruZYHT fP0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature; bh=/oXD+GLcPeo/fo8gR0aHSsmyrnQBEsBxlNl2kdlZFxw=; b=mub/MPfcBj7UKyfAXjk3x/gNmuX7XrxHHnmcqNHb6MaIX4n1liMYa6cggqyhZn0w7y Axey95wJQ11VzCWvr0gpTmHvufBv/Xc3YrTd7QCTVU+YsI6+lUoAnVNY2IFKlU3KGAw7 DhOhMpaUgYpzAC1xIJjaQMn/Vjq9akl2rVhNVz6ULNXYQjcG32hJnGEmsjwGfcJwF/tN 5iRZls5dNdEFgJEgmKx7XT25FAl4Jt2mIlchuXQC9Gim4wQI9wVLfHqWWf8ySss8nkh7 a2ippaeECFuWk/Iyc4F3R5RfAitRh1B7TiytaDPf2k+4AQfTrRP3cSemzJtovvV76ech HxUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=LBfyAnWM; dkim=pass header.i=@codeaurora.org header.s=default header.b=dVTejDTt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j20si3845419ejm.348.2019.11.14.10.40.09; Thu, 14 Nov 2019 10:40:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=LBfyAnWM; dkim=pass header.i=@codeaurora.org header.s=default header.b=dVTejDTt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727401AbfKNSgP (ORCPT + 99 others); Thu, 14 Nov 2019 13:36:15 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:56196 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727237AbfKNSfz (ORCPT ); Thu, 14 Nov 2019 13:35:55 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id BDF32613B7; Thu, 14 Nov 2019 18:35:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1573756554; bh=7Y5bMRJss2Ev4CyRFfq17Trlj1RSHvdmtcSH456kNAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LBfyAnWMJXT/x7RWh3mVT0cz59xr6+jkWdiik7ijtHP79nmdXRM0kxSrO7zrE6c97 kTQN+EJEasiy1GYWoFbctoVVaW4KBbyOXcbQxRY73qMKQ/P4Hb3d7tI0wXSt9GPbBQ SONutXTc0bmhIO6niR8P2QGOjBuWobrMfbfk6w54= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5486F61466; Thu, 14 Nov 2019 18:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1573756547; bh=7Y5bMRJss2Ev4CyRFfq17Trlj1RSHvdmtcSH456kNAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dVTejDTtoEBoGGGywhNr8uBRvHFHdU6Wk0LOwxOEp76p5RSBTkcfoK9jjlWe21mFG FJw9ZnUVhP2LDF7m154waxQond7rZIpBwfsl/QIgI1euer8/jkwoz536zI/RtN/BCv HcNlY1jMlRoZuv3+Ze+ViMdcLEWKnDMHEpAhIriE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5486F61466 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org From: Lina Iyer To: swboyd@chromium.org, maz@kernel.org, linus.walleij@linaro.org, bjorn.andersson@linaro.org Cc: evgreen@chromium.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, mkshah@codeaurora.org, linux-gpio@vger.kernel.org, agross@kernel.org, dianders@chromium.org, Lina Iyer Subject: [PATCH 09/12] drivers: pinctrl: sdm845: add PDC wakeup interrupt map for GPIOs Date: Thu, 14 Nov 2019 11:35:18 -0700 Message-Id: <1573756521-27373-10-git-send-email-ilina@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573756521-27373-1-git-send-email-ilina@codeaurora.org> References: <1573756521-27373-1-git-send-email-ilina@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add interrupt parents for wakeup capable GPIOs for Qualcomm SDM845 SoC. Signed-off-by: Lina Iyer Reviewed-by: Linus Walleij --- Changes in RFC v2: - Rearranged GPIO wakeup parent map --- drivers/pinctrl/qcom/pinctrl-sdm845.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/qcom/pinctrl-sdm845.c b/drivers/pinctrl/qcom/pinctrl-sdm845.c index ce49597..2834d2c 100644 --- a/drivers/pinctrl/qcom/pinctrl-sdm845.c +++ b/drivers/pinctrl/qcom/pinctrl-sdm845.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. */ #include @@ -1282,6 +1282,24 @@ static const int sdm845_acpi_reserved_gpios[] = { 0, 1, 2, 3, 81, 82, 83, 84, -1 }; +static const struct msm_gpio_wakeirq_map sdm845_pdc_map[] = { + { 1, 30 }, { 3, 31 }, { 5, 32 }, { 10, 33 }, { 11, 34 }, + { 20, 35 }, { 22, 36 }, { 24, 37 }, { 26, 38 }, { 30, 39 }, + { 31, 117 }, { 32, 41 }, { 34, 42 }, { 36, 43 }, { 37, 44 }, + { 38, 45 }, { 39, 46 }, { 40, 47 }, { 41, 115 }, { 43, 49 }, + { 44, 50 }, { 46, 51 }, { 48, 52 }, { 49, 118 }, { 52, 54 }, + { 53, 55 }, { 54, 56 }, { 56, 57 }, { 57, 58 }, { 58, 59 }, + { 59, 60 }, { 60, 61 }, { 61, 62 }, { 62, 63 }, { 63, 64 }, + { 64, 65 }, { 66, 66 }, { 68, 67 }, { 71, 68 }, { 73, 69 }, + { 77, 70 }, { 78, 71 }, { 79, 72 }, { 80, 73 }, { 84, 74 }, + { 85, 75 }, { 86, 76 }, { 88, 77 }, { 89, 116 }, { 91, 79 }, + { 92, 80 }, { 95, 81 }, { 96, 82 }, { 97, 83 }, { 101, 84 }, + { 103, 85 }, { 104, 86 }, { 115, 90 }, { 116, 91 }, { 117, 92 }, + { 118, 93 }, { 119, 94 }, { 120, 95 }, { 121, 96 }, { 122, 97 }, + { 123, 98 }, { 124, 99 }, { 125, 100 }, { 127, 102 }, { 128, 103 }, + { 129, 104 }, { 130, 105 }, { 132, 106 }, { 133, 107 }, { 145, 108 }, +}; + static const struct msm_pinctrl_soc_data sdm845_pinctrl = { .pins = sdm845_pins, .npins = ARRAY_SIZE(sdm845_pins), @@ -1290,6 +1308,9 @@ static const struct msm_pinctrl_soc_data sdm845_pinctrl = { .groups = sdm845_groups, .ngroups = ARRAY_SIZE(sdm845_groups), .ngpios = 151, + .wakeirq_map = sdm845_pdc_map, + .nwakeirq_map = ARRAY_SIZE(sdm845_pdc_map), + }; static const struct msm_pinctrl_soc_data sdm845_acpi_pinctrl = { -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project