Skip to contentSkip to conversation

Add support for the Samsung S6E8FCO display panel

PATCH Superseded Yedaya Katsman 2 participants 12 messages Feb 23 – Mar 12

Subsystems (6)

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

cover Add support for the Samsung S6E8FCO display panel

This adds a driver to support the Samsung S6E8FCO display panel found in Xiaomi Mi A3 (xiaomi-laurel). The driver is generated using linux-mdss-dsi-panel-driver-generator[0].

The mdss reset dependency makes the screen work more reliably.

[0]: https://github.com/msm8916-mainline/linux-mdss-dsi-panel-driver-generator
Original tree with patches: https://gitlab.postmarketos.org/SzczurekYT/linux/-/tree/laurel

---
Yedaya Katsman (3):
dt-bindings: display: panel: Add Samsung S6E8FCO
drivers: gpu: drm: panel: Add Samsung S6E8FCO
arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel

 .../bindings/display/panel/samsung,s6e8fco.yaml    |  64 +++++
 MAINTAINERS                                        |   6 +
 .../boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts  |  94 +++++++
 drivers/gpu/drm/panel/Kconfig                      |  12 +
 drivers/gpu/drm/panel/Makefile                     |   1 +
 drivers/gpu/drm/panel/panel-samsung-s6e8fco.c      | 293 +++++++++++++++++++++
 6 files changed, 470 insertions(+)

---
base-commit: d4906ae14a5f136ceb671bb14cedbf13fa560da6
change-id: 20260218-panel-patches-696df7e0d810
prerequisite-message-id: <[email protected]>
prerequisite-patch-id: 3fba84f11111406e0d530013fd45ad0eb389786b
prerequisite-patch-id: 81440b7f28f9101d3dc5d4bad6dc86e39b81a026
prerequisite-patch-id: 53469d8c9810169d058f1bfd27ac8399038aae74
prerequisite-patch-id: 80809bee71eb6434f6699d5e5f8c7f9d4bcd1ca7
prerequisite-patch-id: 0269e01c9c54a37bb92983635cd516342189aee5
prerequisite-patch-id: e2bbf7c452d4da6d71b1a5194e0d7ce46584e113

Best regards,

Signature · 1 line
Yedaya Katsman <[email protected]>
#1 lore raw

PATCH 1/3 dt-bindings: display: panel: Add Samsung S6E8FCO

Document Samsung S6E8FCO 6.09" 720x1560 panel
found in the Xiaomi Mi A3 smartphone.

---
 .../bindings/display/panel/samsung,s6e8fco.yaml    | 64 ++++++++++++++++++++++
 MAINTAINERS                                        |  5 ++
 2 files changed, 69 insertions(+)
Documentation/devicetree/bindings/display/panel/samsung,s6e8fco.yaml new file +64 -0
new file mode 100644
index 0000000000000000000000000000000000000000..8c042ce5f65bf317df48e109d88ebdc87ef5d5ed
@@ -0,0 +1,64 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/samsung,s6e8fco.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Samsung S6E8FCO AMOLED Panel
+
+maintainers:
+  - Yedaya Katsman <[email protected]>
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: samsung,s6e8fco
+
+  reg:
+    maxItems: 1
+
+  vddio-supply: true
+  ldo-supply: true
+  iovcc-supply: true
+  reset-gpios: true
+  port: true
+
+required:
+  - compatible
+  - reg
+  - vddio-supply
+  - ldo-supply
+  - iovcc-supply
+  - port
+  - reset-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "samsung,s6e8fco";
+            reg = <0>;
+
+            vddio-supply = <&vreg_l9a>;
+            ldo-supply = <&panel_ldo_supply>;
+            iovcc-supply = <&panel_iovcc_supply>;
+
+            reset-gpios = <&tlmm 90 GPIO_ACTIVE_LOW>;
+
+            port {
+                panel_in: endpoint {
+                    remote-endpoint = <&mdss_dsi0_out>;
+                };
+            };
+        };
+    };
+...
MAINTAINERS +5 -0
index e087673237636268346979ddc270f8cf0905c722..545d4cf68b9ac27765c7981e668e32cfecf3366b 100644
@@ -8183,6 +8183,11 @@ S:	Maintained
 F:	Documentation/devicetree/bindings/display/panel/samsung,s6e3ha8.yaml
 F:	drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c
 
