From nobody Thu Apr 9 23:23:14 2026 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 F41D9374E7D for ; Thu, 5 Mar 2026 08:48:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772700539; cv=none; b=OWJotVTkmYflzt2/SWgQ2mLTTwFHvSVlgk30i0g9xiZeJyCB6yz6zDEXClRonfdjLoPw5N/H81+2A1r9HdhZuCAs1gg/n5w0fDVKPnFoFAN0Ie888+1U20qaayno5xyFgZCL/jo9+zako1NP01tCWEacpPoEfFSvZMOX215A40g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772700539; c=relaxed/simple; bh=0iC2LK9YwdQ0sfJqDEiKqaXTtpBTEiQE8B7Z1S48CU4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dTTgUn8mfXFyyqlYMuAT4bmXxlCM29s75OACjOyiKEzGKNoUvXvz0st15otG4P62XZZGCtKX6QvEDpijTbhzs06MpBcdtVCvKrOdW4zjQ+TlaN+65ai3g0qvcNCeU2PGpncL8gQznSlldVDU/6Sxj6yDuEwk+tHb9UdDoAqpboM= 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=EzftcQrP; arc=none smtp.client-ip=209.85.214.175 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="EzftcQrP" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2ad21f437eeso55366075ad.0 for ; Thu, 05 Mar 2026 00:48:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772700536; x=1773305336; 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=ux1peg+z6f5tqJpG2qb5n2Jl0YeB1bva8nLP/vG8Vjk=; b=EzftcQrPPMjF07Ch8y7DpNKbhrX5uIvQvCGO4h8HeDStI3rZtLnce8T5vfTKYbiO21 N8DgqCDFCnuEhn4Nsk+5paqu0HExBJRPnDvWILStqQQ4b/igCjWwRpTUoi7HLHFSuA7y gkK4UBKdlwpAGL0sVOIL5rKEsBWN1yKCpBWCa62sBWsVLXJXXz8cDpI1C0WvjnX+avCM Rdv+rE+bb6T10ah77XNzPdWKsUA/Gv8syDsz9U5B1AA0mULYn2M1Dsf6ev+Jd5xCYOW8 mqo0T9DXw6Sp3SzH9BNDgB4KZLqRTg2KQ/pfc/JPkWHw2FvZn+XQ9EPfNQz8MVC43tBF JjFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772700536; x=1773305336; 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=ux1peg+z6f5tqJpG2qb5n2Jl0YeB1bva8nLP/vG8Vjk=; b=pG5RlmRqCQfel4tcVqKRMXw27ZG1NS3gPb/A3BRmKjnfmngXk6kG1vSV/iQh0KHv7e 1/qacc7PI6KVxW1lyLHPpGvS/4HuLumBJO4OZWv5WIGsD69jyzZjE3zAzfpwv69srn3V brzH819isJZW4J0tM72ZC10siROoND5MjxhdWpftf4WW+DeqXO8X52pwQFwqaEEy9/E9 VFeVWdbjoRUCquFuDnKNfRceHH9jbhQqUQ8YfRxcIP4ZAvyR1bXsOqv8HKFk7HSOzpF1 WvNDoskDNAkktuRZk0yuPNFyXQseYODUDxQ4I7TsBrIFH8D0798VBdMq9L7/feCsGzSR 8oXA== X-Forwarded-Encrypted: i=1; AJvYcCX6RlS91XJFd9mm/Iwh18u6zs8D7vxC9S2d+U5JVtgIfnYiiMgNsy17Rj9mcr0I0Q16vFMXFE7a3euTrw0=@vger.kernel.org X-Gm-Message-State: AOJu0YztE6+cps9MuO/ivR+MnFAPuszqKsCItBhqfynirR9qVYx5s1mq e+R8WAvRDI58X4jjgMV07uYKi07GRm+LkaZ9dDYWGo42BmqbjLRpLYcN X-Gm-Gg: ATEYQzxOIHHkk/mXQvm0N3eCLKGxDxH5nxZ/gEke/1KlSSzfWmO1iHlOwOfLY/xh/uT ieZkkSHrNxJOxsVWBtEcq9WVc1FkbFNzB8AOVyYlIMWB7uEK+73VLP3LqGK8Qy5foWn0g+fVIqG I1mxP+CPV7WFz8yt82pn8CDk3ZcFQ2DK9Q6vZDi4QiG620Z4K4uNWdl+g1DWTLLTI5gYB9SYPRM FMntYHZDhijSKYWGYIH+/PA7/xHtA6kiTWrQ8PA1VAGm38cbqqT9DoSu56A4AT4KCCFxFigLfxO TE+RvCSV6K9cNCi8HBUXMLQhZT/4dg0wxWr6uAQf3y5tuQf3rb9AddM86Pk+EbF/tIoX6mt1P6w M/0emHZCXVv5VuHGigyUcuEW+JD1eGu9EoS3u3GRZGmV3LHTMWKfhRMnBu1xcBwcTUhYIwbjnWr Tx8isSe7cvJDxpjMe2ig== X-Received: by 2002:a17:902:d54f:b0:2ae:46b9:c643 with SMTP id d9443c01a7336-2ae75b51d60mr17109585ad.7.1772700536198; Thu, 05 Mar 2026 00:48:56 -0800 (PST) Received: from nuvole ([144.202.86.13]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2adfb5c9f79sm233490715ad.33.2026.03.05.00.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2026 00:48:55 -0800 (PST) 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 v2 1/2] dt-bindings: display: panel: Add Himax HX83121A Date: Thu, 5 Mar 2026 16:48:09 +0800 Message-ID: <20260305084810.370024-2-mitltlatltl@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260305084810.370024-1-mitltlatltl@gmail.com> References: <20260305084810.370024-1-mitltlatltl@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" HX83121A is a driver IC used to drive MIPI-DSI panels. It is found in HUAWEI Matebook E Go series (Gaokun2/3) with BOE or CSOT panels. Signed-off-by: Pengyu Luo Reviewed-by: Krzysztof Kozlowski --- .../display/panel/himax,hx83121a.yaml | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/himax,h= x83121a.yaml diff --git a/Documentation/devicetree/bindings/display/panel/himax,hx83121a= .yaml b/Documentation/devicetree/bindings/display/panel/himax,hx83121a.yaml new file mode 100644 index 000000000..b6bcace29 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/himax,hx83121a.yaml @@ -0,0 +1,92 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/himax,hx83121a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Himax HX83121A based DSI display Panels + +maintainers: + - Pengyu Luo + +description: | + The Himax HX83121A is a generic DSI Panel IC used to drive dsi + panels. Support video mode panels from China Star Optoelectronics + Technology (CSOT) and BOE Technology. + +allOf: + - $ref: panel-common-dual.yaml# + +properties: + compatible: + items: + - enum: + - boe,ppc357db1-4 + - csot,ppc357db1-4 + - const: himax,hx83121a + + reg: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: phandle of gpio for reset line + + avdd-supply: + description: analog positive supply for IC + + avee-supply: + description: analog negative supply for IC + + vddi-supply: + description: power supply for IC + + backlight: true + ports: true + +required: + - compatible + - reg + - vddi-supply + - reset-gpios + - ports + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + panel@0 { + compatible =3D "csot,ppc357db1-4", "himax,hx83121a"; + reg =3D <0>; + + vddi-supply =3D <&vreg_l2b>; + reset-gpios =3D <&tlmm 38 GPIO_ACTIVE_LOW>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + panel_in_0: endpoint { + remote-endpoint =3D <&dsi0_out>; + }; + }; + + port@1{ + reg =3D <1>; + panel_in_1: endpoint { + remote-endpoint =3D <&dsi1_out>; + }; + }; + }; + }; + }; + +... --=20 2.53.0 From nobody Thu Apr 9 23:23:14 2026 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 A29E43659F8 for ; Thu, 5 Mar 2026 08:49:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772700550; cv=none; b=sptlZwer9UOrzJr29GAlmVitS5l8L4meURWXXHrFm98roE5SFFaJNzddbjwBkT6BCjwJnOp2ocTlRvQBYgvUH6Rca0IQTGGlen3Xiv2nVCpjliG70uBpBNBqh3lI5ZvFqbBEXHVj/pq9Yx/q7KVZJgct1nVtpN/l3UemTq004Q8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772700550; c=relaxed/simple; bh=1LVhUqN05yPYssqp+yDwva5yfqP6NV5wG6jVV+VYOHE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=culUFjPGan8ukHuQgKifOLnFpRE/tisJxIXl5VFLCeDlBtwBxNxJE1pYBNZdTagD+Ei8ullLNnhVwkgRNTKJxEkALadeSpaxycbNk5Z2Irc8RZXwbFPJj5CGF/h4hkNdmc+Zq5xaGmuvnlt7veu89BFLEYuy0rBZaDx4bmB/SHE= 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=kQJ1R9OE; arc=none smtp.client-ip=209.85.214.181 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="kQJ1R9OE" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2ad21f437eeso55367555ad.0 for ; Thu, 05 Mar 2026 00:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772700547; x=1773305347; 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=moI5L4RyHhktvnvj6rqKj1VUGDU2qHXOE7ArUt5U3y4=; b=kQJ1R9OEkz/56WuQ0obUIdaWz4xb8wqYyI+kCDtPK74Qma6Sb8mTwKebG/AFYSIdZM TzkNxhS8X81zLbUVeNzX9gjQcGw6lbT4tfkRy3z2v26bEFIGIDBBHXHwBkwGSyWce2GY 63Bg5GHHwrDcEfZyhh/bMQOBjdFr95oD76H5cR0yNmcNmx53ksRlJBm9GRKYuPv2Vk7v yqP7kTy5E+hOoP4fqMB+iwKViWXGj0KJNf5MDqqAPDATE++snVFQIkKtKWtL3tgB6f/k JQiZRrNq+O21iE9N6/pJoAs3oIFa5111gYpS7PMirQbYxRRi/9wpi1HeXVOE2jqlUMIH 2FZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772700547; x=1773305347; 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=moI5L4RyHhktvnvj6rqKj1VUGDU2qHXOE7ArUt5U3y4=; b=iYGwuzkxx8WT5QO7svbYavaT5ZyTRZ8xqx+kK8+vO3P+K5TNGotLbe91N9+BH5vruQ YHqtgLb6Y+PJebNNZF1h2YQWaP6Av9GoqW8PFC+etp0aOA+SrgyziS65U7pWYwtsshyA qEZFbaeel9i9rIWWnJlZdUNUUGqUtfJIpuiHDwyZBP3fKglY44O08fzRy7y9wUdZ/eRd T+hYFJJD/Y6sL/7rNdxj7lgAvnbktdv2xXlJpbNtuMFgaRxRvHeI70ag5KzD8qvP105B Cl8sQFkHmPPuOeVsHq139cEu8glJ/H7HsXCkn2GIJ4wtJLgYIp8N7r3o13/yLbVaZmRI Hx1Q== X-Forwarded-Encrypted: i=1; AJvYcCUJMQ05Pk4/9BYknP0vASPELH+oAndbyb2MaLaA/LmH+mt/MPS8va/IWVCFGNV43xvivlzbnaDqiIpVfV8=@vger.kernel.org X-Gm-Message-State: AOJu0YxJlwTG1aW7g0+GD/A4vU7BqYDWSQvL5gOzYjSSFO/qglOewiKp Drj+wMTzAjUrz+A8j0czy3Pt+tFhbzuw5n9KvGt7GWU2hY/uGPn7Nw1u X-Gm-Gg: ATEYQzygDT5492gmzYDS90wit9/L9TNvWhGl3aR/3eoscj306raLMqZLmG1/9QgQIXQ NY+eFpMHsKfbUXj0915G2FIh/LCUVQ8DPWfHX+ttRd5bdMDJD6komC+XssNtlVWe5hAm8DOWSfK JXxng56LLgNLVLA52EOQSFUo0fOxKIlSno3f/Mu6yn55Tbfy0pf4cMzizbRD3rriAae6W976j/g 1Xo+yMwZdCi6mCLiWPkzBPR6FIPuV+VDbzkgnnNgZz1GKisJUi0pa1tu+lqSTNfArhIQ2S2NkBT TvJluHd2m3dcZD5Cp9dKPfrMolf16CjVK1faXG0Tu17jotU6Ke4Ltzl2s7Dvh7vWgMO5juTE4eE n7RQZQcxp8wucCUrB4ALcPM2SCf54ZzQXlM5E0hS8gtver9ikgExMbOzmZNamXEQFvbu77t5TqG eRjzYfrGCV7tgGRabzIw== X-Received: by 2002:a17:902:ef03:b0:2ae:4fc2:d95f with SMTP id d9443c01a7336-2ae75c18892mr17166375ad.26.1772700546667; Thu, 05 Mar 2026 00:49:06 -0800 (PST) Received: from nuvole ([144.202.86.13]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2adfb5c9f79sm233490715ad.33.2026.03.05.00.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2026 00:49:06 -0800 (PST) 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 v2 2/2] drm/panel: Add Himax HX83121A panel driver Date: Thu, 5 Mar 2026 16:48:10 +0800 Message-ID: <20260305084810.370024-3-mitltlatltl@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260305084810.370024-1-mitltlatltl@gmail.com> References: <20260305084810.370024-1-mitltlatltl@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- 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 79264f7bb..f8aaeb40f 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. =20 +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 aeffaa956..1964307cc 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -21,6 +21,7 @@ obj-$(CONFIG_DRM_PANEL_HIMAX_HX8279) +=3D panel-himax-hx8= 279.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX83102) +=3D panel-himax-hx83102.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX83112A) +=3D panel-himax-hx83112a.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX83112B) +=3D panel-himax-hx83112b.o +obj-$(CONFIG_DRM_PANEL_HIMAX_HX83121A) +=3D panel-himax-hx83121a.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX8394) +=3D panel-himax-hx8394.o obj-$(CONFIG_DRM_PANEL_HYDIS_HV101HD1) +=3D panel-hydis-hv101hd1.o obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) +=3D 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 000000000..9b19a688e --- /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