]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/panel: visionox-rm69299: Fix clock frequency for SHIFT6mq
authorGuido Günther <agx@sigxcpu.org>
Wed, 10 Sep 2025 16:39:56 +0000 (18:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:26 +0000 (14:02 +0100)
[ Upstream commit d298062312724606855294503acebc7ee55ffbca ]

Make the clock frequency match what the sdm845 downstream kernel
uses. Otherwise the panel stays black.

Fixes: 783334f366b18 ("drm/panel: visionox-rm69299: support the variant found in the SHIFT6mq")
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250910-shift6mq-panel-v3-1-a7729911afb9@sigxcpu.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/panel/panel-visionox-rm69299.c

index 909c280eab1fb408a713d84051a1afbb252c45e8..5491d601681cff52eca1d72ad4489731d2276c30 100644 (file)
@@ -247,7 +247,7 @@ static const struct drm_display_mode visionox_rm69299_1080x2248_60hz = {
 };
 
 static const struct drm_display_mode visionox_rm69299_1080x2160_60hz = {
-       .clock = 158695,
+       .clock = (2160 + 8 + 4 + 4) * (1080 + 26 + 2 + 36) * 60 / 1000,
        .hdisplay = 1080,
        .hsync_start = 1080 + 26,
        .hsync_end = 1080 + 26 + 2,