From: Rishabh Bhatnagar <rishabhb@codeaurora.org>
To: linux-remoteproc-owner@vger.kernel.org,
linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org,
mathieu.poirier@linaro.org, devicetree@vger.kernel.org
Cc: robh@kernel.org, psodagud@codeaurora.org, tsoni@codeaurora.org,
sidgup@codeaurora.org,
Rishabh Bhatnagar <rishabhb@codeaurora.org>
Subject: [PATCH v2 2/2] dt-bindings: remoteproc: Add documentation for SPSS remoteproc
Date: Fri, 20 Mar 2020 18:32:10 -0700 [thread overview]
Message-ID: <1584754330-445-2-git-send-email-rishabhb@codeaurora.org> (raw)
In-Reply-To: <1584754330-445-1-git-send-email-rishabhb@codeaurora.org>
Add devicetree binding for Secure Subsystem remote processor
support in remoteproc framework. This describes all the resources
needed by SPSS to boot and handle crash and shutdown scenarios.
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
---
.../devicetree/bindings/remoteproc/qcom,spss.yaml | 125 +++++++++++++++++++++
1 file changed, 125 insertions(+)
create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,spss.yaml
diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,spss.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,spss.yaml
new file mode 100644
index 0000000..9ca7947a9
--- /dev/null
+++ b/Documentation/devicetree/bindings/remoteproc/qcom,spss.yaml
@@ -0,0 +1,125 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/qcom,spss.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm SPSS Peripheral Image Loader
+
+maintainers:
+ - Rishabh Bhatnagar <rishabhb@codeaurora.org>
+description: |
+ This document defines the binding for a component that loads and boots firmware
+ on the Qualcomm Secure Peripheral Processor. This processor is booted in the
+ bootloader stage and it attaches itself to linux later on in the boot process.
+
+properties:
+ compatible:
+ enum:
+ "qcom,sm8250-spss-pas"
+
+ reg:
+ items:
+ - description: IRQ status register
+ - description: IRQ clear register
+ - description: IRQ mask register
+ - description: Error register
+ - description: Error spare register
+
+ reg-names:
+ items:
+ - const: sp2soc_irq_status
+ - const: sp2soc_irq_clr
+ - const: sp2soc_irq_mask
+ - const: rmb_err
+ - const: rmb_err_spare2
+
+ interrupts:
+ maxitems: 1
+ items:
+ - description: rx interrupt
+
+ clocks:
+ items:
+ - description:
+ reference to the xo clock to be held on behalf
+ of the booting Hexagon core
+
+ clock-names:
+ items:
+ - const: xo
+
+ cx-supply: true
+
+ px-supply: true
+
+ memory-region: true
+ items:
+ - description: reference to the reserved-memory for the SPSS
+
+ qcom,spss-scsr-bits:
+ - description: Bits that are set by remote processor in the irq status
+ register region to represent different states during
+ boot process
+
+ child-node:
+ description: Subnode named either "smd-edge" or "glink-edge" that
+ describes the communication edge, channels and devices
+ related to the SPSS.
+
+required:
+ - compatible
+ - reg
+ - reg-names
+ - interrupts
+ - clocks
+ - clock-names
+ - cx-supply
+ - px-supply
+ - memory-region
+ - qcom,spss-scsr-bits
+
+
+examples:
+ - |
+ spss {
+ compatible = "qcom,sm8250-spss-pil";
+ reg = <0x188101c 0x4>,
+ <0x1881024 0x4>,
+ <0x1881028 0x4>,
+ <0x188103c 0x4>,
+ <0x1882014 0x4>;
+ reg-names = "sp2soc_irq_status", "sp2soc_irq_clr",
+ "sp2soc_irq_mask", "rmb_err", "rmb_err_spare2";
+ interrupts = <0 352 1>;
+
+ cx-supply = <&VDD_CX_LEVEL>;
+ cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
+ px-supply = <&VDD_MX_LEVEL>;
+ px-uV = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
+
+ clocks = <&clock_rpmh RPMH_CXO_CLK>;
+ clock-names = "xo";
+ qcom,proxy-clock-names = "xo";
+ status = "ok";
+
+ memory-region = <&pil_spss_mem>;
+ qcom,spss-scsr-bits = <24 25>;
+
+ glink-edge {
+ qcom,remote-pid = <8>;
+ transport = "spss";
+ mboxes = <&sp_scsr 0>;
+ mbox-names = "spss_spss";
+ interrupt-parent = <&intsp>;
+ interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>;
+
+ reg = <0x1885008 0x8>,
+ <0x1885010 0x4>;
+ reg-names = "qcom,spss-addr",
+ "qcom,spss-size";
+
+ label = "spss";
+ qcom,glink-label = "spss";
+ };
+ };
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2020-03-21 1:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-21 1:32 [PATCH v1 1/2] remoteproc: qcom: Add PAS based SPSS PIL driver Rishabh Bhatnagar
2020-03-21 1:32 ` Rishabh Bhatnagar [this message]
2020-03-23 16:22 ` [PATCH v2 2/2] dt-bindings: remoteproc: Add documentation for SPSS remoteproc Rob Herring
2020-03-25 5:28 ` Bjorn Andersson
2020-03-25 5:19 ` [PATCH v1 1/2] remoteproc: qcom: Add PAS based SPSS PIL driver Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1584754330-445-2-git-send-email-rishabhb@codeaurora.org \
--to=rishabhb@codeaurora.org \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc-owner@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=psodagud@codeaurora.org \
--cc=robh@kernel.org \
--cc=sidgup@codeaurora.org \
--cc=tsoni@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).