[RFC][PATCH 4/4] example: dts: hi3660-hikey960: Add dts entries to test cma heap binding

John Stultz john.stultz at linaro.org
Fri May 1 07:39:49 UTC 2020

Adds example test entry to create and expose a dummy "camera"
cma region via the dmabuf heaps interface

This isn't a patch I'm submitting to merge, but just an example
of how this functionality can be used, which I've used for

Cc: Rob Herring <robh+dt at kernel.org>
Cc: Sumit Semwal <sumit.semwal at linaro.org>
Cc: "Andrew F. Davis" <afd at ti.com>
Cc: Benjamin Gaignard <benjamin.gaignard at linaro.org>
Cc: Liam Mark <lmark at codeaurora.org>
Cc: Pratik Patel <pratikp at codeaurora.org>
Cc: Laura Abbott <labbott at redhat.com>
Cc: Brian Starkey <Brian.Starkey at arm.com>
Cc: Chenbo Feng <fengc at google.com>
Cc: Alistair Strachan <astrachan at google.com>
Cc: Sandeep Patil <sspatil at google.com>
Cc: Hridya Valsaraju <hridya at google.com>
Cc: Christoph Hellwig <hch at lst.de>
Cc: Marek Szyprowski <m.szyprowski at samsung.com>
Cc: Robin Murphy <robin.murphy at arm.com>
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: devicetree at vger.kernel.org
Cc: dri-devel at lists.freedesktop.org
Cc: linux-mm at kvack.org
Signed-off-by: John Stultz <john.stultz at linaro.org>
 arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
index c0a6aad9593f..5eef1a76d51a 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
@@ -81,6 +81,13 @@
+		cma_camera: cma-camera {
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x24C00000 0x0 0x4000000>;
+			reusable;
+			linux,cma-heap;
+		};
 	reboot-mode-syscon at 32100000 {

More information about the dri-devel mailing list