Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp952323pxf; Thu, 11 Mar 2021 20:48:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyW/xev4gFTmfb1JED+FVedceIoaDbPHkWWSgmrh6JEHUx5op/oGlY/pSO0fcZOaiC8dfF4 X-Received: by 2002:a17:906:2804:: with SMTP id r4mr6446687ejc.521.1615524518741; Thu, 11 Mar 2021 20:48:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615524518; cv=none; d=google.com; s=arc-20160816; b=tpsYx0zfw+UHtvMBOxHX6Ate72qu111xEMq9f+An7Fog61mJggax8071vl2MIqynSV RloLeltOIkZ26oBpi4GWKuI/XS4Qyx0YyjkcfFE7sbPhvqKtJAaoQe6ssdN6ErL0PlFA t6gqXgEl+crb2WNh9x2TXCzGCbjflVvLW4eOxqOcPkSJ7QmVSD7/nNNJh1V+kip09uTi jiMVmjhM3+gTVgCtRjKgyvzreWUahrDlCLvxQWuDbmZxbyYPLblHmbt3CQPHihwA+GaI Zx1qks/LePy4NnH2Wmx8vGUEXcPot9dbo/LE1mOTFsV7DjhfxbD4t4ifzD2mTzdn9i2v coUw== 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=5yFgJ7GNzCdl3iz/LbbZhQ4yHwcT34AJuTdiL69mvWE=; b=DO1omq7JgxxQxKWdu8UmLm+Y8YGJtc5snOFRDvlzMD84th+9oIfl4BPovdtsR+8RqE PqTbwouzlAiTlShx0n/x6q6U7Q7CtKxndilofxuHecJHfimqt2hJrIvWR336qkSwSKMk Kna7jjC2kZki5daQ+Kb8fK2ykRyJfxtQQwlOVcmpeXDeglr3LL2wCfk7fWhC7dOtJ52y RXGTOtsnF2iL6nsse2Sl7ZQAovxXT3TRMILL3zFjDnMrwdn4gU+iHG0d93HGoBsLbyqT Payhlpk2Tsy3SCXVL/gmeHPpoDqw8Dnpzs/L/0Hrcif4wTWCMuqL6ilveE0SsZP1eoQN 4N3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HJn0dbcu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si3200056ejp.143.2021.03.11.20.48.15; Thu, 11 Mar 2021 20:48:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HJn0dbcu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231920AbhCLDld (ORCPT + 99 others); Thu, 11 Mar 2021 22:41:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231919AbhCLDlP (ORCPT ); Thu, 11 Mar 2021 22:41:15 -0500 Received: from mail-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03CF1C061761 for ; Thu, 11 Mar 2021 19:41:14 -0800 (PST) Received: by mail-oo1-xc30.google.com with SMTP id 125-20020a4a1a830000b02901b6a144a417so1220376oof.13 for ; Thu, 11 Mar 2021 19:41:14 -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:mime-version :content-transfer-encoding; bh=5yFgJ7GNzCdl3iz/LbbZhQ4yHwcT34AJuTdiL69mvWE=; b=HJn0dbcu7M0jqNWWVsXo9wgI0LF6Vf1Sm2PLlVEQvLtec3DGrpkSy6/ofprpIZtqr0 gga5ZMzIUPlqSfzaSk15bWLouzUIdKn60z7hfuc/4fYz3oXaMMMaReRYSBtOPj3a6rjd pVCEDEPNxcuFDxHJdGtqqE5fi36RJv9Qw8vyDAf74rTCUrXE5+DJT+hHJwax5tSLGH0c XXf4bXM7hCRnYlnoElLYH64Mqz/ffV/gQYzMAKCOOFOcd5fdbnx+3NkKy2Z5T57JIzWu dXfH1xlGVIFLncUVL21v+7Ta/9TzdNQIC/H0uzTRGIurypVH0mMxyGqh0ry+SUMa4PbT 4NPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5yFgJ7GNzCdl3iz/LbbZhQ4yHwcT34AJuTdiL69mvWE=; b=WjUooGhWtBtGJr96mIqAXAUYhS0cnIiKmZvHOpwGPU4gwgTnQDG070UH0FpR+orcPu fGcTpqUAf9zQLAl08dDHaDJ1mt8o2iLrsybZG8C/PbtQ3U2o0miaw+NRH4RR7hDxoQ7x iftNwC1h8HdixsV+59Etm/37RwdI9S+DEbHIGAKWLYQx21DSZ8TwcY5yUJnWjOjkBvm0 6w7pBI4b7P0z2weCCv5Yp1EicZScqGORWFvbcKsX3c5FIzih0vrUS1aQLdT8Ffcq/Jsd kzgmOyiIZJcDO7oOUwkdMVu8FdW6kDZXQoh+b+h0APyELoIFIu8l/2FWOw+rne/Ia2am Ma9A== X-Gm-Message-State: AOAM530G72thuCCY8UBvU85MQV03GCLepBtDE7gmRHwlFeONG7epZvoZ zAK8ZFleyK/ZcmDIjxtXJoAMCw== X-Received: by 2002:a4a:c706:: with SMTP id n6mr1733410ooq.19.1615520474221; Thu, 11 Mar 2021 19:41:14 -0800 (PST) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id 18sm376829oir.4.2021.03.11.19.41.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 19:41:13 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Linus Walleij Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Vinod Koul Subject: [PATCH 1/2] pinctrl: qcom: sm8350: add GPIO wakeup interrupt map Date: Thu, 11 Mar 2021 19:42:17 -0800 Message-Id: <20210312034218.3324410-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lina Iyer GPIOs that can be configured as wakeup sources, have their interrupt lines routed to PDC interrupt controller. Provide the interrupt map of the GPIO to its wakeup capable interrupt parent. Signed-off-by: Lina Iyer Signed-off-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-sm8350.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sm8350.c b/drivers/pinctrl/qcom/pinctrl-sm8350.c index a406ed0ec7d3..4d8f8636c2b3 100644 --- a/drivers/pinctrl/qcom/pinctrl-sm8350.c +++ b/drivers/pinctrl/qcom/pinctrl-sm8350.c @@ -1603,6 +1603,25 @@ static const struct msm_pingroup sm8350_groups[] = { [206] = SDC_PINGROUP(sdc2_data, 0x1cf000, 9, 0), }; +static const struct msm_gpio_wakeirq_map sm8350_pdc_map[] = { + { 2, 117 }, { 7, 82 }, { 11, 83 }, { 14, 80 }, { 15, 146 }, + { 19, 121 }, { 23, 84 }, { 26, 86 }, { 27, 75 }, { 31, 85 }, + { 32, 97 }, { 34, 98 }, { 35, 131 }, { 36, 79 }, { 38, 99 }, + { 39, 92 }, { 40, 101 }, { 43, 137 }, { 44, 102 }, { 46, 96 }, + { 47, 93 }, { 50, 108 }, { 51, 127 }, { 55, 128 }, { 56, 81 }, + { 59, 112 }, { 60, 119 }, { 63, 73 }, { 67, 74 }, { 71, 134 }, + { 75, 103 }, { 79, 104 }, { 80, 126 }, { 81, 139 }, { 82, 140 }, + { 83, 141 }, { 84, 124 }, { 85, 109 }, { 86, 143 }, { 87, 138 }, + { 88, 122 }, { 89, 113 }, { 90, 114 }, { 91, 115 }, { 92, 76 }, + { 95, 147 }, { 96, 148 }, { 98, 149 }, { 99, 150 }, { 115, 125 }, + { 116, 106 }, { 117, 105 }, { 118, 116 }, { 119, 123 }, { 130, 145 }, + { 136, 72 }, { 140, 100 }, { 151, 110 }, { 153, 95 }, { 155, 107 }, + { 156, 94 }, { 157, 111 }, { 159, 118 }, { 162, 77 }, { 165, 78 }, + { 169, 70 }, { 172, 132 }, { 174, 87 }, { 175, 88 }, { 177, 89 }, + { 179, 120 }, { 180, 129 }, { 183, 90 }, { 185, 136 }, { 187, 142 }, + { 190, 144 }, { 198, 91 }, { 200, 133 }, { 202, 135 }, +}; + static const struct msm_pinctrl_soc_data sm8350_tlmm = { .pins = sm8350_pins, .npins = ARRAY_SIZE(sm8350_pins), @@ -1611,6 +1630,8 @@ static const struct msm_pinctrl_soc_data sm8350_tlmm = { .groups = sm8350_groups, .ngroups = ARRAY_SIZE(sm8350_groups), .ngpios = 204, + .wakeirq_map = sm8350_pdc_map, + .nwakeirq_map = ARRAY_SIZE(sm8350_pdc_map), }; static int sm8350_tlmm_probe(struct platform_device *pdev) -- 2.29.2