From nobody Sat Feb 7 17:09:42 2026 Received: from mail.mainlining.org (mail.mainlining.org [5.75.144.95]) (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 CA394209F38; Tue, 29 Apr 2025 21:33:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.75.144.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745962408; cv=none; b=VGVg3rtOWfoEJFrQ/plisTWbkByFJwlT7Scl9tG2HHrLVk5JTc30MFp4ViTuG9kSLpEADbQuYckrclgZiRbNHopLrTEDS84OazY+RwZKjRqVE6ADt64Ke+GGu/w3DQjqclEDOy4NDvYAAwUIquDUt6r8k5g5PEm3DxzYEr20tbQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745962408; c=relaxed/simple; bh=6mxHfDNN6d54IDqPzz076/so/02XPohT9GkMaAdXVBM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HLPVGPui6K1wFlGmxO2mmirdwxNna7IRxpb4YM5c9YMg7vT+dTgSQRLpGuRH4QEnDsKYVQPaJdbw87mSbavPj/VkwzL2eCiqdSJfg7O6crUFqeHXXQr0dxmyiheEDTrcENXtIb7ltH1WXBODSmUzOiffNpCCUlne2iyYwGrPejY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=q9n274RZ; arc=none smtp.client-ip=5.75.144.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="q9n274RZ" Received: from [192.168.78.162] (254C2A1C.nat.pool.telekom.hu [37.76.42.28]) by mail.mainlining.org (Postfix) with ESMTPSA id C3547BBEE6; Tue, 29 Apr 2025 21:33:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1745962398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=95GjtIoWmh+5x+UcRGDdFxUlqj3e+LKZ1ibB4skVWd4=; b=q9n274RZE9o6iqOFA6fWnTdj3+tIcJFUrwPJ4fqUVToNOUd4xfh8FR6WdqZq3l5AE8H9Sn tJKiVAwgb4ce5WBNXrA7C+mLVB0uIWxWhOIO4tVOvm5/C4FTiznLwGI+K2nTE7Ys4b/Oi1 JChE8b9A1+WECmBmb7i9GyG2ojLdm1kWZQSnmeFLOBY7ZWgywolX9TlGCiYnRpa82gl5jr y79P5gp+mB5v+nqz3vZ1qTis6q9v+yjbMYvTlKfCJ3K0j9K1X39Nh66j39IGy+ZhfWYdVE t7ZfY1Lun0M3e+Jxt/BF+ieJHPR9NsTeHd6KnHnbJcM47zByfSuvOdkmDtra9w== From: =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= Date: Tue, 29 Apr 2025 23:33:14 +0200 Subject: [PATCH v2 1/2] dt-bindings: display: panel: Add BOE TD4320 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250429-lavender-panel-v2-1-fb467ff81bac@mainlining.org> References: <20250429-lavender-panel-v2-0-fb467ff81bac@mainlining.org> In-Reply-To: <20250429-lavender-panel-v2-0-fb467ff81bac@mainlining.org> 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, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1745962395; l=2014; i=barnabas.czeman@mainlining.org; s=20240730; h=from:subject:message-id; bh=6mxHfDNN6d54IDqPzz076/so/02XPohT9GkMaAdXVBM=; b=orbLsEjiaS/LkLTeDWiJk9qhrpEiV6rQ0NggtJfqxvbV2Z59YBm4cRBr85+AT7PjpSvq4YRo8 Y/M0OzhszhVAbD9pryHNj+SKvzMhU4G7e+s9G9kWPyI0WFxUc7UkonI X-Developer-Key: i=barnabas.czeman@mainlining.org; a=ed25519; pk=TWUSIGgwW/Sn4xnX25nw+lszj1AT/A3bzkahn7EhOFc= Document BOE TD4320 6.3" 2340x1080 panel found in Xiaomi Redmi Note 7 smartphone. Signed-off-by: Barnab=C3=A1s Cz=C3=A9m=C3=A1n Reviewed-by: Krzysztof Kozlowski --- .../bindings/display/panel/boe,td4320.yaml | 65 ++++++++++++++++++= ++++ 1 file changed, 65 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/boe,td4320.yam= l b/Documentation/devicetree/bindings/display/panel/boe,td4320.yaml new file mode 100644 index 0000000000000000000000000000000000000000..49e34ae4a058ea2e11a9c399068= 064d38451c51f --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/boe,td4320.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/boe,td4320.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: BOE TD4320 MIPI-DSI panels + +maintainers: + - Barnabas Czeman + +description: + BOE TD4320 6.3" 1080x2340 panel found in Xiaomi Redmi Note 7 smartphone. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - const: boe,td4320 + + reg: + maxItems: 1 + + iovcc-supply: + description: I/O voltage rail + + vsn-supply: + description: Positive source voltage rail + + vsp-supply: + description: Negative source voltage rail + +required: + - compatible + - reg + - reset-gpios + - port + +unevaluatedProperties: false + +examples: + - | + #include + + dsi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + panel@0 { + compatible =3D "boe,td4320"; + reg =3D <0>; + backlight =3D <&backlight>; + reset-gpios =3D <&tlmm 45 GPIO_ACTIVE_LOW>; + + port { + panel_in: endpoint { + remote-endpoint =3D <&dsi_out>; + }; + }; + }; + }; + +... --=20 2.49.0 From nobody Sat Feb 7 17:09:42 2026 Received: from mail.mainlining.org (mail.mainlining.org [5.75.144.95]) (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 90E4125E450; Tue, 29 Apr 2025 21:33:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.75.144.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745962409; cv=none; b=VB2eZeXaCwhENeS5keQSWznLeyyzKmpsn2arwaXKnm0Cr+2Xe4at1bRNp6jOEtt01+uh4Zv+Yclw55YXawDFXaoFKfRqlLwL8X1yNMLGsYMDJ82oxkm9SHscMQ9709KgBZlRZOymSOoLEVw8CYXG6h4c9Kzj9JvKAgHEbCkBMWU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745962409; c=relaxed/simple; bh=miv7PWL+lAKW4KkI6YCIebW3/h4sTB2HsHXNy2iXw2M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QsDIlZxWDhCJN04ap1B4Y1XIef5hkASHRuzKcT7tfYgFrs4pMPI4VbOBV3cTjEr0st+WBrAiXxfScJK6ZKbQHNAT4npOkD44f5pSOmgdcYP//iUBXcWI+5TlT4ZqU1mKr98ODWrPZzjgyHOmM7++OBHJpEMeHDEnagHtr4I+qOc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=QAfHPnn8; arc=none smtp.client-ip=5.75.144.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="QAfHPnn8" Received: from [192.168.78.162] (254C2A1C.nat.pool.telekom.hu [37.76.42.28]) by mail.mainlining.org (Postfix) with ESMTPSA id 66782BBEE7; Tue, 29 Apr 2025 21:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1745962400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IyQjnnKtWNV6dVo1tbtbfQFcXdhOOsl8d9bcGbYCDxQ=; b=QAfHPnn8sKcAJYZV1CRczCn5nprEVBq8sAaBW2swSnUP7B8UpH4BZut3b924Eg0TAv38BW pe3SgXb9dbxHknG7D9yOA8ixteGmrTRNPuNXb9LLq+wU6BoBNV9/YHhKwO7xUHanZnHzKT TIDoNsOu0Lfx9V3oVhSjbwAV9ddw3g6u0GVbQsy+7K6qgGXr+Sz+2c80De3Y3KeDuw+8bB 8mvFwdoe+FSnVTQN87/eVlV/VrpmjxYUbl3ro1kqOgoTFmhujPpFl+wQ7Bd36aalCqKUH6 X1xE6M+LbjAZl5O2toPseDz0lUc0rdfIeemZvHPjTgPv/sFLOPGqRCnsx7oAWA== From: =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= Date: Tue, 29 Apr 2025 23:33:15 +0200 Subject: [PATCH v2 2/2] drivers: gpu: drm: panel: Add BOE TD4320 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250429-lavender-panel-v2-2-fb467ff81bac@mainlining.org> References: <20250429-lavender-panel-v2-0-fb467ff81bac@mainlining.org> In-Reply-To: <20250429-lavender-panel-v2-0-fb467ff81bac@mainlining.org> 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, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1745962395; l=9691; i=barnabas.czeman@mainlining.org; s=20240730; h=from:subject:message-id; bh=miv7PWL+lAKW4KkI6YCIebW3/h4sTB2HsHXNy2iXw2M=; b=mrG7RAToUx+cK2iF5ZCGMasKqzb+Le3xGLc8F60W838uiQcPV3oU0vo1Aqv2ZxdsFs+A6AFUh 3gxJ1yI02SNAFVHidCJy30YstbWxvJWlyNp4MPRwBOFbBHwtu5Hqhf1 X-Developer-Key: i=barnabas.czeman@mainlining.org; a=ed25519; pk=TWUSIGgwW/Sn4xnX25nw+lszj1AT/A3bzkahn7EhOFc= Add driver for BOE TD4320 DSI panel, used in Xiaomi Redmi Note 7 mobile phone. Signed-off-by: Barnab=C3=A1s Cz=C3=A9m=C3=A1n --- drivers/gpu/drm/panel/Kconfig | 9 ++ drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-boe-td4320.c | 247 +++++++++++++++++++++++++++= ++++ 3 files changed, 257 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 7e9c60a626fbbabb954ed2a7e3d1ef5eee0679d6..639f4324db617a0a2a56debd75e= eca7a50e60df6 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -67,6 +67,15 @@ config DRM_PANEL_BOE_HIMAX8279D 24 bit RGB per pixel. It provides a MIPI DSI interface to the host and has a built-in LED backlight. =20 +config DRM_PANEL_BOE_TD4320 + tristate "BOE TD4320 DSI panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for BOE TD4320 1080x2340 + video mode panel found in Xiaomi Redmi Note 7 smartphones. + config DRM_PANEL_BOE_TH101MB31UIG002_28A tristate "Boe TH101MB31UIG002-28A panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 883974f0cba128e28f23e31512f8d30d59913b0e..5eec88e4ac3dea6a1cb357e27a3= 2d2d14c64af9b 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -5,6 +5,7 @@ obj-$(CONFIG_DRM_PANEL_ASUS_Z00T_TM5P5_NT35596) +=3D panel-= asus-z00t-tm5p5-n35596. 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_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 obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_LL2) +=3D panel-boe-tv101wum-ll2.o obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_NL6) +=3D panel-boe-tv101wum-nl6.o diff --git a/drivers/gpu/drm/panel/panel-boe-td4320.c b/drivers/gpu/drm/pan= el/panel-boe-td4320.c new file mode 100644 index 0000000000000000000000000000000000000000..b21a83f520d39491ccfeb0e6c49= ee5a0d64523a3 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-boe-td4320.c @@ -0,0 +1,247 @@ +// SPDX-License-Identifier: GPL-2.0-only +// Copyright (c) 2024 Barnabas Czeman +// Generated with linux-mdss-dsi-panel-driver-generator from vendor device= tree: +// Copyright (c) 2013, The Linux Foundation. All rights reserved. + +#include +#include +#include +#include +#include + +#include