From b5edd8c6f9a976c3fab0d59828837d97ad19a3bf Mon Sep 17 00:00:00 2001 From: me2151 Date: Sun, 8 May 2022 04:43:29 +0000 Subject: [PATCH] arm64: dts: sabrina: Add reserved ion-fb-mem space to ion_dev * We already reserve the space in dts but its not being called upon from dtsi. * This fixes screen blanking during Toasts and other pop up messages. * [npjohnson]: Pull the original definition from SM1 deadpool DTS. Change-Id: I51f7aa6d0953b42c358a4ab963cc4cd72e1f35c3 --- arch/arm64/boot/dts/amlogic/mesonsm1_sabrina.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/sm1_s905d3_sabrina.dts | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/mesonsm1_sabrina.dtsi b/arch/arm64/boot/dts/amlogic/mesonsm1_sabrina.dtsi index cc1d3c13dd88..665c29f738c1 100644 --- a/arch/arm64/boot/dts/amlogic/mesonsm1_sabrina.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesonsm1_sabrina.dtsi @@ -785,7 +785,8 @@ ion_dev { compatible = "amlogic, ion_dev"; - memory-region = <&ion_cma_reserved>; + memory-region = <&ion_cma_reserved + &ion_fb_reserved>; };/* end of ion_dev*/ audiobus: audiobus@0xFF660000 { diff --git a/arch/arm64/boot/dts/amlogic/sm1_s905d3_sabrina.dts b/arch/arm64/boot/dts/amlogic/sm1_s905d3_sabrina.dts index 8a14864d6e76..3c2e2bb90181 100644 --- a/arch/arm64/boot/dts/amlogic/sm1_s905d3_sabrina.dts +++ b/arch/arm64/boot/dts/amlogic/sm1_s905d3_sabrina.dts @@ -89,6 +89,13 @@ size = <0x0 0x8000000>; alignment = <0x0 0x400000>; }; + ion_fb_reserved:linux,ion-fb { + compatible = "amlogic, ion-fb-mem"; + reusable; + /* 1920x1080x4x3 round up 4M align */ + size = <0x0 0x1c00000>; + alignment = <0x0 0x400000>; + }; //di_reserved:linux,di { //compatible = "amlogic, di-mem"; /* buffer_size = 3621952(yuv422 8bit) */ -- 2.20.1