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 testing. Cc: Rob Herring <robh...@kernel.org> Cc: Sumit Semwal <sumit.sem...@linaro.org> Cc: "Andrew F. Davis" <a...@ti.com> Cc: Benjamin Gaignard <benjamin.gaign...@linaro.org> Cc: Liam Mark <lm...@codeaurora.org> Cc: Pratik Patel <prat...@codeaurora.org> Cc: Laura Abbott <labb...@redhat.com> Cc: Brian Starkey <brian.star...@arm.com> Cc: Chenbo Feng <fe...@google.com> Cc: Alistair Strachan <astrac...@google.com> Cc: Sandeep Patil <sspa...@google.com> Cc: Hridya Valsaraju <hri...@google.com> Cc: Christoph Hellwig <h...@lst.de> Cc: Marek Szyprowski <m.szyprow...@samsung.com> Cc: Robin Murphy <robin.mur...@arm.com> Cc: Andrew Morton <a...@linux-foundation.org> Cc: devicet...@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux...@kvack.org Signed-off-by: John Stultz <john.stu...@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 @@ reusable; linux,cma-default; }; + + cma_camera: cma-camera { + compatible = "shared-dma-pool"; + reg = <0x0 0x24C00000 0x0 0x4000000>; + reusable; + linux,cma-heap; + }; }; reboot-mode-syscon@32100000 { -- 2.17.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel