Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5946773pxb; Mon, 14 Feb 2022 11:23:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcN+jVdj+0KmP7q6jWl9AhT14n7gq4GkO3kPuJS3HV7EXreM9rmk5Qo5kN73Wj/iOtmGhI X-Received: by 2002:a17:90a:3b05:b0:1b8:af52:e77 with SMTP id d5-20020a17090a3b0500b001b8af520e77mr164105pjc.180.1644866586213; Mon, 14 Feb 2022 11:23:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644866586; cv=none; d=google.com; s=arc-20160816; b=xXtF0FKeTKVktJ154GjyrKzJEk9FIyyavDBw5SVsvjC1Vgc0b1WpUEM7slFytrkcv+ P3FCJyZ0QopmOm5cCVx0ic+ayGJhtbrwUZYP9g36OROlRewTD8WX9OtzaCXaYUHaexZ/ AhKrMAbJ41LroRu6dQbQK+7bNGVDBnmPEaK1pysfhAT6ZOhrDhy3ka9ozOrGl1L8oCZu fZdmVNFutiJxSAlTvjOiLa5S+P6xeKnJePg9Tg+NQiQ+3fheJNr2Ml/y4VG7CANbY+zX sA8/UyluZsZB+eGqiTu3QU7zuRG14NG5eYr0VWnnq3GvojAgWz1Txa+mAml9FAaqkErq WM7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=f6tdSlJeXe/1IN6nf0GGeLX0PqBAatpqqkKLywQfYL8=; b=RolR+8A+CQ3dAKSirE66GAnNMeZA2yp9T3guknj/FSLOXfWRrzr1w7ON8ouEDptVqB 57EpWbbtF+My3+BJebWOzn6PcUXPU5OAoT/hQ3SDFdjA7W9B4nsktXkgtZqcGB7YPfku hZom0a/qiBmLpQdXY2uXi5eL9GeRkziaqZzIyFVZESjo0xDdU+dqg5f9JARwumQ9eRo9 RXRmn0qB23vj/gHnEmNr1XWrDIWf/i+DoomAZmHx69c/7lkmFdR1QLWr7iVMZwPjWnZW 9QZAmka1GSFzF4mgOPVx506Vyy77DFPAmP0R9t7KkU6g8Elnc0q1euO2RaDzgfjkcub+ LAUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DTAYKnaO; 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 x8si12621229pjq.137.2022.02.14.11.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:23:06 -0800 (PST) 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=DTAYKnaO; 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 827B2CB66D; Mon, 14 Feb 2022 11:14:03 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350780AbiBNLRG (ORCPT + 99 others); Mon, 14 Feb 2022 06:17:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350585AbiBNLQw (ORCPT ); Mon, 14 Feb 2022 06:16:52 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8D8274629 for ; Mon, 14 Feb 2022 02:47:21 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id c3so10213417pls.5 for ; Mon, 14 Feb 2022 02:47:21 -0800 (PST) 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:user-agent; bh=f6tdSlJeXe/1IN6nf0GGeLX0PqBAatpqqkKLywQfYL8=; b=DTAYKnaOh94BOPUawcuMPqT2RtCL2lomNlC1d/wO/grleI08J2rWXGpteVuHo9JBgX 1Wdsy46fiASLwylBNNfSGyAMBHwNueomFw1spqp7E29g6W7puEPUcPZ2L5CZizbCgLl1 9xqJQTl+mbTYHmnCatLCGXE2xQTTrPsuXTbaDe0hBG3Y26iRx4H5pKtQj8EtuQQJTOwx ebiPPAsgy70pP2GKnLGypj5xhQ1tIh8cW41nnUcRWq00enQBJ09oKP/rtPu7RfdDyjz5 NddJbf4zhbkP0ne7veMj3Zc8iaCaqc6fx0WzL2PnWD1z+b31Nx0GLQ/YjvUSiBFctNMb uaGQ== 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:user-agent; bh=f6tdSlJeXe/1IN6nf0GGeLX0PqBAatpqqkKLywQfYL8=; b=SRoBwF30NFHBZ4YoOsQuE6m4E9LZfVgVTJcV2LW16KOjdwMHJU49hxLGuspCttUDmb Sh5KcwjMRVZZ6Nhe87U2nB/RrDtbIUx7mYPRPQ2f+XsvELkjGjB2a1MkJvwXuvlLJlpr aF22vb+ZKlKXM9yLg/TJWLtMSgiNkupaLBt31Q/IqqQ2C1lnTmUpp82m+bM27WLcnzmx D8g/nPvPr6VaLF3XmJeEBxp6OsTYuzWdnPR3dNmhb0tzUO5I4k4VAId/zYbYwtr763hb R77kHNScn382D7LBz43YfGW/ykoqlgu5r7dZir7VLs5meoy7YImqBZVyVM1M+JvYAW46 ffSg== X-Gm-Message-State: AOAM531psgPhRHFxJrwHArq6aGa5zmEId2x2akJLcveELcNe9eBkPD88 S7UM0N6xRImQ7sH04Ec5aRxKCw== X-Received: by 2002:a17:902:f691:: with SMTP id l17mr11420259plg.72.1644835641111; Mon, 14 Feb 2022 02:47:21 -0800 (PST) Received: from dragon (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id e3sm26664610pgc.41.2022.02.14.02.47.18 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Feb 2022 02:47:20 -0800 (PST) Date: Mon, 14 Feb 2022 18:47:14 +0800 From: Shawn Guo To: Linus Walleij , Bjorn Andersson Cc: Loic Poulain , linux-gpio@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pinctrl: qcom: qcm2290: Add GPIO wakeirq map Message-ID: <20220214104713.GA31965@dragon> References: <20211122080938.20623-1-shawn.guo@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211122080938.20623-1-shawn.guo@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) 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 Mon, Nov 22, 2021 at 04:09:38PM +0800, Shawn Guo wrote: > It adds the map of wakeup capable GPIOs and the pins at MPM wake > controller on QCM2290, so that these GPIOs can wake up the SoC from > vlow/vmin low power mode. > > Signed-off-by: Shawn Guo Any comments on this patch? Shawn > --- > drivers/pinctrl/qcom/pinctrl-qcm2290.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/pinctrl/qcom/pinctrl-qcm2290.c b/drivers/pinctrl/qcom/pinctrl-qcm2290.c > index 3f05c0a24b79..aa9325f333fb 100644 > --- a/drivers/pinctrl/qcom/pinctrl-qcm2290.c > +++ b/drivers/pinctrl/qcom/pinctrl-qcm2290.c > @@ -1083,6 +1083,16 @@ static const struct msm_pingroup qcm2290_groups[] = { > [133] = SDC_QDSD_PINGROUP(sdc2_data, 0x86000, 9, 0), > }; > > +static const struct msm_gpio_wakeirq_map qcm2290_mpm_map[] = { > + { 0, 84 }, { 3, 75 }, { 4, 16 }, { 6, 59 }, { 8, 63 }, { 11, 17 }, > + { 13, 18 }, { 14, 51 }, { 17, 20 }, { 18, 52 }, { 19, 53 }, { 24, 6 }, > + { 25, 71 }, { 27, 73 }, { 28, 41 }, { 31, 27 }, { 32, 54 }, { 33, 55 }, > + { 34, 56 }, { 35, 57 }, { 36, 58 }, { 39, 28 }, { 46, 29 }, { 62, 60 }, > + { 63, 61 }, { 64, 62 }, { 69, 33 }, { 70, 34 }, { 72, 72 }, { 75, 35 }, > + { 79, 36 }, { 80, 21 }, { 81, 38 }, { 86, 19 }, { 87, 42 }, { 88, 43 }, > + { 89, 45 }, { 91, 74 }, { 94, 47 }, { 95, 48 }, { 96, 49 }, { 97, 50 }, > +}; > + > static const struct msm_pinctrl_soc_data qcm2290_pinctrl = { > .pins = qcm2290_pins, > .npins = ARRAY_SIZE(qcm2290_pins), > @@ -1091,6 +1101,8 @@ static const struct msm_pinctrl_soc_data qcm2290_pinctrl = { > .groups = qcm2290_groups, > .ngroups = ARRAY_SIZE(qcm2290_groups), > .ngpios = 127, > + .wakeirq_map = qcm2290_mpm_map, > + .nwakeirq_map = ARRAY_SIZE(qcm2290_mpm_map), > }; > > static int qcm2290_pinctrl_probe(struct platform_device *pdev) > -- > 2.17.1 >