mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@somainline.org>
To: ~postmarketos/upstreaming@lists.sr.ht
Cc: martin.botka@somainline.org,
	angelogioacchino.delregno@somainline.org,
	marijn.suijten@somainline.org, jamipkettunen@somainline.org,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 09/15] arm64: dts: qcom: msm8992-libra: Fix up the framebuffer
Date: Sat, 19 Mar 2022 19:19:44 +0100	[thread overview]
Message-ID: <7575fca0-28dd-427c-022f-6087fbd7a34b@somainline.org> (raw)
In-Reply-To: <20220319174645.340379-10-konrad.dybcio@somainline.org>



On 19.03.2022 18:46, Konrad Dybcio wrote:
> Make sure the necessary clocks are kept on after clk_cleanup (until MDSS
> is properly handled by its own driver) and touch up the fb address to
> prevent some weird shifting. It's still not perfect, but at least the
> kernel log doesn't start a third deep into your screen..
> 
> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
> ---
>  .../arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts | 16 ++++++++++++++--
>  1 file changed, 14 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts b/arch/arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts
> index e638fc489539..4e06641eb384 100644
> --- a/arch/arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts
> @@ -29,13 +29,25 @@ chosen {
>  		#size-cells = <2>;
>  		ranges;
>  
> -		framebuffer0: framebuffer@3404000 {
> +		framebuffer0: framebuffer@3403f48 {
Actually it turns out that 0x3400000 should be the address here and 2 lines below,
instead of 0x3403f48 (thanks Stephan & lk2nd!)..

If you don't mind this janky way of sending a fixup patch (resending a series of 15 seems a bit over the top), here's the fixed version:



From e01cb8b11d42e5885998faca3964b029563174e8 Mon Sep 17 00:00:00 2001
From: Konrad Dybcio <konrad.dybcio@somainline.org>
Date: Sat, 19 Mar 2022 17:32:25 +0100
Subject: [PATCH] arm64: dts: qcom: msm8992-libra: Fix up the framebuffer

Make sure the necessary clocks are kept on after clk_cleanup (until MDSS
is properly handled by its own driver) and touch up the fb address to
prevent some weird shifting.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
---
 .../arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts b/arch/arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts
index e638fc489539..7748b745a5df 100644
--- a/arch/arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts
+++ b/arch/arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts
@@ -29,13 +29,25 @@ chosen {
                #size-cells = <2>;
                ranges;
 
-               framebuffer0: framebuffer@3404000 {
+               framebuffer0: framebuffer@3400000 {
                        compatible = "simple-framebuffer";
-                       reg = <0 0x3404000 0 (1080 * 1920 * 3)>;
+                       reg = <0 0x3400000 0 (1080 * 1920 * 3)>;
                        width = <1080>;
                        height = <1920>;
                        stride = <(1080 * 3)>;
                        format = "r8g8b8";
+                       /*
+                        * That's a lot of clocks, but it's necessary due
+                        * to unused clk cleanup & no panel driver yet..
+                        */
+                       clocks = <&mmcc MDSS_AHB_CLK>,
+                                <&mmcc MDSS_AXI_CLK>,
+                                <&mmcc MDSS_VSYNC_CLK>,
+                                <&mmcc MDSS_MDP_CLK>,
+                                <&mmcc MDSS_BYTE0_CLK>,
+                                <&mmcc MDSS_PCLK0_CLK>,
+                                <&mmcc MDSS_ESC0_CLK>;
+                       power-domains = <&mmcc MDSS_GDSC>;
                };
        };
 
-- 
2.35.1

  reply	other threads:[~2022-03-19 18:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220319174645.340379-1-konrad.dybcio@somainline.org>
2022-03-19 17:46 ` [PATCH 01/15] arm64: dts: qcom: msm8994: Fix sleep clock name Konrad Dybcio
2022-03-23 21:06   ` Petr Vorel
2022-03-19 17:46 ` [PATCH 02/15] arm64: dts: qcom: msm8992-libra: Add CPU regulators Konrad Dybcio
2022-03-19 17:46 ` [PATCH 03/15] arm64: dts: qcom: msm8992-libra: Temporarily restrict CPU count to 1 Konrad Dybcio
2022-03-19 17:46 ` [PATCH 04/15] arm64: dts: qcom: msm8992-libra: Remove superfluous status = "okay" Konrad Dybcio
2022-03-19 17:46 ` [PATCH 05/15] arm64: dts: qcom: msm8994: Add MMCC node Konrad Dybcio
2022-03-19 17:46 ` [PATCH 06/15] arm64: dts: qcom: msm8992: Use the correct GCC compatible Konrad Dybcio
2022-03-23 21:12   ` Petr Vorel
2022-03-19 17:46 ` [PATCH 07/15] arm64: dts: qcom: msm8992: Use the correct MMCC compatible Konrad Dybcio
2022-03-19 17:46 ` [PATCH 08/15] arm64: dts: qcom: msm8994: Fix the cont_splash_mem address Konrad Dybcio
2022-03-19 17:46 ` [PATCH 09/15] arm64: dts: qcom: msm8992-libra: Fix up the framebuffer Konrad Dybcio
2022-03-19 18:19   ` Konrad Dybcio [this message]
2022-03-19 17:46 ` [PATCH 10/15] arm64: dts: qcom: msm8994-kitakami: Disable a mistakengly enabled I2C host Konrad Dybcio
2022-03-19 17:46 ` [PATCH 11/15] arm64: dts: qcom: msm8994-kitakami: Update regulator configuration Konrad Dybcio
2022-03-19 17:46 ` [PATCH 12/15] arm64: dts: qcom: msm8994: Add OCMEM node Konrad Dybcio
2022-03-19 17:46 ` [PATCH 13/15] arm64: dts: qcom: msm8994: Fix BLSP[12]_DMA channels count Konrad Dybcio
2022-03-19 17:46 ` [PATCH 14/15] arm64: dts: qcom: msm8994: Add watchdog timer node Konrad Dybcio
2022-03-19 17:46 ` [PATCH 15/15] arm64: dts: qcom: msm8994: Add mmc aliases Konrad Dybcio
2022-03-23 21:25   ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7575fca0-28dd-427c-022f-6087fbd7a34b@somainline.org \
    --to=konrad.dybcio@somainline.org \
    --cc=agross@kernel.org \
    --cc=angelogioacchino.delregno@somainline.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jamipkettunen@somainline.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=martin.botka@somainline.org \
    --cc=robh+dt@kernel.org \
    --cc=~postmarketos/upstreaming@lists.sr.ht \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®