From nobody Sat Jul 25 18:07:45 2026 Received: from out28-123.mail.aliyun.com (out28-123.mail.aliyun.com [115.124.28.123]) (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 6FA28379EDA; Wed, 15 Jul 2026 01:54:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.28.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784080492; cv=none; b=TaW/aCawoihxqTv4F8Dv/f1Q1kKclxXKw8FEYacpOxT23YughaEclo+k9tLplkoEvhYhGls25I3uT85Hfvzq0ZqAf5v3fLcPidSf7kLaJXNnxPzgu1Xd9Eh+OjWTs2FglOU19NwVZebAo9PByQU5AwSiTS5xCCECKtKn5OKfgHM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784080492; c=relaxed/simple; bh=9O5Xzh1c0+Aw3GvLxfYPqHy445IgC9DGFwRE5DrXz4s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=YZfqHTipbC8RoppjTYsvJZxfKu0aPw2ZuJyMh3tAYTC4a6ntfqdjJ4D4BG+LM4hzST++1GoFw+d3FxKaSG9GK4TSs21krcEEt23ePuCWbWewRKOPexOv99kD4Eq4To1ED52J8HGRJ1WUZB8D1o5AYO+0TFCcPuCTvixZ1WK/iZU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lontium.com; spf=pass smtp.mailfrom=lontium.com; dkim=pass (2048-bit key) header.d=lontium.com header.i=@lontium.com header.b=UPw3Po20; arc=none smtp.client-ip=115.124.28.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lontium.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lontium.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lontium.com header.i=@lontium.com header.b="UPw3Po20" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lontium.com; s=default; t=1784080486; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; bh=K00io+MKxH1CZBpwH8+XpMZEpdq5IjEcNFRMXJ/soPo=; b=UPw3Po20QLU3v75DYUdtSlHG2L+fB1f7utIDfgX3r7U7gYEQ+ohVBekJVqIDe/hRpwuAxbneYgtBsk8o+jELY1kEzqybIpsPOS1wrfzd3202CgBrvwgWGvB9fKNCwr3Qc0AnPrw5J2SaTpHsPzg2+6+vD8E0wQ5Rvu1oy0Nfn7ursiGiMBMVsY3XFt+bHtVVdPzVI0DxT1iZYL3+yRvh+q5HvStjAXZTfDDcHEvKf9B/P5rZHh8z4NzVc2RZPWlLvFIeZ6iRrT0vw7HbGKGHMndclLeLmVfeLmb+ZSO0O85PpMga4RLeixkZag5USE7AkOGPYToxi0XXtw4Qenp3Kg== X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08387554|-1;BR=01201311R131S63ruler400_34042_170704;CH=green;DM=|CONTINUE|false|;DS=SPAM|spam_ad|0.864217-0.00116855-0.134614;FP=12538500737862165810|22|2|18|0|-1|-1|-1;HT=maildocker-contentspam033032053168;MF=syyang@lontium.com;NM=1;PH=DS;RN=25;RT=25;SR=0;TI=SMTPD_---.iLU3ynG_1784080482; Received: from DESKTOP-V2MKAT2.localdomain(mailfrom:syyang@lontium.com fp:SMTPD_---.iLU3ynG_1784080482 cluster:ay29) by smtp.aliyun-inc.com; Wed, 15 Jul 2026 09:54:43 +0800 From: syyang@lontium.com To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andrzej.hajda@intel.com, neil.armstrong@linaro.org, dmitry.baryshkov@oss.qualcomm.com, maarten.lankhorst@linux.intel.com, rfoss@kernel.org, mripard@kernel.org Cc: Laurent.pinchart@ideasonboard.com, tzimmermann@suse.de, jonas@kwiboo.se, jernej.skrabec@gmail.com, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, xmzhu@lontium.corp-partner.google.com, xmzhu@lontium.com, rlyu@lontium.com, xbpeng@lontium.com, qdchen@lontium.com, llzhang@lontium.com, hfxia@lontium.com, Sunyun Yang , Krzysztof Kozlowski Subject: [PATCH v17 1/2] dt-bindings: bridge: Add Lontium LT7911EXC eDP to MIPI DSI bridge Date: Wed, 15 Jul 2026 09:54:37 +0800 Message-Id: <20260715015438.2770155-2-syyang@lontium.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260715015438.2770155-1-syyang@lontium.com> References: <20260715015438.2770155-1-syyang@lontium.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" From: Sunyun Yang This commit adds the device tree binding schema for the Lontium LT7911EXC. This device is an I2C-controlled bridge that converts eDP 1.4 input to MIPI DSI output. Signed-off-by: Sunyun Yang Reviewed-by: Krzysztof Kozlowski --- .../display/bridge/lontium,lt7911exc.yaml | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/lontiu= m,lt7911exc.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/lontium,lt791= 1exc.yaml b/Documentation/devicetree/bindings/display/bridge/lontium,lt7911= exc.yaml new file mode 100644 index 000000000..d664641be --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.ya= ml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/lontium,lt7911exc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Lontium LT7911EXC eDP to MIPI DSI Bridge + +maintainers: + - Sunyun Yang + +properties: + compatible: + enum: + - lontium,lt7911exc + + reg: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: GPIO connected to RST_ pin. + + vdd-supply: + description: Regulator for 1.2V MIPI phy power. + + vcc-supply: + description: Regulator for 3.3V IO power. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Video port for eDP input. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Video port for MIPI DSI output. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - reset-gpios + - vdd-supply + - vcc-supply + - ports + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + bridge@41 { + compatible =3D "lontium,lt7911exc"; + reg =3D <0x41>; + reset-gpios =3D <&gpy8 8 GPIO_ACTIVE_LOW>; + vdd-supply =3D <<7911exc_1v2>; + vcc-supply =3D <<7911exc_3v3>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + bridge_in: endpoint { + remote-endpoint =3D <&edp_out>; + }; + }; + + port@1 { + reg =3D <1>; + bridge_out: endpoint { + remote-endpoint =3D <&panel_in>; + }; + }; + }; + }; + }; -- 2.34.1 From nobody Sat Jul 25 18:07:45 2026 Received: from out28-171.mail.aliyun.com (out28-171.mail.aliyun.com [115.124.28.171]) (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 C1D933909A8; Wed, 15 Jul 2026 01:54:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.28.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784080499; cv=none; b=bU/Ayr8AcBvIdOO3xVx6ZfbUiAMCiLF6UoOhlbQQEkDRCYjG3qztpftbq9lhKX3W3OmtpSFnFQkZqQzlWISXTySbPwnDqEUBQNidjJS1q4mCjGoVkdB4nW7ZhtwMNQ4LGyo8bmmZjPSxa4O5cx0SJ/MgUd/dSu4yNmjvE+yQqjk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784080499; c=relaxed/simple; bh=e1AWmuLGKXPBMuDNKJIs1+JZJfMuw2v0KmeuQWgSOt0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=m3t8MwyR6ud6cxly9D+4VkKoRl/dRncu0r+Szy4AONwJWzcA2hO2GwU1zSxcjbSUm4Tws/15ufWGjxOdJ4olqKnpSlt9ZUmpEuLnXay4RcmkHCes1ZbchqHlDi3Hsp1LSS0VoYjTMqdZJ/sPaWtn+P41Gc0ERYuAef9VSR8zuxw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lontium.com; spf=pass smtp.mailfrom=lontium.com; dkim=pass (2048-bit key) header.d=lontium.com header.i=@lontium.com header.b=YgR/0EBp; arc=none smtp.client-ip=115.124.28.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lontium.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lontium.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lontium.com header.i=@lontium.com header.b="YgR/0EBp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lontium.com; s=default; t=1784080487; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; bh=07DIAWqNU+EGEFQtI7WEy7lHDeSIaEbrLjMsmv6kH8Q=; b=YgR/0EBpmLEnrbuKmsiRybGdlsRUt/9WcVgm6n9yPeTS+/y800ugmHzt1S+ST8oOqpUCzsqSCOZ4t2gw8NuWpcFyUBXPVNmcaoSHjhHe6FeqhRcREPsHlj7QWI4MuN2S7Ucta04kQJJg34De+yNmdHRANvNSgOlDnT5y8utcCgGOJo8qHS5AaYheTPWLRld0tbLcd+xijQAJCe1Vxacf+JAJwxYmVshuMsD39kzglB2/oFvxrHu1i8V0NATUbHFsvqHpS2ZL2vh75z2gEmrrAvf6t9YCQ3LxHlXCjkGWgbe8vWazAxuMNd4gP+3UHMcFrd/oZcjxbw7x07K1XDMGMA== X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07436259|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.00604602-0.000821322-0.993133;FP=18408813509315553011|11|2|18|0|-1|-1|-1;HT=maildocker-contentspam033037021130;MF=syyang@lontium.com;NM=1;PH=DS;RN=24;RT=24;SR=0;TI=SMTPD_---.iLU3ypL_1784080484; Received: from DESKTOP-V2MKAT2.localdomain(mailfrom:syyang@lontium.com fp:SMTPD_---.iLU3ypL_1784080484 cluster:ay29) by smtp.aliyun-inc.com; Wed, 15 Jul 2026 09:54:45 +0800 From: syyang@lontium.com To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andrzej.hajda@intel.com, neil.armstrong@linaro.org, dmitry.baryshkov@oss.qualcomm.com, maarten.lankhorst@linux.intel.com, rfoss@kernel.org, mripard@kernel.org Cc: Laurent.pinchart@ideasonboard.com, tzimmermann@suse.de, jonas@kwiboo.se, jernej.skrabec@gmail.com, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, xmzhu@lontium.corp-partner.google.com, xmzhu@lontium.com, rlyu@lontium.com, xbpeng@lontium.com, qdchen@lontium.com, llzhang@lontium.com, hfxia@lontium.com, Sunyun Yang Subject: [PATCH v17 2/2] drm/bridge: Add Lontium LT7911EXC eDP to MIPI DSI bridge Date: Wed, 15 Jul 2026 09:54:38 +0800 Message-Id: <20260715015438.2770155-3-syyang@lontium.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260715015438.2770155-1-syyang@lontium.com> References: <20260715015438.2770155-1-syyang@lontium.com> 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 From: Sunyun Yang Add support for the Lontium LT7911EXC bridge chip, which converts eDP input to MIPI DSI output using an internal firmware-controlled pipeline. The driver provides: - DRM bridge integration for eDP-to-DSI routing - MIPI DSI host interface for downstream panel attachment - Firmware upgrade mechanism over I2C (erase/program/verify) - GPIO-based reset and regulator management Display timing and MIPI DCS packet generation are handled by the chip firmware and are not configured by the driver. Signed-off-by: Sunyun Yang --- drivers/gpu/drm/bridge/Kconfig | 17 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/lontium-lt7911exc.c | 787 +++++++++++++++++++++ 3 files changed, 805 insertions(+) create mode 100644 drivers/gpu/drm/bridge/lontium-lt7911exc.c diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig index 4a57d49b4..ddf1143a6 100644 --- a/drivers/gpu/drm/bridge/Kconfig +++ b/drivers/gpu/drm/bridge/Kconfig @@ -132,6 +132,23 @@ config DRM_ITE_IT6505 help ITE IT6505 DisplayPort bridge chip driver. +config DRM_LONTIUM_LT7911EXC + tristate "Lontium LT7911EXC eDP/MIPI DSI bridge" + depends on OF + depends on I2C + select CRC32 + select DRM_PANEL_BRIDGE + select DRM_MIPI_DSI + select DRM_KMS_HELPER + select FW_LOADER + select REGMAP_I2C + select REGULATOR + help + DRM driver for the Lontium LT7911EXC bridge + chip. The LT7911EXC converts eDP input to MIPI + DSI output. + Please say Y if you have such hardware. + config DRM_LONTIUM_LT8912B tristate "Lontium LT8912B DSI/HDMI bridge" depends on OF diff --git a/drivers/gpu/drm/bridge/Makefile b/drivers/gpu/drm/bridge/Makef= ile index 15cc821d8..e94def6c0 100644 --- a/drivers/gpu/drm/bridge/Makefile +++ b/drivers/gpu/drm/bridge/Makefile @@ -13,6 +13,7 @@ obj-$(CONFIG_DRM_I2C_NXP_TDA998X) +=3D tda998x.o obj-$(CONFIG_DRM_INNO_HDMI) +=3D inno-hdmi.o obj-$(CONFIG_DRM_ITE_IT6263) +=3D ite-it6263.o obj-$(CONFIG_DRM_ITE_IT6505) +=3D ite-it6505.o +obj-$(CONFIG_DRM_LONTIUM_LT7911EXC) +=3D lontium-lt7911exc.o obj-$(CONFIG_DRM_LONTIUM_LT8912B) +=3D lontium-lt8912b.o obj-$(CONFIG_DRM_LONTIUM_LT9211) +=3D lontium-lt9211.o obj-$(CONFIG_DRM_LONTIUM_LT9611) +=3D lontium-lt9611.o diff --git a/drivers/gpu/drm/bridge/lontium-lt7911exc.c b/drivers/gpu/drm/b= ridge/lontium-lt7911exc.c new file mode 100644 index 000000000..5b7a184e9 --- /dev/null +++ b/drivers/gpu/drm/bridge/lontium-lt7911exc.c @@ -0,0 +1,787 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2026 Lontium Semiconductor, Inc. + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include