Skip to contentSkip to conversation

Add framebuffer on Xiaomi Poco F1 and disable the MDSS on tianma panel variant

PATCH Applied David Heidelberg 3 participants 7 messages Apr 1 – May 7

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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]>
#1 lore raw

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
index 1298485c42142..a6ee3dd171def 100644
@@ -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
#3 lore raw

PATCH v4 2/4 arm64: dts: qcom: sdm845-oneplus: Drop address from framebuffer node

In reply to David Heidelberg

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")
---
 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
index 6b7378cf4d493..b0b9baf01ec29 100644
@@ -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
#4 lore raw

PATCH v4 3/4 arm64: dts: qcom: sdm845-shift-axolotl: Convert fb to use memory-region

In reply to David Heidelberg

Instead 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
index 740eb22550724..88d970268e282 100644
@@ -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
#5 lore raw

PATCH v4 4/4 arm64: dts: qcom: sdm845-samsung-starqltechn: Convert fb to use memory-region

In reply to David Heidelberg

Instead 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
index 77f5872de6f19..0d915ecb0444f 100644
@@ -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
maintainer Applied
#6 lore raw
In reply to David Heidelberg
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: 2eae029f7d38c5fc03a778f483b5079d0e355472

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>