From patchwork Wed Jan 19 20:31:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12717764 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 05649C433EF for ; Wed, 19 Jan 2022 20:32:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357350AbiASUcL (ORCPT ); Wed, 19 Jan 2022 15:32:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357359AbiASUcK (ORCPT ); Wed, 19 Jan 2022 15:32:10 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77460C061748 for ; Wed, 19 Jan 2022 12:32:10 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id i129so3310052pfe.13 for ; Wed, 19 Jan 2022 12:32:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DbN3aXRh0tW2nxOBZ+2r3Fa7kNORZifU05Up9v4Gb14=; b=W8+mnjkxgiFJIPna5wr33XhcJnB5V3DbA6K4E3maWzb5FOZZ261wvwlhSfpbuHYwcE XcSywcI0HsIrAhLLy+Vp7SY6tdshYOubSjUjW6a2lOJOP+iE7NKpcCruPTIDF3X4b94T DPt0+By8COMRqBZnnQM8IDAqFUyJyccU08Pf1s/EZaMHgF0Rk1Xxv1rGQKm9l6w74dgN m99geXbQ/5OUVwGau1lAw+LTXE0yKjhoZG97t583HHbFSZ0eYJAYmL+8YFc0RHGQ5t1m UY/ByJA5eE21/oBNfXI3edIGamyyJCdlKjPhO9M0t+bPL9aZuiNBZmOWxpKzExvUOvUA 6bdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DbN3aXRh0tW2nxOBZ+2r3Fa7kNORZifU05Up9v4Gb14=; b=G2I0Faq1EzTjhy2sadlMhX0xOWSao574Dr2IzKFeb8jQzN5q0OIOWazUxyl2b5xSoo F+cno/X5eL8XsSukYOHsp1lsg+l5oRVqV91IJTfZHr+kdhJ29ma4Z6cSxWGBhGGd5+zP bP9KX4cPSZ0BJQ/Qa+XiSAgKbgrTy03coSqphahzuLhjt+Dmq+NJrJgwjwntbcsfSahF fsbqR6FXP6wqfUTL0loSELXeOEHpe0BEU150Thm0VoaMwUOLJjOh+OOHe2DydRNrGQFo mS1tsnutvg5ighy4MnrI3zO/kG/+MCc4glvDTz7YMNIrGu+69lCYKWxQ3P0nf7tzh2md 7hxg== X-Gm-Message-State: AOAM530En4vO6iQCkfsoacvv1F9L5ZQ4eXhg+l+6/C/fHmRVk/sy2Kqk kYkHZEpwLM11RwjMhMZF/Y9naeaZv6vl3w== X-Google-Smtp-Source: ABdhPJz8orUKdY2yDkn04tiT6KnfcjLggVN+L8/kUQ0lOLoizjGD2fDGP0KarfyeAc6wgRYRcfVhzQ== X-Received: by 2002:aa7:91c3:0:b0:4b0:eebe:49c0 with SMTP id z3-20020aa791c3000000b004b0eebe49c0mr33012000pfa.6.1642624329793; Wed, 19 Jan 2022 12:32:09 -0800 (PST) Received: from localhost.localdomain ([2401:4900:1f3a:47e5:8bff:a3f8:a494:acd0]) by smtp.gmail.com with ESMTPSA id x13sm6807552pjq.43.2022.01.19.12.32.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jan 2022 12:32:09 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, linux-gpio@vger.kernel.org, linus.walleij@linaro.org, bjorn.andersson@linaro.org Subject: [PATCH 2/4] pinctrl: qcom: sm8150: Specify PDC map Date: Thu, 20 Jan 2022 02:01:31 +0530 Message-Id: <20220119203133.467264-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220119203133.467264-1-bhupesh.sharma@linaro.org> References: <20220119203133.467264-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Specify the PDC mapping for SM8150, so that gpio interrupts are propertly mapped to the wakeup IRQs of the PDC. Cc: Bjorn Andersson Cc: Linus Walleij Signed-off-by: Bhupesh Sharma --- drivers/pinctrl/qcom/pinctrl-sm8150.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sm8150.c b/drivers/pinctrl/qcom/pinctrl-sm8150.c index 7359bae68c69..499dd05c3e3d 100644 --- a/drivers/pinctrl/qcom/pinctrl-sm8150.c +++ b/drivers/pinctrl/qcom/pinctrl-sm8150.c @@ -1500,6 +1500,25 @@ static const struct msm_pingroup sm8150_groups[] = { [178] = SDC_QDSD_PINGROUP(sdc2_data, 0xB2000, 9, 0), }; +static const struct msm_gpio_wakeirq_map sm8150_pdc_map[] = { + { 3, 31 }, { 5, 32 }, { 8, 33 }, { 9, 34 }, { 10, 100 }, + { 12, 104 }, { 24, 37 }, { 26, 38 }, { 27, 41 }, { 28, 42 }, + { 30, 39 }, { 36, 43 }, { 37, 44 }, { 38, 30 }, { 39, 118 }, + { 39, 125 }, { 41, 47 }, { 42, 48 }, { 46, 50 }, { 47, 49 }, + { 48, 51 }, { 49, 53 }, { 50, 52 }, { 51, 116 }, { 51, 123 }, + { 53, 54 }, { 54, 55 }, { 55, 56 }, { 56, 57 }, { 58, 58 }, + { 60, 60 }, { 61, 61 }, { 68, 62 }, { 70, 63 }, { 76, 71 }, + { 77, 66 }, { 81, 64 }, { 83, 65 }, { 86, 67 }, { 87, 84 }, + { 88, 117 }, { 88, 124 }, { 90, 69 }, { 91, 70 }, { 93, 75 }, + { 95, 72 }, { 96, 73 }, { 97, 74 }, { 101, 40 }, { 103, 77 }, + { 104, 78 }, { 108, 79 }, { 112, 80 }, { 113, 81 }, { 114, 82 }, + { 117, 85 }, { 118, 101 }, { 119, 87 }, { 120, 88 }, { 121, 89 }, + { 122, 90 }, { 123, 91 }, { 124, 92 }, { 125, 93 }, { 129, 94 }, + { 132, 105 }, { 133, 83 }, { 134, 36 }, { 136, 97 }, { 142, 103 }, + { 144, 115 }, { 144, 122 }, { 147, 102 }, { 150, 107 }, + { 152, 108 }, { 153, 109 } +}; + static const struct msm_pinctrl_soc_data sm8150_pinctrl = { .pins = sm8150_pins, .npins = ARRAY_SIZE(sm8150_pins), @@ -1510,6 +1529,8 @@ static const struct msm_pinctrl_soc_data sm8150_pinctrl = { .ngpios = 176, .tiles = sm8150_tiles, .ntiles = ARRAY_SIZE(sm8150_tiles), + .wakeirq_map = sm8150_pdc_map, + .nwakeirq_map = ARRAY_SIZE(sm8150_pdc_map), }; static int sm8150_pinctrl_probe(struct platform_device *pdev)