+DRM DRIVER FOR SAMSUNG S6E8FCO PANELS
+M:	Yedaya Katsman <[email protected]>
+S:	Maintained
+F:	Documentation/devicetree/bindings/display/panel/samsung,s6e8fco.yaml
+
 DRM DRIVER FOR SAMSUNG SOFEF00 DDIC
 M:	David Heidelberg <[email protected]>
 M:	Casey Connolly <[email protected]>
Signature · 1 line
2.53.0
#2 lore raw

PATCH 2/3 drivers: gpu: drm: panel: Add Samsung S6E8FCO

In reply to Yedaya Katsman

Add driver for Samsung S6E8FCO DSI video mode panel, used in Xiaomi Mi A3 mobile phone.

---
 MAINTAINERS                                   |   1 +
 drivers/gpu/drm/panel/Kconfig                 |  12 ++
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-samsung-s6e8fco.c | 293 ++++++++++++++++++++++++++
 4 files changed, 307 insertions(+)
MAINTAINERS +1 -0
index 545d4cf68b9ac27765c7981e668e32cfecf3366b..238b5332eaf0e0cfb9834084e24671ccaee79939 100644
@@ -8187,6 +8187,7 @@ DRM DRIVER FOR SAMSUNG S6E8FCO PANELS
 M:	Yedaya Katsman <[email protected]>
 S:	Maintained
 F:	Documentation/devicetree/bindings/display/panel/samsung,s6e8fco.yaml
+F:	drivers/gpu/drm/panel/panel-samsung-s6e8fco.c
 
 DRM DRIVER FOR SAMSUNG SOFEF00 DDIC
 M:	David Heidelberg <[email protected]>
drivers/gpu/drm/panel/Kconfig +12 -0
index 7a83804fedca1b688ce6fbe4295ec9009007e693..734640bb3f73c83e9273573aeb720ea1ba20862f 100644
@@ -893,6 +893,18 @@ config DRM_PANEL_SAMSUNG_S6E8AA5X01_AMS561RA01
 	  ~5.6 inch AMOLED display, and the controller is driven by the MIPI
 	  DSI protocol with 4 lanes.
 
+config DRM_PANEL_SAMSUNG_S6E8FCO
+	tristate "Samsung S6E8FCO DSI video mode panel"
+	depends on OF
+	depends on BACKLIGHT_CLASS_DEVICE
+	select DRM_MIPI_DSI
+	select VIDEOMODE_HELPERS
+	help
+	  Say Y or M here if you want to enable support for the Samsung video
+	  mode panel S6E8FCO. The panel has a 6.09 inch AMOLED display, with
+	  a resolution of 720x1560.
+	  Found in the Xiaomi Mi A3 smartphone (xiaomi-laurel).
+
 config DRM_PANEL_SAMSUNG_SOFEF00
 	tristate "Samsung SOFEF00 DSI panel controller"
 	depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
index b9562a6fdcb38bfd0dfee9e8c11e16149ada4386..54eca60e5b57328ea94ed7880f4dead981f87fc1 100644
@@ -91,6 +91,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS427AP24) += panel-samsung-s6e88a0-ams4
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01) += panel-samsung-s6e88a0-ams452ef01.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) += panel-samsung-s6e8aa0.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA5X01_AMS561RA01) += panel-samsung-s6e8aa5x01-ams561ra01.o
+obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8FCO) += panel-samsung-s6e8fco.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF00) += panel-samsung-sofef00.o
 obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) += panel-seiko-43wvf1g.o
 obj-$(CONFIG_DRM_PANEL_SHARP_LQ079L1SX01) += panel-sharp-lq079l1sx01.o
drivers/gpu/drm/panel/panel-samsung-s6e8fco.c new file +293 -0

293 lines not on this page · raw message

Signature · 1 line
2.53.0
Reviewed-by on v1 2/3
#3 lore raw

Re: [PATCH 2/3] drivers: gpu: drm: panel: Add Samsung S6E8FCO

Quoted 6 lines · Yedaya Katsman

Add driver for Samsung S6E8FCO DSI video mode panel, used in Xiaomi Mi A3 mobile phone.

Quoted 6 lines
---
 MAINTAINERS                                   |   1 +
 drivers/gpu/drm/panel/Kconfig                 |  12 ++
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-samsung-s6e8fco.c | 293 ++++++++++++++++++++++++++
 4 files changed, 307 insertions(+)

