Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp626898ybe; Mon, 2 Sep 2019 06:55:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAWDoWJ0VngmGHS2KRIMpEaHcMJjXBxZCLGT3Z5BLMUhx2E3e2hLKF1CFNuNFlmSUt4Fwf X-Received: by 2002:a17:902:bc4c:: with SMTP id t12mr29250996plz.90.1567432521572; Mon, 02 Sep 2019 06:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567432521; cv=none; d=google.com; s=arc-20160816; b=f2/GMpH3Zxh9N48iHmoO1NcnZv4PJuasg8V0PHacS/4A9zjqlR+BAtFJ4RqcRH09A7 Sis0OaCq2Bh3J48+BBZLisbev0o6xF4Ro4N0n0FTibSf3O2EA3zjDJHW2OtfEyynxZEy XV8fCP64Ewtl0no6tCt6+L29JVi8RmY9HTZQuoJNQPyNRSO8CXF5atBQ8KjUPnwxm4Se fbWNXDO1KqGxeEooVl3INDQIsJGlVBKWLkj4h2EAS7o4fMKM7Vp7JsLiqoDbhnEOmfv4 7GAay8h9eqJQI7IbbgLfHD+kPk0q81a1r3sA2b37P+2C9OHLp3mF7/62WwnBM1qCro6Z VeRw== 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:autocrypt:openpgp:from:references:cc:to :subject; bh=6TJvIPmZ8XaHgWDYuoITAKzNM71JmomW7LH9Yq6ySis=; b=OsKxvL1KUt8/1lTVpVmWKn61/0vr77Nn3mXzBqY0CfSWgEfOGUZcVszKLfUh+djBor 9HgNmiDeJj1byjeWA9dCGeCjMCLTPX6VDbZbv9E9icFQ/iLw8rfpQdiDRgXYQb5ddfyb IeNTqTlmXN+zfhSVHs0r0haM9TLiVt0P/hb0oOGauugLqTlA2t62pdqUJZ4+NoFsvGJS nZPn6k8iZXVGk9Wa5UxC6+FOd0XICGdXIVpFN7biFcdobBUuhpO7wMVCwjKWdvtLlpiA iUvBby7aEHlskfix841yI56x2NdV1NsPBTHWGhkrDZolr59J5fZ/HbhMybY164Apk17n qhfg== 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 v33si11728045pgk.152.2019.09.02.06.55.06; Mon, 02 Sep 2019 06:55:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730821AbfIBNx7 (ORCPT + 99 others); Mon, 2 Sep 2019 09:53:59 -0400 Received: from foss.arm.com ([217.140.110.172]:55084 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730769AbfIBNx6 (ORCPT ); Mon, 2 Sep 2019 09:53:58 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 31ECA337; Mon, 2 Sep 2019 06:53:58 -0700 (PDT) Received: from [10.1.197.61] (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D3E593F59C; Mon, 2 Sep 2019 06:53:55 -0700 (PDT) Subject: Re: [PATCH RFC 05/14] dt-bindings/interrupt-controller: pdc: add SPI config register To: Rob Herring , Lina Iyer Cc: swboyd@chromium.org, evgreen@chromium.org, 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 References: <20190829181203.2660-1-ilina@codeaurora.org> <20190829181203.2660-6-ilina@codeaurora.org> <5d6d1b72.1c69fb81.ee88.efcf@mx.google.com> From: Marc Zyngier Openpgp: preference=signencrypt Autocrypt: addr=marc.zyngier@arm.com; prefer-encrypt=mutual; keydata= mQINBE6Jf0UBEADLCxpix34Ch3kQKA9SNlVQroj9aHAEzzl0+V8jrvT9a9GkK+FjBOIQz4KE g+3p+lqgJH4NfwPm9H5I5e3wa+Scz9wAqWLTT772Rqb6hf6kx0kKd0P2jGv79qXSmwru28vJ t9NNsmIhEYwS5eTfCbsZZDCnR31J6qxozsDHpCGLHlYym/VbC199Uq/pN5gH+5JHZyhyZiNW ozUCjMqC4eNW42nYVKZQfbj/k4W9xFfudFaFEhAf/Vb1r6F05eBP1uopuzNkAN7vqS8XcgQH qXI357YC4ToCbmqLue4HK9+2mtf7MTdHZYGZ939OfTlOGuxFW+bhtPQzsHiW7eNe0ew0+LaL 3wdNzT5abPBscqXWVGsZWCAzBmrZato+Pd2bSCDPLInZV0j+rjt7MWiSxEAEowue3IcZA++7 ifTDIscQdpeKT8hcL+9eHLgoSDH62SlubO/y8bB1hV8JjLW/jQpLnae0oz25h39ij4ijcp8N t5slf5DNRi1NLz5+iaaLg4gaM3ywVK2VEKdBTg+JTg3dfrb3DH7ctTQquyKun9IVY8AsxMc6 lxl4HxrpLX7HgF10685GG5fFla7R1RUnW5svgQhz6YVU33yJjk5lIIrrxKI/wLlhn066mtu1 DoD9TEAjwOmpa6ofV6rHeBPehUwMZEsLqlKfLsl0PpsJwov8TQARAQABtCNNYXJjIFp5bmdp ZXIgPG1hcmMuenluZ2llckBhcm0uY29tPokCTwQTAQIAOQIbAwYLCQgHAwIGFQgCCQoLBBYC AwECHgECF4AWIQSf1RxT4LVjGP2VnD0j0NC60T16QwUCXR3BUgAKCRAj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c9268-c4ce-6133-3b0a-67c2fcba1e7a@arm.com> Date: Mon, 2 Sep 2019 14:53:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <5d6d1b72.1c69fb81.ee88.efcf@mx.google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US 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/09/2019 14:38, Rob Herring wrote: > 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. This is completely insane. Why are the GIC registers configured as secure the first place, if they are expected to be in control of the non-secure? M. -- Jazz is not dead. It just smells funny...