From: David Heidelberg <[email protected]>

Instead of manually specifying reg, reuse the memory region.

Signed-off-by: David Heidelberg <[email protected]>
---
 arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts 
b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
index 77f5872de6f19..e704497853407 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
@@ -43,9 +43,10 @@ chosen {
                #address-cells = <2>;
                #size-cells = <2>;
                ranges;
-               framebuffer: framebuffer@9d400000 {
+
+               framebuffer: framebuffer-0 {
                        compatible = "simple-framebuffer";
-                       reg = <0 0x9d400000 0 (2960 * 1440 * 4)>;//2400000
+                       memory-region = <&framebuffer_mem>;
                        width = <1440>;
                        height = <2960>;
                        stride = <(1440 * 4)>;
@@ -109,7 +110,7 @@ vreg_s4a_1p8: pm8998-smps4 {
        };
 
        reserved-memory {
-               memory@9d400000 {
+               framebuffer_mem: memory@9d400000 {
                        reg = <0x0 0x9d400000 0x0 0x02400000>;
                        no-map;
                };

-- 
2.53.0



Reply via email to