Received: by 10.223.176.5 with SMTP id f5csp1056166wra; Fri, 2 Feb 2018 10:24:29 -0800 (PST) X-Google-Smtp-Source: AH8x226+bLLb8iM/x3aPUybG2AgQ/WApp5YDrRWHuOMBnPJUgtLG0CX2duBXzlhiTDhBTc7I7hjv X-Received: by 10.101.98.5 with SMTP id d5mr530633pgv.108.1517595869584; Fri, 02 Feb 2018 10:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517595869; cv=none; d=google.com; s=arc-20160816; b=v9iVD3IFZyrKkC2D7mTvbkQ4Nu9CoxZ840AjEzabjATiOjzhxZ8xLyvq/90jtsjho+ YA+o9vymDhfEZLeyBXAtvax2GR7lp15yt20mMPEKHqxhziaWdBErp/bxaD131D4LXao8 hrnk4Nu9qKYAj8RaTlkeKEzMweqPTbla+pFAlK5ExtK1OPNwP9m4NCiujfjJ91W+C2zw /yWoS4BPeb7mHSMN6t3sudAaIao6a0MCskvNYsHIdgZ08y5azJvoY63V3x0UECDg7ZZd P5eFMpc8nHU+r9yDlZ1EXBLhqKaIH/LYac78G5OUKAFFZ55G5p0w1YaJzm1JyISnhqRU Bmhw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=RlmWt5gx3VzVH7xxo7B/jqznb+etHfedTrZS+/Vv5oI=; b=1LLDCydt3jkRl8gdVS08OXo1mu6qfVPL5NB2841IE1OlLspDHQpIP7Xiw1WL+h84eX s7IPRFLZAFqFyum+nQFpuLPRwct0Zi5cOOpynlQqus7he2ggyyX9kTGiDOinQZ7TvEGj 0hfjbtCPOUBfl7kigLmdlcCz4hxQI6vcYlTIiuKizB6jzlcslVdx4WXPmSVYSzM8EGdE O7H0lRTS063fhGOU5SXh4b6Ypk9yfM4SIeiunYEU0pZEkZbzf8LNlfCH0qHE4hjr5njb lSIEJnGT1ZoYHScvqNAIXBPNdFQBgI34gq5APaG5Fqbxe738P7i6OsIy2t4gAlSSWzTy k8cA== ARC-Authentication-Results: i=1; mx.google.com; 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 w123si2247709pfd.95.2018.02.02.10.24.15; Fri, 02 Feb 2018 10:24:29 -0800 (PST) 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; 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 S1754557AbeBBSXU (ORCPT + 99 others); Fri, 2 Feb 2018 13:23:20 -0500 Received: from foss.arm.com ([217.140.101.70]:33498 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752470AbeBBRC2 (ORCPT ); Fri, 2 Feb 2018 12:02:28 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 87CEF80D; Fri, 2 Feb 2018 09:02:27 -0800 (PST) Received: from [10.1.207.62] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0A32B3F24D; Fri, 2 Feb 2018 09:02:25 -0800 (PST) Subject: Re: [PATCH RFC v2 2/3] dt-bindings/interrupt-controller: pdc: descibe PDC device binding To: Lina Iyer Cc: tglx@linutronix.de, jason@lakedaemon.net, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org, rnayak@codeaurora.org, asathyak@codeaurora.org, devicetree@vger.kernel.org References: <20180202142200.6229-1-ilina@codeaurora.org> <20180202142200.6229-3-ilina@codeaurora.org> <396cfc2f-7deb-0c93-7178-d9f5524f110e@arm.com> <20180202164643.GC5319@codeaurora.org> From: Marc Zyngier Organization: ARM Ltd Message-ID: <35ce761e-c9ac-6280-cc72-eccd1dded609@arm.com> Date: Fri, 2 Feb 2018 17:02:24 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180202164643.GC5319@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/02/18 16:46, Lina Iyer wrote: > On Fri, Feb 02 2018 at 16:28 +0000, Marc Zyngier wrote: >> On 02/02/18 14:21, Lina Iyer wrote: >>> From: Archana Sathyakumar >>> >>> Add device binding documentation for the PDC Interrupt controller on >>> QCOM SoC's like the SDM845. The interrupt-controller can be used to >>> sense edge low interrupts and wakeup interrupts when the GIC is >>> non-operational. >>> >>> Cc: devicetree@vger.kernel.org >>> Signed-off-by: Archana Sathyakumar >>> Signed-off-by: Lina Iyer >>> --- >>> .../bindings/interrupt-controller/qcom,pdc.txt | 78 ++++++++++++++++++++++ >>> 1 file changed, 78 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt >>> >>> diff --git a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt >>> new file mode 100644 >>> index 000000000000..7bf40cb6a4f8 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt >>> @@ -0,0 +1,78 @@ >>> +PDC interrupt controller >>> + >>> +Qualcomm Technologies Inc. SoCs based on the RPM Hardened architecture have a >>> +Power Domain Controller (PDC) that is on always-on domain. In addition to >>> +providing power control for the power domains, the hardware also has an >>> +interrupt controller that can be used to help detect edge low interrupts as >>> +well detect interrupts when the GIC is non-operational. >>> + >>> +GIC is parent interrupt controller at the highest level. Platform interrupt >>> +controller PDC is next in hierarchy, followed by others. Drivers requiring >>> +wakeup capabilities of their device interrupts routed through the PDC, must >>> +specify PDC as their interrupt controller and request the PDC port associated >>> +with the GIC interrupt. See example below. >>> + >>> +Properties: >>> + >>> +- compatible: >>> + Usage: required >>> + Value type: >>> + Definition: Should contain "qcom,-pdc" >>> + - "qcom,sdm845-pdc": For SDM845 >>> + >>> +- reg: >>> + Usage: required >>> + Value type: >>> + Definition: Specifies the base physical address for PDC hardware. >>> + >>> +- interrupt-cells: >>> + Usage: required >>> + Value type: >>> + Definition: Specifies the number of cells needed to encode an interrupt >>> + source. >>> + The value must match that of the parent interrupt >>> + controller defined in the DT. >>> + The encoding of these cells are same as described in [1]. >> >> There shouldn't be such a requirement. These are two independent pieces >> of HW, and the first parameter doesn't mean anything for the PDC. >> > Wouldn't that be confusing - that we have different definitions for > interrupts in the same DT? I agree that they are different interrupt > controllers, but it just feels odd. I think it feels more bizarre to have pointless fields in the interrupt specifier. And most DTs have some sort of secondary interrupt controller that only take two (or even one) parameters. I don't think we should treat this any differently. > I will change this to just take 2 cells. Thanks, M. -- Jazz is not dead. It just smells funny...