From patchwork Fri Sep 22 22:40:26 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: 143704 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5907046vqi; Fri, 22 Sep 2023 15:42:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHifcf3A/r3N9oOCBavzfV480AFryQTUbnvbomYW1NbC8jR6a2gWSjrsk01vdnMTQ3Ovi1h X-Received: by 2002:a05:6808:208e:b0:3a8:4e27:3af3 with SMTP id s14-20020a056808208e00b003a84e273af3mr1195926oiw.48.1695422573746; Fri, 22 Sep 2023 15:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695422573; cv=none; d=google.com; s=arc-20160816; b=yPsjjHrw7clq7D+j7w0CazklEykxYz7zs8i/XDWnbTvyVwOLl1uQzgyp9C4c7VqZef O/IJ7mVb44cv7oJpinax/YZXqCqbO5wSzcFbA+EcCufPGjV6/525ZncZaIqjXbHU7Gh9 k7a6clH1eNbTXxZT0ve2c6KOoTATbhvc8fE9VqTbVQIkvcWSKgpgvlCGDpwRmShfqUgW k7EMjIe4Zyy6KKofwpelBE7nA3vRn1WGiwUO4tJdLAJz3n53GnpulnFZdYBHVaECuB0k /JColzu1WMVXjJ4iHFPUY9VYs0bIfzcAuWJ9ldGHII6wFrcUUi8u0f7wVt63AIrSH/0r QFCw== 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=tnnYflUXki788FbyEpOYccXKNL0/Zg1ISD6i+gaFKJg=; fh=KK1u1CY3y3cF6IBMx+639trJcCNvL2tT/y3DoBRs8X0=; b=RG7aWc9+fHY0uwsGUWLevPVY7PjqUoLJHXQXlr9eq+PdU0QjZAZXYir65IekqZq7yv sGjE3sA2INZP/nvQO6ct/lTB5s5UfYRhm/KMMr5K+t+PaWkjLeq2xNz8ZYtQKlHfUm3M /AWLSeidxs5Z6npqSalNvuK56sgsMABrs/HJdvjXU/wgzTlwXJ7mB4CVj/lLZh9f/dH0 Oxov7WTR+g3JwNCXAd0orT6l1b2vMAo5paRv/GzYVaAzr4BgBsTpiXNOQfv/H+8l/+0T D7dNjoN9Luy4BE+plvQxdcQTrxRe5G4jIsM0qzIF4BcB2D24MdzuOaBRBMPUOvjzQP/X PoZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I5KGoDCf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bw9-20020a056a00408900b0068fc49cc456si4753371pfb.248.2023.09.22.15.42.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 15:42:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I5KGoDCf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id DCFF6803D5B8; Fri, 22 Sep 2023 15:41:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230136AbjIVWkm (ORCPT + 28 others); Fri, 22 Sep 2023 18:40:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbjIVWkk (ORCPT ); Fri, 22 Sep 2023 18:40:40 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3851519A; Fri, 22 Sep 2023 15:40:34 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2c02e232c48so49409711fa.1; Fri, 22 Sep 2023 15:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695422432; x=1696027232; 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=tnnYflUXki788FbyEpOYccXKNL0/Zg1ISD6i+gaFKJg=; b=I5KGoDCfhg2FLuq+5+qoq+3u03alPW0wUGN+Pwsz0ngEu9r1jRZ9T9WHZWyBw9GRVt ylXaMU/vIDGU0ATEnXG67cc4WvnydjBfK8XQh1JiIMgWtF3lXbtHsKbZd3jtq1B+RA6c VxAZuRjfdB3pZkCF68YLil09EDT+0fsSR/mmyo2C6bkUzl19fNDVPr8gRsWY9RElu4ov 5veZu+ketPy1TNJrANI4QSIHfhDcnaXwLnCO5DmXPK1tTJ1iYTo/Hrux5yi7SlBoSe6o OCtQwX1ArLjP4N/KXmxp1KV7PbGEPXjkQQ8fE+X/u/a5u4I7S5onY43aEyr1SbgWFM+P ormg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695422432; x=1696027232; 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=tnnYflUXki788FbyEpOYccXKNL0/Zg1ISD6i+gaFKJg=; b=uAR8V083gMRjMSivi02g1T0V+HNBNjFNxcPPWG42xTtruMlG1hvJ01O0hceQ1vzxGI x83IdTrakTYLIanOc7GIh+GOCsSBoceARKcMRyhkU3Cq7jYacXtq5DtI/PmxS8WPSX4h KV+UFrrcant2u758fXre1DmNk6kOeqPKoFJQOp+5j9RFfCpP9aQxY7hKKQCNRhBEkZU8 dnL0z78z1bAh7JahFtQsfp0/oP5cqPBeQKeLE8Pg5WRyiJa/MaFLfLHzm6WKFY4u5klr sW5V5AuCRE62qsc88XH9zXOEnItSxQtlpMRUogILENiOGJZ6Tgatdj6KQTNfp+sc8yPl 9kLQ== X-Gm-Message-State: AOJu0YytCIovwBS2v+nkQhx1EDOJ4q22hxBmFIZqpCaqbEhCGJvaLHy0 PpoQKmAi0L1uJyIf1M7qMfw+U4J2L0YJsA== X-Received: by 2002:a2e:b051:0:b0:2bc:f252:6cc4 with SMTP id d17-20020a2eb051000000b002bcf2526cc4mr401876ljl.10.1695422432122; Fri, 22 Sep 2023 15:40:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 15:40:31 -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 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings Date: Sat, 23 Sep 2023 01:40:26 +0300 Message-Id: <20230922224027.85291-2-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=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Fri, 22 Sep 2023 15:41:07 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777779420712248671 X-GMAIL-MSGID: 1777779420712248671 Add pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins. Signed-off-by: Matti Lehtimäki --- drivers/pinctrl/qcom/pinctrl-msm8226.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-msm8226.c b/drivers/pinctrl/qcom/pinctrl-msm8226.c index 994619840a70..1e46a9ab382f 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm8226.c +++ b/drivers/pinctrl/qcom/pinctrl-msm8226.c @@ -612,6 +612,16 @@ static const struct msm_pingroup msm8226_groups[] = { #define NUM_GPIO_PINGROUPS 117 +static const struct msm_gpio_wakeirq_map msm8226_mpm_map[] = { + { 1, 3 }, { 4, 4 }, { 5, 5 }, { 9, 6 }, { 13, 7 }, { 17, 8 }, + { 21, 9 }, { 27, 10 }, { 29, 11 }, { 31, 12 }, { 33, 13 }, { 35, 14 }, + { 37, 15 }, { 38, 16 }, { 39, 17 }, { 41, 18 }, { 46, 19 }, { 48, 20 }, + { 49, 21 }, { 50, 22 }, { 51, 23 }, { 52, 24 }, { 54, 25 }, { 62, 26 }, + { 63, 27 }, { 64, 28 }, { 65, 29 }, { 66, 30 }, { 67, 31 }, { 68, 32 }, + { 69, 33 }, { 71, 34 }, { 72, 35 }, { 106, 36 }, { 107, 37 }, + { 108, 38 }, { 109, 39 }, { 110, 40 }, { 111, 54 }, { 113, 55 }, +}; + static const struct msm_pinctrl_soc_data msm8226_pinctrl = { .pins = msm8226_pins, .npins = ARRAY_SIZE(msm8226_pins), @@ -620,6 +630,8 @@ static const struct msm_pinctrl_soc_data msm8226_pinctrl = { .groups = msm8226_groups, .ngroups = ARRAY_SIZE(msm8226_groups), .ngpios = NUM_GPIO_PINGROUPS, + .wakeirq_map = msm8226_mpm_map, + .nwakeirq_map = ARRAY_SIZE(msm8226_mpm_map), }; static int msm8226_pinctrl_probe(struct platform_device *pdev) 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)