[PATCH 0/5] drm/rockchip: Add RK3126/RK3128 LVDS support
From: Molnár Máté via B4 Relay
Date: Sat Dec 05 2026 - 22:08:52 EST
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@xxxxxxxxx>