Add framebuffer on Xiaomi Poco F1 and disable the MDSS on tianma panel variant
v2 cover Add framebuffer on Xiaomi Poco F1 and disable the MDSS on tianma panel variant
Enable framebuffer for early console output.
Due to broken panel driver on tianma and no visual output it's better to disable the MDSS so the framebuffer stays on.
In case second patch gets rejected, please apply the first one standalone
---
Changes in v2:
- Added few conversion to use memory-region.
- Corrected framebuffer node name. (Konrad)
- Link to v1: https://lore.kernel.org/r/[email protected]
---
David Heidelberg (3):
arm64: dts: qcom: sdm845-oneplus: Drop address from framebuffer node
arm64: dts: qcom: sdm845-shift-axolotl: Convert fb to use memory-region
arm64: dts: qcom: sdm845-samsung-starqltechn: Convert fb to use memory-region
Petr Hodina (2):
arm64: dts: qcom: sdm845-xiaomi-beryllium: Introduce framebuffer
arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Disable MDSS
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 2 +- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 7 ++++--- arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts | 6 +++--- .../boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 16 ++++++++++++++++ .../boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 10 ++++++++++ 5 files changed, 34 insertions(+), 7 deletions(-)
---
base-commit: 8e5a478b6d6a5bb0a3d52147862b15e4d826af19
change-id: 20260107-beryllium-fb-d3e87bc20be0
Best regards,
Signature · 1 line
David Heidelberg <[email protected]>
PATCH v2 1/5 arm64: dts: qcom: sdm845-xiaomi-beryllium: Introduce framebuffer
From: Petr Hodina <[email protected]>
Add framebuffer for early console and u-boot support.
--- .../boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +16 -0
@@ -39,6 +39,22 @@ aliases { serial1 = &uart6; }; + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer: framebuffer-0 { + compatible = "simple-framebuffer"; + memory-region = <&cont_splash_mem>; + + format = "a8r8g8b8"; + stride = <(1080 * 4)>; + height = <2246>; + width = <1080>; + }; + }; + gpio-keys { compatible = "gpio-keys"; autorepeat;
Signature · 1 line
2.53.0
Re: [PATCH v2 1/5] arm64: dts: qcom: sdm845-xiaomi-beryllium: Introduce framebuffer
Quoted 15 lines · On 3/17/26 11:12 PM, David Heidelberg via B4 Relay wrote:
From: Petr Hodina <[email protected]>
Add framebuffer for early console and u-boot support.
Signed-off-by Petr Hodina <[email protected]>Signed-off-by David Heidelberg <[email protected]>--- .../boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +0
-0
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi aliases { · line 47
Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +6
-0@@ -39,6 +39,22 @@ aliases { serial1 = &uart6; }; + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer: framebuffer-0 {
If you don't expect more framebuffers in the future, just 'framebuffer' for the name is OK
Konrad
Re: [PATCH v2 1/5] arm64: dts: qcom: sdm845-xiaomi-beryllium: Introduce framebuffer
In reply to David HeidelbergQuoted 15 lines · On 3/17/26 11:12 PM, David Heidelberg via B4 Relay wrote:
From: Petr Hodina <[email protected]>
Add framebuffer for early console and u-boot support.
Signed-off-by Petr Hodina <[email protected]>Signed-off-by David Heidelberg <[email protected]>--- .../boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +0
-0
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi aliases { · line 47
Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +6
-0@@ -39,6 +39,22 @@ aliases { serial1 = &uart6; }; + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer: framebuffer-0 {
Also if the label is unused, let's drop it
Konrad
PATCH v2 2/5 arm64: dts: qcom: sdm845-oneplus: Drop address from framebuffer node
In reply to David HeidelbergThis node has no 'reg' property, so it shouldn't have a unit address (after '@') either
--- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +1 -1
@@ -37,7 +37,7 @@ chosen { stdout-path = "serial0:115200n8"; - framebuffer: framebuffer@9d400000 { + framebuffer: framebuffer-0 { compatible = "simple-framebuffer"; memory-region = <&cont_splash_mem>;
Signature · 1 line
2.53.0
Re: [PATCH v2 2/5] arm64: dts: qcom: sdm845-oneplus: Drop address from framebuffer node
Quoted 11 lines · On Tue, Mar 17, 2026 at 11:12:32PM +0100, David Heidelberg via B4 Relay wrote:
From: David Heidelberg <[email protected]>
This node has no 'reg' property, so it shouldn't have a unit address (after '@') either
Fixes b0d5c96e860c ("arm64: dts: qcom: sdm845-oneplus: Add framebuffer")Signed-off-by David Heidelberg <[email protected]>--- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 2 lines
With best wishes Dmitry
PATCH v2 3/5 arm64: dts: qcom: sdm845-shift-axolotl: Convert fb to use memory-region
In reply to David HeidelbergInstead of manually specifying reg, reuse the memory region.
--- arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +3 -3
@@ -36,9 +36,9 @@ chosen { stdout-path = "serial0"; /* Use framebuffer setup by the bootloader. */ - framebuffer0: framebuffer@9d400000 { + framebuffer0: framebuffer-0 { compatible = "simple-framebuffer"; - reg = <0x0 0x9d400000 0x0 (1080 * 2160 * 4)>; + memory-region = <&framebuffer_mem>; width = <1080>; height = <2160>; stride = <(1080 * 4)>;
@@ -62,7 +62,7 @@ key-vol-up { }; reserved-memory { - framebuffer@9d400000 { + framebuffer_mem: framebuffer@9d400000 { reg = <0x0 0x9d400000 0x0 (1080 * 2160 * 4)>; no-map; };
Signature · 1 line
2.53.0
Re: [PATCH v2 3/5] arm64: dts: qcom: sdm845-shift-axolotl: Convert fb to use memory-region
Quoted 9 lines · On Tue, Mar 17, 2026 at 11:12:33PM +0100, David Heidelberg via B4 Relay wrote:
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-shift-axolotl.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Signature · 2 lines
With best wishes Dmitry
PATCH v2 4/5 arm64: dts: qcom: sdm845-samsung-starqltechn: Convert fb to use memory-region
In reply to David HeidelbergInstead of manually specifying reg, reuse the memory region.
--- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +4 -3
@@ -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; };
Signature · 1 line
2.53.0
Re: [PATCH v2 4/5] arm64: dts: qcom: sdm845-samsung-starqltechn: Convert fb to use memory-region
Quoted 9 lines · On Tue, Mar 17, 2026 at 11:12:34PM +0100, David Heidelberg via B4 Relay wrote:
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(-)
Signature · 2 lines
With best wishes Dmitry
PATCH v2 5/5 arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Disable MDSS
In reply to David HeidelbergFrom: Petr Hodina <[email protected]>
Currently the panel driver for tianma is broken. Disable MDSS to prevent DRM taking over the framebuffer.
--- arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts +10 -0
@@ -36,3 +36,13 @@ touchscreen@1 { touchscreen-size-y = <2246>; }; }; + +&dispcc { + /* Disable for now so simple-framebuffer continues working */ + status = "disabled"; +}; + +&mdss { + /* Disable for now so simple-framebuffer continues working */ + status = "disabled"; +};
Signature · 1 line
2.53.0
Re: [PATCH v2 5/5] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Disable MDSS
Quoted 4 lines · On Tue, Mar 17, 2026 at 11:12:35PM +0100, David Heidelberg via B4 Relay wrote:
From: Petr Hodina <[email protected]>
Currently the panel driver for tianma is broken. Disable MDSS to prevent DRM taking over the framebuffer.
I'd still hope that somebody can get it to work. I'd start by using prepare_prev_first. Sumit reported the panel as working in 2020 and I have no doubts that it was the case. Another option migt be something related to the dispcc (see my [1]).
[1] https://lore.kernel.org/linux-arm-msm/[email protected]/
Quoted 30 lines
Signed-off-by Petr Hodina <[email protected]>Signed-off-by David Heidelberg <[email protected]>--- arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 10 ++++++++++ 1 file changed, 10 insertions(+)arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts +10
-0@@ -36,3 +36,13 @@ touchscreen@1 { touchscreen-size-y = <2246>; }; }; + +&dispcc { + /* Disable for now so simple-framebuffer continues working */ + status = "disabled"; +}; + +&mdss { + /* Disable for now so simple-framebuffer continues working */ + status = "disabled"; +};Signature · 2 lines
-- 2.53.0
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v2 5/5] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Disable MDSS
Quoted 10 lines · Dmitry Baryshkov
Quoted 4 lines · On Tue, Mar 17, 2026 at 11:12:35PM +0100, David Heidelberg via B4 Relay wrote:
From: Petr Hodina <[email protected]>
Currently the panel driver for tianma is broken. Disable MDSS to prevent DRM taking over the framebuffer.
I'd still hope that somebody can get it to work. I'd start by using
prepare_prev_first. Sumit reported the panel as working in 2020 and I have no doubts that it was the case. Another option migt be something related to the dispcc (see my [1]).
It's probable that prepare_prev_first will help, just sending the patchas part of the original series.
I'm completely fine with taking other commits and leaving this one after more investigation.
David
Quoted 3 lines
[1] https://lore.kernel.org/linux-arm-msm/[email protected]/
Re: [PATCH v2 5/5] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Disable MDSS
In reply to Dmitry BaryshkovQuoted 10 lines · Dmitry Baryshkov
Quoted 4 lines · On Tue, Mar 17, 2026 at 11:12:35PM +0100, David Heidelberg via B4 Relay wrote:
From: Petr Hodina <[email protected]>
Currently the panel driver for tianma is broken. Disable MDSS to prevent DRM taking over the framebuffer.
I'd still hope that somebody can get it to work. I'd start by using
prepare_prev_first. Sumit reported the panel as working in 2020 and I have no doubts that it was the case. Another option migt be something related to the dispcc (see my [1]).
Sadly, the prepare_prev_first didn't solve the issue. The framebuffer -> MDSS takover happens, but at greetd (login) loading screen goes black and never restores.
Will need more work.
David>
Quoted 1 line
[1] https://lore.kernel.org/linux-arm-msm/[email protected]/
Re: [PATCH v2 5/5] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Disable MDSS
Quoted 12 lines · David Heidelberg
Quoted 10 lines · Dmitry Baryshkov
Quoted 4 lines · On Tue, Mar 17, 2026 at 11:12:35PM +0100, David Heidelberg via B4 Relay wrote:
From: Petr Hodina <[email protected]>
Currently the panel driver for tianma is broken. Disable MDSS to prevent DRM taking over the framebuffer.
I'd still hope that somebody can get it to work. I'd start by using
prepare_prev_first. Sumit reported the panel as working in 2020 and I have no doubts that it was the case. Another option migt be something related to the dispcc (see my [1]).
Quoted 5 lines
Sadly, the
prepare_prev_firstdidn't solve the issue. The framebuffer -> MDSS takover happens, but at greetd (login) loading screen goes black and never restores.Will need more work.
Do you see a console _while_ it boots, after the handover? I'd check the mode programming. Maybe, disabling panel reset would also (temporarily) help.
Quoted 3 lines
David>
Quoted 1 line
[1] https://lore.kernel.org/linux-arm-msm/[email protected]/
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v2 5/5] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Disable MDSS
Quoted 17 lines · Dmitry Baryshkov
Quoted 16 lines · David Heidelberg
Quoted 10 lines · Dmitry Baryshkov
Quoted 4 lines · On Tue, Mar 17, 2026 at 11:12:35PM +0100, David Heidelberg via B4 Relay wrote:
From: Petr Hodina <[email protected]>
Currently the panel driver for tianma is broken. Disable MDSS to prevent DRM taking over the framebuffer.
I'd still hope that somebody can get it to work. I'd start by using
prepare_prev_first. Sumit reported the panel as working in 2020 and I have no doubts that it was the case. Another option migt be something related to the dispcc (see my [1]).Sadly, the
prepare_prev_firstdidn't solve the issue. The framebuffer -> MDSS takover happens, but at greetd (login) loading screen goes black and never restores.
Quoted 5 lines
Quoted 1 line
Will need more work.
Do you see a console _while_ it boots, after the handover? I'd check the mode programming. Maybe, disabling panel reset would also (temporarily) help.
When I get access to the phone for longer period of time I'll try to debug it step by step. This time I had only time to flash kernel and test if it boots with prepare_prev_first.
David
Quoted 5 lines
Quoted 4 lines
David>
Quoted 1 line
[1] https://lore.kernel.org/linux-arm-msm/[email protected]/
Signature · 1 line
David Heidelberg