From nobody Fri Oct 3 16:44:22 2025 Received: from lelvem-ot02.ext.ti.com (lelvem-ot02.ext.ti.com [198.47.23.235]) (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 AA27E2EB85D; Wed, 27 Aug 2025 20:24:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.235 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756326250; cv=none; b=tNhMw+9LmNjuoY8N57cDEWk/cIyvrwrEQXzLqEcJx2Qvhu5CL4LUd4DSzSZ6ER47rTLtzE04pLVt0qBOHX8K2eqi+/jcm6Hjx7CLw+bh5kCuJV/MhlHXS7V9tp0viGYYWeyEImSpi4MJYhiuHMQu8ECxaQaeP43n8OF43BpUDjY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756326250; c=relaxed/simple; bh=Qx7HgWweJC0iBiCsiTAuxGIumAKR6tAjbidbRrcNPBw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ry8BKYnsdab1lhjwfADgx4/5RPI/ME+c+I9qDQxmqXXU0lc3SoSt32K6VLapLEGFAppGsm2kg2mLJhDXIwwo1esJ1ZfN3lPa0XbJd21K+JJkEdUnbtU3AE9KfttrYR5Rjen49mxTdNjA9n2hHFxS8gqxhPIgpESOS9IOX285EH8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=MRqjuAsc; arc=none smtp.client-ip=198.47.23.235 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="MRqjuAsc" Received: from fllvem-sh03.itg.ti.com ([10.64.41.86]) by lelvem-ot02.ext.ti.com (8.15.2/8.15.2) with ESMTP id 57RKNvU91848599; Wed, 27 Aug 2025 15:23:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1756326237; bh=91iFr4naHIXlcV9GivKcF6EgtPgOgYZQJGU5T0IlmwA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=MRqjuAsc9XSXF8yTvjLC3do/Ez1UFUMU1Mn6GEZEAjx4U9NT8ImKbnYPVacb2BdyD 6xgD/tP9jgpGtfRyBtX3dUxzHXEBtHqxlqvdXXZvgYJPrpU1zDPiSVyJXBNaEEqRCs MGju3CQ7ex7cOvNMmTjDP+qJC/2JvFtiELl1l7Ro= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllvem-sh03.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 57RKNvnu2707068 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Wed, 27 Aug 2025 15:23:57 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Wed, 27 Aug 2025 15:23:57 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55 via Frontend Transport; Wed, 27 Aug 2025 15:23:57 -0500 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 57RKNvhF3367088; Wed, 27 Aug 2025 15:23:57 -0500 From: Nishanth Menon To: Conor Dooley , Krzysztof Kozlowski , Rob Herring , David Airlie , Maxime Ripard , Laurent Pinchart , Neil Armstrong CC: , , , Robert Nelson , Jason Kridner , , , , , Nishanth Menon , Krzysztof Kozlowski Subject: [PATCH V5 1/5] dt-bindings: display: bridge: it66121: Add compatible string for IT66122 Date: Wed, 27 Aug 2025 15:23:50 -0500 Message-ID: <20250827202354.2017972-2-nm@ti.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20250827202354.2017972-1-nm@ti.com> References: <20250827202354.2017972-1-nm@ti.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 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" Add a new ite,it66122 compatible string to the IT66121 binding documentation, since the two chips are practically same except for id register difference. Signed-off-by: Nishanth Menon Acked-by: Krzysztof Kozlowski Reviewed-by: Andrew Davis Reviewed-by: Tomi Valkeinen --- Changes since V4: None V4: https://lore.kernel.org/all/20250819130807.3322536-2-nm@ti.com/ V3: https://lore.kernel.org/all/20250815034105.1276548-2-nm@ti.com/ V2: https://lore.kernel.org/all/20250813204106.580141-2-nm@ti.com/ V1: https://lore.kernel.org/all/20250813190835.344563-2-nm@ti.com/ .../devicetree/bindings/display/bridge/ite,it66121.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/bridge/ite,it66121.y= aml b/Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml index a7eb2603691f..c99b67f0bb73 100644 --- a/Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml +++ b/Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml @@ -19,6 +19,7 @@ properties: compatible: enum: - ite,it66121 + - ite,it66122 - ite,it6610 =20 reg: --=20 2.47.0 From nobody Fri Oct 3 16:44:22 2025 Received: from fllvem-ot04.ext.ti.com (fllvem-ot04.ext.ti.com [198.47.19.246]) (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 73CBA2EA483; Wed, 27 Aug 2025 20:24:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.246 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756326250; cv=none; b=Wlk5K75niGPYmoKKqlHcRmoVgA/tEn74pcYNkKtJbjPG773hKVkLF7YAAD1ecNy5YLYaW9gkuRR11Rp00fc6KeldTfIzUO5c7zKE8Mc+YdDdx6VL92AfH1yPuc1tbiczA8+F5CM8wKGrJpg+4vj3XekRk7K8dKxGdCR9XaZTwW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756326250; c=relaxed/simple; bh=72u6wOCUwIV19o8KCbaTR1SjaILPuYQoZUd4nxQfUC8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oPdmxdGGvEEqgG6sAC9JzTgWbeVrnZlPxYa09brRWtLjBW0+bRY+mSpWpNJsaIZdTJDqg+miizNFUAoPRSc35+4Odu+Xvn4o2voRyO+HWGWe699SYjZWyQEn0pqh8fgH/Q2v+7LENBI8PxgW+6hMI3IDju9xQ9suHPt0+RJ5Vb4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=GPUZIRK9; arc=none smtp.client-ip=198.47.19.246 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="GPUZIRK9" Received: from fllvem-sh03.itg.ti.com ([10.64.41.86]) by fllvem-ot04.ext.ti.com (8.15.2/8.15.2) with ESMTP id 57RKNvux1825103; Wed, 27 Aug 2025 15:23:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1756326237; bh=PAnCviSFhOlnqET5D2CBnULN/pXQdW/J/X2pLkaLS+U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GPUZIRK9ZmhRSHoqte8s+FazGpb/lUZ8mQv12oyKbgTloAtG4DrvbWM/2FaEoEAit Uz6wzTU30/U+9grdV/hA0vhK+i0DwjtqijK6lVgCQ/ne1MQsIZeh0+rlgtTXN8ej2V n67UyMcDD/Pu0IG9qAuenYYwDUAa7m4oRKvmgHkc= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllvem-sh03.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 57RKNv4f2707069 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Wed, 27 Aug 2025 15:23:57 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Wed, 27 Aug 2025 15:23:57 -0500 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55 via Frontend Transport; Wed, 27 Aug 2025 15:23:57 -0500 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 57RKNvXu3643389; Wed, 27 Aug 2025 15:23:57 -0500 From: Nishanth Menon To: Conor Dooley , Krzysztof Kozlowski , Rob Herring , David Airlie , Maxime Ripard , Laurent Pinchart , Neil Armstrong CC: , , , Robert Nelson , Jason Kridner , , , , , Nishanth Menon Subject: [PATCH V5 2/5] drm/bridge: it66121: Drop ftrace like dev_dbg() prints Date: Wed, 27 Aug 2025 15:23:51 -0500 Message-ID: <20250827202354.2017972-3-nm@ti.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20250827202354.2017972-1-nm@ti.com> References: <20250827202354.2017972-1-nm@ti.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 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" Drop the ftrace like dev_dbg() that checkpatch --strict complains about: WARNING: Unnecessary ftrace-like logging - prefer using ftrace + dev_dbg(dev, "%s\n", __func__); WARNING: Unnecessary ftrace-like logging - prefer using ftrace + dev_dbg(dev, "%s\n", __func__); WARNING: Unnecessary ftrace-like logging - prefer using ftrace + dev_dbg(dev, "%s\n", __func__); Signed-off-by: Nishanth Menon Reviewed-by: Andrew Davis Reviewed-by: Dmitry Baryshkov Reviewed-by: Tomi Valkeinen --- Changes since V4: None. V4: https://lore.kernel.org/all/20250819130807.3322536-3-nm@ti.com/ V3: https://lore.kernel.org/all/20250815034105.1276548-3-nm@ti.com/ drivers/gpu/drm/bridge/ite-it66121.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/= ite-it66121.c index aa7b1dcc5d70..9b8ed2fae2f4 100644 --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -1384,8 +1384,6 @@ static int it66121_audio_startup(struct device *dev, = void *data) int ret; struct it66121_ctx *ctx =3D dev_get_drvdata(dev); =20 - dev_dbg(dev, "%s\n", __func__); - mutex_lock(&ctx->lock); ret =3D it661221_audio_output_enable(ctx, true); if (ret) @@ -1401,8 +1399,6 @@ static void it66121_audio_shutdown(struct device *dev= , void *data) int ret; struct it66121_ctx *ctx =3D dev_get_drvdata(dev); =20 - dev_dbg(dev, "%s\n", __func__); - mutex_lock(&ctx->lock); ret =3D it661221_audio_output_enable(ctx, false); if (ret) @@ -1479,8 +1475,6 @@ static int it66121_audio_codec_init(struct it66121_ct= x *ctx, struct device *dev) .no_capture_mute =3D 1, }; =20 - dev_dbg(dev, "%s\n", __func__); - if (!of_property_present(dev->of_node, "#sound-dai-cells")) { dev_info(dev, "No \"#sound-dai-cells\", no audio\n"); return 0; --=20 2.47.0 From nobody Fri Oct 3 16:44:22 2025 Received: from fllvem-ot04.ext.ti.com (fllvem-ot04.ext.ti.com [198.47.19.246]) (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 360C81DE4CA; Wed, 27 Aug 2025 20:24:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.246 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756326249; cv=none; b=fGoVt+XY8VzsK6urslpkJhZ3motDT38sELh4Btmq4S/Wx1Vcrr2I8QF3x4x1ONR5xaWG8OBnim9pnO8ZnU3gxYM+fW7ctHQLpDt91hhTAxlQiThrm87xeLXDq5iKh+0WLGPj2/1gQiUdpVa/VK5r9YnJ99hPIvwN7nK1St8B1qQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756326249; c=relaxed/simple; bh=JNKkgtl3Oq7m+WMuKwi3qp03Go2xVgJ00nFgbtqWNXw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fnMNOTP+7Iu0fazq7oIc2LzgHXaBB7hPCpaX0ebQY7IphLAgibv830T1o0b5/Ixaa6ZZsK2xx9xDEGjM63xJEBihX0QuZ4NtsvmWCzmk8ZXzQNKuY5PHodt/agoLVJNv6M+O3UR65pupPlc4ZQwnaj7+sdh8G3WcPojsB3VkpTU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=vwvuU6hk; arc=none smtp.client-ip=198.47.19.246 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="vwvuU6hk" Received: from lelvem-sh02.itg.ti.com ([10.180.78.226]) by fllvem-ot04.ext.ti.com (8.15.2/8.15.2) with ESMTP id 57RKNvl81825101; Wed, 27 Aug 2025 15:23:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1756326237; bh=n21umJ49TC+htP1odhxAT26FoC5frxXZhZvqEYwIH48=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vwvuU6hkHzDTacwnVr9XLAHXeE7ilVhxRmdcp+qVl8isYlFEYSiWyPY5RsdQAUsPh JjmxWNmkK2OQUZRnRGWMtgocBjDMIrJ+O36ibZ1t3DVro57CpPgNvet9uaIOXhfPuc 5wIp9FZOsYAnVqU+RO01HLIPnz4ChWGJweN1fl/U= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelvem-sh02.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 57RKNvJb2950685 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Wed, 27 Aug 2025 15:23:57 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Wed, 27 Aug 2025 15:23:57 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55 via Frontend Transport; Wed, 27 Aug 2025 15:23:56 -0500 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 57RKNvVA3367091; Wed, 27 Aug 2025 15:23:57 -0500 From: Nishanth Menon To: Conor Dooley , Krzysztof Kozlowski , Rob Herring , David Airlie , Maxime Ripard , Laurent Pinchart , Neil Armstrong CC: , , , Robert Nelson , Jason Kridner , , , , , Nishanth Menon Subject: [PATCH V5 3/5] drm/bridge: it66121: Sort the compatibles Date: Wed, 27 Aug 2025 15:23:52 -0500 Message-ID: <20250827202354.2017972-4-nm@ti.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20250827202354.2017972-1-nm@ti.com> References: <20250827202354.2017972-1-nm@ti.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 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" Keep the compatibles sorted alpha-numerically. Signed-off-by: Nishanth Menon Reviewed-by: Tomi Valkeinen --- Changes since V4: None V4: https://lore.kernel.org/all/20250819130807.3322536-4-nm@ti.com/ drivers/gpu/drm/bridge/ite-it66121.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/= ite-it66121.c index 9b8ed2fae2f4..cd74f3966560 100644 --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -1619,15 +1619,15 @@ static const struct it66121_chip_info it6610_chip_i= nfo =3D { }; =20 static const struct of_device_id it66121_dt_match[] =3D { - { .compatible =3D "ite,it66121", &it66121_chip_info }, { .compatible =3D "ite,it6610", &it6610_chip_info }, + { .compatible =3D "ite,it66121", &it66121_chip_info }, { } }; MODULE_DEVICE_TABLE(of, it66121_dt_match); =20 static const struct i2c_device_id it66121_id[] =3D { - { "it66121", (kernel_ulong_t) &it66121_chip_info }, - { "it6610", (kernel_ulong_t) &it6610_chip_info }, + { "it6610", (kernel_ulong_t)&it6610_chip_info }, + { "it66121", (kernel_ulong_t)&it66121_chip_info }, { } }; MODULE_DEVICE_TABLE(i2c, it66121_id); --=20 2.47.0 From nobody Fri Oct 3 16:44:22 2025 Received: from fllvem-ot04.ext.ti.com (fllvem-ot04.ext.ti.com [198.47.19.246]) (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 352FD2D97BF; Wed, 27 Aug 2025 20:24:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.246 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756326251; cv=none; b=QuiP9e5IykGx54qiWAIKpfrZqLlrJKQcH6AtWgraIUM1nYzW808NVPKa1xQz+Ib8J0WauKlX6vtPAxNJufzvMMNO5mBEQcduim3EjRcP8FQ4k0UvTPg+VKUnJ82xQF86tVVy8fuXzh00vAUK79ZvV4FEC0ESExTXnk8UpERT9/w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756326251; c=relaxed/simple; bh=GeAJb0EQcbf0LS7fbgsd4cfwUvZxCaiAgjfgxcf0tlg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gtTR76rMkVJ7OPZsDO7gOVX6kurv4l8jCPDON2YoyjVyqA6TiR/04zTPD1klxMGERhT19W/D1InfXz5Lf/EXjZw4rKizSdlHcc6WRUBdHV6UKqNZOdWNnK3VxYoLcloYHtp3/34KMfUHx3GJ0plPh8P+g3ocKGPM+MzmhRLLNo0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=wdwYH5Nz; arc=none smtp.client-ip=198.47.19.246 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="wdwYH5Nz" Received: from lelvem-sh02.itg.ti.com ([10.180.78.226]) by fllvem-ot04.ext.ti.com (8.15.2/8.15.2) with ESMTP id 57RKNwGw1825113; Wed, 27 Aug 2025 15:23:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1756326238; bh=2873eYRFeI8OBe5rr1gNX2FrwM/fq0m7az5Za+99iDY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wdwYH5NzbPl5DdE0TGuqrncAImfaEvMk1HAFzG0hFoRMPlZARoXS8dTARTqIUf5nv tnp0DCmRwaC7vgmLHiwBng3bix0/blc71kGagAOjHv2t+nJ40eC6WQsLoAnoYSX2f3 GPIZqLV0/GnjJM0D2f8G2hfgzhE1fvFEFZP/j8Pw= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelvem-sh02.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 57RKNwa12950691 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Wed, 27 Aug 2025 15:23:58 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Wed, 27 Aug 2025 15:23:57 -0500 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55 via Frontend Transport; Wed, 27 Aug 2025 15:23:57 -0500 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 57RKNvc93643392; Wed, 27 Aug 2025 15:23:57 -0500 From: Nishanth Menon To: Conor Dooley , Krzysztof Kozlowski , Rob Herring , David Airlie , Maxime Ripard , Laurent Pinchart , Neil Armstrong CC: , , , Robert Nelson , Jason Kridner , , , , , Nishanth Menon Subject: [PATCH V5 4/5] drm/bridge: it66121: Use vid/pid to detect the type of chip Date: Wed, 27 Aug 2025 15:23:53 -0500 Message-ID: <20250827202354.2017972-5-nm@ti.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20250827202354.2017972-1-nm@ti.com> References: <20250827202354.2017972-1-nm@ti.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 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" The driver knows exactly which version of the chip is present since the vid/pid is used to enforce a compatibility. Given that some devices like IT66121 has potentially been replaced with IT66122 mid production for many platforms, it makes no sense to use the vid/pid as an enforcement for compatibility. Instead, detect the ID of the actual chip in use by matching the corresponding vid/pid and drop the compatible specific lookup table. Signed-off-by: Nishanth Menon Reviewed-by: Andrew Davis Reviewed-by: Tomi Valkeinen --- Changes since V4: - Switched to ARRAY_SIZE, Dropped the null entry - Picked up Andrew's Reviewed-by V4: https://lore.kernel.org/all/20250819130807.3322536-5-nm@ti.com/ V3: https://lore.kernel.org/all/20250815034105.1276548-4-nm@ti.com/ V2: https://lore.kernel.org/all/20250813204106.580141-3-nm@ti.com/ drivers/gpu/drm/bridge/ite-it66121.c | 58 ++++++++++++++-------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/= ite-it66121.c index cd74f3966560..1b2ef774c770 100644 --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -312,7 +312,7 @@ struct it66121_ctx { u8 swl; bool auto_cts; } audio; - const struct it66121_chip_info *info; + enum chip_id id; }; =20 static const struct regmap_range_cfg it66121_regmap_banks[] =3D { @@ -402,7 +402,7 @@ static int it66121_configure_afe(struct it66121_ctx *ct= x, if (ret) return ret; =20 - if (ctx->info->id =3D=3D ID_IT66121) { + if (ctx->id =3D=3D ID_IT66121) { ret =3D regmap_write_bits(ctx->regmap, IT66121_AFE_IP_REG, IT66121_AFE_IP_EC1, 0); if (ret) @@ -428,7 +428,7 @@ static int it66121_configure_afe(struct it66121_ctx *ct= x, if (ret) return ret; =20 - if (ctx->info->id =3D=3D ID_IT66121) { + if (ctx->id =3D=3D ID_IT66121) { ret =3D regmap_write_bits(ctx->regmap, IT66121_AFE_IP_REG, IT66121_AFE_IP_EC1, IT66121_AFE_IP_EC1); @@ -449,7 +449,7 @@ static int it66121_configure_afe(struct it66121_ctx *ct= x, if (ret) return ret; =20 - if (ctx->info->id =3D=3D ID_IT6610) { + if (ctx->id =3D=3D ID_IT6610) { ret =3D regmap_write_bits(ctx->regmap, IT66121_AFE_XP_REG, IT6610_AFE_XP_BYPASS, IT6610_AFE_XP_BYPASS); @@ -599,7 +599,7 @@ static int it66121_bridge_attach(struct drm_bridge *bri= dge, if (ret) return ret; =20 - if (ctx->info->id =3D=3D ID_IT66121) { + if (ctx->id =3D=3D ID_IT66121) { ret =3D regmap_write_bits(ctx->regmap, IT66121_CLK_BANK_REG, IT66121_CLK_BANK_PWROFF_RCLK, 0); if (ret) @@ -748,7 +748,7 @@ static int it66121_bridge_check(struct drm_bridge *brid= ge, { struct it66121_ctx *ctx =3D container_of(bridge, struct it66121_ctx, brid= ge); =20 - if (ctx->info->id =3D=3D ID_IT6610) { + if (ctx->id =3D=3D ID_IT6610) { /* The IT6610 only supports these settings */ bridge_state->input_bus_cfg.flags |=3D DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE; @@ -802,7 +802,7 @@ void it66121_bridge_mode_set(struct drm_bridge *bridge, if (regmap_write(ctx->regmap, IT66121_HDMI_MODE_REG, IT66121_HDMI_MODE_HD= MI)) goto unlock; =20 - if (ctx->info->id =3D=3D ID_IT66121 && + if (ctx->id =3D=3D ID_IT66121 && regmap_write_bits(ctx->regmap, IT66121_CLK_BANK_REG, IT66121_CLK_BANK_PWROFF_TXCLK, IT66121_CLK_BANK_PWROFF_TXCLK)) { @@ -815,7 +815,7 @@ void it66121_bridge_mode_set(struct drm_bridge *bridge, if (it66121_configure_afe(ctx, adjusted_mode)) goto unlock; =20 - if (ctx->info->id =3D=3D ID_IT66121 && + if (ctx->id =3D=3D ID_IT66121 && regmap_write_bits(ctx->regmap, IT66121_CLK_BANK_REG, IT66121_CLK_BANK_PWROFF_TXCLK, 0)) { goto unlock; @@ -1498,13 +1498,19 @@ static const char * const it66121_supplies[] =3D { "vcn33", "vcn18", "vrf12" }; =20 +static const struct it66121_chip_info it66xx_chip_info[] =3D { + {.id =3D ID_IT6610, .vid =3D 0xca00, .pid =3D 0x0611 }, + {.id =3D ID_IT66121, .vid =3D 0x4954, .pid =3D 0x0612 }, +}; + static int it66121_probe(struct i2c_client *client) { u32 revision_id, vendor_ids[2] =3D { 0 }, device_ids[2] =3D { 0 }; struct device_node *ep; - int ret; + int ret, i; struct it66121_ctx *ctx; struct device *dev =3D &client->dev; + const struct it66121_chip_info *chip_info; =20 if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { dev_err(dev, "I2C check functionality failed.\n"); @@ -1522,7 +1528,6 @@ static int it66121_probe(struct i2c_client *client) =20 ctx->dev =3D dev; ctx->client =3D client; - ctx->info =3D i2c_get_match_data(client); =20 of_property_read_u32(ep, "bus-width", &ctx->bus_width); of_node_put(ep); @@ -1568,11 +1573,18 @@ static int it66121_probe(struct i2c_client *client) revision_id =3D FIELD_GET(IT66121_REVISION_MASK, device_ids[1]); device_ids[1] &=3D IT66121_DEVICE_ID1_MASK; =20 - if ((vendor_ids[1] << 8 | vendor_ids[0]) !=3D ctx->info->vid || - (device_ids[1] << 8 | device_ids[0]) !=3D ctx->info->pid) { - return -ENODEV; + for (i =3D 0; i < ARRAY_SIZE(it66xx_chip_info); i++) { + chip_info =3D &it66xx_chip_info[i]; + if ((vendor_ids[1] << 8 | vendor_ids[0]) =3D=3D chip_info->vid && + (device_ids[1] << 8 | device_ids[0]) =3D=3D chip_info->pid) { + ctx->id =3D chip_info->id; + break; + } } =20 + if (i =3D=3D ARRAY_SIZE(it66xx_chip_info)) + return -ENODEV; + ctx->bridge.of_node =3D dev->of_node; ctx->bridge.type =3D DRM_MODE_CONNECTOR_HDMIA; ctx->bridge.ops =3D DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID; @@ -1606,28 +1618,16 @@ static void it66121_remove(struct i2c_client *clien= t) mutex_destroy(&ctx->lock); } =20 -static const struct it66121_chip_info it66121_chip_info =3D { - .id =3D ID_IT66121, - .vid =3D 0x4954, - .pid =3D 0x0612, -}; - -static const struct it66121_chip_info it6610_chip_info =3D { - .id =3D ID_IT6610, - .vid =3D 0xca00, - .pid =3D 0x0611, -}; - static const struct of_device_id it66121_dt_match[] =3D { - { .compatible =3D "ite,it6610", &it6610_chip_info }, - { .compatible =3D "ite,it66121", &it66121_chip_info }, + { .compatible =3D "ite,it6610" }, + { .compatible =3D "ite,it66121" }, { } }; MODULE_DEVICE_TABLE(of, it66121_dt_match); =20 static const struct i2c_device_id it66121_id[] =3D { - { "it6610", (kernel_ulong_t)&it6610_chip_info }, - { "it66121", (kernel_ulong_t)&it66121_chip_info }, + { .name =3D "it6610" }, + { .name =3D "it66121" }, { } }; MODULE_DEVICE_TABLE(i2c, it66121_id); --=20 2.47.0 From nobody Fri Oct 3 16:44:22 2025 Received: from fllvem-ot03.ext.ti.com (fllvem-ot03.ext.ti.com [198.47.19.245]) (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 855CC2EAB6D; Wed, 27 Aug 2025 20:24:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.245 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756326250; cv=none; b=pIP1ftr16vD49wqg7FdM+r1q+itpDbVf+GdsNz+L6XF8JBQXupOqeFciN4FCCPKs6yQWqq5QxAzN0BS3DjMznlDawMf39QYkEoMQTz1j4Yrsjfmk7dzqBhhzq/UX1Kh04UIltS8amGSk7D3XuWZq2NmCCOdXzcUlXMpQYnOeXgg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756326250; c=relaxed/simple; bh=C6PmEza3l0nG7shFPk7ihwWxDS27su3MGXCvTXtREkA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BDHWncTygGqrB2vFE8+nY1pEwS9wrfY+n0TazW23Z2oFIT0Nnb8DTHy1f9NCEFgSoETKYxTJr2ySfFxaXC1t0B5uJhjdcVKoD/8OHX41PoEm2H5uDOC9d5TtWmd1HyR3GQ9lYueyAfiXxb3ueXVSeCu6i8OCJr1MrUPBkZI0AsI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=PJUwSYzx; arc=none smtp.client-ip=198.47.19.245 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="PJUwSYzx" Received: from lelvem-sh02.itg.ti.com ([10.180.78.226]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTP id 57RKNwL21358626; Wed, 27 Aug 2025 15:23:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1756326238; bh=OhZvUGNzkKwJBBWt0fGwrgmGI6bNK3nytiaCkySyJVA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PJUwSYzx1lbtcFqYNcR6pLPEdje2W44HF4UxxV1+fmP1pN5LWjPlD4B0Ix8MM5Y+Y 7OxjyyJRPLEUWsRpmwDyAKG+X1J3Yrc2kRCM185X37Wuar5k5hKjAe1gOVecLFJOAq gYbOJss5rf7qnqUwLyHEsR349QNAqk7mZggvxOvY= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelvem-sh02.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 57RKNwmt2950688 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Wed, 27 Aug 2025 15:23:58 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Wed, 27 Aug 2025 15:23:57 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55 via Frontend Transport; Wed, 27 Aug 2025 15:23:57 -0500 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 57RKNvZE3367094; Wed, 27 Aug 2025 15:23:57 -0500 From: Nishanth Menon To: Conor Dooley , Krzysztof Kozlowski , Rob Herring , David Airlie , Maxime Ripard , Laurent Pinchart , Neil Armstrong CC: , , , Robert Nelson , Jason Kridner , , , , , Nishanth Menon Subject: [PATCH V5 5/5] drm/bridge: it66121: Add minimal it66122 support Date: Wed, 27 Aug 2025 15:23:54 -0500 Message-ID: <20250827202354.2017972-6-nm@ti.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20250827202354.2017972-1-nm@ti.com> References: <20250827202354.2017972-1-nm@ti.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 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" The IT66122 is a pin compatible replacement for the IT66122. Based on empirical testing, the new device looks to be compatible with IT66121. However due to a lack of public data sheet at this time beyond overall feature list[1] (which seems to add additional features vs ITT66121), it is hard to determine that additional register operations required to enable additional features. So, introduce the device as a new compatible that we will detect based on vid/pid match, with explicit id that can be used to extend the driver capability as information becomes available later on. [1] https://www.ite.com.tw/en/product/cate1/IT66122 Signed-off-by: Nishanth Menon Reviewed-by: Andrew Davis Reviewed-by: Tomi Valkeinen --- Changes since V4: None. V4: https://lore.kernel.org/all/20250819130807.3322536-6-nm@ti.com/ V3: https://lore.kernel.org/all/20250815034105.1276548-5-nm@ti.com/ V2: https://lore.kernel.org/all/20250813204106.580141-4-nm@ti.com/ drivers/gpu/drm/bridge/ite-it66121.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/= ite-it66121.c index 1b2ef774c770..0185f61e6e59 100644 --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -287,6 +287,7 @@ enum chip_id { ID_IT6610, ID_IT66121, + ID_IT66122, }; =20 struct it66121_chip_info { @@ -402,7 +403,7 @@ static int it66121_configure_afe(struct it66121_ctx *ct= x, if (ret) return ret; =20 - if (ctx->id =3D=3D ID_IT66121) { + if (ctx->id =3D=3D ID_IT66121 || ctx->id =3D=3D ID_IT66122) { ret =3D regmap_write_bits(ctx->regmap, IT66121_AFE_IP_REG, IT66121_AFE_IP_EC1, 0); if (ret) @@ -428,7 +429,7 @@ static int it66121_configure_afe(struct it66121_ctx *ct= x, if (ret) return ret; =20 - if (ctx->id =3D=3D ID_IT66121) { + if (ctx->id =3D=3D ID_IT66121 || ctx->id =3D=3D ID_IT66122) { ret =3D regmap_write_bits(ctx->regmap, IT66121_AFE_IP_REG, IT66121_AFE_IP_EC1, IT66121_AFE_IP_EC1); @@ -599,7 +600,7 @@ static int it66121_bridge_attach(struct drm_bridge *bri= dge, if (ret) return ret; =20 - if (ctx->id =3D=3D ID_IT66121) { + if (ctx->id =3D=3D ID_IT66121 || ctx->id =3D=3D ID_IT66122) { ret =3D regmap_write_bits(ctx->regmap, IT66121_CLK_BANK_REG, IT66121_CLK_BANK_PWROFF_RCLK, 0); if (ret) @@ -802,7 +803,7 @@ void it66121_bridge_mode_set(struct drm_bridge *bridge, if (regmap_write(ctx->regmap, IT66121_HDMI_MODE_REG, IT66121_HDMI_MODE_HD= MI)) goto unlock; =20 - if (ctx->id =3D=3D ID_IT66121 && + if ((ctx->id =3D=3D ID_IT66121 || ctx->id =3D=3D ID_IT66122) && regmap_write_bits(ctx->regmap, IT66121_CLK_BANK_REG, IT66121_CLK_BANK_PWROFF_TXCLK, IT66121_CLK_BANK_PWROFF_TXCLK)) { @@ -815,7 +816,7 @@ void it66121_bridge_mode_set(struct drm_bridge *bridge, if (it66121_configure_afe(ctx, adjusted_mode)) goto unlock; =20 - if (ctx->id =3D=3D ID_IT66121 && + if ((ctx->id =3D=3D ID_IT66121 || ctx->id =3D=3D ID_IT66122) && regmap_write_bits(ctx->regmap, IT66121_CLK_BANK_REG, IT66121_CLK_BANK_PWROFF_TXCLK, 0)) { goto unlock; @@ -1501,6 +1502,7 @@ static const char * const it66121_supplies[] =3D { static const struct it66121_chip_info it66xx_chip_info[] =3D { {.id =3D ID_IT6610, .vid =3D 0xca00, .pid =3D 0x0611 }, {.id =3D ID_IT66121, .vid =3D 0x4954, .pid =3D 0x0612 }, + {.id =3D ID_IT66122, .vid =3D 0x4954, .pid =3D 0x0622 }, }; =20 static int it66121_probe(struct i2c_client *client) @@ -1621,6 +1623,7 @@ static void it66121_remove(struct i2c_client *client) static const struct of_device_id it66121_dt_match[] =3D { { .compatible =3D "ite,it6610" }, { .compatible =3D "ite,it66121" }, + { .compatible =3D "ite,it66122" }, { } }; MODULE_DEVICE_TABLE(of, it66121_dt_match); @@ -1628,6 +1631,7 @@ MODULE_DEVICE_TABLE(of, it66121_dt_match); static const struct i2c_device_id it66121_id[] =3D { { .name =3D "it6610" }, { .name =3D "it66121" }, + { .name =3D "it66122" }, { } }; MODULE_DEVICE_TABLE(i2c, it66121_id); --=20 2.47.0