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 C0F463CB2C7; Thu, 14 May 2026 21:29:41 +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=1778794181; cv=none; b=drZNeI3IJRMXZBfJwPKnm0jn/6Ld46daA7PxGtcMeV/kgGis3OLhA9EFINWdSxMGlrt7XZThI7qBFpkIoOSQAXiKVhcSX6nPMlwFkXNYyvUg2sxjVvdOQJCxA/uXXAdtgYIGeJ+y4a6yocsaKxfeUzfJXWnD/hvjD995c8SwEA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778794181; c=relaxed/simple; bh=WlVlH1/ytrrGPItjx1VadZzLJPI8AwUa4rGEKqcYT0w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=REEIm0Gxh0pyooY4GLCNa2onY1d23BkDvQGKe4jLqHAzYaJW6Usadc5YY9FVwx5O5BCnQAJAplZZo83TT9ESu8ZktCpRuMqprea+X7oxh4Hnk5Vmxkg7om/UI0AQ+P4NDs3S9PmaqNMIKofHiKT75CwBWPhXj8iBYpaIxKdZKho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dnkFnyf7; 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="dnkFnyf7" Received: by smtp.kernel.org (Postfix) with ESMTPS id 7ACDFC2BCF7; Thu, 14 May 2026 21:29:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778794181; bh=WlVlH1/ytrrGPItjx1VadZzLJPI8AwUa4rGEKqcYT0w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=dnkFnyf7oWwM75jiz6VcHrCxMBZbFYiw3wFFi9ltpMuNwjCe/9GBV09cxc/mDGziB BXo1zhUtgabQvgcI9j4F0LX6XIHkamr49o50aNLa7S0nxTQLdnaa3qslOV7SPaB+WL Rqail7RY+JtZUf5dsy28ZupyyCqEu9Y4l0fmtOSGRzo1IXm76evzTcEjqXzRpup7Rx neObutxpdxTA1G8n4ZVvZr9Wp7FdG7AIDzP1/sVmuu6iPcHMeBd6hLAax8YVqRRkR0 qoNhe1zQDqxZaZCrAm/EGnybkp2JuQDgEgIovOFslsNLFwivPO3q0z/xaRyYzO20Di W/MFL1NB1BYFA== 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 71A1ACD4F3D; Thu, 14 May 2026 21:29:41 +0000 (UTC) From: Aaron Kling via B4 Relay Date: Thu, 14 May 2026 16:29:17 -0500 Subject: [PATCH v3 2/2] drm/panel: Add panel driver for Chipone ICNA35XX 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: <20260514-icna35xx-v3-2-c304f04c32c4@gmail.com> References: <20260514-icna35xx-v3-0-c304f04c32c4@gmail.com> In-Reply-To: <20260514-icna35xx-v3-0-c304f04c32c4@gmail.com> To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Aaron Kling , Teguh Sobirin X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778794180; l=21674; i=webgeek1234@gmail.com; s=20250217; h=from:subject:message-id; bh=gfjqTsXJhWvidziFJjKpr6H0Olyvt1R6kS1KfpDVTRk=; b=zhfrr21menSV4Tqzm1I7ukyFvZQPtRq0L42qCvMuwiHF+VFfREweM+9LpOj6Nsyrw9W4gj3ma wnAn2dK9iIeB6J4X9e9j3q7Yu5zKdfEHZZ9RSKAlgH92BHyNx5vYFdY 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 adds support for the ICNA3512 and ICNA3520 DDICs used in both the AYN Odin 2 Portal and Ayaneo Pocket DS top panel respectively and for for both the AYN Odin 3 and the AYN Thor top panel respectively. These all have unique compatibles because the panels themselves are likely unique hardware with only the ddic's and thus api and driver handling shared. 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-chipone-icna35xx.c | 619 +++++++++++++++++++++++++ 3 files changed, 631 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 7450b27622a233..1368b5a0b6c912 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_CHIPONE_ICNA35XX + tristate "Chipone ICNA35XX panel driver" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select DRM_DISPLAY_HELPER + help + Say Y here if you want to enable support for the panels built + around the Chipone ICNA3512 and ICNA3520 display controllers, + such as some Tianma panels used in AYN Odin2 Portal and Thor. + config DRM_PANEL_CHIPWEALTH_CH13726A tristate "CHIPWEALTH CH13726A-based DSI panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index c2c5cf81711633..d39a8f82fa8c06 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_CHIPONE_ICNA35XX) += panel-chipone-icna35xx.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 diff --git a/drivers/gpu/drm/panel/panel-chipone-icna35xx.c b/drivers/gpu/drm/panel/panel-chipone-icna35xx.c new file mode 100644 index 00000000000000..958f205a7f4f93 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-chipone-icna35xx.c @@ -0,0 +1,619 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Chipone ICNA35XX Driver IC panels driver + * + * Copyright (c) 2025 Teguh Sobirin + */ + +#include +#include +#include +#include +#include +#include +#include + +#include