Add framebuffer on Xiaomi Poco F1 and disable the MDSS on tianma panel variant
v4 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 v4:
- Stripped too many labels, OnePlus 6 does use the label in the OP6/OP6T variants. Re-add.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Strip label from framebuffer nodes where unused and remove -0 postfix. (Konrad)
- Link to v2: https://lore.kernel.org/r/[email protected]
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 (1):
arm64: dts: qcom: sdm845-xiaomi-beryllium: Introduce framebuffer
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 | 8 ++++---- .../boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 16 ++++++++++++++++ 4 files changed, 25 insertions(+), 8 deletions(-)
---
base-commit: bd0f139e5fc11182777b81cefc3893ea508544ec
change-id: 20260107-beryllium-fb-d3e87bc20be0
Best regards,
Signature · 1 line
David Heidelberg <[email protected]>
PATCH v4 1/4 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 { + 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 v4 1/4] arm64: dts: qcom: sdm845-xiaomi-beryllium: Introduce framebuffer
Quoted 7 lines · On 4/2/26 12:39 AM, 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]>---
Konrad
PATCH v4 2/4 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
@@ -72,7 +72,7 @@ chosen { stdout-path = "serial0:115200n8"; - framebuffer: framebuffer@9d400000 { + framebuffer: framebuffer { compatible = "simple-framebuffer"; memory-region = <&cont_splash_mem>;
Signature · 1 line
2.53.0
PATCH v4 3/4 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +4 -4
@@ -23,7 +23,7 @@ / { qcom,board-id = <11 0>; aliases { - display0 = &framebuffer0; + display0 = &framebuffer; serial0 = &uart9; serial1 = &uart6; };
@@ -36,9 +36,9 @@ chosen { stdout-path = "serial0"; /* Use framebuffer setup by the bootloader. */ - framebuffer0: framebuffer@9d400000 { + framebuffer: framebuffer { 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
PATCH v4 4/4 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 { 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
Quoted 8 lines · David Heidelberg
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
[...]
Applied, thanks!
[1/4] arm64: dts: qcom: sdm845-xiaomi-beryllium: Introduce framebuffer
commit: a4f6959661f0c8542e5a89aaaef27fc4ac9408a6
[2/4] arm64: dts: qcom: sdm845-oneplus: Drop address from framebuffer node
commit: b379bb1470d864659ae9522b72f241a15255dce6
[3/4] arm64: dts: qcom: sdm845-shift-axolotl: Convert fb to use memory-region
commit: 15520f868651d6b03c603918bade78f4799df7ca
[4/4] arm64: dts: qcom: sdm845-samsung-starqltechn: Convert fb to use memory-region
commit: 2eae029f7d38c5fc03a778f483b5079d0e355472Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>