From nobody Sat Jul 25 20:06:03 2026 Received: from out28-4.mail.aliyun.com (out28-4.mail.aliyun.com [115.124.28.4]) (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 AC0823E317C; Tue, 14 Jul 2026 06:48:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.28.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784011721; cv=none; b=FYml1c6fTmQX3G4SKlsE9IJqqP1nJFlvKHZsfmle1lt9QeaWy9P6mDEPSx8gfiMIDQbWx5gbjj4mR/TPV9IMvQo/8eXVfnDGkoxY3xm0B9JdpiRk62p5oZpwEMk1uuWbn9u6M9SvneGAwTBCkQk+NldOClI8o2ucTvErpm7BsuM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784011721; c=relaxed/simple; bh=2iLfvQF7aOR1f8DEmLClXncyP8EdqagQDvN33dGE43k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=spiBmhJgacuQ/xqtZB0zS9vQfEsYl+07k6YiMi//l1FbKLGTKIRooB+rYXfUsIK5SDXSBRI/7vEwQsQY6/nkxEvpomza2OdCBRhzNMIoWQ5QOiQ2jnrscgOHgSHgkUnH7DqOrXlZ7PM6j8PNGBC5O5M0FpgZ+MaoRAYu4i0JehI= 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=ViTFQ54P; arc=none smtp.client-ip=115.124.28.4 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="ViTFQ54P" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lontium.com; s=default; t=1784011711; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; bh=LSn7sCnL4bgp20aLsU5JOn9LbX1gvl5Zx1d+HE2bpT0=; b=ViTFQ54PHmGN1i8ZiMKWV33sJ2AzoOT7K/DXZs5NMCLp1bzHv/doQLbVeMbTDKjA6Eh+o62KG9pp3Oog5lyxj3OgOKdhwEiNaGYU+dkFcQkFE2c1iek+D4FcuuSUBA0g1RXfd0KCBJ1g4EFto6jbzMNVjVH319Djs7g4cKvF1d5H2B57k4xDSolgAyG/mgSr+77odyXhYSzhfF+2cPNor4rUCX07EQJoifxSVHy7giEqMqPx/Fo/St2AE8tqRwqkYWOCRTgqUSCLkIScj3Vr/Nqyz3CYqJfjDM5es3DePy3eNrSgoBkpBhzpBVl5EzU06GAirTjB4c09Efbe3PDU6A== X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08448496|-1;BR=01201311R131ec;CH=green;DM=|CONTINUE|false|;DS=SPAM|spam_ad|0.867174-0.00121929-0.131607;FP=12538499638367315378|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033037022039;MF=syyang@lontium.com;NM=1;PH=DS;RN=25;RT=25;SR=0;TI=SMTPD_---.iKq60U9_1784011709; Received: from DESKTOP-V2MKAT2.localdomain(mailfrom:syyang@lontium.com fp:SMTPD_---.iKq60U9_1784011709 cluster:ay29) by smtp.aliyun-inc.com; Tue, 14 Jul 2026 14:48:29 +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 v15 1/2] dt-bindings: bridge: Add Lontium LT7911EXC eDP to MIPI DSI bridge Date: Tue, 14 Jul 2026 14:48:21 +0800 Message-Id: <20260714064822.2753289-2-syyang@lontium.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260714064822.2753289-1-syyang@lontium.com> References: <20260714064822.2753289-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..3290b10ce --- /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>; + + mipi-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>; + }; + }; + }; + }; + }; --=20 2.34.1 From nobody Sat Jul 25 20:06:03 2026 Received: from out198-16.us.a.mail.aliyun.com (out198-16.us.a.mail.aliyun.com [47.90.198.16]) (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 C4F613E5A39; Tue, 14 Jul 2026 06:48:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.198.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784011733; cv=none; b=urA4H43tSJUQWvcQ/JfjUc2HvRKWFKwMGKYRGVeStVEb+HkSYaKRzIICCxY+fzaD9RR1xb9LN+Xbk6pzfkbeTdThCb7fZslrYmQeOpG3gQW5EZi4p7yjt7O369FBetZ74P1ch9zJqR5RJhRRsFgDtHn7mZHtXk6WywabzY3pD9I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784011733; c=relaxed/simple; bh=RBD50IYxTESs+FkFknsU0ib0/Fg97o3Ku+52I6rJWx0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=LY4WolKAMjIJq7N43HadKxfNKpq/HhZE+/ggPq+cLMuvCECRH+PkwHy3GSuSe7x1hUGy1M3gxUHlxBriI9lzZEnE71A6hYDGXojNL+WM8VABBn57AL4x4L5oxO+rlETzQOImL6JoNUpeZMOsfBUsnU/6MPVjIjZ9EQuLRMQgv1I= 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=Y+N1rvQZ; arc=none smtp.client-ip=47.90.198.16 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="Y+N1rvQZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lontium.com; s=default; t=1784011712; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; bh=KmeekksVG/KSAjg75U45ypLHMlro6fBf9H1ZwvoRm9E=; b=Y+N1rvQZO2dUOScmvsl61kkTWsDnZLRVG8FanFpmrQ+BmqKx5ywvUd0ySzNDAcUvCJBr5TB8mM944wVIW766Z+QJz31J3O5qhUVELgl8+iYGa/GyG0XwjELSz8ss7Jzq3+j4OUXFD69X/tFtff2vAPSDTCaJxdxt9xTR0DAk6/DXeCt9OegOvSLEcrm7YK0SMPFxzItYb8JKkMCtpdf0+PUuwZu8QaUDMc+xy2FzBz3I2zc4yRbIX56rL4XqNzLoe4Ctnd1i2pb7pbKzSrhPv4qf0pTrjhCvSy+Yt2F6QWWWPc0CTYSHO0sTVDk7VBd5y+aVrjILdRwg/8xDt+TkHw== X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07436259|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.00471445-0.000852758-0.994433;FP=18399801912014169851|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033045018182;MF=syyang@lontium.com;NM=1;PH=DS;RN=24;RT=24;SR=0;TI=SMTPD_---.iKq60Vl_1784011710; Received: from DESKTOP-V2MKAT2.localdomain(mailfrom:syyang@lontium.com fp:SMTPD_---.iKq60Vl_1784011710 cluster:ay29) by smtp.aliyun-inc.com; Tue, 14 Jul 2026 14:48:31 +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 v15 2/2] drm/bridge: Add Lontium LT7911EXC eDP to MIPI DSI bridge Date: Tue, 14 Jul 2026 14:48:22 +0800 Message-Id: <20260714064822.2753289-3-syyang@lontium.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260714064822.2753289-1-syyang@lontium.com> References: <20260714064822.2753289-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 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 | 770 +++++++++++++++++++++ 3 files changed, 788 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. =20 +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..b19b5c19b --- /dev/null +++ b/drivers/gpu/drm/bridge/lontium-lt7911exc.c @@ -0,0 +1,770 @@ +// 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