Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1943780imc; Fri, 22 Feb 2019 14:21:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IacGQyuxxzpikZGKKq3EnK6jN5XWrrMp46P8mEhZ45Ycob6TuG777S+lvzxdp532VBYTZAx X-Received: by 2002:a17:902:59c3:: with SMTP id d3mr6469881plj.214.1550874075695; Fri, 22 Feb 2019 14:21:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550874075; cv=none; d=google.com; s=arc-20160816; b=Zf+4rhcbphQmQoNaVNbTKLmf0KTbobSJnxJAhqUI6DP8QrgpocoLeFp2ukSG1RsSX5 TAgwFVuxn3DIgonOdqc236/G+MU7zBQyiVMwnXpjE7SEK3Xw5RaNz6h66CFecxlM6+UZ Y83RX9BtYbk9LRZdB3cBu15GXtPSK4hRgw7t7J/VgJf3U2LivrWQuuEu88SmJjNZoCYl bBEokL+TglPDnVSOd+2R2n2ir8QVTMELuVibqOQGuduHLakRmE5gWlwkFwo/DXAs82Sw aMZ4caK/UnRBnAr1IDi1h6sCtlRRxVJlSjbspzGZsswFJhkE9UNvbwLXYajZmtQhWyPG +6nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature :dkim-signature; bh=PiupUoi5mfW+LjOklhPEBcd/iV1syNjCR003jFaCJQk=; b=cE6kHYF6j0wJxp4nsaG5Gx/HlPpu3IZ6bIq8IMVzPHPior062lDZssfaJVDNg1txFq gMcGVz2WknCbMRvxQbSzw3FZ5mXzjM9eFUPuW/JvC2SjS4fSTBIi1TnFwPQR4FzGdLql MccVeKhParpq6UGRdpjKh/gf0kWwE4sCXgoHSq483S1moXjvXhEvMhlKKFmqLtDgyFpQ mPo3YcghLPfsG/9Yutml64xeLlOsoJ17a3xSQ1mIAZluKTptAu9Et2UtDTFfwwlFYeGT GUp+p1rEs+/KvZZJReJJsUlqW7vZcHakjqTrVp7ql+Yky0y2lkHZAUx8yVGvIfxJCoTK QFeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=bojbCGCr; dkim=pass header.i=@codeaurora.org header.s=default header.b="h7LF4O/d"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l16si2360559pgh.509.2019.02.22.14.21.00; Fri, 22 Feb 2019 14:21:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=bojbCGCr; dkim=pass header.i=@codeaurora.org header.s=default header.b="h7LF4O/d"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726460AbfBVWTF (ORCPT + 99 others); Fri, 22 Feb 2019 17:19:05 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:44084 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbfBVWTF (ORCPT ); Fri, 22 Feb 2019 17:19:05 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8FB946075A; Fri, 22 Feb 2019 22:19:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550873943; bh=4wI5hivkZB2yujZV9m8gQAW5THP/ge+9DpFZ78cFaIM=; h=From:To:Cc:Subject:Date:From; b=bojbCGCrzX2Qcorov0wTIhqyGazrepfdjgJ/4G0/vonA8Rvr+p3qLLDQyoLYW6DMH 7UeKLtAYIHJDdIThZs+wGwQYCIMUo79PaFUGMZG36DPRIDom6LUnOH39gC3UbG3xPE K8ZuxdNx3WIIYdGEw5OoKopTe1PER0tT2wiKL3IE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D8B666075A; Fri, 22 Feb 2019 22:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550873942; bh=4wI5hivkZB2yujZV9m8gQAW5THP/ge+9DpFZ78cFaIM=; h=From:To:Cc:Subject:Date:From; b=h7LF4O/dCHafBKpEm8vKmmI8O6l4KcHkymQMAbcDj6yWIJU+U3A8aMuyBO8U+8yFH XtBRaWP7PVsG+dDvqEeAKtPe+k2n0trCxq1WrhZiG+C6voRFpfIGle3cCM6htC+R/5 C8AmXRcdd/idfcNYkWaC2tRnUyvuBswcpRXJrXT0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D8B666075A Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org From: Lina Iyer To: swboyd@chromium.org, evgreen@chromium.org, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, rplsssn@codeaurora.org, linux-arm-msm@vger.kernel.org, thierry.reding@gmail.com, bjorn.andersson@linaro.org, dianders@chromium.org, linus.walleij@linaro.org, Lina Iyer Subject: [PATCH v3 0/9] qcom: support wakeup capable GPIOs Date: Fri, 22 Feb 2019 15:18:41 -0700 Message-Id: <20190222221850.26939-1-ilina@codeaurora.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This series is based on idea of setting up a wakeup parent interrupt controller for GPIOs that are wakeup capable. The patch is based on Thierry's hierarchical GPIO irqdomains. Much of the idea stem's from Stephen's suggestions in [1] with some fixes. I am posting this series to help with the discussions around this approach. Please take a look at the series and let me know your comments. We need to find a good place to add the document the generic irqdomain-map bindings. Thanks, Lina [1]. https://lkml.org/lkml/2018/12/19/813 Lina Iyer (7): irqdomain: add bus token DOMAIN_BUS_WAKEUP drivers: irqchip: add PDC irqdomain for wakeup capable GPIOs dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO drivers: pinctrl: msm: setup GPIO irqchip hierarchy arm64: dts: qcom: add PDC interrupt controller for SDM845 arm64: dts: qcom: setup PDC as wakeup parent for GPIOs for SDM845 arm64: defconfig: enable PDC interrupt controller for Qualcomm SDM845 Stephen Boyd (1): of: irq: add helper to remap interrupts to another irqdomain Thierry Reding (1): gpio: Add support for hierarchical IRQ domains .../bindings/pinctrl/qcom,sdm845-pinctrl.txt | 7 +- arch/arm64/boot/dts/qcom/sdm845.dtsi | 87 +++++++++++ arch/arm64/configs/defconfig | 1 + drivers/gpio/gpiolib.c | 15 +- drivers/irqchip/qcom-pdc.c | 106 +++++++++++-- drivers/of/irq.c | 125 ++++++++++++++++ drivers/pinctrl/qcom/pinctrl-msm.c | 141 ++++++++++++++++-- include/linux/gpio/driver.h | 6 + include/linux/irqdomain.h | 1 + include/linux/of_irq.h | 1 + include/linux/soc/qcom/irq.h | 23 +++ 11 files changed, 486 insertions(+), 27 deletions(-) create mode 100644 include/linux/soc/qcom/irq.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project