Please change the subject to follow "drm: panel: foo bar baz".

With that in place:

Quoted 54 lines
MAINTAINERS +1 -0
index 545d4cf68b9ac27765c7981e668e32cfecf3366b..238b5332eaf0e0cfb9834084e24671ccaee79939 100644
@@ -8187,6 +8187,7 @@ DRM DRIVER FOR SAMSUNG S6E8FCO PANELS
 M:	Yedaya Katsman <[email protected]>
 S:	Maintained
 F:	Documentation/devicetree/bindings/display/panel/samsung,s6e8fco.yaml
+F:	drivers/gpu/drm/panel/panel-samsung-s6e8fco.c
 
 DRM DRIVER FOR SAMSUNG SOFEF00 DDIC
 M:	David Heidelberg <[email protected]>
drivers/gpu/drm/panel/Kconfig +12 -0
index 7a83804fedca1b688ce6fbe4295ec9009007e693..734640bb3f73c83e9273573aeb720ea1ba20862f 100644
@@ -893,6 +893,18 @@ config DRM_PANEL_SAMSUNG_S6E8AA5X01_AMS561RA01
 	  ~5.6 inch AMOLED display, and the controller is driven by the MIPI
 	  DSI protocol with 4 lanes.
 
+config DRM_PANEL_SAMSUNG_S6E8FCO
+	tristate "Samsung S6E8FCO DSI video mode panel"
+	depends on OF
+	depends on BACKLIGHT_CLASS_DEVICE
+	select DRM_MIPI_DSI
+	select VIDEOMODE_HELPERS
+	help
+	  Say Y or M here if you want to enable support for the Samsung video
+	  mode panel S6E8FCO. The panel has a 6.09 inch AMOLED display, with
+	  a resolution of 720x1560.
+	  Found in the Xiaomi Mi A3 smartphone (xiaomi-laurel).
+
 config DRM_PANEL_SAMSUNG_SOFEF00
 	tristate "Samsung SOFEF00 DSI panel controller"
 	depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
index b9562a6fdcb38bfd0dfee9e8c11e16149ada4386..54eca60e5b57328ea94ed7880f4dead981f87fc1 100644
@@ -91,6 +91,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS427AP24) += panel-samsung-s6e88a0-ams4
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01) += panel-samsung-s6e88a0-ams452ef01.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) += panel-samsung-s6e8aa0.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA5X01_AMS561RA01) += panel-samsung-s6e8aa5x01-ams561ra01.o
+obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8FCO) += panel-samsung-s6e8fco.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF00) += panel-samsung-sofef00.o
 obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) += panel-seiko-43wvf1g.o
 obj-$(CONFIG_DRM_PANEL_SHARP_LQ079L1SX01) += panel-sharp-lq079l1sx01.o
drivers/gpu/drm/panel/panel-samsung-s6e8fco.c new file +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..0a1a1c680ee143d2429a6e1ea59a4fdd16b156b4

drivers/gpu/drm/panel/panel-samsung-s6e8fco.c line 4

Quoted 4 lines
drivers/gpu/drm/panel/panel-samsung-s6e8fco.c new file +4 -0
@@ -0,0 +1,293 @@
+// SPDX-License-Identifier: GPL-2.0-only
+// Copyright (c) 2025 Kamil Gołda <[email protected]>
+// Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree:
+// Copyright (c) 2026, The Linux Foundation. All rights reserved.

Hmm, so Kamil worked on it before it was written by LF? Are you sure that the year here is correct?

drivers/gpu/drm/panel/panel-samsung-s6e8fco.c line 196

Quoted 6 lines
drivers/gpu/drm/panel/panel-samsung-s6e8fco.c new file +5 -0
+
 
+
+static const struct backlight_ops s6e8fco_samsungp_bl_ops = {
+	.update_status = s6e8fco_samsungp_bl_update_status,
+	.get_brightness = s6e8fco_samsungp_bl_get_brightness,

Does it actually return the written value?

Quoted 2 lines
drivers/gpu/drm/panel/panel-samsung-s6e8fco.c new file +2 -0
+};
+
Signature · 2 lines
With best wishes
Dmitry
#4 lore raw

Re: [PATCH 2/3] drivers: gpu: drm: panel: Add Samsung S6E8FCO

Quoted 15 lines · Dmitry Baryshkov
Quoted 6 lines · Yedaya Katsman

