Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1213856 > unrolled thread
| Started by | Lee Jones <lee.jones@linaro.org> |
|---|---|
| First post | 2015-08-26 15:20 +0200 |
| Last post | 2015-08-26 18:50 +0200 |
| Articles | 5 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH 0/4] remoteproc: Add driver for STMicroelectronics platforms Lee Jones <lee.jones@linaro.org> - 2015-08-26 15:20 +0200
[PATCH 3/4] ARM: STiH407: Add nodes for RemoteProc Lee Jones <lee.jones@linaro.org> - 2015-08-26 15:20 +0200
[PATCH 1/4] remoteproc: dt: Provide bindings for ST's Remote Processor Controller driver Lee Jones <lee.jones@linaro.org> - 2015-08-26 15:20 +0200
Re: [PATCH 1/4] remoteproc: dt: Provide bindings for ST's Remote Processor Controller driver Nathan Lynch <Nathan_Lynch@mentor.com> - 2015-08-26 18:10 +0200
Re: [PATCH 1/4] remoteproc: dt: Provide bindings for ST's Remote Processor Controller driver Lee Jones <lee.jones@linaro.org> - 2015-08-26 18:50 +0200
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2015-08-26 15:20 +0200 |
| Subject | [PATCH 0/4] remoteproc: Add driver for STMicroelectronics platforms |
| Message-ID | <q1IMq-6N8-7@gated-at.bofh.it> |
ST's platforms often have multiple co-processors (usually ST40s or ST231s)
on-board. This provides the Linux-side infrastructure to flash and boot
them successfully.
This set has been tested on an STiH410-B2120.
Lee Jones (4):
remoteproc: dt: Provide bindings for ST's Remote Processor Controller
driver
remoteproc: Supply controller driver for ST's Remote Processors
ARM: STiH407: Add nodes for RemoteProc
remoteproc: debugfs: Add ability to boot remote processor using
debugfs
.../devicetree/bindings/remoteproc/st-rproc.txt | 38 +++
arch/arm/boot/dts/stih407-family.dtsi | 48 ++++
drivers/remoteproc/Kconfig | 9 +
drivers/remoteproc/Makefile | 1 +
drivers/remoteproc/remoteproc_debugfs.c | 25 ++
drivers/remoteproc/st_remoteproc.c | 300 +++++++++++++++++++++
6 files changed, 421 insertions(+)
create mode 100644 Documentation/devicetree/bindings/remoteproc/st-rproc.txt
create mode 100644 drivers/remoteproc/st_remoteproc.c
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2015-08-26 15:20 +0200 |
| Subject | [PATCH 3/4] ARM: STiH407: Add nodes for RemoteProc |
| Message-ID | <q1IMr-6N8-33@gated-at.bofh.it> |
| In reply to | #1213856 |
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
arch/arm/boot/dts/stih407-family.dtsi | 48 +++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi
index 33daa49..89a363c 100644
--- a/arch/arm/boot/dts/stih407-family.dtsi
+++ b/arch/arm/boot/dts/stih407-family.dtsi
@@ -608,5 +608,53 @@
status = "okay";
tx-only;
};
+
+ st231_gp0: st231-gp0@0 {
+ compatible = "st,st231-rproc";
+ reg = <0x40000000 0x01000000>;
+ reg-names = "carveout";
+ resets = <&softreset STIH407_ST231_GP0_SOFTRESET>;
+ reset-names = "sw_reset";
+ clocks = <&clk_s_c0_flexgen CLK_ST231_GP_0>;
+ clock-names = "rproc_clk";
+ clock-frequency = <600000000>;
+ st,syscfg-boot = <&syscfg_core 0x22C>;
+ };
+
+ st231_gp1: st231-gp1@0 {
+ compatible = "st,st231-rproc";
+ reg = <0x41000000 0x01000000>;
+ reg-names = "carveout";
+ resets = <&softreset STIH407_ST231_GP1_SOFTRESET>;
+ reset-names = "sw_reset";
+ clocks = <&clk_s_c0_flexgen CLK_ST231_GP_1>;
+ clock-names = "rproc_clk";
+ clock-frequency = <600000000>;
+ st,syscfg-boot = <&syscfg_core 0x220>;
+ };
+
+ st231_audio: st231-audio@0 {
+ compatible = "st,st231-rproc";
+ reg = <0x42000000 0x01000000>;
+ reg-names = "carveout";
+ resets = <&softreset STIH407_ST231_AUD_SOFTRESET>;
+ reset-names = "sw_reset";
+ clocks = <&clk_s_c0_flexgen CLK_ST231_AUD_0>;
+ clock-names = "rproc_clk";
+ clock-frequency = <600000000>;
+ st,syscfg-boot = <&syscfg_core 0x228>;
+ };
+
+ st231_dmu: st231-dmu@0 {
+ compatible = "st,st231-rproc";
+ reg = <0x43000000 0x01000000>;
+ reg-names = "carveout";
+ resets = <&softreset STIH407_ST231_DMU_SOFTRESET>;
+ reset-names = "sw_reset";
+ clocks = <&clk_s_c0_flexgen CLK_ST231_DMU>;
+ clock-names = "rproc_clk";
+ clock-frequency = <600000000>;
+ st,syscfg-boot = <&syscfg_core 0x224>;
+ };
};
};
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2015-08-26 15:20 +0200 |
| Subject | [PATCH 1/4] remoteproc: dt: Provide bindings for ST's Remote Processor Controller driver |
| Message-ID | <q1IMr-6N8-43@gated-at.bofh.it> |
| In reply to | #1213856 |
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
.../devicetree/bindings/remoteproc/st-rproc.txt | 38 ++++++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 Documentation/devicetree/bindings/remoteproc/st-rproc.txt
diff --git a/Documentation/devicetree/bindings/remoteproc/st-rproc.txt b/Documentation/devicetree/bindings/remoteproc/st-rproc.txt
new file mode 100644
index 0000000..6a933c1
--- /dev/null
+++ b/Documentation/devicetree/bindings/remoteproc/st-rproc.txt
@@ -0,0 +1,38 @@
+STMicroelectronics Remote Processor
+-----------------------------------
+
+This binding provides support for adjunct processors found on ST SoCs.
+
+The remote processors can be controlled from the bootloader or the primary OS.
+If the bootloader starts a remote processor processor the primary OS must detect
+its state and act accordingly.
+
+The node name is significant, as it defines the name of the CPU and the name
+of the firmware to load: "rproc-<name>-fw".
+
+Required properties:
+- compatible Should be one of:
+ "st,st231-rproc"
+ "st,st40-rproc"
+- reg Size and length of reserved co-processor memory
+- resets Reset lines (See: ../reset/reset.txt)
+- reset-names Must be "sw_reset" and "pwr_reset"
+- clocks Clock for co-processor (See: ../clock/clock-bindings.txt)
+- clock-names Must be "rproc_clk"
+- clock-frequency Clock frequency to set co-processor at if the bootloader
+ hasn't already done so
+- st,syscfg-boot The register that holds the boot vector for the co-processor
+
+Example:
+
+ st231-audio@bae00000 {
+ compatible = "st,st231-rproc";
+ reg = <0xbae00000 0x01000000>;
+ reg-names = "rproc_mem";
+ resets = <&softreset STIH407_ST231_AUD_SOFTRESET>;
+ reset-names = "sw_reset";
+ clocks = <&clk_s_c0_flexgen CLK_ST231_AUD_0>;
+ clock-names = "rproc_clk";
+ clock-frequency = <600000000>;
+ st,syscfg-boot = <&syscfg_core 0x228>;
+ };
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Nathan Lynch <Nathan_Lynch@mentor.com> |
|---|---|
| Date | 2015-08-26 18:10 +0200 |
| Subject | Re: [PATCH 1/4] remoteproc: dt: Provide bindings for ST's Remote Processor Controller driver |
| Message-ID | <q1LqV-2d7-7@gated-at.bofh.it> |
| In reply to | #1213860 |
On 08/26/2015 08:08 AM, Lee Jones wrote: > diff --git a/Documentation/devicetree/bindings/remoteproc/st-rproc.txt b/Documentation/devicetree/bindings/remoteproc/st-rproc.txt > new file mode 100644 > index 0000000..6a933c1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/remoteproc/st-rproc.txt > @@ -0,0 +1,38 @@ > +STMicroelectronics Remote Processor > +----------------------------------- > + > +This binding provides support for adjunct processors found on ST SoCs. > + > +The remote processors can be controlled from the bootloader or the primary OS. > +If the bootloader starts a remote processor processor the primary OS must detect > +its state and act accordingly. > + > +The node name is significant, as it defines the name of the CPU and the name > +of the firmware to load: "rproc-<name>-fw". This business about the firmware name describes a behavior of Linux's core remoteproc code and seems out of place in a binding document. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2015-08-26 18:50 +0200 |
| Subject | Re: [PATCH 1/4] remoteproc: dt: Provide bindings for ST's Remote Processor Controller driver |
| Message-ID | <q1M3E-2Xd-13@gated-at.bofh.it> |
| In reply to | #1213985 |
On Wed, 26 Aug 2015, Nathan Lynch wrote: > On 08/26/2015 08:08 AM, Lee Jones wrote: > > diff --git a/Documentation/devicetree/bindings/remoteproc/st-rproc.txt b/Documentation/devicetree/bindings/remoteproc/st-rproc.txt > > new file mode 100644 > > index 0000000..6a933c1 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/remoteproc/st-rproc.txt > > @@ -0,0 +1,38 @@ > > +STMicroelectronics Remote Processor > > +----------------------------------- > > + > > +This binding provides support for adjunct processors found on ST SoCs. > > + > > +The remote processors can be controlled from the bootloader or the primary OS. > > +If the bootloader starts a remote processor processor the primary OS must detect > > +its state and act accordingly. > > + > > +The node name is significant, as it defines the name of the CPU and the name > > +of the firmware to load: "rproc-<name>-fw". > > This business about the firmware name describes a behavior of Linux's > core remoteproc code and seems out of place in a binding document. Agreed, will remove. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web