From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3AF9A35AC1C; Wed, 8 Apr 2026 05:32:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775626366; cv=none; b=hAR9l0e9DnkRCVHvT3EghswOt+gD4lEfMbfOE4n8zhp5DlsHilhpJAcK6UoC5FU4A4AeM6R9P+4oC+qJ3A3YouANWYwQJbr7oc6AtXj5bLZYMbOlEMzLYoo189B+sqp1/KEfj1Id8i7yS9vAeICAWdMifEZnB5kyYfDWUniRMOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775626366; c=relaxed/simple; bh=rIJJnO/TQFCbXkc8ukdRNBH+j2+Pa0+JkbY7sTXNJoQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ra/LFCfGu+LrD3YtzfZ+uVtAYcwgSPIquzEVBtHbdJC5ntHbrgT3RTlDPkbRrtE395cnHQtmyp/GzDHu9q4sVf97vL5Hz6dZOTs+g2oVyogNn10HRCaK6TV1aLDyGjbcUGFw4UUnbLjeNfa/XfToUZEWt4WCk0Y/vyu14hHaO+w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OuWnYgOT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OuWnYgOT" Received: by smtp.kernel.org (Postfix) with ESMTPS id EC9D8C4AF0C; Wed, 8 Apr 2026 05:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775626366; bh=rIJJnO/TQFCbXkc8ukdRNBH+j2+Pa0+JkbY7sTXNJoQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=OuWnYgOTx4vcHFzFgk+7apbgs1OrbL/fkrcTLOgaaBJXD+nwJIXreUJxRafRaMhRI ZLNVBSGiovt8Y9drgOYl+EFXr76SIx+UrWW+FiM2jYSsoGG7QzU5oPSey4BK77lBXU RJhGFSskbXYrYg2tp3NuaXEwniubHjUANNUqx+E+BsMCmxKdjtveiY2tQlXbZ9DEXD zQzg0lHWK+g67jumfOjZ1p2Rt/TDMIPJpxmzanO2+1zJts/0hFfdEgIbqRpgjO6EpM Rn+yq1Um8Jj720tms2O1MciOzt5RVJkADF+3UfeTT8wRoSPJd8oH1d3gLOa3ywi2Rk MtXiAaHXBYZKg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDD2DFD5F6E; Wed, 8 Apr 2026 05:32:45 +0000 (UTC) From: Aaron Kling via B4 Relay Date: Wed, 08 Apr 2026 00:32:40 -0500 Subject: [PATCH v4 2/2] drm/panel: Add panel driver for ChipWealth CH13726A based panels Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260408-ch13726a-v4-2-9bb1a9b8f329@gmail.com> References: <20260408-ch13726a-v4-0-9bb1a9b8f329@gmail.com> In-Reply-To: <20260408-ch13726a-v4-0-9bb1a9b8f329@gmail.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Teguh Sobirin , Aaron Kling X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1775626365; l=11367; i=webgeek1234@gmail.com; s=20250217; h=from:subject:message-id; bh=edAL6zcY6lHNMUHRy2PSWxaDofjVJPxBf795F9aCGcg=; b=x10Vnm31zmzM9tXufYWNrhrx6DvCd3HsPFM1fLB6ias/s6MoVVoULFdqlqsPqB7bm+2pmLZgq egedPtv1tAdDwfcidiFVrxAuJ5eygxM2/DVFTXpTjRKWzSnySCKGCyy X-Developer-Key: i=webgeek1234@gmail.com; a=ed25519; pk=TQwd6q26txw7bkK7B8qtI/kcAohZc7bHHGSD7domdrU= X-Endpoint-Received: by B4 Relay for webgeek1234@gmail.com/20250217 with auth_id=342 X-Original-From: Aaron Kling Reply-To: webgeek1234@gmail.com From: Teguh Sobirin This is used by the AYN Thor for the bottom panel. Signed-off-by: Teguh Sobirin Co-developed-by: Aaron Kling Signed-off-by: Aaron Kling --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c | 339 ++++++++++++++++++++++ 3 files changed, 351 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index d6863b28ddc559..e2c00f08f4507d 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -105,6 +105,17 @@ config DRM_PANEL_BOE_TV101WUM_LL2 Say Y here if you want to support for BOE TV101WUM-LL2 WUXGA PANEL DSI Video Mode panel +config DRM_PANEL_CHIPWEALTH_CH13726A + tristate "CHIPWEALTH CH13726A-based DSI panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_HELPER + help + Say Y here if you want to enable support for ChipWealth + CH13726A-based display panels. + config DRM_PANEL_EBBG_FT8719 tristate "EBBG FT8719 panel driver" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index a4291dc3905bed..343d283d1620fb 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -9,6 +9,7 @@ obj-$(CONFIG_DRM_PANEL_BOE_TD4320) += panel-boe-td4320.o obj-$(CONFIG_DRM_PANEL_BOE_TH101MB31UIG002_28A) += panel-boe-th101mb31ig002-28a.o obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_LL2) += panel-boe-tv101wum-ll2.o obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_NL6) += panel-boe-tv101wum-nl6.o +obj-$(CONFIG_DRM_PANEL_CHIPWEALTH_CH13726A) += panel-chipwealth-ch13726a.o obj-$(CONFIG_DRM_PANEL_DSI_CM) += panel-dsi-cm.o obj-$(CONFIG_DRM_PANEL_LVDS) += panel-lvds.o obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o diff --git a/drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c b/drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c new file mode 100644 index 00000000000000..48a5e20e07c487 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c @@ -0,0 +1,339 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * ChipWealth CH13726A MIPI-DSI panel driver + * Copyright (c) 2024, Teguh Sobirin . + */ + +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include