Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp26272imm; Tue, 7 Aug 2018 13:13:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdHu2szgGk1pHCy3mgz9oZ3v3ktYxwxMxPfLLKHmdrBBSHgNFybVlCrvrOm4so0T0sASTov X-Received: by 2002:a63:2647:: with SMTP id m68-v6mr19913220pgm.60.1533672828226; Tue, 07 Aug 2018 13:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533672828; cv=none; d=google.com; s=arc-20160816; b=JB25l18qf+R2a203ul1hQ/qs+nc+bUxgm+pwTyq2naz3BcJzEKKor1qD1bkTYdcYwr xRG5r+G1oi/ffdmh+gL7T3c3+GKCjAHFgX91JHXXJJbKhay9X7q5saUc2RoTDqe5gF+B t34jUvx7dLn4W0wfCErC+Fp/KsGjA2WB2RRhie1eT8AB/DSX4dNJ2jtBY3ybWFfyp+rX faNlWhnsioQ1R7ZCT+lrKsXJfD+Ql7Qs7YHoei1FuasJivfUu6bzl+8idXDXwLFxAPER IEMX+mDC2tqO0Cvskq8X7YpOV3Jmj8baX5o2MIRRVx/NXESgB+z2cJqe2Tu66G16Gtb4 XO8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=l1MaYiyBPwgBCUv42mgzrebMsZanNn2U8SWwUN+XtjY=; b=tNZRSJdVuNuwgTXAo2pKraaRkPFGqrzjxM9qkOEfDVNtTgCvtV4AIr3/E0u4TXOZrk SX7JSVWampX8NA3WLqTG956ZsjL4/RMBedk1ec/ToppbtF9DqlI7XKbhkDcih9SXzjr7 Bcj8jYX0B9CGzC6e4EgwQP3A4H036VkBKmN5dNNMNEFBdRBRyB0auvh5HBSoXgAAP/su c2Y+Vb1Kd1pBhQlF4fT/wXc2FYWbhtY3scWwi+SqUmV4YBrKIfQix3Cgf7gyceQH9QxT uZcn0N7xMXCtSa5r0Bh23Ob3p4gHWgYI+3YNzkc1Id5F60Z0RwBVhWj8TZSXm0mXhAIT 4jlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FeDWwR1d; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6-v6si2225157pgk.597.2018.08.07.13.13.33; Tue, 07 Aug 2018 13:13:48 -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=@chromium.org header.s=google header.b=FeDWwR1d; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727364AbeHGWNX (ORCPT + 99 others); Tue, 7 Aug 2018 18:13:23 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33770 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727196AbeHGWNW (ORCPT ); Tue, 7 Aug 2018 18:13:22 -0400 Received: by mail-lj1-f195.google.com with SMTP id s12-v6so14435646ljj.0 for ; Tue, 07 Aug 2018 12:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l1MaYiyBPwgBCUv42mgzrebMsZanNn2U8SWwUN+XtjY=; b=FeDWwR1d9SwrqldQlGTmJfwRRVmjUfLS7uqByunw4AWd1eqsHfxfxJOY7VmsjQ3wtL rPzF42ESu21JbWXBE6L98/Pt35RH2lU4LkBFxrsYooyhq0dm6Hi5T2KI3IJ5r8gNnY3D cIimiRdt+drayklZe0xffediZSyhsjdvtPlZE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l1MaYiyBPwgBCUv42mgzrebMsZanNn2U8SWwUN+XtjY=; b=sgTAUCSI2XLvP/ihcY7Yg0RiM0SsxOYkwb6wdLtVxjWc+wFQt9MdIe5zBZwjXU6o8B 4olOo0q0x7xYuTDyWNMGj1RuU+zmFKB3bXN2sXOXvfqIJ2Emfr0yICFy/jY/3NAVm5Zs 9fmEOsHzYoQCfCtPQclU00U/3kjwL/OZu3nKDtRX/dhQWQm+pNZP9IXz21OevKBPVVS/ 5gDreCCSP7jp0rh4eHRvCrE48uYT+iH4gNVDnrYYLcVNU5oHbUEycjw1fg5FBwpcgA4o EH8ChYPr7QOUiN7Vv1woToIFooUD2dUEhcpEKnz8M9Mw5DKR4X+Ft1T8stZKbbv/2XYx xBGQ== X-Gm-Message-State: AOUpUlHt9HqrXTf14iLEBcNFAdOZ95m/6vWHfq+p91T4aQwpSd3n0Bip fnD4Myad/BOGrExqTOdD7pRS6UOcPac= X-Received: by 2002:a2e:8346:: with SMTP id l6-v6mr17585633ljh.72.1533671842132; Tue, 07 Aug 2018 12:57:22 -0700 (PDT) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id a15-v6sm378512ljf.92.2018.08.07.12.57.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Aug 2018 12:57:20 -0700 (PDT) Received: by mail-lf1-f48.google.com with SMTP id u202-v6so12506966lff.9 for ; Tue, 07 Aug 2018 12:57:20 -0700 (PDT) X-Received: by 2002:a19:d484:: with SMTP id l126-v6mr14455132lfg.28.1533671840372; Tue, 07 Aug 2018 12:57:20 -0700 (PDT) MIME-Version: 1.0 References: <20180731224421.29062-1-ilina@codeaurora.org> <20180731224421.29062-5-ilina@codeaurora.org> In-Reply-To: <20180731224421.29062-5-ilina@codeaurora.org> From: Evan Green Date: Tue, 7 Aug 2018 12:56:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RFC 4/4] arm64: dts: qcom: add wake up interrupts for GPIOs To: Lina Iyer Cc: marc.zyngier@arm.com, Stephen Boyd , Linus Walleij , Bjorn Andersson , rplsssn@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Rajendra Nayak , devicetree@vger.kernel.org, swboyd@chromium.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 31, 2018 at 3:44 PM Lina Iyer wrote: > > GPIOs that are wakeup capable have interrupt lines that are routed to > the always-on interrupt controller (PDC) in parallel to the pinctrl. The > interrupts listed here are the wake up lines corresponding to GPIOs. > > Signed-off-by: Lina Iyer > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 69 ++++++++++++++++++++++++++++ > 1 file changed, 69 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index 8ccce42885c1..96ef18ced85b 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -720,6 +720,75 @@ > #gpio-cells = <2>; > interrupt-controller; > #interrupt-cells = <2>; > + interrupts-extended = <&pdc 30 IRQ_TYPE_LEVEL_HIGH>, In order to get any GPIO interrupts on my board, I needed to add the summary IRQ first in this list. My reading of platform_get_irq is that "interrupts-extended" is queried before "interrupts", so we accidentally wire the summary IRQ to PDC 30. Given this, you can probably remove the regular "interrupts" property. -Evan > + <&pdc 31 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 32 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 33 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 34 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 35 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 36 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 37 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 38 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 39 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 41 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 42 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 43 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 44 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 45 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 46 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 47 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 49 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 50 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 51 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 52 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 54 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 55 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 56 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 57 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 58 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 59 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 60 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 61 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 62 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 63 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 64 IRQ_TYPE_LEVEL_HIGH>, > + <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&pdc 104 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 105 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 106 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 107 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 108 IRQ_TYPE_LEVEL_HIGH>; > > qup_i2c0_default: qup-i2c0-default { > pinmux { > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project >