devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Qualcomm WCNSS Peripheral Image Loader
@ 2015-12-28  1:15 Bjorn Andersson
  2015-12-28  1:15 ` [PATCH v2 3/4] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding Bjorn Andersson
  0 siblings, 1 reply; 4+ messages in thread
From: Bjorn Andersson @ 2015-12-28  1:15 UTC (permalink / raw)
  To: Ohad Ben-Cohen
  Cc: Ian Campbell, Mark Rutland, Pawel Moll, Rob Herring,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	fengwei.yin-QSEj5FYQhm4dnm+yROfE0A,
	linux-arm-msm-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A

This series provides the minimum changes needed to use remotproc on the
Qualcomm platform and then introduces the Peripheral Image Loader for
the WCNSS core.

Bjorn Andersson (4):
  remoteproc: core: Make the loaded resource table optional
  remoteproc: Add additional crash reasons
  dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding
  remoteproc: qcom: Introduce WCNSS peripheral image loader

 .../bindings/remoteproc/qcom,wcnss-pil.txt         |  92 ++++
 drivers/remoteproc/Kconfig                         |  11 +
 drivers/remoteproc/Makefile                        |   2 +
 drivers/remoteproc/qcom_mdt_loader.c               | 213 ++++++++
 drivers/remoteproc/qcom_mdt_loader.h               |   8 +
 drivers/remoteproc/qcom_wcnss.c                    | 550 +++++++++++++++++++++
 drivers/remoteproc/remoteproc_core.c               |  10 +-
 include/linux/remoteproc.h                         |   4 +
 8 files changed, 884 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt
 create mode 100644 drivers/remoteproc/qcom_mdt_loader.c
 create mode 100644 drivers/remoteproc/qcom_mdt_loader.h
 create mode 100644 drivers/remoteproc/qcom_wcnss.c

-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 3/4] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding
  2015-12-28  1:15 [PATCH v2 0/4] Qualcomm WCNSS Peripheral Image Loader Bjorn Andersson
@ 2015-12-28  1:15 ` Bjorn Andersson
  2015-12-29 18:34   ` Rob Herring
  2015-12-29 19:09   ` Andy Gross
  0 siblings, 2 replies; 4+ messages in thread
From: Bjorn Andersson @ 2015-12-28  1:15 UTC (permalink / raw)
  To: Ian Campbell, Mark Rutland, Ohad Ben-Cohen, Pawel Moll,
	Rob Herring
  Cc: devicetree, fengwei.yin, linux-arm-msm, linux-kernel,
	srinivas.kandagatla

The document defines the binding for a component that loads firmware for
and boots the Qualcomm WCNSS core.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
---

Changes since v1:
- Dropped custom properties for firmware-name and crash-reason

 .../bindings/remoteproc/qcom,wcnss-pil.txt         | 92 ++++++++++++++++++++++
 1 file changed, 92 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt

diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt
new file mode 100644
index 000000000000..e69bd415106b
--- /dev/null
+++ b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt
@@ -0,0 +1,92 @@
+Qualcomm WCNSS Peripheral Image Loader
+
+This document defines the binding for a component that loads and boots firmware
+on the Qualcomm WCNSS core.
+
+- compatible:
+	Usage: required
+	Value type: <string>
+	Definition: must be one of:
+		    "qcom,riva-pil",
+		    "qcom,pronto-v1-pil",
+		    "qcom,pronto-v2-pil"
+
+- reg:
+	Usage: required
+	Value type: <prop-encoded-array>
+	Definition: base address and size of riva/pronto PMU registers
+
+- interrupts-extended:
+	Usage: required
+	Value type: <prop-encoded-array>
+	Definition: should specify the watchdog, fatal, ready, handover and
+		    stop-ack IRQs, in order.
+
+- interrupt-names:
+	Usage: required
+	Value type: <stringlist>
+	Definition: should be "wdog", "fatal", "ready", "handover", "stop-ack"
+
+- clocks:
+	Usage: required
+	Value type: <prop-encoded-array>
+	Definition: should specify the xo clock and optionally the rf_clk
+
+- clock-names:
+	Usage: requireduired
+	Value type: <stringlist>
+	Definition: should be "xo", optionally followed by "rf"
+
+- qcom,iris-vddxo-supply:
+- qcom,iris-vddrfa-supply:
+- qcom,iris-vddpa-supply:
+- qcom,iris-vdddig-supply:
+- qcom,pronto-vddmx-supply:
+- qcom,pronto-vddcx-supply:
+- qcom,pronto-vddpx-supply:
+	Usage: required
+	Value type: <phandle>
+	Definition: reference to the regulators to be held on behalf of the
+		    booting of the WCNSS core
+
+- qcom,state:
+	Usage: required
+	Value type: <prop-encoded-array>
+	Definition: reference to the SMEM state used to indicate to WCNSS that
+		    it should shut down
+
+- qcom,state-names:
+	Usage: required
+	Value type: <stringlist>
+	Definition: should be "stop"
+
+= EXAMPLE
+
+pronto_rproc@fb21b000 {
+	compatible = "qcom,pronto-v2-pil";
+	reg = <0xfb21b000 0x3000>;
+
+	interrupts-extended = <&intc 0 149 1>,
+			      <&wcnss_smp2p_slave 0 0>,
+			      <&wcnss_smp2p_slave 1 0>,
+			      <&wcnss_smp2p_slave 2 0>,
+			      <&wcnss_smp2p_slave 3 0>;
+	interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";
+
+	clocks = <&rpmcc RPM_CXO_CLK_SRC>, <&rpmcc RPM_CXO_A2>;
+	clock-names = "xo", "rf";
+
+	qcom,iris-vddxo-supply = <&pm8941_l6>;
+	qcom,iris-vddrfa-supply = <&pm8941_l11>;
+	qcom,iris-vddpa-supply = <&pm8941_l19>;
+	qcom,iris-vdddig-supply = <&pm8941_s3>;
+	qcom,pronto-vddmx-supply = <&pm8841_s1>;
+	qcom,pronto-vddcx-supply = <&pm8841_s2>;
+	qcom,pronto-vddpx-supply = <&pm8941_s3>;
+
+	qcom,state = <&wcnss_smp2p_out 0>;
+	qcom,state-names = "stop";
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&wcnss_pin_a>;
+};
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 3/4] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding
  2015-12-28  1:15 ` [PATCH v2 3/4] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding Bjorn Andersson
@ 2015-12-29 18:34   ` Rob Herring
  2015-12-29 19:09   ` Andy Gross
  1 sibling, 0 replies; 4+ messages in thread
From: Rob Herring @ 2015-12-29 18:34 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Ian Campbell, Mark Rutland, Ohad Ben-Cohen, Pawel Moll,
	devicetree, fengwei.yin, linux-arm-msm, linux-kernel,
	srinivas.kandagatla

On Sun, Dec 27, 2015 at 05:15:45PM -0800, Bjorn Andersson wrote:
> The document defines the binding for a component that loads firmware for
> and boots the Qualcomm WCNSS core.
> 
> Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
> ---
> 
> Changes since v1:
> - Dropped custom properties for firmware-name and crash-reason
> 
>  .../bindings/remoteproc/qcom,wcnss-pil.txt         | 92 ++++++++++++++++++++++
>  1 file changed, 92 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt

Seems reasonable to me. I'd like to see some acks from QC folks.

Acked-by: Rob Herring <robh@kernel.org>


> +- clock-names:
> +	Usage: requireduired

typo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 3/4] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding
  2015-12-28  1:15 ` [PATCH v2 3/4] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding Bjorn Andersson
  2015-12-29 18:34   ` Rob Herring
@ 2015-12-29 19:09   ` Andy Gross
  1 sibling, 0 replies; 4+ messages in thread
From: Andy Gross @ 2015-12-29 19:09 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Ian Campbell, Mark Rutland, Ohad Ben-Cohen, Pawel Moll,
	Rob Herring, devicetree, fengwei.yin, linux-arm-msm, linux-kernel,
	srinivas.kandagatla

On Sun, Dec 27, 2015 at 05:15:45PM -0800, Bjorn Andersson wrote:
> The document defines the binding for a component that loads firmware for
> and boots the Qualcomm WCNSS core.
> 
> Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
> ---

Acked-by: Andy Gross <andy.gross@linaro.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-29 19:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-28  1:15 [PATCH v2 0/4] Qualcomm WCNSS Peripheral Image Loader Bjorn Andersson
2015-12-28  1:15 ` [PATCH v2 3/4] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding Bjorn Andersson
2015-12-29 18:34   ` Rob Herring
2015-12-29 19:09   ` Andy Gross

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).