Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1699158

[PATCH 5/6] ARM: dts: keystone-k2l-evm: Add and enable common DSP CMA memory pool

From Suman Anna <s-anna@ti.com>
Newsgroups linux.kernel
Subject [PATCH 5/6] ARM: dts: keystone-k2l-evm: Add and enable common DSP CMA memory pool
Date 2017-07-29 01:30 +0200
Message-ID <u8mRH-24E-11@gated-at.bofh.it> (permalink)
References <u8mI2-1Zy-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Sam Nelson <sam.nelson@ti.com>

A common CMA memory pool reserved memory node is added, and is attached
to all the DSP nodes through the 'memory-region' property on the 66AK2L
EVM board. This area will be used for allocating virtio rings and buffers.
The common node allows the DSP Memory Protection and Address Extension
(MPAX) module to be configured uniformly across all the DSP processors.

The reserved memory node and all the user DSP nodes are also marked okay
to enable the DSPs on the 66AK2L EVM board.

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
---
 arch/arm/boot/dts/keystone-k2l-evm.dts | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm/boot/dts/keystone-k2l-evm.dts b/arch/arm/boot/dts/keystone-k2l-evm.dts
index 056b42f99d7a..528667618db4 100644
--- a/arch/arm/boot/dts/keystone-k2l-evm.dts
+++ b/arch/arm/boot/dts/keystone-k2l-evm.dts
@@ -16,6 +16,19 @@
 	compatible = "ti,k2l-evm", "ti,k2l", "ti,keystone";
 	model = "Texas Instruments Keystone 2 Lamarr EVM";
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		dsp_common_memory: dsp-common-memory@81f800000 {
+			compatible = "shared-dma-pool";
+			reg = <0x00000008 0x1f800000 0x00000000 0x800000>;
+			reusable;
+			status = "okay";
+		};
+	};
+
 	soc {
 		clocks {
 			refclksys: refclksys {
@@ -133,3 +146,23 @@
 		reg = <1>;
 	};
 };
+
+&dsp0 {
+	memory-region = <&dsp_common_memory>;
+	status = "okay";
+};
+
+&dsp1 {
+	memory-region = <&dsp_common_memory>;
+	status = "okay";
+};
+
+&dsp2 {
+	memory-region = <&dsp_common_memory>;
+	status = "okay";
+};
+
+&dsp3 {
+	memory-region = <&dsp_common_memory>;
+	status = "okay";
+};
-- 
2.13.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] Add DSP DT nodes on Keystone platforms Suman Anna <s-anna@ti.com> - 2017-07-29 01:20 +0200
  [PATCH 6/6] ARM: dts: keystone-k2e-evm: Add and enable DSP CMA memory pool Suman Anna <s-anna@ti.com> - 2017-07-29 01:30 +0200
  [PATCH 1/6] ARM: dts: keystone-k2hk: Add DSP nodes Suman Anna <s-anna@ti.com> - 2017-07-29 01:30 +0200
  [PATCH 5/6] ARM: dts: keystone-k2l-evm: Add and enable common DSP CMA memory pool Suman Anna <s-anna@ti.com> - 2017-07-29 01:30 +0200
  [PATCH 2/6] ARM: dts: keystone-k2l: Add DSP nodes Suman Anna <s-anna@ti.com> - 2017-07-29 01:30 +0200
  [PATCH 4/6] ARM: dts: keystone-k2hk-evm: Add and enable common DSP CMA memory pool Suman Anna <s-anna@ti.com> - 2017-07-29 01:30 +0200
  [PATCH 3/6] ARM: dts: keystone-k2e: Add DSP node Suman Anna <s-anna@ti.com> - 2017-07-29 01:30 +0200
  Re: [PATCH 0/6] Add DSP DT nodes on Keystone platforms "santosh.shilimkar@oracle.com" <santosh.shilimkar@oracle.com> - 2017-07-31 06:00 +0200

csiph-web