From patchwork Thu Aug 31 21:21:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 719068 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 D9994C88CB2 for ; Thu, 31 Aug 2023 21:21:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347547AbjHaVVk (ORCPT ); Thu, 31 Aug 2023 17:21:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347550AbjHaVVj (ORCPT ); Thu, 31 Aug 2023 17:21:39 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 545DCE58 for ; Thu, 31 Aug 2023 14:21:30 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-500cd6261fdso2468916e87.3 for ; Thu, 31 Aug 2023 14:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693516888; x=1694121688; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Q0bWHTXL+4QRcQrRHlmD0fTfqFT8JCeDR4CO9AOQbuY=; b=PBfnTGM1/q4hlFEOvLKd0hHDPfQsE9eUCUsXJWKzZmKuox20BGoFndI0m/BSrTR0X4 dGTT/LMp1JgvXWzcu+3sAXSDnBS8VXo7XGx7LQDDqyUGjKxV7KCK48bT+8Q+Puain3NX HzA45GqKsrTCGq/CTdKi3+vMyaZgU7GAXSWYTHE0/fbws7/61Q7Nbik40plnIp3eZ+fO USYV8bWbh5swh47AXYRIKN21Pch//9wxKK9ahZbvHvDY3xRqbgs5olr8cGlaKMowdF5U 13DJzh0aoABnInr43zKnshoKYi+iWqf6BU3sPcjeTmNdEOa5iYCByBmIAoapszceknOc gvmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693516888; x=1694121688; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q0bWHTXL+4QRcQrRHlmD0fTfqFT8JCeDR4CO9AOQbuY=; b=cozYD/QrTc4ENZIKcQl8Dm61S06IJ4vxu9Om3d6mQyH69gav6HqxVmjDYJuXcCqui4 4KZonBdTPfqL0AYCcb3QgCouOYtPaG+lHk6CazPwypt+yO+RkywZ0/XcWLoLd/jT3RRi XF845hCaKw3uCxLEMs+67g1sFZihPDR3zkaHOBzq03gXAbeyZIh6YDCJWsKHiCBFFELi Fc6tzQSgN8XFVZIfBHS13OOzxCIk86UchloRxqsVEvjxGvyMueEOT/RnGwhUlF0aiUcE WKFUKfC/zey2Y+tX11NenUvknlB1lHwyjOmMPmICYXnCT5dVp0SCWXijWZq/tg2cJvgx 4xyQ== X-Gm-Message-State: AOJu0YybMtpez0YO/D8J0KgOh471xpsMD+dGPxIp+C7NeZWSLcvew2gW jN0iVU1kP20uZAhz/p7vmauzhQ== X-Google-Smtp-Source: AGHT+IHVSiQiM85q3IbETcBSXQoqctNfDNEC15ZmC2yBAk8NkeOeNGQnVR56hsAkmTGlp7ja7v/W/g== X-Received: by 2002:ac2:4d92:0:b0:4fe:49d:6ae2 with SMTP id g18-20020ac24d92000000b004fe049d6ae2mr288528lfe.0.1693516888668; Thu, 31 Aug 2023 14:21:28 -0700 (PDT) Received: from [192.168.1.101] (abxh154.neoplus.adsl.tpnet.pl. [83.9.1.154]) by smtp.gmail.com with ESMTPSA id eo4-20020a056512480400b004fbc0c7218bsm414866lfb.118.2023.08.31.14.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 14:21:28 -0700 (PDT) From: Konrad Dybcio Date: Thu, 31 Aug 2023 23:21:24 +0200 Subject: [PATCH v2 3/4] pinctrl: qcom: sm6125: Add MPM pin mappings MIME-Version: 1.0 Message-Id: <20230809-topic-mpm_mappings-v2-3-4c2b4495e654@linaro.org> References: <20230809-topic-mpm_mappings-v2-0-4c2b4495e654@linaro.org> In-Reply-To: <20230809-topic-mpm_mappings-v2-0-4c2b4495e654@linaro.org> To: Andy Gross , Bjorn Andersson , Linus Walleij Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693516884; l=1958; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=O9Ab/UwGaIALgE5LA4+UIkYrc1yECgLTNAXWCWFygtw=; b=XptMR6ma9JNxOeUZstKaARQ/0TgGa/9j5sGBTzesLceaT/Bt8gcBLRiynSto6aMR0yDjUreqt OEXn2zsrLr1AmhWjcz6odYJW0oetqHzBa0cRqp6oCipyBy9etJWLWJl X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins. Signed-off-by: Konrad Dybcio --- drivers/pinctrl/qcom/pinctrl-sm6125.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sm6125.c b/drivers/pinctrl/qcom/pinctrl-sm6125.c index d5e2b896954c..c188842047aa 100644 --- a/drivers/pinctrl/qcom/pinctrl-sm6125.c +++ b/drivers/pinctrl/qcom/pinctrl-sm6125.c @@ -1221,6 +1221,21 @@ static const struct msm_pingroup sm6125_groups[] = { [140] = SDC_QDSD_PINGROUP(sdc2_data, SOUTH, 0x58b000, 9, 0), }; +static const struct msm_gpio_wakeirq_map sm6125_mpm_map[] = { + { 1, 14 }, { 3, 15 }, { 4, 16 }, { 9, 17 }, { 13, 18 }, { 14, 23 }, + { 15, 19 }, { 17, 20 }, { 19, 21 }, { 21, 22 }, { 22, 84 }, { 25, 24 }, + { 26, 25 }, { 27, 26 }, { 29, 27 }, { 33, 28 }, { 36, 29 }, { 42, 30 }, + { 43, 5 }, { 44, 31 }, { 45, 6 }, { 47, 32 }, { 50, 33 }, { 59, 7 }, + { 70, 34 }, { 72, 8 }, { 75, 35 }, { 79, 36 }, { 80, 37 }, { 81, 38 }, + { 82, 39 }, { 83, 9 }, { 85, 40 }, { 86, 41 }, { 88, 42 }, { 89, 43 }, + { 91, 44 }, { 92, 45 }, { 93, 46 }, { 94, 47 }, { 95, 48 }, { 96, 49 }, + { 97, 70 }, { 98, 50 }, { 99, 51 }, { 100, 64 }, { 101, 52 }, + { 102, 53 }, { 105, 54 }, { 107, 55 }, { 110, 56 }, { 111, 57 }, + { 112, 58 }, { 118, 59 }, { 120, 71 }, { 122, 60 }, { 123, 61 }, + { 124, 13 }, { 126, 62 }, { 128, 63 }, { 130, 65 }, { 131, 66 }, + { 132, 67 }, +}; + static const struct msm_pinctrl_soc_data sm6125_tlmm = { .pins = sm6125_pins, .npins = ARRAY_SIZE(sm6125_pins), @@ -1231,6 +1246,8 @@ static const struct msm_pinctrl_soc_data sm6125_tlmm = { .ngpios = 134, .tiles = sm6125_tiles, .ntiles = ARRAY_SIZE(sm6125_tiles), + .wakeirq_map = sm6125_mpm_map, + .nwakeirq_map = ARRAY_SIZE(sm6125_mpm_map), }; static int sm6125_tlmm_probe(struct platform_device *pdev)