From nobody Sat Jul 25 05:23:13 2026 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A82913FDBEE for ; Fri, 17 Jul 2026 13:20:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784294446; cv=none; b=tWRErLgY1goUz7YsoHPxzazTHhlWlH8nhwq4WoPq5tBjySbyJYNFlNbEFiNwN3T0w8zPJQj+7tWza7BAc0THyth4XgSKmzj6+G3y9Lzbdsh55h1mZ+0WSpsbYaMC0f0GlzElrgwGzWZs1eYOLqUS1KlWYS+MEWvm+4zqYt/FCTk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784294446; c=relaxed/simple; bh=7Mf6k0qVkozT4YeFG9EjJGBACApFcUwcZixfGal0Bpc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YEL/CWnfNy16IIJd0T2YG5xz2gshF2EXLlvedx4DYkuVsqhG+S9JJqSWIRQLhktxCKPR7ds+aoTODcsULVbGqzKh1UuX1irAf67pkB3/HV5wqKcpiqWYfRGD0B7HTIll6wJI+OUhzHwcg4OMRGeXYM09QXv0pNpaajMiQp/yT/w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BO+4oX2e; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BO+4oX2e" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4954a32cf1eso2684705e9.3 for ; Fri, 17 Jul 2026 06:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784294443; x=1784899243; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=SM52+0dlyaiG6ccFqkc22ArwQiXLj4h7/RuQ4lLTioI=; b=BO+4oX2e/KCOrJPjgUqUI31hZEPJBuvJgaXw1c7pdrhJGSQNAu6FG9F96mznVCZZkr 0JfK3ptJOUvn/ekJFUv8/N/yCstcvLrrmSbiPQcF6oeQWk3aWBTNTUa6Bgt36Mz+QVjp 1NeHRi8qEJe2IMTafE64IOu7nldSEz4qGQPiXBGadcL2LEPBxZiuG+n0NBLYCsOQaUR8 uDPjRSezz0EnzfEWHD16U2LqsxEVYO59pSdMIpVx7zGKn2GskDq+2qc0tWoC3Mn+Lqqq gZgvSjpvnIeImPo7W1CkdcFGhEsNpbP8cI90Zp/eo54ifFtIHW1Jloy9xjOwswJ4EUVk Abxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784294443; x=1784899243; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=SM52+0dlyaiG6ccFqkc22ArwQiXLj4h7/RuQ4lLTioI=; b=aRqlukVGMqBeb8khLu0rmXZsr44OIAz1YgUg+Bj7Z2TzFnLuZrrDSDpv+1GMcgCZrZ MBizP1cC5TWcArLrBwSFuCmwM0I0r6+RILDlmG4k9Qidwnbb+lDgPwxcsttr5aJv6vig OZ+QxFXlTNL5J31QCtnkfl+F5aOC8ySe8+dBLarxeDFCXLB9ThP6IEfay03Gb5bRakWe SvT0H1xPMw6jOgHOguopG5tdDZ/VMSE4XU2BRP7BaJGZCuGGsDr3u5gytLuCRzyd5EoK 7SBWt3ydG9BOuwEplB0gRBglITB0qL/78aS8PbpopyPDnpkWpfAs3EKjJfRu14svm8d4 HzzA== X-Forwarded-Encrypted: i=1; AHgh+RoXjY8f1W2psOxu1p1R/rulB9Nk3c84UuqQF6cuZ3WhAFL2sqiISJhM/1jWDy0yevjT1nKyVcP+StrvaiU=@vger.kernel.org X-Gm-Message-State: AOJu0YxMqsuC9W4G3NojHDdJMqxNJjFZ1I3iSiJ+f8Jmj26k4k1jASOt kMyxGR46WceUDammAhFaCBtIdIcF3gbS1mdhPKvZQcZ3McMsExcEpFLd X-Gm-Gg: AfdE7ckDDok3hy5YMNFU8AHxgLYkVd9Xqs4oiegS6fYQu1AkVGz3ZSh+Oslrd5iFYui sQYWafG1pJgHmwJSLeeQM80Trxh9YDDnVCXrEJhn+jHbVYF4jHxgT7sXqdYXMOhO7mJH+ah6DGT 61yBE5iFPq+A7njl6Igj1JcUlKW6wmerdmt6DgjUKDHqcfKgTzo9aBZ0ViZUMgBPqthvu2Ya8Yy a3JtDaKoUBp5rWkKIYPjJyeUxO72DMc2U7b80R0p/rASdaudeO0nLxK1HU1MyEwm9yEMovKKN16 iSKbuIS7SmN1yJgiGZkNATkt7gB1PojhdezM+pxh/sy5f6Qp5RQ4AuVGJ/+kGmj02Tts/naIcaD Lmv8jI+l4eVnTLuSQ8EVG4cUTVBJVkphZ6P6GcVYdF8JOERjmGRdnkAhe2cJzfFlVImOaXmFLGj 88s+oBoqGE8pit++puECqUDUH95PI= X-Received: by 2002:a05:600c:4512:b0:493:bc4a:fb56 with SMTP id 5b1f17b1804b1-4954a50e92bmr30412295e9.39.1784294442564; Fri, 17 Jul 2026 06:20:42 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:5d3a:fe75:f8eb:f0df:1ea8:edb8]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4954a2eddb8sm98841705e9.14.2026.07.17.06.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 06:20:42 -0700 (PDT) From: Fernando Rimoli To: Daniel Scally , Sakari Ailus , linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Arsalan Naeem , linux-kernel@vger.kernel.org, Fernando Rimoli Subject: [PATCH v2 1/3] media: i2c: ov5693: Add OVTI5693 ACPI HID Date: Fri, 17 Jul 2026 15:20:19 +0200 Message-ID: <20260717132021.18034-2-fernandorimoli11@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260717132021.18034-1-fernandorimoli11@gmail.com> References: <20260708213633.18392-1-fernandorimoli11@gmail.com> <20260717132021.18034-1-fernandorimoli11@gmail.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" The ov5693 driver only matches the "INT33BE" ACPI HID. Some Intel IPU6 Surface devices (e.g. Microsoft Surface Pro 9) enumerate the OV5693 front camera with the ACPI HID "OVTI5693" instead, so the i2c core never binds the driver. Add "OVTI5693" to the ACPI match table. Devices that use "INT33BE" (e.g. Surface Go 4) are unaffected. Tested on Surface Pro 9 (IPU6): the sensor enumerates as OVTI5693:00 (ACPI path \_SB_.PC00.I2C3.CAMF) and binds with this change. Link: https://github.com/linux-surface/linux-surface/pull/2171 Signed-off-by: Fernando Rimoli Reviewed-by: Daniel Scally --- drivers/media/i2c/ov5693.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c index 4cc796bbe..02236f3db 100644 --- a/drivers/media/i2c/ov5693.c +++ b/drivers/media/i2c/ov5693.c @@ -1396,6 +1396,7 @@ static const struct dev_pm_ops ov5693_pm_ops =3D { =20 static const struct acpi_device_id ov5693_acpi_match[] =3D { {"INT33BE"}, + {"OVTI5693"}, {}, }; MODULE_DEVICE_TABLE(acpi, ov5693_acpi_match); --=20 2.43.0 From nobody Sat Jul 25 05:23:13 2026 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D6DB3FBEAF for ; Fri, 17 Jul 2026 13:20:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784294447; cv=none; b=aCs1ObAonx7xsUXSlTBc/R5bUa7/7iq1G5UdrAHCfM2V9Eg3tubyAR9YKeqf8JW5hD8WrnyVRHDmnZLglDWBR7h5TQ/PjXOrTPWsNkVEpKFgTFVeID78gEU7fEQH0YBeB7uJAyYsiPlehw8oJR9xN1jjIy/A8WLStMC+CjXT+tE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784294447; c=relaxed/simple; bh=9Ey8YntzkI2JjCM8JaIMzBfFBEia/P3bcp/eqdcteOU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ETGNrubY14WftX9xaAlmZavx0Fg61uE4bhh8ObdnH9dzT3dv5ZgVyX9eDgv4twGjlANWqkYjac0QA6Y+VvgshuD/LnWnkX+qcFCdUDWpI4VGNs8d/NqCCFrYlSK9RaxxhdyWVWZTjMA4TSqW2C/lY0lXkrJvz3PRtNDkXC+SDwM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gFdxG4R+; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gFdxG4R+" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-474560436c3so3295931f8f.0 for ; Fri, 17 Jul 2026 06:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784294444; x=1784899244; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=I6WNEDDiQZOMuv/0zXmxXmcM1lTbXXP2is+b4Ef7e9E=; b=gFdxG4R+KIdRqQkAuazGH5AfVPLtTf0Djy/L4L6AiP9doYfUSHsjh4Z4b+AHRLjp/3 Iq+qeXPO3ZHBg/on1C+OzjpgZlelRa/ZfRz2F46hZM8x8pnY62Sc2vdWIR9XqZrPK8ub X5wXDYjADsUMhMHaXJX/llNY+QLkL1I60iND8orL5EQctGwlZ5WK+GtTxiJpoQty9qBr d6VKrXYwgQs5NwBpJuOUvE87VieXRs/4LFy7464jLD2jumK6TyCkzW/yB8a7cm3Qxb/n 5bXZw/xI5Y76tixxawKE5Ji1uPn2ol/RgCaISL6LSqEOOGKGJSz7h0PuuS6QYjXHC+NL VQzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784294444; x=1784899244; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=I6WNEDDiQZOMuv/0zXmxXmcM1lTbXXP2is+b4Ef7e9E=; b=dw8CI2EjgaeMyZzWRynFHQkKkB3gXezS5+xmx/mAz4/CcIgGof6/eBEGr9HBd9bDH3 wBkzQ9uL6GYVt2aYGAjc+5c1zj2De/qtmMEPfmIbGTkG48N0h1X0DEwGrVP0/sLcg44k 38ivjFLYL0Ynw+eukBVzqFIfH1SD9OTrcarLgoF6mDuRcnaYbNxpLW3iPMqtsRRi793S lmc8d+imVBySFteJ8PwBH44eCfmblvsDwhxM+AxweeOzlyw7dLrLMCPiwdnEEGqTnRb2 0Puaw+FytEph6Y6+3ryieCxbmiAOgWSZqi9STclacVUYI1sHd5HymJJo8NDViTLT1X4O GQYw== X-Forwarded-Encrypted: i=1; AHgh+RqWr8or+UjLsVEd3ffEXAQL99F6oGM4XlM8xarxrdPzAoXcm7O87R8xo7RizdZ2gPn6hS0N3m63zqCGehg=@vger.kernel.org X-Gm-Message-State: AOJu0YwqjXJO/PH/b4UGPOvF8J4eCwugogJuRxrEadP+X8/W0BmSKzDM vIMS5lCVtTf/mHOH+x6L3B+Kuj/zBFK++d4n6fBQkm2rFuKQ5SizKmLf X-Gm-Gg: AfdE7cl93N8Qkd4134xhdnQyOZqrnVfG/Tr4Jz6dH8vRHbTgoU+F33Ij6uIj05uWvmQ mH3qujZkLrnNJCKtksolo2BUdwVoJ1GJk/VjC9nBkj6QjXMjsh0HUGr5M5R+H2oO0UNGNqeNiBw EWHMsFnYQgstBqt7NiA3wA46XIlYUOr2h/DaVRf64wbyLmrpNuo6B8uF24DbpSq9wEHpuOYSzQx Lc3rppisoYEFxCq+/rKr7ip+X1tvqdOcj2Oez63CfQtGpCSRRdsnLjRmbiN4zkF/9oeFDbgjhj/ p3BB13AkDefiCKDii9ke5wzO8uyZQVgtiKeX5OwuaJDPD/7jRgwks0CfleEwhYPwJklPbGLeSqh H9++As6Qw4AVIqP2VCxjA2JLqpLyTcAnktktZG+54ntEbbKKwuWb0sUYAteclnOjEjko7k5KCZo TpQQ5YbR5iV0r50Cl30G7s//HxgaE= X-Received: by 2002:a05:600c:b8d:b0:493:f0f5:f2d7 with SMTP id 5b1f17b1804b1-4954a3e6e97mr31165465e9.7.1784294443571; Fri, 17 Jul 2026 06:20:43 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:5d3a:fe75:f8eb:f0df:1ea8:edb8]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4954a2eddb8sm98841705e9.14.2026.07.17.06.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 06:20:43 -0700 (PDT) From: Fernando Rimoli To: Daniel Scally , Sakari Ailus , linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Arsalan Naeem , linux-kernel@vger.kernel.org, Fernando Rimoli Subject: [PATCH v2 2/3] media: ipu-bridge: Add OVTI5693 to the list of supported sensors Date: Fri, 17 Jul 2026 15:20:20 +0200 Message-ID: <20260717132021.18034-3-fernandorimoli11@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260717132021.18034-1-fernandorimoli11@gmail.com> References: <20260708213633.18392-1-fernandorimoli11@gmail.com> <20260717132021.18034-1-fernandorimoli11@gmail.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" The IPU bridge builds the firmware node graph only for sensors listed in ipu_supported_sensors[]. The OV5693 is currently listed only under its legacy "INT33BE" HID, so on Intel IPU6 Surface devices that enumerate it as "OVTI5693" (e.g. Microsoft Surface Pro 9) the bridge never wires up the sensor and the front camera is unusable. Add an "OVTI5693" entry. The link frequency (419200000) matches the existing INT33BE entry, as it is the same sensor. Tested on Surface Pro 9 (IPU6). Link: https://github.com/linux-surface/linux-surface/pull/2171 Signed-off-by: Fernando Rimoli --- drivers/media/pci/intel/ipu-bridge.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/pci/intel/ipu-bridge.c b/drivers/media/pci/intel= /ipu-bridge.c index 88581a4c0..b70d61099 100644 --- a/drivers/media/pci/intel/ipu-bridge.c +++ b/drivers/media/pci/intel/ipu-bridge.c @@ -93,6 +93,8 @@ static const struct ipu_sensor_config ipu_supported_senso= rs[] =3D { IPU_SENSOR_CONFIG("OVTI2680", 1, 331200000), /* Omnivision OV5675 */ IPU_SENSOR_CONFIG("OVTI5675", 1, 450000000), + /* Omnivision OV5693 */ + IPU_SENSOR_CONFIG("OVTI5693", 1, 419200000), /* Omnivision OV8856 */ IPU_SENSOR_CONFIG("OVTI8856", 3, 180000000, 360000000, 720000000), /* Sony IMX471 */ --=20 2.43.0 From nobody Sat Jul 25 05:23:13 2026 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9B043FE679 for ; Fri, 17 Jul 2026 13:20:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784294448; cv=none; b=Es0z45BjzhXZf6WQWn/aRyHkQdfRNDShbCTxm7e+hVuOIPuz+LjMJxqSIHtrnkaSzWDmt0shBBe4jnuRxZ6t4e/KMJ1HfI5lZqv0rnGXCtnTQ1uX/+DaRLYCdAFtPEtSj+RpiZhObX95BT9dm2eoIWukzbh3DBmC6h6/W1MyywM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784294448; c=relaxed/simple; bh=U+qahY3AlkhcURhCW/NVr4dCxakuA5lbXPbMigEdPqQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MBlykr8opO8eYj88ExrplFJXw4sFrMp5FhbPmnJwHfhiZJcB6fjWh25V3n56Srdj65h2xYnOUtIzutTUq4STvBycUs4e8M4uEqlcpj+9Kngc8SdIbWYO7pEbMxfMaZL98oXKYwN2SZCTrY1L9HRLcSDP76c7n0Avk1dEXxIahJE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GsvA9VuA; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GsvA9VuA" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-490cf322ed0so55617605e9.1 for ; Fri, 17 Jul 2026 06:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784294445; x=1784899245; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Yw3BtK6eUNlRAJfF8TSj15TJyapjmC9Be4lLIZ0NN9A=; b=GsvA9VuAmVk5merMoL9cBEpF4iZ29kwXxjEhzkVyeKneLOLLRXQDkGuYw/WRdN45A0 KbfaThfPZ3IqenTj+M+o4HVMK3/a/jPJtdPbpE5DaY3ZB+GPd7MSso2AIdmpxYKxrfzA yvEG36uoTjE/VYMJsIX5dKqCuuuPrKEAkHpQwiGm+iUl9EssmY7jIJdHc5YuKBQc8L5v L+hOouI7WE6woc+vkSbTmjcMn0iJgf0tv1PO3shN2ODdpXzbNIGKlVKOOe6Jr3dBlIbc EGDexxxSt6pXyOrVsyRPJA8wh9UCvJPEaonawEcgH9QCDAUWfMGCXiGStZFm9jVFMQWK kECQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784294445; x=1784899245; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Yw3BtK6eUNlRAJfF8TSj15TJyapjmC9Be4lLIZ0NN9A=; b=hcQvKHe8QYG9mAncOvJTezPzYps/juELiSbP2qwKRJhOMESUggSTtfZhW4V84WNPP9 +T6hGqb7n55I3bTDKG7KAe0MRm1ravDZdsu6OPB9+SXIoNEb+PbCECC5Olsm+jEsRmdJ +5o1AxjmYUU3dkxGjWWynmeAPyl6hYk5J9lzyT2ppm9gREeeAK61TvU6XLBE72fxA4Ah aSPOk1wM1A5p7b7GPwKrGtumSVhXzJY2thHLjj4UZozbA4ePibLSzgQhbgwMDJmqEhJw 6ZldT2yAMFIFLjlOoopkN1yrlUW054n0hAAexo1gaAZZvRcZ+uyw0mectXji6CBfjs9L tQhg== X-Forwarded-Encrypted: i=1; AHgh+RoTdZ9rvMRbU0tf4unq/vax7ClqBv7p3xfJdNITgJvLoUMd3/tShF3Kf2KVSpC45CyR1+gCPrDvfTPDHj8=@vger.kernel.org X-Gm-Message-State: AOJu0Yzh5wLUFeQ1nDL3WHX30i11iq/qXXxA6XPF+szln+CD5lOHZ/9p rNkQJO5C/lNhdlUR/47xaH5sHtpYOPh+pjfTkKEvxWKuaGUkR2Zmb1Pw X-Gm-Gg: AfdE7cnFpZKEwFmhFG1tldLXk3I7d3DOMTS3a1WTml5ZXowhDei/YACbFr+1b48vBHc nU+eAidac3LVw+fmRFf+UGzJiPwIsMN6ZCp2vg67aCiSJpx3Jzd4HLZEBBfG6zhh6gtbQVJqKdv LLa+LE3RIP4bVen8ZUjLH3JxYNTgDUwLv6DEqh8M+G6C6UwJiCT574iKipL6JTFZhWkpWdxiZ0+ iGmf2GkAd97O4/ah88DRw0+osnTBlDNdz9vS5qcKF17jf56jAsKJkyTVYUHzmydZVQR2PL+SmeC UEEg0kSyslSkHlT7yZrFjCae2lM9oqkqinJyW68UAECpCuTECtpj5P3bTq8wGVa3mT4FfHz/9RV 2JiRhAa0wpBTLTzzz2D8IwGJKATuxTIo2oK6Y8gsfC/3H0wIir+IQn6YW2IVdE9RdjdGHqDIFiO vighVv/g1q01S0CGr7Gp2GJX337Nc= X-Received: by 2002:a05:600c:3553:b0:495:3f28:3f19 with SMTP id 5b1f17b1804b1-4954a508a24mr30327395e9.37.1784294444602; Fri, 17 Jul 2026 06:20:44 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:5d3a:fe75:f8eb:f0df:1ea8:edb8]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4954a2eddb8sm98841705e9.14.2026.07.17.06.20.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 06:20:44 -0700 (PDT) From: Fernando Rimoli To: Daniel Scally , Sakari Ailus , linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Arsalan Naeem , linux-kernel@vger.kernel.org, Fernando Rimoli Subject: [PATCH v2 3/3] media: i2c: ov5693: Gate the MIPI clock lane for IPU6 Date: Fri, 17 Jul 2026 15:20:21 +0200 Message-ID: <20260717132021.18034-4-fernandorimoli11@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260717132021.18034-1-fernandorimoli11@gmail.com> References: <20260708213633.18392-1-fernandorimoli11@gmail.com> <20260717132021.18034-1-fernandorimoli11@gmail.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" The ov5693 never programs MIPI_CTRL00 (0x4800), leaving it at its 0x00 power-on default (free-running MIPI clock). The IPU3 CSI-2 receiver tolerates this, but the IPU6 receiver (e.g. on Microsoft Surface Pro 8/9 and Surface Go 4) fails to lock onto the link, so the sensor streams but capture times out with "stream stop time out" and no frames arrive. Gating the clock lane when idle (MIPI_CTRL00 bit 5) makes the IPU6 receiver lock. This was determined by sweeping the register on a Surface Pro 9 (IPU6): every value with bit 5 set streams (300/300 frames, steady 28 fps), every value with bit 5 clear fails with the CSI-2 timeout; register read-back confirmed the power-on default is 0x00. Bit 5 is the conventional OmniVision clock-lane-gate setting (ov5640, ov5647 and ov5648 all set it on every platform), so it is not an IPU6-specific hack. Bit 2 (bus idle in LP11) is set as well, matching ov5640's value; this was tested only on IPU6. Link: https://github.com/linux-surface/linux-surface/pull/2171 Co-developed-by: Arsalan Naeem Signed-off-by: Arsalan Naeem Signed-off-by: Fernando Rimoli Tested-by: Jakob Berg Jespersen --- drivers/media/i2c/ov5693.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c index 02236f3db..d1b38348e 100644 --- a/drivers/media/i2c/ov5693.c +++ b/drivers/media/i2c/ov5693.c @@ -35,6 +35,12 @@ #define OV5693_STOP_STREAMING 0x00 #define OV5693_SW_RESET 0x01 =20 +/* MIPI transmitter control */ +#define OV5693_MIPI_CTRL00_REG CCI_REG8(0x4800) +/* bit 5: gate the clock lane when idle; bit 2: keep the bus in LP11 when = idle */ +#define OV5693_MIPI_CTRL00_CLOCK_LANE_GATE BIT(5) +#define OV5693_MIPI_CTRL00_BUS_IDLE BIT(2) + #define OV5693_REG_CHIP_ID CCI_REG16(0x300a) /* Yes, this is right. The datasheet for the OV5693 gives its ID as 0x5690= */ #define OV5693_CHIP_ID 0x5690 @@ -611,6 +617,20 @@ static int ov5693_enable_streaming(struct ov5693_devic= e *ov5693, bool enable) { int ret =3D 0; =20 + /* + * Gate the MIPI clock lane when idle. The power-on default of + * MIPI_CTRL00 is 0x00 (free-running clock), which the IPU3 CSI-2 + * receiver tolerates but the IPU6 one does not: it fails to lock onto + * the link and capture times out. Gating the clock lane (bit 5) is + * required for IPU6 and is the conventional setting for OmniVision + * sensors (cf. ov5640, ov5647, ov5648); also keep the bus in LP11 when + * idle (bit 2). Harmless on IPU3. + */ + if (enable) + cci_write(ov5693->regmap, OV5693_MIPI_CTRL00_REG, + OV5693_MIPI_CTRL00_CLOCK_LANE_GATE | + OV5693_MIPI_CTRL00_BUS_IDLE, &ret); + cci_write(ov5693->regmap, OV5693_SW_STREAM_REG, enable ? OV5693_START_STREAMING : OV5693_STOP_STREAMING, &ret); --=20 2.43.0