From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7300839B4A6 for ; Fri, 5 Jun 2026 18:27:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.22 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780684066; cv=none; b=ItsPXzi8cAG/9t58JqhqWJmIjtqlHRMN0Z0SwSjd93SbzQy7xLjJP20ML7cwGL3jV+A8/A0dRnOLSQYS+wtHtcUPK0UijxuM4a+N/TzKw5hgbUaSGcI/H/T1qHV0bEFe2CVn+mvRn6rkz14eb+zbDJDPbtW7Rg9EId14RBVp6ho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780684066; c=relaxed/simple; bh=rmAO0HOIzPhBKIGhj4NKbpMr1PCmSs1FWOB4wtX6QPc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gdybjbz1jzamOaf4PP8Ud59JjLWOwhriWM56I5uXpy9rLTjI3Lx62mFSi6X6m7CJmGSKU6qp5b7TgfzUls9W0U/JQpsbRdNIO9DxB2fIjIgDGwGKliNsYL9Xx2LGWAZxWqhuffNmxJAdND54TfgD/yx4xP6NfsYOUTEu3t/XqfI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me; spf=pass smtp.mailfrom=pm.me; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b=AdOQBp2h; arc=none smtp.client-ip=185.70.43.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pm.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="AdOQBp2h" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1780684062; x=1780943262; bh=02Bgr1XWRCtQkzqmsWQlqE8VsMOzRGy8hGLaI8ruSDY=; 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=AdOQBp2hAmaKc+dpHVJHlq/w8r5G7skp2/XkVd9Top0I4Pn1h1v5gP1R2MaRCCHbn qWVHYnJ0PDhdyPOF8AyupA3+s/dMyBE9ZjjOzkrrWenXIAdNumTOyMZM29mGWCwn4t vtiFXDcHVZxd7yLAe16WqWIOz5MsucYI9Jw6qkXo7r3WyBzR+ikKXA+bxt0vk16B8Y vzKZEi79BC5YxQYJAdDIebgS5w9roa5BscDMUatLLlf1nZEHuNVTPhn69JlO4IBHZx svbuoB/kV7GrTb7ckmUU3J3JFiW5BMp8gyq7ePRchSHg74awtLv+b3nhuCfgFS1/a8 U7zS+8EfZS+jQ== Date: Fri, 05 Jun 2026 18:27:36 +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 v2 2/2] drm/panel: Add driver for Raydium RM69220 DDIC Message-ID: <20260605-asteroids-panel-support-v2-2-44b96c6eca91@pm.me> In-Reply-To: <20260605-asteroids-panel-support-v2-0-44b96c6eca91@pm.me> References: <20260605-asteroids-panel-support-v2-0-44b96c6eca91@pm.me> Feedback-ID: 37836894:user:proton X-Pm-Message-ID: 4e352a6ef76ea85e964af41d2d71a603698d429d Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 | 435 ++++++++++++++++++++++= ++++ 4 files changed, 452 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ca2417d9d238..367f8a42e485 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8358,6 +8358,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 7450b27622a2..142c91202b8f 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -769,6 +769,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 c2c5cf817116..4c23ac013f12 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -76,6 +76,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..9f5dd51b4d5e --- /dev/null +++ b/drivers/gpu/drm/panel/panel-raydium-rm69220.c @@ -0,0 +1,435 @@ +// 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