From patchwork Sat Sep 23 13:14:31 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: 144002 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp370667vqu; Sat, 23 Sep 2023 14:12:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELI65SR40Uj0iGCHAxn4yft0Xb1kUnIs/cz/335/hv8by7WEOdvpZ1hKVFhWyW/tDY254U X-Received: by 2002:a17:90b:23c6:b0:26d:fcd:89b3 with SMTP id md6-20020a17090b23c600b0026d0fcd89b3mr2153693pjb.8.1695503528698; Sat, 23 Sep 2023 14:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695503528; cv=none; d=google.com; s=arc-20160816; b=ukLj1N+VyjbFWpGbwrcBUzYjdwd5uzfdI8T2w5ujg9AHkX3A3wKfxjo2PMqXuG+Ybj wYztWB+/A4+3AvxMf7GqjDnVsrXe6Q7A2DeoONDvvCZ3GN+MFdTap7Pr8CblGAU7UOc0 IzU1nBPcjx259ZeBj0dzenmbvwgOe28GDgcUjVgRsc8vct1U7V6ulakwtbwy4lJcHLpC freTgvV32Y+mCG2uuhR2qqj6/ltDy0SH8nqEPOG0x0dwMcOEByAoUT4zbjI5qt/qjss8 Rkr0HfKvTkVfohEixxwDvgp0dsuD3gaOBxmcrN0c7CNNfuIcqRHYoBu8hea+vF2GouU1 sTfw== 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=Pi1nMZ5Qx+Hd3+Zg0OLpMqTtfkM7eJhwwI+OqM4wPA8=; fh=KK1u1CY3y3cF6IBMx+639trJcCNvL2tT/y3DoBRs8X0=; b=SvYy4A/JkyJKQ3+5HUzeBc+5N98CRXHDIg9k6OW2fqcYWQVLYdhIqagnOPJhoxGmgC ozGCY6w1M8u6NKIbg1b7yzP53PZrJTe+9wO9G+Jzrdvh1p0x3ztDyLzqTJuBGpDPsDhc OFuGBlmCh+WYofxC0s/i4uQOkPD5VSAmiNOTYh+S4w5CbS3f3m0X5MXOEJZRxoOZJO6a NLJpKChEs0I6TYoT2j665RbZBlfYP6CBTz7j/Qj3qhUUvJGYHjb+kVgJ7RcEw1Cj9pAG cc8PwopEbxpVX3jqXGgbyv/bTJUxxzFwrpK0Y0CT9QKjKvb6Qrur7oxR9G8fn12Jwl+x k1tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PDVAAicv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id pi10-20020a17090b1e4a00b00262f937bf93si7428998pjb.77.2023.09.23.14.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 14:12:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PDVAAicv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id F09C0804C21A; Sat, 23 Sep 2023 06:15:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231800AbjIWNOz (ORCPT + 29 others); Sat, 23 Sep 2023 09:14:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231622AbjIWNOu (ORCPT ); Sat, 23 Sep 2023 09:14:50 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9906C11D; Sat, 23 Sep 2023 06:14:40 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-503397ee920so5768392e87.1; Sat, 23 Sep 2023 06:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695474879; x=1696079679; 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=Pi1nMZ5Qx+Hd3+Zg0OLpMqTtfkM7eJhwwI+OqM4wPA8=; b=PDVAAicv89X0Sxn9lP1z2Z8m67+DE8PIcGoHFSrn+k0QzSOj3BwJ4gmYWO58U8VA57 SXztz49ZesKOShzDHEsvThLzUmZ5J68cj4py3jYgx+Uk5G4PximjchhowP+3GDlT9ec2 WX2fcU0U5axYY7FLiMDAE/kPbm/f6rUgf/iKJjCPGBtDQnWAbCQ/Ha5OTvVldK9u5iuN stL5+GV4NaaAjoZ3SU9ZVTMHBMwyN34eI+VzyhxxPGedrR+w9B1Bg89faAkzGCbyOG42 X7+YG3uj/Y+9VRZKRFNHVzCjtGe3nhLFSIGhTj83k3fZhKwMOGzIGkbSCXx2cdsKPp3U wvEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695474879; x=1696079679; 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=Pi1nMZ5Qx+Hd3+Zg0OLpMqTtfkM7eJhwwI+OqM4wPA8=; b=bsy9EVqOuIihF1KQTtYO6Lgs8n6NZC9sn0AYKrEm4tR3Dxh4LcPnPtuwbT151SPFKA BDRItWwPSUn7fBGS4J3k9N24Odir6VHpNVzt2WHRcOaqZnv+VT6F09/3iMOn9flFu7cN 7Eg+XYQSdLOGw9JFHWJHMExx1/9sQpEbF8tJU6danUEQ0AQ3LJyw/5gzgIAmOmGiAyT2 UxZ/akBfeXag+6lQkmm8CDuiirskCpgNn4rePSnBXyrNptSK7C49s6EF+ldPSQjYFWud DGkklTa5vR8TR+MOOu1mkXMrfHEKSOtQvG4HimiV1cs7JLjOI88YrWrvc75uptewKquJ 8ung== X-Gm-Message-State: AOJu0YxecFzbJ84OI6kIbNG3CoQFsxkaHTRrlAJRY/9SwejyL9Cm8lfV 5n6HkLg9x462fVKwuCgE4IUn5kt0yTAScg== X-Received: by 2002:ac2:5932:0:b0:503:1875:5ae5 with SMTP id v18-20020ac25932000000b0050318755ae5mr1872523lfi.38.1695474878630; Sat, 23 Sep 2023 06:14:38 -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 m1-20020ac24281000000b004ff96c09b47sm1080847lfh.260.2023.09.23.06.14.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 06:14:38 -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 v2 1/2] pinctrl: qcom: msm8226: Add MPM pin mappings Date: Sat, 23 Sep 2023 16:14:31 +0300 Message-Id: <20230923131432.21721-2-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230923131432.21721-1-matti.lehtimaki@gmail.com> References: <20230923131432.21721-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sat, 23 Sep 2023 06:15:07 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777857364177955476 X-GMAIL-MSGID: 1777864308053263363 Add pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins. Signed-off-by: Matti Lehtimäki --- Changes in v2: - Add missing entry to mapping --- 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..4030baa3715f 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 }, { 115, 41 }, +}; + 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)