Add driver for Samsung S6E8FCO DSI video mode panel, used in Xiaomi Mi A3 mobile phone.

Quoted 6 lines
---
 MAINTAINERS                                   |   1 +
 drivers/gpu/drm/panel/Kconfig                 |  12 ++
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-samsung-s6e8fco.c | 293 ++++++++++++++++++++++++++
 4 files changed, 307 insertions(+)
Quoted 1 line

Please change the subject to follow "drm: panel: foo bar baz".

Ok

Quoted 4 lines

With that in place:

Thanks

Quoted 55 lines
Quoted 55 lines
MAINTAINERS +1 -0
index 545d4cf68b9ac27765c7981e668e32cfecf3366b..238b5332eaf0e0cfb9834084e24671ccaee79939 100644
@@ -8187,6 +8187,7 @@ DRM DRIVER FOR SAMSUNG S6E8FCO PANELS
 M:   Yedaya Katsman <[email protected]>
 S:   Maintained
 F:   Documentation/devicetree/bindings/display/panel/samsung,s6e8fco.yaml
+F:   drivers/gpu/drm/panel/panel-samsung-s6e8fco.c
 
 DRM DRIVER FOR SAMSUNG SOFEF00 DDIC
 M:   David Heidelberg <[email protected]>
drivers/gpu/drm/panel/Kconfig +12 -0
index 7a83804fedca1b688ce6fbe4295ec9009007e693..734640bb3f73c83e9273573aeb720ea1ba20862f 100644
@@ -893,6 +893,18 @@ config DRM_PANEL_SAMSUNG_S6E8AA5X01_AMS561RA01
        ~5.6 inch AMOLED display, and the controller is driven by the MIPI
        DSI protocol with 4 lanes.
 
+config DRM_PANEL_SAMSUNG_S6E8FCO
+     tristate "Samsung S6E8FCO DSI video mode panel"
+     depends on OF
+     depends on BACKLIGHT_CLASS_DEVICE
+     select DRM_MIPI_DSI
+     select VIDEOMODE_HELPERS
+     help
+       Say Y or M here if you want to enable support for the Samsung video
+       mode panel S6E8FCO. The panel has a 6.09 inch AMOLED display, with
+       a resolution of 720x1560.
+       Found in the Xiaomi Mi A3 smartphone (xiaomi-laurel).
+
 config DRM_PANEL_SAMSUNG_SOFEF00
      tristate "Samsung SOFEF00 DSI panel controller"
      depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
index b9562a6fdcb38bfd0dfee9e8c11e16149ada4386..54eca60e5b57328ea94ed7880f4dead981f87fc1 100644
@@ -91,6 +91,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS427AP24) += panel-samsung-s6e88a0-ams4
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01) += panel-samsung-s6e88a0-ams452ef01.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) += panel-samsung-s6e8aa0.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA5X01_AMS561RA01) += panel-samsung-s6e8aa5x01-ams561ra01.o
+obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8FCO) += panel-samsung-s6e8fco.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF00) += panel-samsung-sofef00.o
 obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) += panel-seiko-43wvf1g.o
 obj-$(CONFIG_DRM_PANEL_SHARP_LQ079L1SX01) += panel-sharp-lq079l1sx01.o
drivers/gpu/drm/panel/panel-samsung-s6e8fco.c new file +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..0a1a1c680ee143d2429a6e1ea59a4fdd16b156b4
Quoted 8 lines

drivers/gpu/drm/panel/panel-samsung-s6e8fco.c line 4

Quoted 5 lines
drivers/gpu/drm/panel/panel-samsung-s6e8fco.c new file +4 -0
@@ -0,0 +1,293 @@
+// SPDX-License-Identifier: GPL-2.0-only
+// Copyright (c) 2025 Kamil Gołda <[email protected]>
+// Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree:
+// Copyright (c) 2026, The Linux Foundation. All rights reserved.

Hmm, so Kamil worked on it before it was written by LF? Are you sure that the year here is correct?

What happened is kamil worked on it, and then I regenerated it again with the script. Re-considering it, the LF copyright should be from the start, I shouldn't have modified it, will fix, thanks for pointing it out!

Quoted 8 lines

drivers/gpu/drm/panel/panel-samsung-s6e8fco.c line 196

Quoted 6 lines
drivers/gpu/drm/panel/panel-samsung-s6e8fco.c new file +5 -0
+
 
