From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E10B3612E1 for ; Sun, 15 Mar 2026 14:46:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773585987; cv=none; b=cSoBhkeXZOhnnDyD6VpeJSGEbYGQfaP3rl0n3TwV8btuIX84WAy3Il1/I81cTS8MMrWu1aRvImXwvTxQ9mgc0RSABMInbxbgZnwPT2nyp1NbhTF1qrbpOPFLUlk4kVOde8zjnSMhk7PmnMLxZC5JCNJSJVuIJNYYbGF2zXFHyNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773585987; c=relaxed/simple; bh=hDyFvlCWB4snVdYNP5UsYEbum7XC+8UeeuFlLojAf7U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XqjrWXpoey05YIk6ZlysqV/407KNuyGZ9lnMhJDRskOk9neDBJuUOmmSfqWwOpxcdGlCR1Wc3VFxRbC5Yu+DpPojRoiVqOTADYKFDPfkpL4+QnLLpVviSWwNTMyDTITK6Segmfcfnjhm1IekLjWMtMsC9tKjrxCAI3TVpd4MYKU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TNakYoKl; arc=none smtp.client-ip=209.85.216.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TNakYoKl" Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-35b97ed057cso171175a91.1 for ; Sun, 15 Mar 2026 07:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773585984; x=1774190784; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UgJh+M+DnzDeP+9k4LWlddlLyYEdWfvgkiotyBbICDU=; b=TNakYoKliHA4JWb5k6K0+QAlHLlQgZ5ioRWIZPZBZo2xs52rsQVltBS+LAdukb2gXS OPON26JMOiQpQuOVYoiCK2gKG3vfaamP9PMSxX2wjHtniuqmnNTVea/z3H85qs2R/daz RmI3MKNIBRig99LOAHmVq8IXj9ziVTQyL9Yd07QVAjQdfDxLXOBPxMTcMhszaDMbvMou ERv71BoWK5Lc2BWo+al2QzKOoGKbg8oXiWK3n92mTBmVReUQSs9N75cecn6UHjU71A15 pTxP70ZmXwyc+uwXim0E5LKfQxTKJTYWVMP6PaUm9wgNARrcf/Rz1ALEHfwskmwaPHDe gk5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773585984; x=1774190784; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=UgJh+M+DnzDeP+9k4LWlddlLyYEdWfvgkiotyBbICDU=; b=ekeJw0luUNs6K8Mqk9hjNGRd/ADWlTbf3Re0chq1m7e5gI154ickfnt3pBLIIITlKI obnpRjHbso6WAaIDXL4a6Gx9fC/D1qAHW9VUtILi3iiVWwno6dmQFJswvoL7gkR2ZEf9 J0tFc+3jGPMC6K4U7DF1tcn04RlVdGF14jp/six/+Ok1I0CpoyUAuHh2pU3RegpWlIYJ iG4MQTuh3JmE0g6QYCkr0LA1b8KROyKqF7JY85nEGqnKDVjIcZ7QS8OTbwqSPDktzHYq EtzYlKd6ojul8x+t+8U2e1THa5cx6xwXTt7dxN0eGinEenxt2GaZUUoNBMmdAwTPrOjg 1rYQ== X-Forwarded-Encrypted: i=1; AJvYcCV8FPm3jbrRBbAB8j8GDjPOPm/6KwbeMgJchi68FVuNe70r6FUl82jIwT4xbZKdwrPDkQYodKqshOuO@vger.kernel.org X-Gm-Message-State: AOJu0Yy4HNDb9OBiRC0Yz1dWKVk9b07v1d8m4Kb00Fh40St3QJVKTj/G 20jAlHPsGNm/NUcEtcJQT5kCCBY0l1pH+7XbakcnlUrI6EsK6zXbMF7R X-Gm-Gg: ATEYQzwDkL9zCmEU7qASHdwfz0gXKsoa4KuRQfF+FclFU9C363brzg7rAH2dpm2FJFc HjyvBG3LLhYS3NO8e5w3YOMfac9ULXLcefY+6mhiA2jtVDGPZo18k6no3mwhk31vDrlx8R7DrZs 1j0krWUGvl0lF8AWGR/Aw7SnqGEV7UYTBFQtnHPPVMnJ20BmzzfUJ1aiDTFDi2sQ5wd1J0KWHxn PwxJcYPBKxxr55a31n0rUSaqSvEDyj1knRtb8ir+iaGcqjWedvfsFCd6CC67uvdbSXdTk4E9S7t bD8VXIbASmr4xbvSVKcHhXp6wjMElUsApQXRv3vhjdTo3o3+aiEbZ3DxzR/MvitqvIBLi51clpa thFWmZM1frJD/xIEH7ONRmqDTDjGqdgzFUxsAIxf9zY6c7f8egZyV8iDTrQqQXjro0Y6W76myZA m3Pki5Pah1EOOvAjIS/9IvQkcMwtvU X-Received: by 2002:a17:90b:3f0d:b0:356:9405:759d with SMTP id 98e67ed59e1d1-35a21e4ee18mr8777171a91.9.1773585984231; Sun, 15 Mar 2026 07:46:24 -0700 (PDT) Received: from nuvole ([109.166.36.159]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35a02e196fdsm14022887a91.2.2026.03.15.07.46.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2026 07:46:23 -0700 (PDT) From: Pengyu Luo 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, Pengyu Luo Subject: [PATCH v3 2/2] drm/panel: Add Himax HX83121A panel driver Date: Sun, 15 Mar 2026 22:45:36 +0800 Message-ID: <20260315144536.515032-3-mitltlatltl@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260315144536.515032-1-mitltlatltl@gmail.com> References: <20260315144536.515032-1-mitltlatltl@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a driver for panels using the Himax HX83121A Display Driver IC, including support for the BOE/CSOT PPC357DB1-4, found in HUAWEI Matebook E Go series (Gaokun2/3). Signed-off-by: Pengyu Luo --- v3: - use backlight_enable instead of backlight_update_status to avoid NULL ptr --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-himax-hx83121a.c | 749 +++++++++++++++++++ 3 files changed, 761 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-himax-hx83121a.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index a99f2e2a49..c18ff46e2e 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -203,6 +203,17 @@ config DRM_PANEL_HIMAX_HX83112B Say Y here if you want to enable support for Himax HX83112B-based display panels, such as the one found in the Fairphone 3 smartphone. +config DRM_PANEL_HIMAX_HX83121A + tristate "Himax HX83121A-based DSI panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select DRM_KMS_HELPER + help + Say Y here if you want to enable support for Himax HX83121A-based + display panels, such as the one found in the HUAWEI Matebook E Go + series. + config DRM_PANEL_HIMAX_HX8394 tristate "HIMAX HX8394 MIPI-DSI LCD panels" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 3336a2c0cd..372d67b8cc 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -21,6 +21,7 @@ obj-$(CONFIG_DRM_PANEL_HIMAX_HX8279) += panel-himax-hx8279.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX83102) += panel-himax-hx83102.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX83112A) += panel-himax-hx83112a.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX83112B) += panel-himax-hx83112b.o +obj-$(CONFIG_DRM_PANEL_HIMAX_HX83121A) += panel-himax-hx83121a.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX8394) += panel-himax-hx8394.o obj-$(CONFIG_DRM_PANEL_HYDIS_HV101HD1) += panel-hydis-hv101hd1.o obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o diff --git a/drivers/gpu/drm/panel/panel-himax-hx83121a.c b/drivers/gpu/drm/panel/panel-himax-hx83121a.c new file mode 100644 index 0000000000..ebe643ba41 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-himax-hx83121a.c @@ -0,0 +1,749 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Himax HX83121A DriverIC panels driver + * Copyright (c) 2024-2026 Pengyu Luo + * + * Multiple panels handling based on panel-novatek-nt36523.c + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include