]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: imx8q: add linux,cma node for imx8qm-mek and imx8qxp-mek
authorFrank Li <Frank.Li@nxp.com>
Thu, 22 May 2025 17:56:50 +0000 (13:56 -0400)
committerShawn Guo <shawnguo@kernel.org>
Fri, 11 Jul 2025 08:34:33 +0000 (16:34 +0800)
Add linux,cma node because some devices, such as camera, need big continue
physical memory.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8qm-mek.dts
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts

index e1023ca55929254b91fd8d3d6135a4ad3c6c3c32..9fa332dcacf45a148a9a0fd9993b8f0a3bd40fe6 100644 (file)
                        reg = <0 0x94300000 0 0x100000>;
                        no-map;
                };
+
+               /* global autoconfigured region for contiguous allocations */
+               linux,cma {
+                       compatible = "shared-dma-pool";
+                       alloc-ranges = <0 0xc0000000 0 0x3c000000>;
+                       size = <0 0x3c000000>;
+                       linux,cma-default;
+                       reusable;
+               };
        };
 
        lvds_backlight0: backlight-lvds0 {
index 38ebf06f2c4080ccde1917a849dc37b4aefd9324..2259070f0e3a3f2428802b8c15bbfae1f6c40349 100644 (file)
                        no-map;
                };
 
+               /* global autoconfigured region for contiguous allocations */
+               linux,cma {
+                       compatible = "shared-dma-pool";
+                       alloc-ranges = <0 0xc0000000 0 0x3c000000>;
+                       size = <0 0x3c000000>;
+                       linux,cma-default;
+                       reusable;
+               };
+
                gpu_reserved: memory@880000000 {
                        no-map;
                        reg = <0x8 0x80000000 0 0x10000000>;