+
+static const struct backlight_ops s6e8fco_samsungp_bl_ops = {
+     .update_status = s6e8fco_samsungp_bl_update_status,
+     .get_brightness = s6e8fco_samsungp_bl_get_brightness,

Does it actually return the written value?

Yes, writing to /sys/class/backlight/5e94000.dsi.0/brightness and reading from /sys/class/backlight/5e94000.dsi.0/actual_brightness works correctly.

Quoted 6 lines

drivers/gpu/drm/panel/panel-samsung-s6e8fco.c

Quoted 2 lines
drivers/gpu/drm/panel/panel-samsung-s6e8fco.c new file +2 -0
+};
+

--
With best wishes
Dmitry

Regards, Yedaya

#5 lore raw

PATCH 3/3 arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel

In reply to Yedaya Katsman

Enable the MDSS nodes and add supplies and bindings for the Samsung S6E8FCO panel.

The ldo and iovcc pins boot up with a current of 16 mA, but they work fine with 2mA, so I used that.

---
 .../boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts  | 94 ++++++++++++++++++++++
 1 file changed, 94 insertions(+)
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +94 -0
index 994fb0412fcbdf5466f87a325c48b697a37b514b..10fd01143a644004b807fc455d2235f8e6a9737a 100644
@@ -82,6 +82,32 @@ key-volume-up {
 		};
 	};
 
