Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp614120ybe; Mon, 2 Sep 2019 06:43:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaEwVuZXWaGbavR8csbknqRbb1A4mYz7A8vp5nW3+zstKZo0RIZ6VE2cQtQxRKKHF4nov6 X-Received: by 2002:aa7:8b01:: with SMTP id f1mr2425140pfd.173.1567431821872; Mon, 02 Sep 2019 06:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567431821; cv=none; d=google.com; s=arc-20160816; b=ZzmJZFGlMl+mGpNIqe9DAsrbPWDRPFSeMDavTIpzEYnscme+iFjEVnmDrSqN3ZFs6e SGBsoPHboMO1qUKLNsNvqrGNDQrWg3l9h6gxh6A6BtFnXkayjUz9FyhejjYbKGF/vyOV BTS7S+1+2GR7cCqW4+rPa6K6ABXYpWf0Djj6DJTbb1WbRoHggtv7g9HGpfSyBD1l8dg6 GNxE3Yl2vCkTr5fK/3SBjBeXRAIf6J1U4doJfCldvkzWgxTFkVTtmavnzG2slMdy+6/9 t+A27mee+14xms1zIwE5Sztn9R+kBwnQyya0W1GAPkf8SY7l/WL8ObwJKldcIuLb7cop qiMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:subject:cc:to:from:date:message-id; bh=Y0H79HNi/wc0sQjufCwpYot026IIQeHKVOcgN05mAO8=; b=Jd5pl/PCBFuXzToGOUN0/NpXdXWbFWpa9JcgdVW/XEoX/RaQZi/z0E16HkrQcWrlHQ 3V4cml/5rIT84xTW22K0Wj0Au2pmnbePRI6BJsRosf5DJi+AappuGOFnCEkVh4bBwHRF oe99F+BSKnUI9sFKT2RvUoYUW3eb+ATCIVvIfx0Y2X02uu0jNGgO800V0dzB6Uauiw9T FzzsnaM9+CdTGa8+puW/EqC5fU46lDpP92mFAkR+FIKXrT5PuB0eEHytUZTXj5uvt8zO u4btI8K1dARJ3nVbqmoLwGTBSmRyLSLsaCEp6VAVt5kolUMSQC+gSTGiWcWMphaRUWnJ mEVw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b62si11713541pgc.148.2019.09.02.06.43.26; Mon, 02 Sep 2019 06:43:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731133AbfIBNjD (ORCPT + 99 others); Mon, 2 Sep 2019 09:39:03 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:40832 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731089AbfIBNjB (ORCPT ); Mon, 2 Sep 2019 09:39:01 -0400 Received: by mail-wm1-f68.google.com with SMTP id t9so14650431wmi.5; Mon, 02 Sep 2019 06:38:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:in-reply-to; bh=Y0H79HNi/wc0sQjufCwpYot026IIQeHKVOcgN05mAO8=; b=D2xYXNWL9Lv4YzMDjik8MNwx7cMVICKFthj5IbOmeCyht3Qe2Aukea3jDeVhuAlkBy MZVXvymIyDTwMdgmL2lHmaQVah5GaS7N/NXMjXAixABUVkYpHs//NthP5OMvRjoq2Xsj MY7KC5E1v72OfI/6NTxglWMcVi5YSeHqpTtcOQJ/hcXydXQPuRlHPaotAXPZZ4vryaCS rAWfWGkD0+VRkjwhykyNKBFTONmntu9GyZp7Nh9obn1IWfAETYVQCO4Zgl3H5zWxLLbb Bh9u6FjnNWIT/Msu6eJea/UiL5c7Mrr3Akq8hWN12P2vCQ0QzjeTkV/rAsddspCMqtoz ivfw== X-Gm-Message-State: APjAAAXCT4z7uOcby9bYSSOijiNamAGt9B3kPOIGoigPHsV8sSYiHvcz O3sVGSta7onmauTZkeJPUg== X-Received: by 2002:a1c:c00e:: with SMTP id q14mr36396596wmf.142.1567431539134; Mon, 02 Sep 2019 06:38:59 -0700 (PDT) Received: from localhost ([212.187.182.166]) by smtp.gmail.com with ESMTPSA id f75sm21657107wmf.2.2019.09.02.06.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 06:38:58 -0700 (PDT) Message-ID: <5d6d1b72.1c69fb81.ee88.efcf@mx.google.com> Date: Mon, 02 Sep 2019 14:38:57 +0100 From: Rob Herring To: Lina Iyer Cc: swboyd@chromium.org, evgreen@chromium.org, marc.zyngier@arm.com, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, mkshah@codeaurora.org, linux-gpio@vger.kernel.org, rnayak@codeaurora.org, devicetree@vger.kernel.org Subject: Re: [PATCH RFC 05/14] dt-bindings/interrupt-controller: pdc: add SPI config register References: <20190829181203.2660-1-ilina@codeaurora.org> <20190829181203.2660-6-ilina@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190829181203.2660-6-ilina@codeaurora.org> X-Mutt-References: <20190829181203.2660-6-ilina@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 29, 2019 at 12:11:54PM -0600, Lina Iyer wrote: > In addition to configuring the PDC, additional registers that interface > the GIC have to be configured to match the GPIO type. The registers on > some QCOM SoCs are access restricted, while on other SoCs are not. They > SoCs with access restriction to these SPI registers need to be written Took me a minute to figure out this is GIC SPI interrupts, not SPI bus. > from the firmware using the SCM interface. Add a flag to indicate if the > register is to be written using SCM interface. > > Cc: devicetree@vger.kernel.org > Signed-off-by: Lina Iyer > --- > .../bindings/interrupt-controller/qcom,pdc.txt | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt > index 8e0797cb1487..852fcba98ea6 100644 > --- a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt > +++ b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt > @@ -50,15 +50,22 @@ Properties: > The second element is the GIC hwirq number for the PDC port. > The third element is the number of interrupts in sequence. > > +- qcom,scm-spi-cfg: > + Usage: optional > + Value type: > + Definition: Specifies if the SPI configuration registers have to be > + written from the firmware. > + > Example: > > pdc: interrupt-controller@b220000 { > compatible = "qcom,sdm845-pdc"; > - reg = <0xb220000 0x30000>; > + reg = <0xb220000 0x30000>, <0x179900f0 0x60>; There needs to be a description for reg updated. These aren't GIC registers are they? Because those go in the GIC node. > qcom,pdc-ranges = <0 512 94>, <94 641 15>, <115 662 7>; > #interrupt-cells = <2>; > interrupt-parent = <&intc>; > interrupt-controller; > + qcom,scm-spi-cfg; > }; > > DT binding of a device that wants to use the GIC SPI 514 as a wakeup > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project >