From nobody Sun Feb 8 12:14:52 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 1477D1F03D8; Wed, 30 Apr 2025 19:42:19 +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=1746042141; cv=none; b=MHt7XuVYTj7+C3NV19XUtjvG/lk2N4re6lijAP/DJHDnn76dA6AH+TcpD7flJghXbW8RVWlNHr62Hahx5wUr3WpH0fl3zS5mxeNeb7/1ZmODM6ID18p1S43pA9loRFyzVKQaAN1yia16u1gXN6DNDt21ifLX2jT0HnV/FtvLwuM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746042141; c=relaxed/simple; bh=zXjb07RtDedq+fgNr9ddFpdm9YayjmMfLiEq/OVt7PY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pzn0+niNnM9j/ubnQeauLcjrbRAOH7Ou+9FU0iBjLIHMTYCYLd0bAvWXWChbT8QOyhaiwm1v/7XWFAfdEP9HmN05JrFmVD0GAboqB+WMcS98ayU0wIZa8Abi+CIySxZeVCLQm4DD1irjRkasKAI/cz9Wu18gVUqEl+2ocxUc5eY= 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=uadEoE1N; 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="uadEoE1N" Received: from [192.168.78.162] (254C22F1.nat.pool.telekom.hu [37.76.34.241]) by mail.mainlining.org (Postfix) with ESMTPSA id 04485BBEE6; Wed, 30 Apr 2025 19:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1746042137; 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=p7iTFH8wryWVIV4vQps86xm7Px3sNvpwYf6RR1kDxKU=; b=uadEoE1NvtB5XJQmfXHxnSzIHcgW7KTTO1BCuDf865txnLiRQ5y27kgxbI9lPf53jkdQ2W iB/iIf7FMKRk8wWE9FY52U3oDdrftHt+kygbG5uwpOMHMdJZwxJ0qVfQj4845CzWh8aWSe GblzDBR8S/zphHwtUyzCsNAEre4VwA7RRS08Q2/Z+oNWZn4znzVYFztgMeyeUlFXtl258D P72JLVqYmIDsaOfihkT2H9Urr/p92Uu9tLU0aoYoEK1dD2+WPpjzg2jFRZxWCb5iqFiUY7 aeILlHyCMg04VGnh++zD3QEiCmyUeYwARw4PIzB6Sx1O8t7PLvc1MWsNjcba1g== From: =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= Date: Wed, 30 Apr 2025 21:42:12 +0200 Subject: [PATCH v3 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: <20250430-lavender-panel-v3-1-7625e62d62b2@mainlining.org> References: <20250430-lavender-panel-v3-0-7625e62d62b2@mainlining.org> In-Reply-To: <20250430-lavender-panel-v3-0-7625e62d62b2@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?= , Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1746042135; l=2081; i=barnabas.czeman@mainlining.org; s=20240730; h=from:subject:message-id; bh=zXjb07RtDedq+fgNr9ddFpdm9YayjmMfLiEq/OVt7PY=; b=bRVdgXLOiduGCafBtwOtZ9vnb7OhX2iKR7mG7CiNP/nuz0Y+m+lQVDlWjfawN7q5Egun//aRU Vp+0p9jt9mfB2Bcu2WVumgCyJ3xFaOymtrmMUX++2soYxBwf2LxaQmU 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Barnab=C3=A1s Cz=C3=A9m=C3=A1n --- .../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..c6bff0ece360e6436a04f7d4740= f43f45b887fc8 --- /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: Negative source voltage rail + + vsp-supply: + description: Positive 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 Sun Feb 8 12:14:52 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 C9563274671; Wed, 30 Apr 2025 19:42:22 +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=1746042144; cv=none; b=RDMipg7cQy4axaCYUhzDjgf6+UdcOUDrwqqO15SKjUFj3uq9uACQQ60QrDGzdAnnMIMnlj3P5Y7P4uqLD6ehWIDBtWp4juVuWtHnsc40PjDuQgLTQZ5MhsEljsNoGSjqi/TiRYvAsa5oldomu26U29Pmg3A5dEl40tpw+ZIrzTs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746042144; c=relaxed/simple; bh=0YrxcUAUaXqkKGuZjlIfwbubu01yUpfA6AuAb1EDHhI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tm1qUpCm/V0vReLd3TftIeZZ+evxur15z+HD5kxZDaYyJuFdzBQ6hJC3nkb+5AvZLvqgIrctSCO9CVRZbsoyHsRK2BDH1bCO57Txc1EHOPQgJgmT438EUhTixgye4Z+Fg2oVWrNegV9mvub0POXpNvCfhcG9kR0upeCQCPwXIL4= 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=PzQVBNa7; 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="PzQVBNa7" Received: from [192.168.78.162] (254C22F1.nat.pool.telekom.hu [37.76.34.241]) by mail.mainlining.org (Postfix) with ESMTPSA id 68349BBEE7; Wed, 30 Apr 2025 19:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1746042140; 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=XWBVflhF5/ANXUctLJO1679Fk3zCvB2XbjExgvWA0Ro=; b=PzQVBNa71RgYrCtYZN4K5lHjpdnG2PRszhdqTomsxeOUsVtRbUZBKsJm1wg0Li29C/16+z OIEc+6Op0KxPRcVB+jNn8vURBNdphzKUPAfWQ6l48rVudbYkdXJg9sqt87FU2cl8q+t6GV O86TH5JVuxi4lVLg9roVUtpXc2Py68GzdZ/Rd9HnfX30avkXU9cpgjX165gWEO3sR3QtlQ OzFX4Rgajn8veF9vmsKPbM6RJ0IeYl3zdKMDXdDkLC3xg9Qe09EDBn6qSpyC79GkraMeAy m88FRsXRdhvHTfvLxbYuIQbVu1K9oODyUa1jVFB1NRWdp5+wxv2ppNYcQhj+uw== From: =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= Date: Wed, 30 Apr 2025 21:42:13 +0200 Subject: [PATCH v3 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: <20250430-lavender-panel-v3-2-7625e62d62b2@mainlining.org> References: <20250430-lavender-panel-v3-0-7625e62d62b2@mainlining.org> In-Reply-To: <20250430-lavender-panel-v3-0-7625e62d62b2@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=1746042135; l=9681; i=barnabas.czeman@mainlining.org; s=20240730; h=from:subject:message-id; bh=0YrxcUAUaXqkKGuZjlIfwbubu01yUpfA6AuAb1EDHhI=; b=pHkE4B6wiiZFGGkGWYRve/zXeb2eAvs1gQiyG4utrZtqxcQJb22FXCQPmGiCJuPtDwPRdq1Ls A9aUkqF9Hk4CtxP1+K9bJ3J+jPACJdOt6/4Hah2YBC6tLNJ5+QvE0QQ 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 Reviewed-by: Neil Armstrong --- 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..1956daa2c71bc92c94fc76319d8= 41b520407001c --- /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