All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tero Kristo <t-kristo@ti.com>
To: <linux-omap@vger.kernel.org>, <tony@atomide.com>
Cc: <s-anna@ti.com>, <linux-arm-kernel@lists.infradead.org>
Subject: [PATCH 14/17] ARM: dts: beagle-x15-common: Add CMA pools and enable IPU & DSP rprocs
Date: Fri, 24 Apr 2020 18:12:41 +0300	[thread overview]
Message-ID: <20200424151244.3225-15-t-kristo@ti.com> (raw)
In-Reply-To: <20200424151244.3225-1-t-kristo@ti.com>

From: Suman Anna <s-anna@ti.com>

The CMA reserved memory nodes have been added for all the IPU and DSP
remoteproc devices on all the AM57xx BeagleBoard-X15 boards. These nodes
are assigned to the respective rproc device nodes, and all the IPU and
DSP remote processors are enabled for all these boards.

The current CMA pools and sizes are defined statically for each device.
The addresses chosen are the same as the respective processors on the
DRA7 EVM board to maintain firmware compatibility between the two boards.
The CMA pools and sizes are defined using 64-bit values to support LPAE.
The starting addresses are fixed to meet current dependencies on the
remote processor firmwares, and this will go away when the remote-side
code has been improved to gather this information runtime during its
initialization.

An associated pair of the rproc node and its CMA node can be disabled
later on if there is no use-case defined to use that remote processor.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
---
 .../boot/dts/am57xx-beagle-x15-common.dtsi    | 54 +++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
index 33bb89eee658..9cfdc29c283d 100644
--- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
+++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
@@ -51,6 +51,40 @@
 		regulator-boot-on;
 	};
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		ipu2_memory_region: ipu2-memory@95800000 {
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x95800000 0x0 0x3800000>;
+			reusable;
+			status = "okay";
+		};
+
+		dsp1_memory_region: dsp1-memory@99000000 {
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x99000000 0x0 0x4000000>;
+			reusable;
+			status = "okay";
+		};
+
+		ipu1_memory_region: ipu1-memory@9d000000 {
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x9d000000 0x0 0x2000000>;
+			reusable;
+			status = "okay";
+		};
+
+		dsp2_memory_region: dsp2-memory@9f000000 {
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x9f000000 0x0 0x800000>;
+			reusable;
+			status = "okay";
+		};
+	};
+
 	vdd_3v3: fixedregulator-vdd_3v3 {
 		compatible = "regulator-fixed";
 		regulator-name = "vdd_3v3";
@@ -584,3 +618,23 @@
 	tx-num-evt = <32>;
 	rx-num-evt = <32>;
 };
+
+&ipu2 {
+	status = "okay";
+	memory-region = <&ipu2_memory_region>;
+};
+
+&ipu1 {
+	status = "okay";
+	memory-region = <&ipu1_memory_region>;
+};
+
+&dsp1 {
+	status = "okay";
+	memory-region = <&dsp1_memory_region>;
+};
+
+&dsp2 {
+	status = "okay";
+	memory-region = <&dsp2_memory_region>;
+};
-- 
2.17.1

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

WARNING: multiple messages have this Message-ID (diff)
From: Tero Kristo <t-kristo@ti.com>
To: <linux-omap@vger.kernel.org>, <tony@atomide.com>
Cc: s-anna@ti.com, linux-arm-kernel@lists.infradead.org
Subject: [PATCH 14/17] ARM: dts: beagle-x15-common: Add CMA pools and enable IPU & DSP rprocs
Date: Fri, 24 Apr 2020 18:12:41 +0300	[thread overview]
Message-ID: <20200424151244.3225-15-t-kristo@ti.com> (raw)
In-Reply-To: <20200424151244.3225-1-t-kristo@ti.com>

From: Suman Anna <s-anna@ti.com>

The CMA reserved memory nodes have been added for all the IPU and DSP
remoteproc devices on all the AM57xx BeagleBoard-X15 boards. These nodes
are assigned to the respective rproc device nodes, and all the IPU and
DSP remote processors are enabled for all these boards.

The current CMA pools and sizes are defined statically for each device.
The addresses chosen are the same as the respective processors on the
DRA7 EVM board to maintain firmware compatibility between the two boards.
The CMA pools and sizes are defined using 64-bit values to support LPAE.
The starting addresses are fixed to meet current dependencies on the
remote processor firmwares, and this will go away when the remote-side
code has been improved to gather this information runtime during its
initialization.

