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 6de9a9d390f06d55ca0c869a8b2cca585e2e6cb1..0e0060c80c60c015a02be92ca6d09bb16034f895 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 e6a33ceb9a20a7c96568380e9a537556f4d6ee37..066a3d9f7ff1bebc08de5795bc9e9c8bb35e57c4 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 b3520c23b1d8aa055ce278eb83ac416dc42c52fa..f1a4dff5d9796fe96f349b979d568c5b5b95f464 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 3024447644d3118af0fc8297a4145a355d09e23c..4543b3d170dc8c771422bb04bb214d4ffb486ce7 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 a3bcedb8a7b4192ccb2eafd092bc54bfb085f0cc..cc6b77a8a073bddecee927ab90090733f61d4b79 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>;