Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp910297pxp; Wed, 16 Mar 2022 21:00:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN/79uDsib5NsZgk/O+VMt0x2D7gw4RFqcT6CNwFMDMlp+kG4KI4Xog8uXwnodGJShI1yM X-Received: by 2002:a17:90b:3805:b0:1c6:8567:bfa8 with SMTP id mq5-20020a17090b380500b001c68567bfa8mr819940pjb.242.1647489644623; Wed, 16 Mar 2022 21:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647489644; cv=none; d=google.com; s=arc-20160816; b=nx4QYqE4Yswsg0ma1S5mOSf9g6E1N8snTUhV4Fjthp1oEYqF8P42MhR2UjXzEEfvuz UMIAON6pBchzG+rfVYLxhxtwQg3GHO8Vw31L/k7MuoIG97dci273vHTzc7+FNIPIwlnC bOaBYZX3+5GV9osWS4iL5ZLZcL4IlqtYot8L+RWFXrQzNqU5fQGNqWY4y9cQhaSy5eWG ExGYIgwy/7bBgKh32pcdFzr874ib5Ey+zJrVvHvhOGwkapk/4OEMu9SZy6DhOYLrlHeN 4qYkPcQ4kj1kpp5uVUOttNF/xkjmf725BZaALTUMAJZm3cnbCY/a9agot0vCr6vIwCXV udbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ByiqpVNJnghZS7rl/0H3t4qf3Wtk1swesADPIolOu9M=; b=d6DXuFWgXcJHj4/b2Ux8E2t8HreU5wtLExLqRGZ+7wFYTuZc1wb/lEc34trIv2PeV3 kwvR7nbu+tfTOc1rLrNYnkHcocfSxgGEjGz4Tx+x9WkS7620s9ExC9MSKAb1eN6x+Jgf 8qecrhJQa47U2RTCYV+3Ha5HNoDEq4afNMzlaalqrj8GbI21tBHErxkUY/sZGuVxdoRe aXPhccLwUXAklwF+ObwyOUjECItBmAzWHfYNaQbEYNcA0qiR/7bUuPGEPQIBLebtqfBF QW1Rv/xefcHPnW4ykE8tLcgaSRyHhnAyBuAuSdfzAe5nC4dTAJJI49rflIWa+rXt5/uP x41Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZGTQdOg9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g11-20020a17090a578b00b001bd14e0309asi1147128pji.114.2022.03.16.21.00.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 21:00:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZGTQdOg9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E8CA66A02B; Wed, 16 Mar 2022 20:43:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349929AbiCOQLS (ORCPT + 99 others); Tue, 15 Mar 2022 12:11:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349925AbiCOQLQ (ORCPT ); Tue, 15 Mar 2022 12:11:16 -0400 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EB7A48310 for ; Tue, 15 Mar 2022 09:10:04 -0700 (PDT) Received: by mail-oo1-xc36.google.com with SMTP id l24-20020a4a8558000000b00320d5a1f938so24976559ooh.8 for ; Tue, 15 Mar 2022 09:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ByiqpVNJnghZS7rl/0H3t4qf3Wtk1swesADPIolOu9M=; b=ZGTQdOg9Z/h6mt0XqVcLBdHhIkmMSDtC4nAuWcGG0/GFqH8uAsYKfpCkF2Wl/J/AR/ tgMnAsDaVA84ujU2RDL1mle5w4okLxmFtt6e/i3UTNUzR7AjVojFH+UzCiSOiI6b2+YF IsNw/qCYBARMmXAk0fburEAFlbTnf/Zme4OamiHchenQDNlmXndfOGtzeZvWYuAyRv/t MeBkPnciol0TtYx6MHjvmpwtds4L2UJVIzebdCUqklyMyrSCcM9xjN/Nki7o7JUcyKy8 0hTd44bxuAas9wq5cL7FIKYl6Y9zjn7HQwwux3nOZgrV5yrbDLAZFIII+bgs5LYcxapu CRgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ByiqpVNJnghZS7rl/0H3t4qf3Wtk1swesADPIolOu9M=; b=kr0mahD+Q9a6llsgTKJkT++AOEm/218+waFW3BHtHdTYX509f0spm3bCeztoemvous hQHDSg5vHvt/fjks/rS3s4XPCSyMMgU+dvqaKgn4VQ/G6n2zMAbHEgoE8Rm9fFoKIVsh wTAeZKaGzdcy4fNrWaPbS6kxnrOIfznjoo288V1gux/o/KTbFY1dJVaq2Jv0HH4+uOJC CFwMkAHGv/7cegfFLpo8dPNkMRKKNJmXONTIUYiTHe0EwdfFUig+J+7dnpT7gJOnjgjd H4oXbi/86g08vkahhx4mTC/BXgUbQch7hp6YYGtB/4SQYNZHiFecBgaG8LdtUsm4rcKt wd4A== X-Gm-Message-State: AOAM530wnLA4vmmfVpwaGAiMQvTv0+ZO1akZisUEXWcO7CHgr4X8cuvj SEEt0B5qo1PAPo+d2EcdqWVfZw== X-Received: by 2002:a05:6870:618a:b0:da:b3f:324b with SMTP id a10-20020a056870618a00b000da0b3f324bmr1878817oah.251.1647360603438; Tue, 15 Mar 2022 09:10:03 -0700 (PDT) Received: from builder.lan ([2600:1700:a0:3dc8:3697:f6ff:fe85:aac9]) by smtp.gmail.com with ESMTPSA id m13-20020a056870888d00b000d103280accsm8117995oam.16.2022.03.15.09.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 09:10:02 -0700 (PDT) Date: Tue, 15 Mar 2022 11:10:01 -0500 From: Bjorn Andersson To: Bhupesh Sharma Cc: linux-arm-msm@vger.kernel.org, bhupesh.linux@gmail.com, agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, maz@kernel.org, quic_mkshah@quicinc.com, linux-gpio@vger.kernel.org, linus.walleij@linaro.org, robh+dt@kernel.org Subject: Re: [PATCH v2 2/4] pinctrl: qcom: sm8150: Specify PDC map Message-ID: References: <20220226184028.111566-1-bhupesh.sharma@linaro.org> <20220226184028.111566-3-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220226184028.111566-3-bhupesh.sharma@linaro.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Sat 26 Feb 12:40 CST 2022, Bhupesh Sharma wrote: > Specify the PDC mapping for SM8150, so that gpio interrupts are > properly mapped to the wakeup IRQs of the PDC. > > Cc: Maulik Shah > Cc: Bjorn Andersson > Cc: Linus Walleij > Signed-off-by: Bhupesh Sharma Acked-by: Bjorn Andersson Regards, Bjorn > --- > drivers/pinctrl/qcom/pinctrl-sm8150.c | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/drivers/pinctrl/qcom/pinctrl-sm8150.c b/drivers/pinctrl/qcom/pinctrl-sm8150.c > index 7359bae68c69..1cc622694553 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,9 @@ 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), > + .wakeirq_dual_edge_errata = true, > }; > > static int sm8150_pinctrl_probe(struct platform_device *pdev) > -- > 2.35.1 >