Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1225421imm; Wed, 8 Aug 2018 13:02:17 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwmwuVBoFPTF40UxHSTIJYlMoqIWM6mhnll0x5Avh01qxCRoe4/JBN8g2QW94Z4/vweL/Pc X-Received: by 2002:a65:5286:: with SMTP id y6-v6mr3855242pgp.65.1533758537783; Wed, 08 Aug 2018 13:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533758537; cv=none; d=google.com; s=arc-20160816; b=y+mSma0dr4MK/qsUF9XPS8OQm8ZnUcNhwcX9kk1Kwa5ES1rDcdPdF0MpC32RQgVca/ 8boUXXw02x0Fst68eyfVcY38jy17Wm6ZCPOC4MAjJIahiPiwdHYWuUzH2446VHnM16o5 f655QZ87CbC7EmnlSo5gpIZsPCu6Uu9dpzJy8ma8e++3KysYnIMwJGObxzr37dsanxuJ PR1nDu6guSwM1/vZDYScxKeBJAabZD3+BbuplXAMSdBBSDFVwQ/fqCw4iXsfMUZjOnor CU6bKCysghqmNeY6u8rK9fVHNsmetOSRfAL6LONpN1FQUrxDW8vg2pPwHN6nMYVnzzBY Gw8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=QBQvccmD1jU/qHXoOnlCL92BBxRuFTTdNzwALcGpCYE=; b=lHIvMTUzq6SbLontfCwPlR3MBH3DQEnNL0YSfEIF9d3azBWWFpFsIi8OaXsz5K4egy e7hNI7IIMyQ2SqoMKC1/LNq2AwR+Bt3eiCaZ7S0FJZCCGUuV6878uznoAhAY1a68hx9f pvPlbReCub/iztwXBl3sJagE3Vehv1Z9vTCgbDpn/od7i0/i4ZhuuEG152TXEGdsn6SQ NTiLg4eQyfGMGw2Y1QJUYjGycLWqH9YkO2p/LHNWWxRKyu5Nrz9bljqJLBAuhEw7YSSz jULmoDj7iNMx05ZVkANkAJ8rFvUAYVlb7XcKW4RsZ2RJrjPtEVZtI/5b3fDfnbL9MbaW GL/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=SwMqbRtj; dkim=pass header.i=@codeaurora.org header.s=default header.b=ktO13o11; 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 d16-v6si4988946pfe.267.2018.08.08.13.02.02; Wed, 08 Aug 2018 13:02:17 -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=SwMqbRtj; dkim=pass header.i=@codeaurora.org header.s=default header.b=ktO13o11; 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 S1730123AbeHHWWR (ORCPT + 99 others); Wed, 8 Aug 2018 18:22:17 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:55042 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729661AbeHHWWR (ORCPT ); Wed, 8 Aug 2018 18:22:17 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E57B860B74; Wed, 8 Aug 2018 20:01:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533758463; bh=cnzjzz2uhhDk+Bna3PkLNRO3P+nKNCO1tN0rMvtP4os=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SwMqbRtjUnsSUeJU60NZS5AWapZ7f/Z2bAmlKINaU8Dwj409HtNi1RvKHo8ZUhp23 Xa6+65W5YOK5HXqfIukoTgKjpJ54wlOaOpazQVCu+jYNekFQU1tE8t/s8pHSVIo8eA YBKbEg+yQ0IOL4qTUi1ajOZmE0WlDActitKEvwQ4= 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.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 02902601D2; Wed, 8 Aug 2018 20:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533758462; bh=cnzjzz2uhhDk+Bna3PkLNRO3P+nKNCO1tN0rMvtP4os=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ktO13o11w0HfCy8x7j8IlKhqYRUx+rhbNl9K7k9Qa3lbQT1GjSxW3jsoPpzZ4U7t7 5FmMzZGFLcBoZzx5nsLMs3xCNTi2Ec8YnCNuuu0KGpqINa+K96GVlVrLxSIrA7BqhH MbKFSpFtgeUGIl+xqqGtfrnOxeXiHNW5jXtDiAzs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 02902601D2 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 Date: Wed, 8 Aug 2018 14:01:01 -0600 From: Lina Iyer To: Evan Green 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 Subject: Re: [PATCH RFC 4/4] arm64: dts: qcom: add wake up interrupts for GPIOs Message-ID: <20180808200101.GD27850@codeaurora.org> References: <20180731224421.29062-1-ilina@codeaurora.org> <20180731224421.29062-5-ilina@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 07 2018 at 13:57 -0600, Evan Green wrote: >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. > Sure. Will fix that. -- Lina >> + <&pdc 31 IRQ_TYPE_LEVEL_HIGH>, >> + <&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c 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 >>