ARM: dts: imx6/7: reserve CMA memory for GPU
authorMinjie Zhuang <minjie.zhuang@nxp.com>
Wed, 13 Nov 2019 07:39:24 +0000 (15:39 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:20:59 +0000 (11:20 +0800)
At imx6dl/imx6q/imx6sx,reserve 320M CMA memory
At imx7ulp,reserve 200M CMA memory

Signed-off-by: Minjie Zhuang <minjie.zhuang@nxp.com>
arch/arm/boot/dts/imx6dl.dtsi
arch/arm/boot/dts/imx6q.dtsi
arch/arm/boot/dts/imx6sx.dtsi
arch/arm/boot/dts/imx7ulp.dtsi

index 59015ea..734da45 100755 (executable)
                };
        };
 
+        reserved-memory {
+                #address-cells = <1>;
+                #size-cells = <1>;
+                ranges;
+
+                /* global autoconfigured region for contiguous allocations */
+                linux,cma {
+                        compatible = "shared-dma-pool";
+                        reusable;
+                        size = <0x14000000>;
+                        linux,cma-default;
+                };
+        };
+
        soc {
                ocram: sram@905000 {
                        compatible = "mmio-sram";
index e49d1e5..7e3b0de 100644 (file)
                };
        };
 
+        reserved-memory {
+                #address-cells = <1>;
+                #size-cells = <1>;
+                ranges;
+
+                /* global autoconfigured region for contiguous allocations */
+                linux,cma {
+                        compatible = "shared-dma-pool";
+                        reusable;
+                        size = <0x14000000>;
+                        linux,cma-default;
+                };
+        };
+
        soc {
                busfreq: busfreq {
                        compatible = "fsl,imx_busfreq";
index 995da2e..8b34540 100644 (file)
                };
        };
 
+        reserved-memory {
+                #address-cells = <1>;
+                #size-cells = <1>;
+                ranges;
+
+                /* global autoconfigured region for contiguous allocations */
+                linux,cma {
+                        compatible = "shared-dma-pool";
+                        reusable;
+                        size = <0x14000000>;
+                        linux,cma-default;
+                };
+        };
+
        ckil: clock-ckil {
                compatible = "fixed-clock";
                #clock-cells = <0>;
index e40ee79..b23195d 100644 (file)
                };
        };
 
+        reserved-memory {
+                #address-cells = <1>;
+                #size-cells = <1>;
+                ranges;
+
+                /* global autoconfigured region for contiguous allocations */
+                linux,cma {
+                        compatible = "shared-dma-pool";
+                        reusable;
+                        size = <0xC000000>;
+                        alignment = <0x2000>;
+                        linux,cma-default;
+                };
+        };
+
        intc: interrupt-controller@40021000 {
                compatible = "arm,cortex-a7-gic";
                #interrupt-cells = <3>;