All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] drm/rockchip: Add RK3126/RK3128 LVDS support
@ 2026-12-06  3:08 ` Molnár Máté via B4 Relay
  0 siblings, 0 replies; 19+ messages in thread
From: Molnár Máté via B4 Relay @ 2026-12-06  3:08 UTC (permalink / raw)
  To: Sandy Huang, Heiko Stübner, Andy Yan, Chaoyi Chen,
	Damon Ding, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Simona Vetter, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: dri-devel, linux-rockchip, linux-arm-kernel, devicetree,
	Albert Esteve, Neil Armstrong, linux-kernel, stable,
	Molnár Máté

This adds LVDS output for the RK3126/RK3128. The LVDS serializer on
these SoCs is part of the shared MIPI/LVDS Inno D-PHY, which is already
supported for DSI, and the remaining setup is a few GRF bits, so the
encoder side is close to the PX30 one.

Patch 1 is a fix for the existing driver and is independent of the
rest: since the panel reference handling changed, rockchip_lvds keeps
overriding the panel bridge funcs while lvds->panel is NULL, so no one
powers the panel up any more. This affects the RK3288 and PX30 panels
too, hence the stable tag.

Patch 3 matters on its own as well: the RK3126 VOP has separate LVDS
output enable and dclk polarity bits, and driving LVDS through the RGB
bits leaves the LVDS dclk non-inverted. The panel then samples on the
wrong edge, which shows up as stray dark pixels at 0x7f/0x80
transitions.

Tested on next-20261201 on a Denver TAQ-10162 tablet (RK3126, 1024x600
LVDS panel, panel-lvds) with Phosh on top: without patch 1 the panel
supply is switched off as unused and the screen stays dark, with it the
picture is clean. The board DTS will follow in a separate series once
the remaining pieces (AXP192 bits, touchscreen) are ready.

I used an AI coding assistant (Claude) to find the panel bridge bug,
draft the patches and commit messages, and run the hardware tests; I
have reviewed and tested every patch myself.

---
Molnár Máté (5):
      drm/rockchip: lvds: Do not override the panel bridge funcs
      dt-bindings: display: rockchip,lvds: Add RK3128 LVDS
      drm/rockchip: vop: Use the RK3126 LVDS output bits for LVDS
      drm/rockchip: lvds: Add RK3128 support
      ARM: dts: rockchip: rk3128: Add LVDS node

 .../bindings/display/rockchip/rockchip,lvds.yaml   |  5 +-
 arch/arm/boot/dts/rockchip/rk3128.dtsi             | 31 +++++++
 drivers/gpu/drm/rockchip/rockchip_drm_vop.c        |  6 ++
 drivers/gpu/drm/rockchip/rockchip_drm_vop.h        |  2 +
 drivers/gpu/drm/rockchip/rockchip_lvds.c           | 99 ++++++++++++++--------
 drivers/gpu/drm/rockchip/rockchip_lvds.h           |  6 ++
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c        |  2 +
 7 files changed, 114 insertions(+), 37 deletions(-)
---
base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c
change-id: 20261206-rk3128-lvds-387596fa8510

Best regards,
--  
Molnár Máté <matemolnar88@gmail.com>



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

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

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-06  3:08 [PATCH 0/5] drm/rockchip: Add RK3126/RK3128 LVDS support Molnár Máté via B4 Relay
2026-12-06  3:08 ` Molnár Máté
2026-12-06  3:08 ` Molnár Máté via B4 Relay
2026-12-06  3:08 ` [PATCH 1/5] drm/rockchip: lvds: Do not override the panel bridge funcs Molnár Máté via B4 Relay
2026-12-06  3:08   ` Molnár Máté
2026-12-06  3:08   ` Molnár Máté via B4 Relay
2026-12-06  3:08 ` [PATCH 2/5] dt-bindings: display: rockchip,lvds: Add RK3128 LVDS Molnár Máté via B4 Relay
2026-12-06  3:08   ` Molnár Máté
2026-12-06  3:08   ` Molnár Máté via B4 Relay
2026-12-06  3:08 ` [PATCH 3/5] drm/rockchip: vop: Use the RK3126 LVDS output bits for LVDS Molnár Máté via B4 Relay
2026-12-06  3:08   ` Molnár Máté
2026-12-06  3:08   ` Molnár Máté via B4 Relay
2026-12-06  3:08 ` [PATCH 4/5] drm/rockchip: lvds: Add RK3128 support Molnár Máté via B4 Relay
2026-12-06  3:08   ` Molnár Máté
2026-12-06  3:08   ` Molnár Máté via B4 Relay
2026-12-06  3:26   ` sashiko-bot
2026-12-06  3:08 ` [PATCH 5/5] ARM: dts: rockchip: rk3128: Add LVDS node Molnár Máté via B4 Relay
2026-12-06  3:08   ` Molnár Máté
2026-12-06  3:08   ` Molnár Máté via B4 Relay

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.