arm64: dts: imx8mp-somdevices.dtsi: Configure memory and allocate less cma memory.
authorJosep Orga <jorga@somdevices.com>
Thu, 26 Oct 2023 15:17:31 +0000 (17:17 +0200)
committerJosep Orga <jorga@somdevices.com>
Thu, 26 Oct 2023 15:17:31 +0000 (17:17 +0200)
Based on:
https://github.com/nxp-imx/linux-imx/commit/910178d16dd3e4cba08bebde148c493308cd3fd7
https://git.toradex.com/cgit/linux-toradex.git/commit/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi?h=toradex_5.15-2.2.x-imx&id=5442dba1b301ab623abc8badf1c5a1dc4f851756
https://git.toradex.com/cgit/linux-toradex.git/commit/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi?h=toradex_5.15-2.2.x-imx&id=177b4e0e45cce067933a416f674991f7ed279924

Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm64/boot/dts/freescale/imx8mp-somdevices.dtsi

index 587fe68..89cbedf 100644 (file)
@@ -30,8 +30,7 @@
 
        memory@40000000 {
                device_type = "memory";
-               reg = <0x0 0x40000000 0 0xc0000000>,
-                     <0x1 0x00000000 0 0xc0000000>;
+               reg = <0x0 0x40000000 0 0x80000000>;
        };
 
        reg_usdhc2_vmmc: regulator-usdhc2 {
                enable-active-high;
        };
 
+       reserved-memory {
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges;
+
+               linux,cma {
+                       size = <0 0x20000000>;
+                       /delete-node/ alloc-ranges;
+               };
+       };
+
        bt_sco_codec: bt_sco_codec {
                #sound-dai-cells = <1>;
                compatible = "linux,bt-sco";
        status = "okay";
 };
 
+/* only used for tuning tool, save 256MB */
+/delete-node/ &isp0_reserved;
+&isp_0 {
+       /delete-property/ memory-region;
+};
+
 &hdmi_blk_ctrl {
        status = "okay";
 };