Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3305331imc; Wed, 13 Mar 2019 14:21:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvgkmqvyIX4L7a+uZO3rnmG7RNz78CU9mnPSt52Ut/9EoTQlEy0515pI2+5X3xS/iPal/L X-Received: by 2002:a63:d5f:: with SMTP id 31mr41808794pgn.274.1552512078740; Wed, 13 Mar 2019 14:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552512078; cv=none; d=google.com; s=arc-20160816; b=Ssw+8KAOrgG63ZB6J6MhuRiTTClo1TE9IFctbC93bzxIsjlGNBqiSLEcDXwgpDR9j3 GaRnZhbTPU9/E5EQkdFF3RBaFsfsZr3wYKXZZX1YM3imqiCFFiDT7kfxIal1FsxJDpy3 Dmwrrs9827k3vn2Ni9aOfzKthy5uCBX0X9PByd8YnUpNFPfz55pFyErpGNjx0ML4njqj hVq6Inx7ZmrbEwnY+HKGZCA5Ez+pWnUPkE7Q5G//6wIEp85bTCBNowl0bAU6yT7rHp3P UqvhQj5Hl2/gASzVntiS5FQX8mNxQfSSSrHICjhe6EKuJ7EGadW79ySRK1Cw/ny2iuKz pQ7g== 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=ZYq3lR5/I8mB0rSg5GWsSrbMh/KyYPJ8VXAvCpjzmzw=; b=xIat78NqByWFOELRSaMsQYY3j1ZuaYIdVvPOXjNsrYC+MBjXRrbqlZIvS5v4tlvftE Vt0VJ7DNPr1B3QCkVQP4vU7ykXZ0zs2gaLgL4zBF10D3lN6Ck37+UNMAZI6lFPECZmmW ygFeEGL5XOZzeGzGMEgrD+HZLH1SNkD+8NwodiCqNVoqKPvCZsne9Wtzc+gCZK0cAMUm URqGynXgELZObqjsV9YEp9lVUqZRMoXZQalOGsfMvzlAFDahaRmhIJXTJdbWs7sAkOJG vuoqtvJS8drUbrHCIEFCn4p+uw3BzLMFM4pzNEEJXEtIWLlvi3p9+wbwFWX7/V5rHp6n faLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JsVV35ij; dkim=pass header.i=@codeaurora.org header.s=default header.b=LMU6c3qq; 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 h9si8318177pgq.57.2019.03.13.14.21.02; Wed, 13 Mar 2019 14:21:18 -0700 (PDT) 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=JsVV35ij; dkim=pass header.i=@codeaurora.org header.s=default header.b=LMU6c3qq; 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 S1727491AbfCMVS6 (ORCPT + 99 others); Wed, 13 Mar 2019 17:18:58 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45974 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbfCMVS5 (ORCPT ); Wed, 13 Mar 2019 17:18:57 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D01F960A60; Wed, 13 Mar 2019 21:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552511936; bh=ibrHUwNVtP11xB8FBGv+h9hQxv8MY5GSEsRv7rfU4ZU=; h=From:To:Cc:Subject:Date:From; b=JsVV35ijIyO82CKdyWcexRQ5HfSCxbYs1AN7UtORXTjLByuGRjo5uK2T+G3mU82Oe xwTk08g9DmRaF/sipXAquyqncxwjMgZ5ADpeKX6pdtPC1a3mq6lSQCqvqC75qN6sFA GUhbAspNdHS1v2y3hLMT8E4+CdPmEJSNypMtyvpQ= 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 B905460A05; Wed, 13 Mar 2019 21:18:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552511934; bh=ibrHUwNVtP11xB8FBGv+h9hQxv8MY5GSEsRv7rfU4ZU=; h=From:To:Cc:Subject:Date:From; b=LMU6c3qqXSfKGA3ksQgrTb+OKGfEfXPL1V1reNEmXD0A8oifPNa18K3z6Dn9EIpZu d1MWOiJsoSTkjn+4s9p50L0J6v655kjMWk6OMCDySaSoXmv+Wz79HVrzx4Dn1iNOYp ui4aOqVH+j0G/LPuywMW/hOk9+YXFOEOEglPvhqw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B905460A05 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 v4 00/10] support wakeup capable GPIOs Date: Wed, 13 Mar 2019 15:18:34 -0600 Message-Id: <20190313211844.29416-1-ilina@codeaurora.org> X-Mailer: git-send-email 2.21.0 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 adds support for wakeup capable GPIOs. It is based on Thierry's hiearchical GPIO domains. This approach is based on Stephen's idea [1]. The SoC that is used for this development is a QCOM SDM845. The current patchset is rebased on top of 5.0 and adds documentation for the wakeup-parent and irqdomain-map DT properties along with the the optional irqdomain-map-mask and irqdomain-map-pass-thru properties. Also incorporating comments from Marc on the earlier submission [2]. I cleaned up some of the change history in these patches to match the version number with that of the submission. The dtsi patches are based on Bjorn's changes for increased address and cell size [3] and [4]. Kindly review the series. Thanks, Lina [1]. https://lkml.org/lkml/2018/12/19/813 [2]. https://lkml.org/lkml/2019/2/22/716 [3]. https://patchwork.kernel.org/patch/10767511/ [4]. https://lkml.kernel.org/r/20190117042940.25487-2-bjorn.andersson@linaro.org Lina Iyer (8): irqdomain: add bus token DOMAIN_BUS_WAKEUP of/irq: document properties for wakeup interrupt parent 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 .../interrupt-controller/interrupts.txt | 39 +++++ .../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 | 72 ++++++++- drivers/of/irq.c | 125 +++++++++++++++ drivers/pinctrl/qcom/pinctrl-msm.c | 151 +++++++++++++++--- include/linux/gpio/driver.h | 6 + include/linux/irqdomain.h | 1 + include/linux/of_irq.h | 1 + include/linux/soc/qcom/irq.h | 23 +++ 12 files changed, 497 insertions(+), 31 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