From patchwork Wed Nov 21 00:06:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 10691461 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B48C013BB for ; Wed, 21 Nov 2018 00:07:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EFA02A8A3 for ; Wed, 21 Nov 2018 00:07:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 91BB82AD81; Wed, 21 Nov 2018 00:07:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06FD42A8A3 for ; Wed, 21 Nov 2018 00:07:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727092AbeKUKjQ (ORCPT ); Wed, 21 Nov 2018 05:39:16 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:48134 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbeKUKjN (ORCPT ); Wed, 21 Nov 2018 05:39:13 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9E048601D1; Wed, 21 Nov 2018 00:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542758842; bh=Knfrzm8RgcOWll7kftiNIAOLc4SHxZJ2nQ94bcERF0s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RpMUejOgoEI/7KrXadiy1wYkTyhqCbcq1XcrmRQScOzfZrPgaF3reuUi6nC35ibtO +60MdUDU5Td09K35c6CzqwJiqeP7HQkEs8Wi8/me7i+vKcgEvIOjaqTHdtESi0IYu6 n/JWmhQDrpT15TXpyeLkzeTYi6EKqR3hA5ru2WgY= 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 BD3E3601D1; Wed, 21 Nov 2018 00:07:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542758841; bh=Knfrzm8RgcOWll7kftiNIAOLc4SHxZJ2nQ94bcERF0s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mDpNIA+L/bgDRcAnUGuRJQYWrmMMCRHIRs9I3GKyFoNf/kjx+w0DFUkTbtriOoJaG g8iX3uNP3Y2FWs1EucYGRw48FWrsP3ZjVxdNXN9122dq6d0aKW+TbTDG/BSe7S9a2S 0TUVtoIQ+9IdXGvhOX/BReYKbngj1YEzXKq8bXFA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BD3E3601D1 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: sboyd@kernel.org, evgreen@chromium.org, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, rplsssn@codeaurora.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, thierry.reding@gmail.com, Lina Iyer Subject: [RFC v3 1/3] drivers: pinctrl: msm: setup gpio irqchip in hierarchy with pdc irqchip Date: Tue, 20 Nov 2018 17:06:46 -0700 Message-Id: <20181121000648.29262-2-ilina@codeaurora.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121000648.29262-1-ilina@codeaurora.org> References: <20181121000648.29262-1-ilina@codeaurora.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Lina Iyer --- drivers/pinctrl/qcom/pinctrl-msm.c | 125 ++++++++++++++++++++++++++++- 1 file changed, 121 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 7c7d083e2c0d..3857aa5539e0 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -735,6 +736,9 @@ static void msm_gpio_irq_mask(struct irq_data *d) clear_bit(d->hwirq, pctrl->enabled_irqs); raw_spin_unlock_irqrestore(&pctrl->lock, flags); + + if (d->parent_data) + irq_chip_mask_parent(d); } static void msm_gpio_irq_unmask(struct irq_data *d) @@ -757,6 +761,9 @@ static void msm_gpio_irq_unmask(struct irq_data *d) set_bit(d->hwirq, pctrl->enabled_irqs); raw_spin_unlock_irqrestore(&pctrl->lock, flags); + + if (d->parent_data) + irq_chip_unmask_parent(d); } static void msm_gpio_irq_ack(struct irq_data *d) @@ -875,6 +882,9 @@ static int msm_gpio_irq_set_type(struct irq_data *d, unsigned int type) else if (type & (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) irq_set_handler_locked(d, handle_edge_irq); + if (d->parent_data) + irq_chip_set_type_parent(d, type); + return 0; } @@ -890,6 +900,9 @@ static int msm_gpio_irq_set_wake(struct irq_data *d, unsigned int on) raw_spin_unlock_irqrestore(&pctrl->lock, flags); + if (d->parent_data) + irq_chip_set_wake_parent(d, on); + return 0; } @@ -967,11 +980,103 @@ static bool msm_gpio_needs_valid_mask(struct msm_pinctrl *pctrl) return device_property_read_u16_array(pctrl->dev, "gpios", NULL, 0) > 0; } +static int get_parent_hwirq(struct msm_pinctrl *pctrl, unsigned int hwirq) +{ + int i, n, ret; + int gpio, pdc = -EINVAL; + struct device_node *np = pctrl->dev->of_node; + + n = of_property_count_elems_of_size(np, "wake-irq", sizeof(u32)); + if (n <= 0 || n % 2) + return -EINVAL; + + for (i = 0; i < n / 2; i++) { + ret = of_property_read_u32_index(np, "wake-irq", 2 * i, &gpio); + if (ret) + return ret; + if (gpio != hwirq) + continue; + ret = of_property_read_u32_index(np, "wake-irq", 2 * i + 1, + &pdc); + if (ret) + return ret; + } + + return pdc; +} + +static int msm_gpio_domain_translate(struct irq_domain *d, + struct irq_fwspec *fwspec, + unsigned long *hwirq, unsigned int *type) +{ + if (is_of_node(fwspec->fwnode)) { + if (fwspec->param_count < 2) + return -EINVAL; + *hwirq = fwspec->param[0]; + *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; + return 0; + } + + return -EINVAL; +} + +static int msm_gpio_domain_alloc(struct irq_domain *domain, unsigned int virq, + unsigned int nr_irqs, void *arg) +{ + int ret = 0; + irq_hw_number_t hwirq; + int parent_hwirq; + struct gpio_chip *gc = domain->host_data; + struct msm_pinctrl *pctrl = gpiochip_get_data(gc); + struct irq_fwspec parent_fwspec, *fwspec = arg; + unsigned int type; + + ret = msm_gpio_domain_translate(domain, fwspec, &hwirq, &type); + if (ret) + return ret; + + parent_hwirq = get_parent_hwirq(pctrl, hwirq); + if (parent_hwirq < 0) + return 0; + + ret = irq_domain_set_hwirq_and_chip(domain, virq, hwirq, + &pctrl->irq_chip, gc); + if (ret < 0) + return ret; + + parent_fwspec.fwnode = domain->parent->fwnode; + parent_fwspec.param_count = 2; + parent_fwspec.param[0] = parent_hwirq; + parent_fwspec.param[1] = type; + + return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, + &parent_fwspec); +} + +static int msm_gpio_to_irq(struct gpio_chip *chip, unsigned int offset) +{ + struct irq_fwspec fwspec; + + fwspec.fwnode = of_node_to_fwnode(chip->of_node); + fwspec.param[0] = offset; + fwspec.param[1] = IRQ_TYPE_LEVEL_HIGH; + fwspec.param_count = 2; + + return irq_create_fwspec_mapping(&fwspec); +} + +static const struct irq_domain_ops msm_gpiod_ops = { + .translate = msm_gpio_domain_translate, + .alloc = msm_gpio_domain_alloc, + .free = irq_domain_free_irqs_top, +}; + static int msm_gpio_init(struct msm_pinctrl *pctrl) { struct gpio_chip *chip; int ret; unsigned ngpio = pctrl->soc->ngpios; + struct device_node *dn; if (WARN_ON(ngpio > MAX_NR_GPIO)) return -EINVAL; @@ -1015,9 +1120,19 @@ static int msm_gpio_init(struct msm_pinctrl *pctrl) dev_name(pctrl->dev), 0, 0, chip->ngpio); if (ret) { dev_err(pctrl->dev, "Failed to add pin range\n"); - gpiochip_remove(&pctrl->chip); - return ret; + goto fail; + } + } + + dn = of_parse_phandle(pctrl->dev->of_node, "wakeup-parent", 0); + if (dn) { + chip->irq.parent_domain = irq_find_host(dn); + of_node_put(dn); + if (!chip->irq.parent_domain) { + ret = -EPROBE_DEFER; + goto fail; } + chip->to_irq = msm_gpio_to_irq; } ret = gpiochip_irqchip_add(chip, @@ -1027,14 +1142,16 @@ static int msm_gpio_init(struct msm_pinctrl *pctrl) IRQ_TYPE_NONE); if (ret) { dev_err(pctrl->dev, "Failed to add irqchip to gpiochip\n"); - gpiochip_remove(&pctrl->chip); - return -ENOSYS; + goto fail; } gpiochip_set_chained_irqchip(chip, &pctrl->irq_chip, pctrl->irq, msm_gpio_irq_handler); return 0; +fail: + gpiochip_remove(&pctrl->chip); + return ret; } static int msm_ps_hold_restart(struct notifier_block *nb, unsigned long action, From patchwork Wed Nov 21 00:06:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 10691463 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9950717FE for ; Wed, 21 Nov 2018 00:07:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 858D72A8A3 for ; Wed, 21 Nov 2018 00:07:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 799662AD81; Wed, 21 Nov 2018 00:07:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16DE02A8A3 for ; Wed, 21 Nov 2018 00:07:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726950AbeKUKjP (ORCPT ); Wed, 21 Nov 2018 05:39:15 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:48228 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726881AbeKUKjO (ORCPT ); Wed, 21 Nov 2018 05:39:14 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6B1D260C4C; Wed, 21 Nov 2018 00:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542758843; bh=dI/YF/YLgNGAhMIFdHF3+jTzVJx1RL6JwVJbhbfEis0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HYcrFsJkzO2FQv5kxoGrJ6GIKWnRNuzrpC7nSSErLdnt0Q/KUEecDrZUdFs82mvT0 CQ0/IRZ/hD3hq7TvE3vR3WCRF2ge83f1fBnqp8pZDHGYEXGx8XunjNjfPf5oEMUb0Q vkkQxf2OS7pKHbGLHku5+CaujIe73VbSFKy7cFhw= 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 D8E5C60B19; Wed, 21 Nov 2018 00:07:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542758842; bh=dI/YF/YLgNGAhMIFdHF3+jTzVJx1RL6JwVJbhbfEis0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kGGaPcoKjUtH8Nn3DzFfPYOtjeGHcrj68YFvjVebnSxM6CaDl5EMBwI6pvSROjtow CkTQUqXLskajnGAZqq0yZPMOqZClo2Um8yD5Wx2pHwWYonGOeLqHXP6H84aOwdRKsZ ZT+KgfJ6MVxV3Gt3y0uHfRTV/61MylOfIf6aWFqI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D8E5C60B19 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: sboyd@kernel.org, evgreen@chromium.org, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, rplsssn@codeaurora.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, thierry.reding@gmail.com, Lina Iyer Subject: [RFC v3 2/3] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO Date: Tue, 20 Nov 2018 17:06:47 -0700 Message-Id: <20181121000648.29262-3-ilina@codeaurora.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121000648.29262-1-ilina@codeaurora.org> References: <20181121000648.29262-1-ilina@codeaurora.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SDM845 SoC has an always-on interrupt controller (PDC) with select GPIO routed to the PDC as interrupts that can be used to wake the system up from deep low power modes and suspend. Signed-off-by: Lina Iyer --- .../bindings/pinctrl/qcom,sdm845-pinctrl.txt | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt index 665aadb5ea28..bedfa0b57fa6 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt @@ -29,6 +29,17 @@ SDM845 platform. Definition: must be 2. Specifying the pin number and flags, as defined in +- wakeup-parent: + Usage: optional + Value type: + Definition: A phandle to the wakeup interrupt controller for the SoC. + +- wakeup-irq: + Usage: optional: + Value type: + Definition: Specifies the map of the gpio and the corresponding PDC + output port. + - gpio-controller: Usage: required Value type: @@ -53,7 +64,6 @@ pin, a group, or a list of pins or groups. This configuration can include the mux function to select on those pin(s)/group(s), and various pin configuration parameters, such as pull-up, drive strength, etc. - PIN CONFIGURATION NODES: The name of each subnode is not important; all subnodes should be enumerated @@ -160,6 +170,25 @@ Example: #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; + wake-parent = <&pdc>; + wake-irq = + <1 30>, <3 31>, <5 32>, <10 33>, <11 34>, + <20 35>, <22 36>, <24 37>, <26 38>, <30 39>, + <31 117>, <32 41>, <34 42>, <36 43>, <37 44>, + <38 45>, <39 46>, <40 47>, <41 115>, <43 49>, + <44 50>, <46 51>, <48 52>, <49 118>, <52 54>, + <53 55>, <54 56>, <56 57>, <57 58>, <58 59>, + <59 60>, <60 61>, <61 62>, <62 63>, <63 64>, + <64 65>, <66 66>, <68 67>, <71 68>, <73 69>, + <77 70>, <78 71>, <79 72>, <80 73>, <84 74>, + <85 75>, <86 76>, <88 77>, <89 116>, <91 79>, + <92 80>, <95 81>, <96 82>, <97 83>, <101 84>, + <103 85>, <104 86>, <115 90>, <116 91>, + <117 92>, <118 93>, <119 94>, <120 95>, + <121 96>, <122 97>, <123 98>, <124 99>, + <125 100>, <127 102>, <128 103>, <129 104>, + <130 105>, <132 106>, <133 107>, <145 108>; + qup9_active: qup9-active { mux { From patchwork Wed Nov 21 00:06:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 10691465 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C318614E2 for ; Wed, 21 Nov 2018 00:07:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFBFA2A8A3 for ; Wed, 21 Nov 2018 00:07:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A459D2AD81; Wed, 21 Nov 2018 00:07:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E5382A8A3 for ; Wed, 21 Nov 2018 00:07:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726941AbeKUKjP (ORCPT ); Wed, 21 Nov 2018 05:39:15 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:48276 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726894AbeKUKjP (ORCPT ); Wed, 21 Nov 2018 05:39:15 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2E8E660C5F; Wed, 21 Nov 2018 00:07:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542758844; bh=IRxTA9sQsYkgX7BsHzxqdGvBVyLH+bq2ClrtpjtF+tA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ac8yI8+5lHTXSMhs1KdDVamV8sa8Q7her/WZQerSXjMuupKPaRTzQYHnIwrXCMk3j hZjYrQxY9/TiHoLdSZyYDtS2TEktccja5mdcntQuYANGhQ5yjyec0g5TF2P2UE4bAe 8OEzK/5IR1qcGQa1+IS3Xfvnc6oxxEDmmlPP2LUo= 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 04AA360BE8; Wed, 21 Nov 2018 00:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542758843; bh=IRxTA9sQsYkgX7BsHzxqdGvBVyLH+bq2ClrtpjtF+tA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BvG9Mh6Xsj3oRJKQMgDVzDA2kQiWBwD4K8beHYv+qMR0/tIHafVhPbSp+Yo2YuRno Fsb0CrQJs+OVBYQgaq7UVc0SNti8Vnty8EcCqHHDfwlDzlxImvNuOhfthgoAZ9a98w /DMgVqR6mf7ZmGSW8/etFfsFJn2xjDDtvgCrEIPY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 04AA360BE8 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: sboyd@kernel.org, evgreen@chromium.org, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, rplsssn@codeaurora.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, thierry.reding@gmail.com, Lina Iyer Subject: [RFC v3 3/3] arm64: dts: msm: add PDC wake irq maps for GPIOs for SDM845 Date: Tue, 20 Nov 2018 17:06:48 -0700 Message-Id: <20181121000648.29262-4-ilina@codeaurora.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121000648.29262-1-ilina@codeaurora.org> References: <20181121000648.29262-1-ilina@codeaurora.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add PDC wakeup irq for GPIOs and the wakeup parent for TLMM. Signed-off-by: Lina Iyer --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 8e15392a6f64..79835310933b 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -821,6 +821,24 @@ #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; + wake-parent = <&pdc>; + wake-irq = + <1 30>, <3 31>, <5 32>, <10 33>, <11 34>, + <20 35>, <22 36>, <24 37>, <26 38>, <30 39>, + <31 117>, <32 41>, <34 42>, <36 43>, <37 44>, + <38 45>, <39 46>, <40 47>, <41 115>, <43 49>, + <44 50>, <46 51>, <48 52>, <49 118>, <52 54>, + <53 55>, <54 56>, <56 57>, <57 58>, <58 59>, + <59 60>, <60 61>, <61 62>, <62 63>, <63 64>, + <64 65>, <66 66>, <68 67>, <71 68>, <73 69>, + <77 70>, <78 71>, <79 72>, <80 73>, <84 74>, + <85 75>, <86 76>, <88 77>, <89 116>, <91 79>, + <92 80>, <95 81>, <96 82>, <97 83>, <101 84>, + <103 85>, <104 86>, <115 90>, <116 91>, + <117 92>, <118 93>, <119 94>, <120 95>, + <121 96>, <122 97>, <123 98>, <124 99>, + <125 100>, <127 102>, <128 103>, <129 104>, + <130 105>, <132 106>, <133 107>, <145 108>; qup_i2c0_default: qup-i2c0-default { pinmux {