From nobody Sun Feb 8 21:27:10 2026 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 7425FC7EE22 for ; Mon, 15 May 2023 09:27:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239014AbjEOJ1C (ORCPT ); Mon, 15 May 2023 05:27:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238441AbjEOJ0k (ORCPT ); Mon, 15 May 2023 05:26:40 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1B441FC3 for ; Mon, 15 May 2023 02:25:19 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f4c6c4b51eso54436135e9.2 for ; Mon, 15 May 2023 02:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1684142718; x=1686734718; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=PVidKPM6B2z7ddqDY5aZH6ShVFOkPon+GZvhdRhyC+I=; b=yvkH4Qgu/dwqliFP7mDhEJKWKKVgcEUkdrPtIxjen3Hd6A7Tu0RXeDdCtK0m7KJLKk k7+FpDzBxJNRgbFpxWPtvBhFdowCcoibvxT7VFm2Kf/VmP8jA/2P/OLV6BbM4Fd6/7tt cAWULVtEsc1vq0pvO8dbjFKVUbINxHOb985FoR4jB/g+Wm0qakdTe+ctmYWMBhqJz4mV 1MeH8UqbP71+F+OksoBcAfgEG3lGzlYtPZd8d7GQVU/d4g8svoB5wsBN7u6AvfV1tkZa k8/VDCpPlPwbxQV4JAnlkw06255O/V92DgvrAkROh8LcXUAUjjEiiZQ+SEebQIh6YjSg EbEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684142718; x=1686734718; 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=PVidKPM6B2z7ddqDY5aZH6ShVFOkPon+GZvhdRhyC+I=; b=WfCHXWB8UaSNXSupETpEvAl3DSo8X9ZCh7r1zb/iDW7WwLQdJv7SuYbQJ9TiUX0g9K 2AYszsnYkeKmlZGjDA0Twgp4lZG9DkQeY9bLwNsE2jaeT2gkyoLBDeZZWI9sXpUf28UY Ol1vhILMzbeIS/Kiuyit3fzfR4+bE4yik5AfKLDdrG2aG+w5koW9Cs4BLL6uB3X4u8/X JAYgTPYlRIc19W/Zvl2iOpjTVJPtLSIytzchMdmlDJrmTyeFfMdnJZuYGgDrzfS+yVB/ IZfXbQl3ikSq8TXkEEWGwNJK/50nHVLU/DBbN7FlW01PNmF/P1qv5MYuzxiKa3pDn4wR b4jA== X-Gm-Message-State: AC+VfDwhrFE1kFRZhVFuEMJPNrlbMufyC2ZH7O1h1DCbrAXY3Cbc+Srk tD6uHuyF6D0wpR9f1H0L+WZUQA== X-Google-Smtp-Source: ACHHUZ62YhhyaBS2jVJvAuBbi9ScTBt4hk24OJHdQyaZCVpoDF+uyjZhhpE8DLxisuDUzjVVGH5xdQ== X-Received: by 2002:a05:600c:cf:b0:3f4:9bee:b9c with SMTP id u15-20020a05600c00cf00b003f49bee0b9cmr13459168wmm.18.1684142717849; Mon, 15 May 2023 02:25:17 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:1388:9f6:c7d9:3b77]) by smtp.gmail.com with ESMTPSA id s2-20020a5d4ec2000000b003063a92bbf5sm32013764wrv.70.2023.05.15.02.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 02:25:17 -0700 (PDT) From: Bartosz Golaszewski To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Linus Walleij Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2] pinctrl: qcom: sa8775p: add the wakeirq map Date: Mon, 15 May 2023 11:25:15 +0200 Message-Id: <20230515092515.180920-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Bartosz Golaszewski The SA8775P TLMM driver is missing the GPIO-to-wakeup-pin mapping. This adds it. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- v1 -> v2: - fix the 30->200 mapping drivers/pinctrl/qcom/pinctrl-sa8775p.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sa8775p.c b/drivers/pinctrl/qcom/= pinctrl-sa8775p.c index 2ae7cdca65d3..6ea0197b36c6 100644 --- a/drivers/pinctrl/qcom/pinctrl-sa8775p.c +++ b/drivers/pinctrl/qcom/pinctrl-sa8775p.c @@ -1491,6 +1491,23 @@ static const struct msm_pingroup sa8775p_groups[] = =3D { [153] =3D SDC_QDSD_PINGROUP(sdc1_data, 0x199000, 9, 0), }; =20 +static const struct msm_gpio_wakeirq_map sa8775p_pdc_map[] =3D { + { 0, 169 }, { 1, 174 }, { 2, 170 }, { 3, 175 }, { 4, 171 }, { 5, 173 }, + { 6, 172 }, { 7, 182 }, { 10, 220 }, { 11, 213 }, { 12, 221 }, + { 16, 230 }, { 19, 231 }, { 20, 232 }, { 23, 233 }, { 24, 234 }, + { 26, 223 }, { 27, 235 }, { 28, 209 }, { 29, 176 }, { 30, 200 }, + { 31, 201 }, { 32, 212 }, { 35, 177 }, { 36, 178 }, { 39, 184 }, + { 40, 185 }, { 41, 227 }, { 42, 186 }, { 43, 228 }, { 45, 187 }, + { 47, 188 }, { 48, 194 }, { 51, 195 }, { 52, 196 }, { 55, 197 }, + { 56, 198 }, { 57, 236 }, { 58, 192 }, { 59, 193 }, { 72, 179 }, + { 73, 180 }, { 74, 181 }, { 75, 202 }, { 76, 183 }, { 77, 189 }, + { 78, 190 }, { 79, 191 }, { 80, 199 }, { 83, 204 }, { 84, 205 }, + { 85, 229 }, { 86, 206 }, { 89, 207 }, { 91, 208 }, { 94, 214 }, + { 95, 215 }, { 96, 237 }, { 97, 216 }, { 98, 238 }, { 99, 217 }, + { 100, 239 }, { 105, 219 }, { 106, 210 }, { 107, 211 }, { 108, 222 }, + { 109, 203 }, { 145, 225 }, { 146, 226 }, +}; + static const struct msm_pinctrl_soc_data sa8775p_pinctrl =3D { .pins =3D sa8775p_pins, .npins =3D ARRAY_SIZE(sa8775p_pins), @@ -1499,6 +1516,8 @@ static const struct msm_pinctrl_soc_data sa8775p_pinc= trl =3D { .groups =3D sa8775p_groups, .ngroups =3D ARRAY_SIZE(sa8775p_groups), .ngpios =3D 150, + .wakeirq_map =3D sa8775p_pdc_map, + .nwakeirq_map =3D ARRAY_SIZE(sa8775p_pdc_map), }; =20 static int sa8775p_pinctrl_probe(struct platform_device *pdev) --=20 2.39.2