All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] drm/panel: Add Novatek NT36525 (Samsung Galaxy XCover5)
@ 2026-12-05  3:20 Adil Hüsrev Tepe
  2026-12-05  3:20 ` [PATCH v5 1/2] dt-bindings: display: panel: novatek,nt36672a: Add NT36525 CSOT panel Adil Hüsrev Tepe
  2026-12-05  3:20 ` [PATCH v5 2/2] drm/panel: Add Novatek NT36525 panel driver Adil Hüsrev Tepe
  0 siblings, 2 replies; 5+ messages in thread
From: Adil Hüsrev Tepe @ 2026-12-05  3:20 UTC (permalink / raw)
  To: Sumit Semwal, Neil Armstrong, Jessica Zhang, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Krzysztof Kozlowski, Uwe Kleine-König, Michael McAllister,
	phone-devel, dri-devel, devicetree, linux-kernel,
	Adil Hüsrev Tepe

Add a driver for DSI panels built around the Novatek NT36525 display
controller, and describe the first such panel in the bindings: the
720x1480 video mode panel of the Samsung Galaxy XCover5 (SM-G525F,
Exynos850), made by CSOT. The board DTS of this phone is not in mainline
yet.

Three points need a maintainer's decision. I will rename or move
whatever you prefer:

- Compatible "samsung,xcover5-csot-nt36525" with the fallback
  "novatek,nt36525". I do not know the CSOT part number: Samsung's kernel
  only has the vendor "CSO" and the model "CSO_5_31_inch". I read "CSO"
  as CSOT.
  The module label was not read (that needs disassembly of the phone),
  and no part number is available from Samsung's kernel (only "CSO" /
  "CSO_5_31_inch"), the vendor firmware, or market listings, so the
  compatible keeps samsung,xcover5-csot-nt36525.
  The name follows xiaomi,elish-csot-nt36523 in novatek,nt36523.yaml.
- The panel is added to novatek,nt36672a.yaml and not to
  novatek,nt36536.yaml, which I named in my reply to the v4 review.
  nt36536.yaml uses panel-common-dual.yaml, which requires port or ports.
  nt36672a.yaml is single link and has the same three supplies.
- port is not required for this panel: it has no OF graph connection, it
  is only a child node of the DSI host. I read "Drop port" as "do not
  require it"; the property is still allowed through panel-common.yaml.
  port stays required for the existing NT36672A panel so that its schema
  does not change. If you meant to drop the requirement for both panels,
  I will remove the if.

Michael, the driver is now built around per-panel data, so the Moto G10
DJN NT36525B panel can be a second entry. DCS backlight and your reset
timing are left to your patch because I cannot test them here.

v5 is sent with b4 as a new thread, as asked.

Tested on one Samsung Galaxy XCover5 (SM-G525F, Exynos850) with this exact
code: the driver probes and the DSI panel is brought up. The vddio, vddpos
and vddneg supplies resolve to the board's regulators (1.8 V, and the
+/-5.9 V LCD bias) with no dummy-regulator fallback and are enabled on
power-on, the DSI connector reports connected, a backlight device
registers, and the display pipeline enables and scans out without error.
The Moto G10 NT36525B path is untested (no hardware).

An AI coding assistant (Claude Code) helped convert the vendor init
sequence and draft these patches.
I reviewed and tested them on the device.

Changes in v5:
- binding: no new file, the panel is added to novatek,nt36672a.yaml
- binding: compatible renamed to samsung,xcover5-csot-nt36525
- binding: supplies are vddio, vddpos, vddneg; port is not required
- driver: per-panel data selected by the compatible
- driver: devm_drm_panel_add() and devm_mipi_dsi_attach(), no remove()
- driver: include <linux/of.h>, drop <video/mipi_display.h>
- driver: generic Kconfig text and comments, MAINTAINERS entry
- shorter commit messages
- Link to v4: https://patch.msgid.link/20261120114100.978148-1-tadilhusrev@gmail.com

---
Adil Hüsrev Tepe (2):
      dt-bindings: display: panel: novatek,nt36672a: Add NT36525 CSOT panel
      drm/panel: Add Novatek NT36525 panel driver

 .../bindings/display/panel/novatek,nt36672a.yaml   |  70 ++-
 MAINTAINERS                                        |   7 +
 drivers/gpu/drm/panel/Kconfig                      |  13 +
 drivers/gpu/drm/panel/Makefile                     |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36525.c      | 513 +++++++++++++++++++++
 5 files changed, 586 insertions(+), 18 deletions(-)
---
base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
change-id: 20261129-nt36525-44137b7180ab

Best regards,
--  
Adil Hüsrev Tepe <tadilhusrev@gmail.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-05  3:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05  3:20 [PATCH v5 0/2] drm/panel: Add Novatek NT36525 (Samsung Galaxy XCover5) Adil Hüsrev Tepe
2026-12-05  3:20 ` [PATCH v5 1/2] dt-bindings: display: panel: novatek,nt36672a: Add NT36525 CSOT panel Adil Hüsrev Tepe
2026-12-05  3:32   ` sashiko-bot
2026-12-05  3:20 ` [PATCH v5 2/2] drm/panel: Add Novatek NT36525 panel driver Adil Hüsrev Tepe
2026-12-05  3:33   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.