From patchwork Wed Nov 7 21:51:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 10673111 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 533A113BF for ; Wed, 7 Nov 2018 21:51:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4543A2D1BF for ; Wed, 7 Nov 2018 21:51:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 288FE2D09D; Wed, 7 Nov 2018 21:51:21 +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 B2CD72D0D7 for ; Wed, 7 Nov 2018 21:51:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727305AbeKHHXh (ORCPT ); Thu, 8 Nov 2018 02:23:37 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:52038 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbeKHHXh (ORCPT ); Thu, 8 Nov 2018 02:23:37 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1DD3960767; Wed, 7 Nov 2018 21:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541627479; bh=o/7CHat9NMNmeV0dZRqmp7qU5wrneKuZO7FjFc6Lvv4=; h=From:To:Cc:Subject:Date:From; b=gAgVyIY6kDmAc35vfiOestmDruLCcg7W5cac5646Lf1JuOrPMvDQ3EMIJZvtW3j6p mj6mCFo1vuNP23VPLMvn4Z0gTmw+gzhQibZMviSmxnuGKSTVY3oZASyWac9+bP3rvd sSfASfC8fU2ndqJPwsjJC1JpZ+3n1CyMMvSN5tU0= 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 1C1A8601D4; Wed, 7 Nov 2018 21:51:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541627478; bh=o/7CHat9NMNmeV0dZRqmp7qU5wrneKuZO7FjFc6Lvv4=; h=From:To:Cc:Subject:Date:From; b=lwmjj8Wj9fBwjm5jvE9x9fNJAjz9h70KpXcPjBKCdCpQjN+XKD1eWzf1w0d+NRF8i RHuqpHLWAi7c7d3aAVyWF41TAJHUz1ksvj+yu8V/Rqgg/NOdbV9cNgmXbZWp/UpYQ0 j1FaFW/mXnRAoxw9QGEMO3YM9qrkZMwLkLVepeXc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1C1A8601D4 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: linux-arm-msm@vger.kernel.org, andy.gross@linaro.org, bjorn.andersson@linaro.org Cc: rplsssn@codeaurora.org, linux-kernel@vger.kernel.org, rnayak@codeaurora.org, devicetree@vger.kernel.org, Lina Iyer Subject: [PATCH RESEND v3 1/2] arm64: dts: msm: add PDC device bindings for sdm845 Date: Wed, 7 Nov 2018 14:51:08 -0700 Message-Id: <20181107215109.10720-1-ilina@codeaurora.org> X-Mailer: git-send-email 2.19.1 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 interrupt controller device bindings for SDM845. Signed-off-by: Lina Iyer --- Changes in v3: - Fix PDC map, use GIC SPI port number for hwirq Changes in v2: - Order by address --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index b72bdb0a31a5..09f26ae9f803 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -1256,6 +1256,15 @@ #power-domain-cells = <1>; }; + pdc: interrupt-controller@b220000 { + compatible = "qcom,sdm845-pdc"; + reg = <0xb220000 0x30000>; + qcom,pdc-ranges = <0 480 94>, <94 609 15>, <115 630 7>; + #interrupt-cells = <2>; + interrupt-parent = <&intc>; + interrupt-controller; + }; + tsens0: thermal-sensor@c263000 { compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; reg = <0xc263000 0x1ff>, /* TM */ From patchwork Wed Nov 7 21:51:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 10673113 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 A498515E9 for ; Wed, 7 Nov 2018 21:51:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95C8C2D1D5 for ; Wed, 7 Nov 2018 21:51:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A1702D1D2; Wed, 7 Nov 2018 21:51:24 +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 36CC82D083 for ; Wed, 7 Nov 2018 21:51:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727653AbeKHHXj (ORCPT ); Thu, 8 Nov 2018 02:23:39 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:52094 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbeKHHXi (ORCPT ); Thu, 8 Nov 2018 02:23:38 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3D6AE607F7; Wed, 7 Nov 2018 21:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541627480; bh=DRuV+9jI4DaGTOlcgBBdFCcB/E3pSZzODZ/wPHHMxpM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XqPxgS4CJ6ewYN2xx87/+tuMHmNVPFAsk201K2esChq630cq1lZccoD7+OscBm1Qe 9RUtJso4991cB1EabUk00OqPAIZD9uVQBRMU4E6ND+jSzvfmX2/IVtlE13MsHiFQ8C fRCp1P6IX44Fg02D09f5pVey92qwyESz1Lcm0uh4= 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 0D7C360591; Wed, 7 Nov 2018 21:51:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541627479; bh=DRuV+9jI4DaGTOlcgBBdFCcB/E3pSZzODZ/wPHHMxpM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fmtuRtRNbD+xWLKn6jJo6njeWiSJcWwtam7dC/WK2vADSYQTLY9CAfZ0X/gASsL8K +APzdRJ53JWvGNk2i1bjvZa9qPwlV++Et0qmLo52WhnyUciRKW1dSbq19lR6rfCN6h mJ38lzHah07/UsYBdAKQB7POFQGFRUhmQniw+2Ss= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0D7C360591 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: linux-arm-msm@vger.kernel.org, andy.gross@linaro.org, bjorn.andersson@linaro.org Cc: rplsssn@codeaurora.org, linux-kernel@vger.kernel.org, rnayak@codeaurora.org, devicetree@vger.kernel.org, Lina Iyer Subject: [PATCH RESEND v3 2/2] dt-bindings/interrupt-controller: pdc: fix example to match actual bindings Date: Wed, 7 Nov 2018 14:51:09 -0700 Message-Id: <20181107215109.10720-2-ilina@codeaurora.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181107215109.10720-1-ilina@codeaurora.org> References: <20181107215109.10720-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 The PDC map should use the GIC SPI port and not the vector. GIC internally adds 32 to SPI hwirq numbers. Fixes: 1ae8862e27e ("dt-bindings/interrupt-controller: pdc: Describe PDC device binding") Reviewed-by: Rob Herring Signed-off-by: Lina Iyer --- .../devicetree/bindings/interrupt-controller/qcom,pdc.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt index 8e0797cb1487..803831479aec 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt @@ -55,13 +55,13 @@ Example: pdc: interrupt-controller@b220000 { compatible = "qcom,sdm845-pdc"; reg = <0xb220000 0x30000>; - qcom,pdc-ranges = <0 512 94>, <94 641 15>, <115 662 7>; + qcom,pdc-ranges = <0 480 94>, <94 609 15>, <115 630 7>; #interrupt-cells = <2>; interrupt-parent = <&intc>; interrupt-controller; }; -DT binding of a device that wants to use the GIC SPI 514 as a wakeup +DT binding of a device that wants to use the GIC SPI 482 as a wakeup interrupt, must do - wake-device {