arm64: dts: imx8mn-somdevices.dtsi: Configure memory and allocate less cma memory.
authorJosep Orga <jorga@somdevices.com>
Fri, 8 Oct 2021 17:26:54 +0000 (19:26 +0200)
committerJosep Orga <jorga@somdevices.com>
Mon, 11 Oct 2021 11:29:41 +0000 (13:29 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi

index cbd1250..c9b0403 100644 (file)
@@ -29,7 +29,7 @@
 
        memory@40000000 {
                device_type = "memory";
-               reg = <0x0 0x40000000 0 0x80000000>;
+               reg = <0x0 0x40000000 0 0x20000000>;
        };
 
        modem_reset: modem-reset {
        };
 };
 
+&resmem {
+       /* global autoconfigured region for contiguous allocations */
+       linux,cma {
+               compatible = "shared-dma-pool";
+               reusable;
+               size = <0 0xA000000>;
+               alloc-ranges = <0 0x40000000 0 0x40000000>;
+               linux,cma-default;
+       };
+};
+
 &sai5 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_sai5>;