From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 91505106FD8E for ; Fri, 13 Mar 2026 06:47:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3CFCD10EAFD; Fri, 13 Mar 2026 06:47:37 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=ite.com.tw header.i=@ite.com.tw header.b="YS4H1I21"; dkim-atps=neutral Received: from ironport.ite.com.tw (219-87-157-213.static.tfn.net.tw [219.87.157.213]) by gabe.freedesktop.org (Postfix) with ESMTPS id C658B10EAFA for ; Fri, 13 Mar 2026 06:47:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ite.com.tw; s=dkim; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=NEB5f//hbbXsnsT2r8dYravZIFYrc87G6FF8mNLfD/I=; b=YS4H1I21uLfB3+m7mBvbUw+S7JzKa+zwRs9XnJwxZRUa+KqYyCYaCo2R DQTWrfwoqHJ7QfAKeHmtYPC5h4YYGd6x55uQrG/qX5fJAVeQ+FLAqYMjF UB/WHWUJAY6WPqkMiwQaMw6XOSJ8fQw8M9JyCv8cPnHMoHnByu7NyIOsf YiVLLHp3EiDedXbHBdGfkIvq0ufI/mMd9kPf9aV1IVVz1Rf6bJC/JFjMo IolXONZG9rZqhWPn7nOWPHBJo3+jVn/Zi/1bLD1XsD7UgOb3/RJNu7Ogn /HC6mktdRKTK49auEp3+PNRN35jx9eIT0poQuVwmaBwSQyQivnhvl9P6F g==; X-CSE-ConnectionGUID: 0/DFlvl3Ruy4fg1ATtr/dA== X-CSE-MsgGUID: 6nj3lvlxQ72TB/4eB8zzLA== Received: from unknown (HELO mse.ite.com.tw) ([192.168.35.30]) by ironport.ite.com.tw with ESMTP; 13 Mar 2026 14:42:16 +0800 Received: from CSBMAIL1.internal.ite.com.tw (CSBMAIL2.internal.ite.com.tw [192.168.65.41]) by mse.ite.com.tw with ESMTP id 62D6lQUq021151; Fri, 13 Mar 2026 14:47:26 +0800 (+08) (envelope-from Pet.Weng@ite.com.tw) Received: from [127.0.1.1] (192.168.72.40) by CSBMAIL2.internal.ite.com.tw (192.168.65.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.35; Fri, 13 Mar 2026 14:47:25 +0800 From: Pet Weng Date: Fri, 13 Mar 2026 14:48:16 +0800 Subject: [PATCH v7 2/2] drm/bridge: Add ITE IT61620 MIPI DSI to HDMI bridge driver MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20260313-it61620-0714-v7-2-36a16dc036d6@ite.com.tw> References: <20260313-it61620-0714-v7-0-36a16dc036d6@ite.com.tw> In-Reply-To: <20260313-it61620-0714-v7-0-36a16dc036d6@ite.com.tw> To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Hermes Wu , Kenneth Hung , Pet Weng , Jau-chih Tseng , Pin-yen Lin X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773384526; l=83998; i=pet.weng@ite.com.tw; s=20250702; h=from:subject:message-id; bh=5b9HPiYQZo1O8htXG3DLkNctzkFBQzeJ8Q9UBFsgcwY=; b=FRlevBx74G5wdciOOiskFYzJzepCHnYorvW1dcQtBP8wGteDdUNDCkI8zKRFbnQoOcPWiwMjy SjhOcEmhSUnCJ6sIoFjzdGU5Zfm5GOqaE986uWP9zvCU/T0IKI0XBge X-Developer-Key: i=pet.weng@ite.com.tw; a=ed25519; pk=wd08uBtTLb93x2ixbKVNsxiZPdMh1Ov4z5klodh2bqo= X-Originating-IP: [192.168.72.40] X-ClientProxiedBy: CSBMAIL1.internal.ite.com.tw (192.168.65.58) To CSBMAIL2.internal.ite.com.tw (192.168.65.41) X-TM-SNTS-SMTP: E7BC0956DF71697A100411A2C2985B580F55E82942D99A503640C6E232A6E6312002:8 X-MAIL: mse.ite.com.tw 62D6lQUq021151 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds support for the ITE IT61620 bridge chip which converts MIPI DSI input to HDMI output. The Driver implements the basic bridge functions and integrates with the DRM bridge and connector frameworks. Supported features include: MIPI DSI input handling HDMI output setup Basic mode configuration I2C-based control and initialization HDCP 1.4 handling HPD handling clarification: Although IT61620 has an HPD pin, hotplug detection is handled by the system connector. The bridge only receives HPD notifications, and the HPD pin is used solely for short pulses during HDCP authentication. Therefore, this bridge does not implement OP_HPD or OP_DETECT, as it does not originate or determine hotplug or connection status. This driver will be used on platforms embedding the IT61620 for video output via HDMI from SoCs with MIPI DSI output. Add a MAINTAINERS entry for the IT61620 bridge driver. Signed-off-by: Pet Weng --- MAINTAINERS | 7 + drivers/gpu/drm/bridge/Kconfig | 18 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/ite-it61620.c | 2590 ++++++++++++++++++++++++++++++++++ 4 files changed, 2616 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 00b05e5328bef0975d493953f569f5d0a2d6fc79..f3d09a3d10b40f00121165d54717110449ad11e0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13648,6 +13648,13 @@ T: git https://gitlab.freedesktop.org/drm/misc/kernel.git F: Documentation/devicetree/bindings/display/bridge/ite,it6263.yaml F: drivers/gpu/drm/bridge/ite-it6263.c +ITE IT61620 MIPI DSI TO HDMI BRIDGE DRIVER +M: Pet Weng +L: dri-devel@lists.freedesktop.org +S: Maintained +F: Documentation/devicetree/bindings/display/bridge/ite,it61620.yaml +F: drivers/gpu/drm/bridge/ite-it61620.c + ITE IT66121 HDMI BRIDGE DRIVER M: Phong LE M: Neil Armstrong diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig index 1cabfa1d2b2efc6fca68619eea6050fe96a892e8..2d074d522b952aa5a514897202b37c4d9a20c7ed 100644 --- a/drivers/gpu/drm/bridge/Kconfig +++ b/drivers/gpu/drm/bridge/Kconfig @@ -118,6 +118,24 @@ config DRM_ITE_IT6263 help ITE IT6263 LVDS to HDMI bridge chip driver. +config DRM_ITE_IT61620 + tristate "ITE IT61620 DSI/HDMI bridge" + depends on OF + select DRM_DISPLAY_CONNECTOR + select DRM_DISPLAY_HDMI_HELPER + select DRM_DISPLAY_HDCP_HELPER + select DRM_DISPLAY_HELPER + select DRM_MIPI_DSI + select DRM_KMS_HELPER + select DRM_HDMI_HELPER + select CRYPTO_LIB_SHA1 + help + Driver for ITE IT61620 MIPI DSI to HDMI bridge + chip driver. + + It enables display output through HDMI when connected to a MIPI + DSI source. The bridge translates the video signals for HDMI monitors. + config DRM_ITE_IT6505 tristate "ITE IT6505 DisplayPort bridge" depends on OF diff --git a/drivers/gpu/drm/bridge/Makefile b/drivers/gpu/drm/bridge/Makefile index fb0cf0bf88756bed8323830c80f3f1d066b51e36..c70f084c30368695b9cae9791c91c224aa5a32a5 100644 --- a/drivers/gpu/drm/bridge/Makefile +++ b/drivers/gpu/drm/bridge/Makefile @@ -12,6 +12,7 @@ obj-$(CONFIG_DRM_I2C_NXP_TDA998X) += tda998x.o obj-$(CONFIG_DRM_INNO_HDMI) += inno-hdmi.o obj-$(CONFIG_DRM_ITE_IT6263) += ite-it6263.o +obj-$(CONFIG_DRM_ITE_IT61620) += ite-it61620.o obj-$(CONFIG_DRM_ITE_IT6505) += ite-it6505.o obj-$(CONFIG_DRM_LONTIUM_LT8912B) += lontium-lt8912b.o obj-$(CONFIG_DRM_LONTIUM_LT9211) += lontium-lt9211.o diff --git a/drivers/gpu/drm/bridge/ite-it61620.c b/drivers/gpu/drm/bridge/ite-it61620.c new file mode 100644 index 0000000000000000000000000000000000000000..855c8cd07a86c8a6ca15b43f61653df6dd8b7d57 --- /dev/null +++ b/drivers/gpu/drm/bridge/ite-it61620.c @@ -0,0 +1,2590 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2025 ITE Tech. Inc. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include