arm64: dts: imx8mm-somdevices.dtsi: Configure memory and allocate less cma memory.
authorJosep Orga <jorga@somdevices.com>
Fri, 13 Aug 2021 09:41:28 +0000 (11:41 +0200)
committerJosep Orga <jorga@somdevices.com>
Fri, 13 Aug 2021 09:41:28 +0000 (11:41 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm64/boot/dts/freescale/imx8mm-somdevices.dtsi

index 64a9b6f..8703d69 100644 (file)
@@ -18,7 +18,7 @@
 
        memory@40000000 {
                device_type = "memory";
-               reg = <0x0 0x40000000 0 0x80000000>;
+               reg = <0x0 0x40000000 0 0x40000000>;
        };
 
        leds {
        status = "disabled";
 };
 
+&resmem {
+       /* global autoconfigured region for contiguous allocations */
+       linux,cma {
+               compatible = "shared-dma-pool";
+               reusable;
+               size = <0 0x14000000>;
+               alloc-ranges = <0 0x40000000 0 0x40000000>;
+               linux,cma-default;
+       };
+};
+
 &sai1 {
        pinctrl-names = "default", "dsd";
        pinctrl-0 = <&pinctrl_sai1>;