Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6342C43458 for ; Sat, 4 Jul 2026 08:24:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3B8BB10E67B; Sat, 4 Jul 2026 08:24:29 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; secure) header.d=pm.me header.i=@pm.me header.b="f9Ol8rJO"; dkim-atps=neutral Received: from mail-10631.protonmail.ch (mail-10631.protonmail.ch [79.135.106.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7C63910E69B for ; Sat, 4 Jul 2026 08:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1783153465; x=1783412665; bh=FE56xZC+oidqRx6Q0b0Qrj61IlYg68jQ4tpKfHW0AIE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=f9Ol8rJO+/+On/0LIkQYJOzfLnHFMJYKBEsW5pqe+b+yMS9ku7w+/uQlTkvX/4VsP 0PoQ/DC7jaPXnfZWj2E9haP9TyXCj6R1Vy1Qh7ehi5cxTa/RzaUj8qEn2qDIBgC2A8 w9H4zfP0wWwURCqdqtmGAr6P0TwA0bgqGM8t22iyhlO6Ui5S1qIT1W6PIscLQQp7sR vlE7z3aV6y+CtpfUuCNofVVC4v4uPYPAu7CvoLgyTZXPOR7fDzIvhCmLt8bDodcFRr JjKTs1exXoXd8xIarU9xdVAyN9/RMUHttVnUULIsyQnrDMLWfk+xrjjzEKTv+0JUwR Sgew7ZpZyjHAA== Date: Sat, 04 Jul 2026 08:24:19 +0000 To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley From: Alexander Koskovich Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Koskovich Subject: [PATCH v3 2/2] drm/panel: Add driver for Raydium RM69220 DDIC Message-ID: <20260704-asteroids-panel-support-v3-2-38dc92570579@pm.me> In-Reply-To: <20260704-asteroids-panel-support-v3-0-38dc92570579@pm.me> References: <20260704-asteroids-panel-support-v3-0-38dc92570579@pm.me> Feedback-ID: 37836894:user:proton X-Pm-Message-ID: 29ef8378ecccf889140b7382c203cb2e8a1c0610 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add a panel driver for Raydium RM69220 DDIC based displays such as the BOE BF068MWM-TD0 found in the Nothing Phone (3a). Signed-off-by: Alexander Koskovich --- MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 15 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm69220.c | 417 ++++++++++++++++++++++= ++++ 4 files changed, 434 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index eb70658e081e..dd68e2eb35a9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8378,6 +8378,7 @@ DRM DRIVER FOR RAYDIUM RM69220 PANELS M:=09Alexander Koskovich S:=09Maintained F:=09Documentation/devicetree/bindings/display/panel/raydium,rm69220.yaml +F:=09drivers/gpu/drm/panel/panel-raydium-rm69220.c =20 DRM DRIVER FOR SAMSUNG DB7430 PANELS M:=09Linus Walleij diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index c0cc2bb4a3eb..4bc67c508fa6 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -799,6 +799,21 @@ config DRM_PANEL_RAYDIUM_RM692E5 =09 Say Y here if you want to enable support for Raydium RM692E5-based =09 display panels, such as the one found in the Fairphone 5 smartphone. =20 +config DRM_PANEL_RAYDIUM_RM69220 +=09tristate "Raydium RM69220-based DSI panel" +=09depends on OF +=09depends on DRM_MIPI_DSI +=09depends on BACKLIGHT_CLASS_DEVICE +=09select DRM_DISPLAY_DSC_HELPER +=09select DRM_DISPLAY_HELPER +=09help +=09 Say Y here if you want to enable support for Raydium RM69220-based +=09 display panels, such as the BOE BF068MWM-TD0 which can be found in +=09 the Nothing Phone (3a). + +=09 To compile this driver as a module, choose M here: the module +=09 will be called panel-raydium-rm69220. + config DRM_PANEL_RAYDIUM_RM69380 =09tristate "Raydium RM69380-based DSI panel" =09depends on GPIOLIB diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefil= e index 6926ef28ab8d..93774d9bb5e4 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -79,6 +79,7 @@ obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67191) +=3D panel-raydiu= m-rm67191.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67200) +=3D panel-raydium-rm67200.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) +=3D panel-raydium-rm68200.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM692E5) +=3D panel-raydium-rm692e5.o +obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69220) +=3D panel-raydium-rm69220.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69380) +=3D panel-raydium-rm69380.o obj-$(CONFIG_DRM_PANEL_RENESAS_R61307) +=3D panel-renesas-r61307.o obj-$(CONFIG_DRM_PANEL_RENESAS_R69328) +=3D panel-renesas-r69328.o diff --git a/drivers/gpu/drm/panel/panel-raydium-rm69220.c b/drivers/gpu/dr= m/panel/panel-raydium-rm69220.c new file mode 100644 index 000000000000..4fa3036c4b5f --- /dev/null +++ b/drivers/gpu/drm/panel/panel-raydium-rm69220.c @@ -0,0 +1,417 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Generated with linux-mdss-dsi-panel-driver-generator from vendor device= tree. + * Copyright (c) 2026 Alexander Koskovich + */ + +#include +#include +#include +#include +#include +#include + +#include