An associated pair of the rproc node and its CMA node can be disabled
later on if there is no use-case defined to use that remote processor.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
---
 .../boot/dts/am57xx-beagle-x15-common.dtsi    | 54 +++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
index 33bb89eee658..9cfdc29c283d 100644
--- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
+++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
@@ -51,6 +51,40 @@
 		regulator-boot-on;
 	};
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		ipu2_memory_region: ipu2-memory@95800000 {
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x95800000 0x0 0x3800000>;
+			reusable;
+			status = "okay";
+		};
+
+		dsp1_memory_region: dsp1-memory@99000000 {
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x99000000 0x0 0x4000000>;
+			reusable;
+			status = "okay";
+		};
+
+		ipu1_memory_region: ipu1-memory@9d000000 {
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x9d000000 0x0 0x2000000>;
+			reusable;
+			status = "okay";
+		};
+
+		dsp2_memory_region: dsp2-memory@9f000000 {
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x9f000000 0x0 0x800000>;
+			reusable;
+			status = "okay";
+		};
+	};
+
 	vdd_3v3: fixedregulator-vdd_3v3 {
 		compatible = "regulator-fixed";
 		regulator-name = "vdd_3v3";
@@ -584,3 +618,23 @@
 	tx-num-evt = <32>;
 	rx-num-evt = <32>;
 };
+
+&ipu2 {
+	status = "okay";
+	memory-region = <&ipu2_memory_region>;
+};
+
+&ipu1 {
+	status = "okay";
+	memory-region = <&ipu1_memory_region>;
+};
+
+&dsp1 {
+	status = "okay";
+	memory-region = <&dsp1_memory_region>;
+};
+
+&dsp2 {
+	status = "okay";
+	memory-region = <&dsp2_memory_region>;
+};
-- 
2.17.1

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2020-04-24 15:13 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-24 15:12 [PATCH 00/17] ARM: dts: dra7/am57xx: remoteproc support Tero Kristo
2020-04-24 15:12 ` Tero Kristo
2020-04-24 15:12 ` [PATCH 01/17] ARM: dts: dra7: add timer_sys_ck entries for IPU/DSP timers Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 02/17] ARM: dts: DRA7: Add common IPU and DSP nodes Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 03/17] ARM: dts: DRA74x: Add DSP2 processor device node Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 04/17] ARM: dts: DRA74x: Add aliases for rproc nodes Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 05/17] ARM: dts: DRA72x: " Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 06/17] ARM: dts: dra7-ipu-dsp-common: Move mailboxes into common files Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 07/17] ARM: dts: dra7-ipu-dsp-common: Add mailboxes to IPU and DSP nodes Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 08/17] ARM: dts: dra7-ipu-dsp-common: Add timers " Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 09/17] ARM: dts: dra7-evm: Add CMA pools and enable IPU & DSP rprocs Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 10/17] ARM: dts: dra72-evm: Add CMA pools and enable IPUs & DSP1 rprocs Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 11/17] ARM: dts: dra72-evm-revc: " Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 12/17] ARM: dts: dra71-evm: " Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 13/17] ARM: dts: dra76-evm: Add CMA pools and enable IPU & DSP rprocs Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` Tero Kristo [this message]
2020-04-24 15:12   ` [PATCH 14/17] ARM: dts: beagle-x15-common: " Tero Kristo
2020-04-24 15:12 ` [PATCH 15/17] ARM: dts: am572x-idk-common: " Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 16/17] ARM: dts: am571x-idk: Add CMA pools and enable IPUs & DSP1 rprocs Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:12 ` [PATCH 17/17] ARM: dts: dra7-ipu-dsp-common: Add watchdog timers to IPU and DSP nodes Tero Kristo
2020-04-24 15:12   ` Tero Kristo
2020-04-24 15:51 ` [PATCH 00/17] ARM: dts: dra7/am57xx: remoteproc support Tony Lindgren
2020-04-24 15:51   ` Tony Lindgren
2020-04-24 15:54   ` Tero Kristo
2020-04-24 15:54     ` Tero Kristo
2020-05-05 18:14     ` Tony Lindgren
2020-05-05 18:14       ` Tony Lindgren

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=20200424151244.3225-15-t-kristo@ti.com \
    --to=t-kristo@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=s-anna@ti.com \
    --cc=tony@atomide.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.