From patchwork Fri Sep 22 22:40:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 143720 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5924582vqi; Fri, 22 Sep 2023 16:24:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGca+wPva6Qn1XjW5DFyu0KAGbgo/9JcIpkWsiJIBpW1VZN/fvPDoks0ri991kRYzHnEw5w X-Received: by 2002:a05:6808:bce:b0:3a4:2485:85a1 with SMTP id o14-20020a0568080bce00b003a4248585a1mr1425676oik.3.1695425077861; Fri, 22 Sep 2023 16:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695425077; cv=none; d=google.com; s=arc-20160816; b=u027eV7JfekeGA+Nie9NYvcTlLn519W4conu7qkY5OcITgtTW7c6Gj1m6i8FOBaLqb JjBrUH+82jL7ntIyQLMa6LLdUe16/MemOlizGOx2rQPKzEjrvZtso+28+m8kDmtVJtL7 SNCl02qdiYaUhm3kXTXKiiI65K2R7p9cpgS5jCLge6q+0IsvfXzbVIdaJRkgKROthh78 S4Wuf7l3rX+zhJw0FVthtiB6RzL/Fq+vmv+a3XGKEkcYD4G+4WrVBi3ljxf6pYL+4ZwB KTjUpaks1e3KB7P/YWHznG+/hAy5Md5JurVG7wkR3LTS1T8c6Kq6SGVySLikFEiQzVVv C13w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=l/H0iMbs9oDvkcYDnhpon5p0YhVA9HnElyeHpI8GSo8=; fh=KK1u1CY3y3cF6IBMx+639trJcCNvL2tT/y3DoBRs8X0=; b=aYTvvNIMt+XzAtHwuZ9vG1GC5FphroSC/WYK/9DjMo5JlHD+Pwe59abgE82YbuCdiZ ayyRRF2VjJyVI8CtE4hmwbTBoupMPKk2K6nNvxRtFWQF1+sY9WQpjvVRfvc1IkajdpEZ sFApFKdfiAeLbhbtI6GRU6Z+691CJgDH80W5ZZD0OQV1Ia+bfdp2NkhvqCDczi4Pyanx uEVevwKC0e/uNLWgivX30y3/Gj1SuB121zBwWe8MdfsS8ugBAKVw3hveSp9BrkR/+jir /KlosBaUDo0uRzX9gaddXBiLVgBevTkFqjCBzKHyvwx+SCCl8SYmD3hBJUGWrMw+omFe aAbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JdtXepSl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u11-20020a6540cb000000b00577d99bd05esi4372893pgp.743.2023.09.22.16.24.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 16:24:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JdtXepSl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 37F57804DD9B; Fri, 22 Sep 2023 15:40:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230151AbjIVWkp (ORCPT + 28 others); Fri, 22 Sep 2023 18:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230132AbjIVWkl (ORCPT ); Fri, 22 Sep 2023 18:40:41 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDE3E1A4; Fri, 22 Sep 2023 15:40:35 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c008d8fd07so48947311fa.1; Fri, 22 Sep 2023 15:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695422434; x=1696027234; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l/H0iMbs9oDvkcYDnhpon5p0YhVA9HnElyeHpI8GSo8=; b=JdtXepSlYH3qM59AHOH6dEfQ8lEG+idRt3N8iWbwSbg9i+0AlCbEJtYCiE9PrN4V+t Ed5gtIr/U0aAAQ3dzH4WXKEDDdYlNOcPSvMcM6+uUafZ3cczcXiy2JXowvVMd55rY+5P hTKLNeOv+SLW2fwrafWzN/ejKlolNBM8ZZvEt8bX5U1g7k0wliAOnaP4WTYDiF1aSC6z KQuqXpTjdhidFezVX9gaxRdSpFoWCm1lmRCgYLyad+HH3CB6M04MfVgJJxxen8guXruC AUGeXQ25yfOVWd7AbomHPazZhOEkvFVZ9T+rEPGkWi64LlgV6hCGU7MTRDBPfcs2101Q d9SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695422434; x=1696027234; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l/H0iMbs9oDvkcYDnhpon5p0YhVA9HnElyeHpI8GSo8=; b=XjRWzJ5AAPuXuKILUDd/dAFA0OK24OL1XdLQ5sXXLmSC/xlkMV6bBnDJdQv+lX7RMC k6n13JIu/h9rp+HqY3cAZ2F1x/TOYgdqzXWMKLTBp9qIZ4z2r/FHcW7x37Pf5A42aQSF okb8aZfq2F2F0BhwCb7InpMbzOn2qs+bRpbC5sInGuYz3ZSa9qMXmu9vUQL1WtI9uAaj LnJ8dqfcH8iol0pK11GaV/CHdXxsgcfyRk9oXZ8oPecbdWi4ae4k6NoXYpqtsET+P13a 7kHNvWkSxfZXWoZKZ9m0aRFGYbTGG9LxjNyBDEcHmCCFOT9fiFasJJ2iT4dTCBxvsNy8 ES1w== X-Gm-Message-State: AOJu0YwEvbMC7MOw8dp0f3IzHVHi1eVzDKjr1w/hOLz6sAY8yAotyNjB FyM7CNEK66OD9Sxm8nwxS9zwe1b8Or/srQ== X-Received: by 2002:a2e:9ace:0:b0:2b6:9da9:2884 with SMTP id p14-20020a2e9ace000000b002b69da92884mr459394ljj.40.1695422434015; Fri, 22 Sep 2023 15:40:34 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-56733b-36.dhcp.inet.fi. [86.115.59.36]) by smtp.gmail.com with ESMTPSA id j2-20020a2e8502000000b002bfec05a693sm1090423lji.22.2023.09.22.15.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 15:40:33 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Bjorn Andersson , Andy Gross , Konrad Dybcio , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] pinctrl: qcom: msm8974: Add MPM pin mappings Date: Sat, 23 Sep 2023 01:40:27 +0300 Message-Id: <20230922224027.85291-3-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230922224027.85291-1-matti.lehtimaki@gmail.com> References: <20230922224027.85291-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 22 Sep 2023 15:40:53 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777782046391817017 X-GMAIL-MSGID: 1777782046391817017 Add pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins. Signed-off-by: Matti Lehtimäki Reviewed-by: Luca Weiss --- drivers/pinctrl/qcom/pinctrl-msm8x74.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-msm8x74.c b/drivers/pinctrl/qcom/pinctrl-msm8x74.c index d5fe62992849..238c83f6ec4f 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm8x74.c +++ b/drivers/pinctrl/qcom/pinctrl-msm8x74.c @@ -1045,6 +1045,16 @@ static const struct msm_pingroup msm8x74_groups[] = { #define NUM_GPIO_PINGROUPS 146 +static const struct msm_gpio_wakeirq_map msm8x74_mpm_map[] = { + { 1, 4 }, { 5, 5 }, { 9, 6 }, { 18, 7 }, { 20, 8 }, { 24, 9 }, + { 27, 10 }, { 28, 11 }, { 34, 12 }, { 35, 13 }, { 37, 14 }, { 42, 15 }, + { 44, 16 }, { 46, 17 }, { 50, 18 }, { 54, 19 }, { 59, 20 }, { 61, 21 }, + { 62, 22 }, { 64, 23 }, { 65, 24 }, { 66, 25 }, { 67, 26 }, { 68, 27 }, + { 71, 28 }, { 72, 29 }, { 73, 30 }, { 74, 31 }, { 75, 32 }, { 77, 33 }, + { 79, 34 }, { 80, 35 }, { 82, 36 }, { 86, 37 }, { 92, 38 }, { 93, 39 }, + { 95, 40 }, { 102, 3 }, { 144, 41 }, +}; + static const struct msm_pinctrl_soc_data msm8x74_pinctrl = { .pins = msm8x74_pins, .npins = ARRAY_SIZE(msm8x74_pins), @@ -1053,6 +1063,8 @@ static const struct msm_pinctrl_soc_data msm8x74_pinctrl = { .groups = msm8x74_groups, .ngroups = ARRAY_SIZE(msm8x74_groups), .ngpios = NUM_GPIO_PINGROUPS, + .wakeirq_map = msm8x74_mpm_map, + .nwakeirq_map = ARRAY_SIZE(msm8x74_mpm_map), }; static int msm8x74_pinctrl_probe(struct platform_device *pdev)