dts:txl:optimize ion memory usage [2/2]
authorLei Qian <lei.qian@amlogic.com>
Thu, 26 Jul 2018 03:41:15 +0000 (11:41 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Thu, 26 Jul 2018 06:43:14 +0000 (23:43 -0700)
PD#170336:dts:txl: optimize ion memory usage

Change-Id: I8eb3cbf60ceeba959dbb74b51912947c9880ceb4
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
arch/arm64/boot/dts/amlogic/mesontxl.dtsi
arch/arm64/boot/dts/amlogic/txl_t950_p341.dts
arch/arm64/boot/dts/amlogic/txl_t960_p346.dts
arch/arm64/boot/dts/amlogic/txl_t962_p320.dts
arch/arm64/boot/dts/amlogic/txl_t962_p321.dts

index 6de9a9d..0e0060c 100644 (file)
                        };
                };/* end of hiubus*/
 
-               ion_dev {
-                       compatible = "amlogic, ion_dev";
-                       memory-region = <&ion_cma_reserved>;
-               };/* end of ion_dev*/
        }; /* end of soc*/
 
        custom_maps: custom_maps {
index e6a33ce..066a3d9 100644 (file)
                i2c4 = &i2c_AO;
        };
 
+       ion_dev {
+               compatible = "amlogic, ion_dev";
+               memory-region = <&ion_reserved>;
+       };
+
        memory@00000000 {
                device_type = "memory";
                linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
                        alloc-ranges = <0x0 0x3f800000 0x0 0x800000>;
                };
 
-               ion_cma_reserved:linux,ion-dev {
+               ion_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0x0 0x8000000>;
+                       size = <0x0 0x2000000>;
                        alignment = <0x0 0x400000>;
                };
 
index b3520c2..f1a4dff 100644 (file)
                i2c4 = &i2c_AO;
        };
 
+       ion_dev {
+               compatible = "amlogic, ion_dev";
+               memory-region = <&ion_reserved>;
+       };
+
        memory@00000000 {
                device_type = "memory";
                linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
                        alloc-ranges = <0x0 0x3f800000 0x0 0x800000>;
                };
 
-               ion_cma_reserved:linux,ion-dev {
+               ion_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0x0 0x8000000>;
+                       size = <0x0 0x2000000>;
                        alignment = <0x0 0x400000>;
                };
 
index 3024447..4543b3d 100644 (file)
                i2c4 = &i2c_AO;
        };
 
+       ion_dev {
+               compatible = "amlogic, ion_dev";
+               memory-region = <&ion_reserved>;
+       };
+
        memory@00000000 {
                device_type = "memory";
                linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
@@ -73,7 +78,7 @@
                        alloc-ranges = <0x0 0x3f800000 0x0 0x800000>;
                };
 
-               ion_cma_reserved:linux,ion-dev {
+               ion_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0x0 0x8000000>;
index a3bcedb..cc6b77a 100644 (file)
                i2c4 = &i2c_AO;
        };
 
+       ion_dev {
+               compatible = "amlogic, ion_dev";
+               memory-region = <&ion_reserved>;
+       };
+
        memory@00000000 {
                device_type = "memory";
                linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
                        alloc-ranges = <0x0 0x05000000 0x0 0x400000>;
                };
 
-               secos_reserved:linux,secos {
-                       compatible = "amlogic, aml_secos_memory";
-                       status = "disable";
-                       reg = <0x0 0x05300000 0x0 0x2000000>;
-                       no-map;
-               };
+               //secos_reserved:linux,secos {
+               //      status = "disabled";
+               //      compatible = "amlogic, aml_secos_memory";
+               //      reg = <0x0 0x05300000 0x0 0x2000000>;
+               //      no-map;
+               //};
 
                logo_reserved:linux,meson-fb {
                        compatible = "shared-dma-pool";
                        alloc-ranges = <0x0 0x3f800000 0x0 0x800000>;
                };
 
-               ion_cma_reserved:linux,ion-dev {
+               ion_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0x0 0x8000000>;
+                       size = <0x0 0x2000000>;
                        alignment = <0x0 0x400000>;
                };
 
                        alignment = <0x0 0x400000>;
                };
 
-               /*  vdin0 CMA pool */
-               vdin0_cma_reserved:linux,vdin0_cma {
-                       compatible = "shared-dma-pool";
-                       reusable;
-               /* 1920x1080x2x4  =16+4 M */
-                       size = <0x0 0x04000000>;
-                       alignment = <0x0 0x400000>;
-               };
-
                /*  vdin1 CMA pool */
                vdin1_cma_reserved:linux,vdin1_cma {
                        compatible = "shared-dma-pool";
 
        vdin@1 {
                compatible = "amlogic, vdin";
-               status = "okay";
                memory-region = <&vdin1_cma_reserved>;
                dev_name = "vdin1";
+               status = "okay";
                reserve-iomap = "true";
                flag_cma = <0>;/*1:share with codec_mm;0:cma alone*/
                interrupts = <0 85 1>;