From mboxrd@z Thu Jan 1 00:00:00 1970 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 E821FCD6E55 for ; Wed, 3 Jun 2026 13:03:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4BC4B10FDB1; Wed, 3 Jun 2026 13:03:35 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; secure) header.d=pm.me header.i=@pm.me header.b="ruL4BZgN"; dkim-atps=neutral Received: from mail-106118.protonmail.ch (mail-106118.protonmail.ch [79.135.106.118]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3F19710FDAE for ; Wed, 3 Jun 2026 13:03:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1780491809; x=1780751009; bh=MZ8Z/A4WZ/tX++iZJVysuny8VUtR9ZvD02LVT4P3Kss=; 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=ruL4BZgN3a4gxocJdM0PlV0jp+VXtY/oArRIhingD+63q6NJPbWjubJMx10XGAs/V iXKvhoEdqHgO4uWYZ9hraRTofOZVR8/8EbXGgL2WfUrU67UfqcT3ki3A4mYwh9rXnt WZsjFBVojd+9WHFyTCrT4vSFaGxUiNW+CHCUAfX19IzXBRtyg5ueUrzeH0DKLrBcPM E7YMIWulbwm74BlNeK7s8g0ABa8w5ersUSssfN+KfJ4rvU2G3f66Ob9IhgeX3X0wp8 BpfxTch+b5OXhNExIW1cqZhZOnLo0K+qbVlewNR2GIbhbZ/RQTpTuEe6Kr08OVQn89 g9VXIGohB8l5Q== Date: Wed, 03 Jun 2026 13:03:22 +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 2/2] drm/panel: Add BOE BF068MWM-TD0 panel driver Message-ID: <20260603-asteroids-panel-support-v1-2-109c6ac81c8f@pm.me> In-Reply-To: <20260603-asteroids-panel-support-v1-0-109c6ac81c8f@pm.me> References: <20260603-asteroids-panel-support-v1-0-109c6ac81c8f@pm.me> Feedback-ID: 37836894:user:proton X-Pm-Message-ID: b81d5fb2c37f600947fca1456371c1ed0e1959b0 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 the panel driver for BOE BF068MWM-TD0 support found in the Nothing Phone (3a). Signed-off-by: Alexander Koskovich --- MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-boe-bf068mwm-td0.c | 432 +++++++++++++++++++++= ++++ 4 files changed, 445 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 63d0224bba3b..d7175e630d77 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8004,6 +8004,7 @@ DRM DRIVER FOR BOE BF068MWM-TD0 PANELS M:=09Alexander Koskovich S:=09Maintained F:=09Documentation/devicetree/bindings/display/panel/boe,bf068mwm-td0.yaml +F:=09drivers/gpu/drm/panel/panel-boe-bf068mwm-td0.c =20 DRM DRIVER FOR BOE HIMAX8279D PANELS M:=09Jerry Han diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 7450b27622a2..03987190f45c 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -56,6 +56,17 @@ config DRM_PANEL_BOE_BF060Y8M_AJ0 =09 uses 24 bit RGB per pixel. It provides a MIPI DSI interface to =09 the host and backlight is controlled through DSI commands. =20 +config DRM_PANEL_BOE_BF068MWM_TD0 +=09tristate "BOE BF068MWM-TD0 panel" +=09depends on OF +=09depends on DRM_MIPI_DSI +=09depends on BACKLIGHT_CLASS_DEVICE +=09help +=09 Say Y here if you want to enable support for BOE BF068MWM-TD0 +=09 6.77" AMOLED modules. The panel has a 1080x2392 resolution and +=09 uses 30 bit RGB per pixel. It provides a MIPI DSI interface to +=09 the host and backlight is controlled through DSI commands. + config DRM_PANEL_BOE_HIMAX8279D =09tristate "Boe Himax8279d panel" =09depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefil= e index c2c5cf817116..2fa1ea3cfe26 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -4,6 +4,7 @@ obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) +=3D panel-arm-versat= ile.o obj-$(CONFIG_DRM_PANEL_ASUS_Z00T_TM5P5_NT35596) +=3D panel-asus-z00t-tm5p5= -n35596.o obj-$(CONFIG_DRM_PANEL_AUO_A030JTN01) +=3D panel-auo-a030jtn01.o obj-$(CONFIG_DRM_PANEL_BOE_BF060Y8M_AJ0) +=3D panel-boe-bf060y8m-aj0.o +obj-$(CONFIG_DRM_PANEL_BOE_BF068MWM_TD0) +=3D panel-boe-bf068mwm-td0.o obj-$(CONFIG_DRM_PANEL_BOE_HIMAX8279D) +=3D panel-boe-himax8279d.o obj-$(CONFIG_DRM_PANEL_BOE_TD4320) +=3D panel-boe-td4320.o obj-$(CONFIG_DRM_PANEL_BOE_TH101MB31UIG002_28A) +=3D panel-boe-th101mb31ig= 002-28a.o diff --git a/drivers/gpu/drm/panel/panel-boe-bf068mwm-td0.c b/drivers/gpu/d= rm/panel/panel-boe-bf068mwm-td0.c new file mode 100644 index 000000000000..bbf7aed19616 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-boe-bf068mwm-td0.c @@ -0,0 +1,432 @@ +// 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