Add support for the Samsung S6E8FCO DSI and M1906F9 display panel
Subsystems (6)
v4 cover Add support for the Samsung S6E8FCO DSI and M1906F9 display panel
This adds a driver to support the Samsung S6E8FCO DSI controller with the M1906F9 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
---
Changes in v4:
- Use exisiting binding instead of creating a new one
- Mention dsi phy power source in commit message
- Mention only DSI controller, not panel where it makes sense
- Remove VIDEOMODE_HELPERS selection
- Collect trailers
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Make driver, bindings, compatible specific to M1906F9 panel
- Adjust brightness scale and default
- de-mystify some dsi writes
- move pinctrl for mdss into panel node
- Rename regulator nodes and names according to schematic
- Treat vreg_l9a as input to vddi regulator
- Add myself to copyright header, remove years
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Changed commit title like Dmitry asked
- Fixed copyright header years
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Yedaya Katsman (3):
dt-bindings: display: panel: Add Samsung S6E8FCO-M1906F9
drm: panel: Add Samsung S6E8FCO DSI controller for M1906F9 panel
arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel
.../panel/samsung,s6e8aa5x01-ams561ra01.yaml | 5 +- MAINTAINERS | 5 + .../boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts | 94 +++++++ drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-samsung-s6e8fco-m1906f9.c | 301 +++++++++++++++++++++ 6 files changed, 418 insertions(+), 1 deletion(-)
---
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]>
PATCH v4 1/3 dt-bindings: display: panel: Add Samsung S6E8FCO-M1906F9
Add Samsung S6E8FCO DTS binding used with the M1906F9 6.09" 720x1560 panel found in the Xiaomi Mi A3 smartphone.
--- .../bindings/display/panel/samsung,s6e8aa5x01-ams561ra01.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/display/panel/samsung,s6e8aa5x01-ams561ra01.yaml +4 -1
@@ -8,13 +8,16 @@ title: Samsung AMS561RA01 panel with S6E8AA5X01 controller maintainers: - Kaustabh Chakraborty <[email protected]> + - Yedaya Katsman <[email protected]> allOf: - $ref: panel-common.yaml# properties: compatible: - const: samsung,s6e8aa5x01-ams561ra01 + enum: + - samsung,s6e8aa5x01-ams561ra01 + - samsung,s6e8fco-m1906f9 reg: maxItems: 1
Signature · 1 line
2.53.0
Re: [PATCH v4 1/3] dt-bindings: display: panel: Add Samsung S6E8FCO-M1906F9
Quoted 9 lines · Yedaya Katsman
Add Samsung S6E8FCO DTS binding used with the M1906F9 6.09" 720x1560 panel found in the Xiaomi Mi A3 smartphone.
Co-developed-by Kamil Gołda <[email protected]>Signed-off-by Kamil Gołda <[email protected]>Signed-off-by Yedaya Katsman <[email protected]>--- .../bindings/display/panel/samsung,s6e8aa5x01-ams561ra01.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Best regards,
Krzysztof
PATCH v4 2/3 drm: panel: Add Samsung S6E8FCO DSI controller for M1906F9 panel
In reply to Yedaya KatsmanAdd driver for Samsung S6E8FCO DSI controller for M1906F9 video mode panel, found in Xiaomi Mi A3 mobile phone.
---
The downstream dts claims a max brightness of 2047, but seems to ignore the MSB.
--- MAINTAINERS | 5 + drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-samsung-s6e8fco-m1906f9.c | 301 +++++++++++++++++++++ 4 files changed, 320 insertions(+)
MAINTAINERS +5 -0
@@ -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: drivers/gpu/drm/panel/panel-samsung-s6e8fco-m1906f9.c + DRM DRIVER FOR SAMSUNG SOFEF00 DDIC M: David Heidelberg <[email protected]> M: Casey Connolly <[email protected]>
drivers/gpu/drm/panel/Kconfig +13 -0
@@ -893,6 +893,19 @@ 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 controller" + depends on OF + depends on BACKLIGHT_CLASS_DEVICE + select DRM_MIPI_DSI + help + Say Y or M here if you want to enable support for the Samsung + S6E8FCO DSI controller and connected panel. + Currently supported panels: + + M1906F9 (M1906F9SH or M1906F9SI), 6.09 inch 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
@@ -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-m1906f9.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-m1906f9.c new file +301 -0
301 lines not on this page · raw message
Signature · 1 line
2.53.0
Re: [PATCH v4 2/3] drm: panel: Add Samsung S6E8FCO DSI controller for M1906F9 panel
Quoted 9 lines · Yedaya Katsman
Add driver for Samsung S6E8FCO DSI controller for M1906F9 video mode panel, found in Xiaomi Mi A3 mobile phone.
Co-developed-by Kamil Gołda <[email protected]>Signed-off-by Kamil Gołda <[email protected]>Signed-off-by Yedaya Katsman <[email protected]>---
Quoted 9 lines
The downstream dts claims a max brightness of 2047, but seems to ignore the MSB.
--- MAINTAINERS | 5 + drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-samsung-s6e8fco-m1906f9.c | 301 +++++++++++++++++++++ 4 files changed, 320 insertions(+)
Signature · 2 lines
With best wishes Dmitry
PATCH v4 3/3 arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel
In reply to Yedaya KatsmanEnable the MDSS nodes and add supplies and bindings for the Samsung S6E8FCO DSI controller for the M1906F9 panel.
The ldo and iovcc gpio pins boot up with a current of 16 mA, but they work fine with 2mA, so I used that.
mdss_dsi0_phy is powered by VDD_MX, see power-domains in sm6125.dtsi
--- .../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
@@ -82,6 +82,33 @@ key-volume-up { }; }; + panel_vdd_1p8: regulator-panel-vdd { + compatible = "regulator-fixed"; + regulator-name = "panel_vdd_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + vin-supply = <&vreg_l9a>; + + enable-active-high; + gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&panel_vdd_1p8_en>; + pinctrl-names = "default"; + }; + + panel_vci_3p0: regulator-panel-vci { + compatible = "regulator-fixed"; + regulator-name = "panel_vci_3p0"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + + enable-active-high; + gpio = <&tlmm 124 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&panel_vci_3p0_en>; + pinctrl-names = "default"; + }; + thermal-zones { rf-pa0-thermal { thermal-sensors = <&pm6125_adc_tm 0>;
@@ -128,6 +155,45 @@ &hsusb_phy1 { status = "okay"; }; +&mdss { + status = "okay"; +}; + +&mdss_dsi0 { + vdda-supply = <&vreg_l18a>; + status = "okay"; + + panel@0 { + compatible = "samsung,s6e8fco-m1906f9"; + reg = <0>; + + reset-gpios = <&tlmm 90 GPIO_ACTIVE_LOW>; + + pinctrl-0 = <&mdss_default>; + pinctrl-1 = <&mdss_sleep>; + pinctrl-names = "default", "sleep"; + + vdd-supply = <&panel_vdd_1p8>; + vci-supply = <&panel_vci_3p0>; + + 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_vdd_1p8_en: panel-vdd-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_vci_3p0_en: panel-vci-default-state { + pins = "gpio124"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; }; &ufs_mem_hc {
Signature · 1 line
2.53.0
Re: (subset) [PATCH v4 0/3] Add support for the Samsung S6E8FCO DSI and M1906F9 display panel
In reply to Yedaya KatsmanQuoted 10 lines · Yedaya Katsman
This adds a driver to support the Samsung S6E8FCO DSI controller with the M1906F9 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[...]
Applied, thanks!
[3/3] arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel
commit: 493cb869874cd301c370adf9a3f9577942c4f0f1
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>
Re: (subset) [PATCH v4 0/3] Add support for the Samsung S6E8FCO DSI and M1906F9 display panel
Quoted 12 lines · Bjorn Andersson
Quoted 9 lines · Yedaya Katsman
This adds a driver to support the Samsung S6E8FCO DSI controller with the M1906F9 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
Quoted 6 lines
Quoted 1 line
[...]
Applied, thanks!
[3/3] arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel
commit: 493cb869874cd301c370adf9a3f9577942c4f0f1
Thanks for applying, but notice that this is an old version, the last version is v7:
https://lore.kernel.org/all/[email protected]/
The compatible string was fixed in v5, and other patches in the series were applied with the new version.
The difference is in the compatible, 's6e8fc0' with a zero instead of an O.
Quoted 3 lines
Best regards,
--
Bjorn Andersson <[email protected]>
Re: (subset) [PATCH v4 0/3] Add support for the Samsung S6E8FCO DSI and M1906F9 display panel
Hello Bjorn, just a reminder about this, I don't want the wrong compatible getting into a release
Quoted 32 lines · Yedaya Katsman
Quoted 12 lines · Bjorn Andersson
Quoted 9 lines · Yedaya Katsman
This adds a driver to support the Samsung S6E8FCO DSI controller with the M1906F9 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/laurelQuoted 6 lines
Quoted 1 line
[...]
Applied, thanks!
[3/3] arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel
commit: 493cb869874cd301c370adf9a3f9577942c4f0f1Thanks for applying, but notice that this is an old version, the last version is v7:
https://lore.kernel.org/all/[email protected]/
The compatible string was fixed in v5, and other patches in the series were applied with the new version.The difference is in the compatible, 's6e8fc0' with a zero instead of an O.
Quoted 3 lines
Best regards,
--
Bjorn Andersson <[email protected]>