+	panel_ldo_supply: panel-ldo-supply {
+		compatible = "regulator-fixed";
+		regulator-name = "panel_ldo_supply";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-boot-on;
+
+		enable-active-high;
+		gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>;
+		pinctrl-0 = <&panel_ldo_en>;
+		pinctrl-names = "default";
+	};
+
+	panel_iovcc_supply: panel-iovcc-supply {
+		compatible = "regulator-fixed";
+		regulator-name = "panel_iovcc_supply";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-boot-on;
+
+		enable-active-high;
+		gpio = <&tlmm 124 GPIO_ACTIVE_HIGH>;
+		pinctrl-0 = <&panel_iovcc_en>;
+		pinctrl-names = "default";
+	};
+
 	thermal-zones {
 		rf-pa0-thermal {
 			thermal-sensors = <&pm6125_adc_tm 0>;
@@ -128,6 +154,46 @@ &hsusb_phy1 {
 	status = "okay";
 };
 
+&mdss {
+	status = "okay";
+};
+
+&mdss_dsi0 {
+	vdda-supply = <&vreg_l18a>;
+
+	pinctrl-0 = <&mdss_default>;
+	pinctrl-1 = <&mdss_sleep>;
+	pinctrl-names = "default", "sleep";
+
+	status = "okay";
+
+	panel@0 {
+		compatible = "samsung,s6e8fco";
+		reg = <0>;
+
+		vddio-supply = <&vreg_l9a>;
+		ldo-supply = <&panel_ldo_supply>;
+		iovcc-supply = <&panel_iovcc_supply>;
+		reset-gpios = <&tlmm 90 GPIO_ACTIVE_LOW>;
+
+		port {
+			panel_in: endpoint {
+				remote-endpoint = <&mdss_dsi0_out>;
+			};
+		};
+	};
+};
+
+&mdss_dsi0_out {
+	data-lanes = <0 1 2 3>;
+	remote-endpoint = <&panel_in>;
+};
+
+
+&mdss_dsi0_phy {
+	status = "okay";
+};
+
 &pm6125_adc {
 	pinctrl-names = "default";
 	pinctrl-0 = <&camera_flash_therm &emmc_ufs_therm>;
@@ -387,6 +453,34 @@ &sdhc_2 {
 
 &tlmm {
 	gpio-reserved-ranges = <22 2>, <28 6>;
+
+	panel_ldo_en: panel-ldo-default-state {
+		pins = "gpio26";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-pull-up;
+	};
+
+	mdss_default: mdss-default-state {
+		pins = "gpio90";
+		function = "gpio";
+		drive-strength = <8>;
+		bias-disable;
+	};
+
+	mdss_sleep: mdss-sleep-state {
+		pins = "gpio90";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-pull-down;
+	};
+
+	panel_iovcc_en: panel-iovcc-default-state {
+		pins = "gpio124";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-pull-up;
+	};
 };
 
 &ufs_mem_hc {
Signature · 1 line
2.53.0
#6 lore raw

Re: [PATCH 3/3] arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel

Quoted 18 lines · Yedaya Katsman

Enable the MDSS nodes and add supplies and bindings for the Samsung S6E8FCO panel.

The ldo and iovcc pins boot up with a current of 16 mA, but they work fine with 2mA, so I used that.

---
 .../boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts  | 94 ++++++++++++++++++++++
 1 file changed, 94 insertions(+)
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +0 -0
index 994fb0412fcbdf5466f87a325c48b697a37b514b..10fd01143a644004b807fc455d2235f8e6a9737a 100644

arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts key-volume-up { · line 85

Quoted 4 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +1 -0
@@ -82,6 +82,32 @@ key-volume-up {
 		};
 	};
 
+	panel_ldo_supply: panel-ldo-supply {

regulator-foo-bar-baz

arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts key-volume-up { · line 87

Quoted 2 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +2 -0
+		compatible = "regulator-fixed";
+		regulator-name = "panel_ldo_supply";

Is it an actual name (e.g. from schematics)?

Quoted 58 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +51 -0
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-boot-on;
+
+		enable-active-high;
+		gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>;
+		pinctrl-0 = <&panel_ldo_en>;
+		pinctrl-names = "default";
+	};
+
+	panel_iovcc_supply: panel-iovcc-supply {
+		compatible = "regulator-fixed";
+		regulator-name = "panel_iovcc_supply";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-boot-on;
+
+		enable-active-high;
+		gpio = <&tlmm 124 GPIO_ACTIVE_HIGH>;
+		pinctrl-0 = <&panel_iovcc_en>;
+		pinctrl-names = "default";
+	};
+
 	thermal-zones {
 		rf-pa0-thermal {
 			thermal-sensors = <&pm6125_adc_tm 0>;
@@ -128,6 +154,46 @@ &hsusb_phy1 {
 	status = "okay";
 };
 
+&mdss {
+	status = "okay";
+};
+
+&mdss_dsi0 {
+	vdda-supply = <&vreg_l18a>;
+
+	pinctrl-0 = <&mdss_default>;
+	pinctrl-1 = <&mdss_sleep>;
+	pinctrl-names = "default", "sleep";
+
+	status = "okay";
+
+	panel@0 {
+		compatible = "samsung,s6e8fco";
+		reg = <0>;
+
+		vddio-supply = <&vreg_l9a>;
+		ldo-supply = <&panel_ldo_supply>;
+		iovcc-supply = <&panel_iovcc_supply>;
+		reset-gpios = <&tlmm 90 GPIO_ACTIVE_LOW>;
+
+		port {
+			panel_in: endpoint {
+				remote-endpoint = <&mdss_dsi0_out>;
+			};
+		};
+	};

arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts &hsusb_phy1 { · line 194

Quoted 10 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +10 -0
+};
+
+&mdss_dsi0_out {
+	data-lanes = <0 1 2 3>;
+	remote-endpoint = <&panel_in>;
+};
+
+
+&mdss_dsi0_phy {
+	status = "okay";

Missing vdds-supply.

Quoted 44 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +30 -0
+};
+
 &pm6125_adc {
 	pinctrl-names = "default";
 	pinctrl-0 = <&camera_flash_therm &emmc_ufs_therm>;
@@ -387,6 +453,34 @@ &sdhc_2 {
 
 &tlmm {
 	gpio-reserved-ranges = <22 2>, <28 6>;
+
+	panel_ldo_en: panel-ldo-default-state {
+		pins = "gpio26";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-pull-up;
+	};
+
+	mdss_default: mdss-default-state {
+		pins = "gpio90";
+		function = "gpio";
+		drive-strength = <8>;
+		bias-disable;
+	};
+
+	mdss_sleep: mdss-sleep-state {
+		pins = "gpio90";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-pull-down;
+	};
+
+	panel_iovcc_en: panel-iovcc-default-state {
+		pins = "gpio124";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-pull-up;
+	};
 };
 
 &ufs_mem_hc {
Signature · 2 lines
-- 
2.53.0
Signature · 2 lines
With best wishes
Dmitry
#7 lore raw

Re: [PATCH 3/3] arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel

Quoted 23 lines · Dmitry Baryshkov
Quoted 21 lines · Yedaya Katsman

Enable the MDSS nodes and add supplies and bindings for the Samsung S6E8FCO panel.

The ldo and iovcc pins boot up with a current of 16 mA, but they work fine with 2mA, so I used that.

---
 .../boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts  | 94 ++++++++++++++++++++++
 1 file changed, 94 insertions(+)
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +0 -0
index 994fb0412fcbdf5466f87a325c48b697a37b514b..10fd01143a644004b807fc455d2235f8e6a9737a 100644
@@ -82,6 +82,32 @@ key-volume-up {
              };
      };
 
Quoted 3 lines

arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts key-volume-up { · line 85

Quoted 1 line
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +1 -0
+     panel_ldo_supply: panel-ldo-supply {

regulator-foo-bar-baz

Will change

Quoted 5 lines

arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts key-volume-up { · line 87

Quoted 3 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +2 -0
+             compatible = "regulator-fixed";
+             regulator-name = "panel_ldo_supply";

Is it an actual name (e.g. from schematics)?

In the downstream dts it's called "panel_ldo-gpio-supply". [0]

[0] https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/d3766fc8cda2d96de2850faa9ce58e5a37ea9f9c/arch/arm64/boot/dts/qcom/trinket-sde-display.dtsi#L28

Quoted 62 lines
Quoted 62 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +55 -0
+             regulator-min-microvolt = <1800000>;
+             regulator-max-microvolt = <1800000>;
+             regulator-boot-on;
+
+             enable-active-high;
+             gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>;
+             pinctrl-0 = <&panel_ldo_en>;
+             pinctrl-names = "default";
+     };
+
+     panel_iovcc_supply: panel-iovcc-supply {
+             compatible = "regulator-fixed";
+             regulator-name = "panel_iovcc_supply";
+             regulator-min-microvolt = <1800000>;
+             regulator-max-microvolt = <1800000>;
+             regulator-boot-on;
+
+             enable-active-high;
+             gpio = <&tlmm 124 GPIO_ACTIVE_HIGH>;
+             pinctrl-0 = <&panel_iovcc_en>;
+             pinctrl-names = "default";
+     };
+
      thermal-zones {
              rf-pa0-thermal {
                      thermal-sensors = <&pm6125_adc_tm 0>;
@@ -128,6 +154,46 @@ &hsusb_phy1 {
      status = "okay";
 };
 
+&mdss {
+     status = "okay";
+};
+
+&mdss_dsi0 {
+     vdda-supply = <&vreg_l18a>;
+
+     pinctrl-0 = <&mdss_default>;
+     pinctrl-1 = <&mdss_sleep>;
+     pinctrl-names = "default", "sleep";
+
+     status = "okay";
+
+     panel@0 {
+             compatible = "samsung,s6e8fco";
+             reg = <0>;
+
+             vddio-supply = <&vreg_l9a>;
+             ldo-supply = <&panel_ldo_supply>;
+             iovcc-supply = <&panel_iovcc_supply>;
+             reset-gpios = <&tlmm 90 GPIO_ACTIVE_LOW>;
+
+             port {
+                     panel_in: endpoint {
+                             remote-endpoint = <&mdss_dsi0_out>;
+                     };
+             };
+     };
+};
+
+&mdss_dsi0_out {
+     data-lanes = <0 1 2 3>;
Quoted 8 lines

arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts &hsusb_phy1 { · line 194

Quoted 6 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +6 -0
+     remote-endpoint = <&panel_in>;
+};
+
+
+&mdss_dsi0_phy {
+     status = "okay";

Missing vdds-supply.

Will add

Quoted 48 lines
Quoted 42 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +30 -1
+};
+
 &pm6125_adc {
      pinctrl-names = "default";
      pinctrl-0 = <&camera_flash_therm &emmc_ufs_therm>;
@@ -387,6 +453,34 @@ &sdhc_2 {
 
 &tlmm {
      gpio-reserved-ranges = <22 2>, <28 6>;
+
+     panel_ldo_en: panel-ldo-default-state {
+             pins = "gpio26";
+             function = "gpio";
+             drive-strength = <2>;
+             bias-pull-up;
+     };
+
+     mdss_default: mdss-default-state {
+             pins = "gpio90";
+             function = "gpio";
+             drive-strength = <8>;
+             bias-disable;
+     };
+
+     mdss_sleep: mdss-sleep-state {
+             pins = "gpio90";
+             function = "gpio";
+             drive-strength = <2>;
+             bias-pull-down;
+     };
+
+     panel_iovcc_en: panel-iovcc-default-state {
+             pins = "gpio124";
+             function = "gpio";
+             drive-strength = <2>;
+             bias-pull-up;
+     };
 };
 
 &ufs_mem_hc {
 
--
Quoted 2 lines

2.53.0

--
With best wishes
Dmitry

#8 lore raw

Re: [PATCH 3/3] arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel

In reply to Dmitry Baryshkov

On Tue, 24 Feb 2026 at 04:46, Dmitry Baryshkov
<[email protected]> wrote:
<snip>

Quoted 29 lines
Quoted 29 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +29 -0
+
+&mdss_dsi0 {
+     vdda-supply = <&vreg_l18a>;
+
+     pinctrl-0 = <&mdss_default>;
+     pinctrl-1 = <&mdss_sleep>;
+     pinctrl-names = "default", "sleep";
+
+     status = "okay";
+
+     panel@0 {
+             compatible = "samsung,s6e8fco";
+             reg = <0>;
+
+             vddio-supply = <&vreg_l9a>;
+             ldo-supply = <&panel_ldo_supply>;
+             iovcc-supply = <&panel_iovcc_supply>;
+             reset-gpios = <&tlmm 90 GPIO_ACTIVE_LOW>;
+
+             port {
+                     panel_in: endpoint {
+                             remote-endpoint = <&mdss_dsi0_out>;
+                     };
+             };
+     };
+};
+
+&mdss_dsi0_out {
+     data-lanes = <0 1 2 3>;
Quoted 9 lines

arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts &hsusb_phy1 { · line 194

Quoted 6 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +6 -0
+     remote-endpoint = <&panel_in>;
+};
+
+
+&mdss_dsi0_phy {
+     status = "okay";

Missing vdds-supply.

Can you expand on that? The dsi-phy-14nm schema doesn't have the vdds-supply property. Do you think it needs it?
<snip>

Quoted 3 lines

--
With best wishes
Dmitry

#9 lore raw

Re: [PATCH 3/3] arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel

Quoted 6 lines · Yedaya Katsman

On Tue, 24 Feb 2026 at 04:46, Dmitry Baryshkov
<[email protected]> wrote:
<snip>

Quoted 1 line
Quoted 1 line

+

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

+&mdss_dsi0_phy {
+ status = "okay";

Missing vdds-supply.

Can you expand on that? The dsi-phy-14nm schema doesn't have the vdds-supply property. Do you think it needs it?

14nm PHYs have vcca-supply. Anyway, the PHY needs to be supplied by something.

Signature · 2 lines
With best wishes
Dmitry
#10 lore raw

Re: [PATCH 3/3] arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel

Quoted 11 lines · Dmitry Baryshkov
Quoted 9 lines · Yedaya Katsman

On Tue, 24 Feb 2026 at 04:46, Dmitry Baryshkov
<[email protected]> wrote:
<snip>

Quoted 5 lines
Quoted 4 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +3 -0
+
 
+&mdss_dsi0_phy {
+     status = "okay";
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Missing vdds-supply.

Can you expand on that? The dsi-phy-14nm schema doesn't have the vdds-supply property. Do you think it needs it?

14nm PHYs have vcca-supply. Anyway, the PHY needs to be supplied by something.

vcca is VDDMX, the power-domain is set in s6125.dtsi

Quoted 3 lines

--
With best wishes
Dmitry

Regards, Yedaya

#11 lore raw

Re: [PATCH 3/3] arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel

Quoted 13 lines · Yedaya Katsman
Quoted 11 lines · Dmitry Baryshkov
Quoted 9 lines · Yedaya Katsman

On Tue, 24 Feb 2026 at 04:46, Dmitry Baryshkov
<[email protected]> wrote:
<snip>

Quoted 5 lines
Quoted 4 lines
arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +3 -0
+
 
+&mdss_dsi0_phy {
+     status = "okay";
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Missing vdds-supply.

Can you expand on that? The dsi-phy-14nm schema doesn't have the vdds-supply property. Do you think it needs it?

14nm PHYs have vcca-supply. Anyway, the PHY needs to be supplied by something.

vcca is VDDMX, the power-domain is set in s6125.dtsi

ACk, please mention it in the commit message.

Quoted 5 lines
Quoted 3 lines

--
With best wishes
Dmitry

Regards, Yedaya

Signature · 2 lines
With best wishes
Dmitry