From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 78CA64183D3; Fri, 5 Jun 2026 15:26:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780673201; cv=none; b=pqlRFXS1TtuqYRLbrFZkS3Xqa5n+mUfFmfZHBOHrWqAR/WEp9sLT56N381r4p6pJ63q2XJYY/3paKigcqEZsM6CH3FDdUqQY7vl8t15agbIP97bh+bRmvLRHElO3sQxd1xUFIKSlF8/FlOMCGbLYYCZHXPoflhYV60WK9iiP/EY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780673201; c=relaxed/simple; bh=ua25xHemMar1Qkad5fZ2bNzjU0J5bg5iyea5aIq5xmQ=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=jH0Pw3DXCJC1qBGkxsMbP9hL4G+ysNFWuPOqMHUWGrCb6LU5nBXD4c4SHPgGK9JKqrKS02hxldr+LZQ8yrI1OsYIV00wh1M9TQqz4FEoXH6o4ZTQgG3Pe4OlCH/vfUJWxkWhdb5UwBToW39XtZYwv0MVQ0LrVS2sz/A5iPC4sWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=O5/WDvK5; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="O5/WDvK5" Received: from mail.ideasonboard.com (unknown [IPv6:2401:4900:1c66:476d:c684:fe78:389f:7375]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C18DC20EA; Fri, 5 Jun 2026 17:26:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1780673173; bh=ua25xHemMar1Qkad5fZ2bNzjU0J5bg5iyea5aIq5xmQ=; h=From:Subject:Date:To:Cc:From; b=O5/WDvK5ZRIR/frR3+5edwp2CPP+r/ujA3vNCylnf1PQGL2ERKhDA4b5JbXHPMwP8 v1F7Y3cwafL8UcrvQjqAoYfPBgHZZ1YsTDTjKAK1CJT/Oc6Wx58y0PEUesPFJdC+pn kF+pIO9k1aGlfvXiE8HUKtHKoL2gPjJhKN3Q9vQI= From: Jai Luthra Subject: [PATCH v4 0/2] media: Add bindings and driver for Sony IMX678 Date: Fri, 05 Jun 2026 20:56:27 +0530 Message-Id: <20260605-imx678-v4-0-58e57c67143d@ideasonboard.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: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/3WQy2oDMQxFf2XwOi5+yBpPVv2P0oUfcuLFjFt7O qSE/HudBEKg7fJe6RyQzqxRzdTYfjizSltuuSw9wG5g4eiWA/Ece2ZKKBRGap7nE46WmyAd0RR kDIn15Y9KKZ9uorf3no+5raV+37ybvLa/FJvkgmuRgpk0RZvca47kWll8cTW+hDKzq2lTzzQ+a NVpsAZcQBkx+X9o/UQr8aB1p603acIRwSL9QV/uZ1X6/OpvWe+3Me8a8T6f87oflIEEE2ogkuh GLeUIUTnS4IMRPpoEhnrdZZcf9d/UWGsBAAA= X-Change-ID: 20260513-imx678-5c1aee9c1dcf To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sakari Ailus , Laurent Pinchart , Kieran Bingham Cc: Lachlan Michael , Ryuichi Tadano , Kengo Hayasaka , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jai Luthra X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=4174; i=jai.luthra@ideasonboard.com; h=from:subject:message-id; bh=ua25xHemMar1Qkad5fZ2bNzjU0J5bg5iyea5aIq5xmQ=; b=owEBbQKS/ZANAwAKAUPekfkkmnFFAcsmYgBqIuqk0NdbF7HwkaDbBTajVsYAS6t8X67GmaFWl TutQIfSnHWJAjMEAAEKAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCaiLqpAAKCRBD3pH5JJpx RWy2D/42YOoUSuFaLrdgUhYF9Q8rmVcup3Cy9PF6OQk2AiZV2idG2GJXWvB+ltAx+wr2MOOWazL w5xHu7bV/zjgFkLv6gvZC1UFB6uq/kmF8Frsy9357Ph240DtDd88CP5Mw+Ru3MoAzCIUaj0Z+Cf GyIxMIwzMK7+nZHgsqwMt6nz6wGAwdX+Z18+gBBCrekaKgjABHbevcUSlSXR09LYjRhyzmw00bU Wbl0KMsIrQUQg75VsiTiv6Jzvn9NksX9iXYSxWN65H+Bk5XO1REFwcm8UHRJ4XakWdqldVq+Z2b iQQA0Q+lhRzvWGTSoovq281WvP0AMj+FU2EXp90hBTFa29S49cv8G+uM0pO3eX0RPBNo4QLtd7j PciZIYpl40J7LZBv4JgaPScnzMlOOcupZ3z4mN9Ukv0cs0Asx1Pk/06s8TdUPUbK/gbTWu1nK6u KYNEJLFyaehPIzozUFZg5DY8bzr60BxiEDgcyYHzi/26rxjXrupi2rC+nbg/n1k0EUej9RMPgy6 1/hHoPBTRUco0SRvO/X/4PkWAHLVrrN+JqP1jtJWY3YZTXg+nnjtGiAX6S7MZwgiGaUktv2aVsc I9BLe7yLGPfH9/a4AqG99KLF6nkmkAAoJva3wI6TryDvbJXBCbhPpHYXDQDUcbMJaUEOBQSyzBa LLJK8Au5NNuGHsw== X-Developer-Key: i=jai.luthra@ideasonboard.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 Hi, This series adds dt-bindings and a V4L2 driver for Sony IMX678 camera sensor. More details about the sensor and features supported in the driver are in the relevant patches. Support for binning and cropping has been dropped from this series, in favor of implementing it with the new raw sensor model proposed by Sakari. [1] I still have a branch [2] with patches for binning and cropping using the old model of S_SELECTION/S_FMT on the source pad, fixing the comments I received on v3 of this series, in case anybody wants to test or use it while the raw sensor model support is a WIP. [1]: https://lore.kernel.org/all/20260409201501.975242-1-sakari.ailus@linux.intel.com/ [2]: https://github.com/jailuthra/linux/commits/imx678-v4 Signed-off-by: Jai Luthra --- Changes in v4: - Drop support for freely-configurable resolution through cropping and binning - Expect both specific and generic device name in device tree compatible - Reduce analogue gain maximum to 100 (30dB) as the gain register includes digital gain from 101 (30.3dB) -> 240 (72dB) - Minor bug fixes and cleanups following review comments from Sakari, Tarang on v3 - Link to v3: https://lore.kernel.org/r/20260520-imx678-v3-0-8b5f9676486e@ideasonboard.com Changes in v3: - Use `reset-gpios`, mentioning the sensor XCLR acts like RESETN, instead of `xclr-gpios` - Update minimum crop width and height according to the PIX_[HV]WIDTH register limits - Expect the user to first select a crop rectangle using S_SELECTION, and then choose one of two sizes (non-binned or binned) in S_FMT. This matches what IMX296 already does, simplifying the selection logic quite a bit. - Enumerate only the frame sizes possible for the current crop rectangle in ENUM_FRAMESIZES - Link to v2: https://lore.kernel.org/r/20260516-imx678-v2-0-4854ac61d6fb@ideasonboard.com Changes in v2: PATCH 1: - Add per-variant compatibles for mono and colour, alongside the generic fallback, so the variant can be declared without powering the sensor at probe. - Rename reset GPIO to xclr as that's what it's called in the datasheet, and how it behaves. - Reference the generic video interface devices schema and switch to unevaluatedProperties. - Drop "link-frequencies: true" - Drop the T: entry for media.git from MAINTAINERS. PATCH 2: - Treat the pixel rate as a fixed sensor property rather than deriving it from link frequency and bit depth. Removes the iclk<->pixel conversion helpers, instead using a fixed 8x ratio. - Express HBLANK in pixels with a step of 8. - Make VBLANK step = 2 and rewrite the exposure register when VBLANK changes, so the effective exposure does not silently shift. - Fix power sequencing: hold the sensor in reset until power_on, add the missing post-reset delay, and disable the clock before the regulators on power_off. - Drop the "common regs written" flag, program them in power_on. - Add variant match data and cross-check the register-reported type against DT; rename detect() to identify_model(). - Use v4l2_link_freq_to_bitmap() and expose the full link frequency menu with the configured one as the selected RO option. - Drop unused includes and defines, misc cleanups - Kconfig: depend on OF_GPIO - Link to v1: https://lore.kernel.org/r/20260513-imx678-v1-0-30fc593ed8fa@ideasonboard.com --- Jai Luthra (2): dt-bindings: media: i2c: Add Sony IMX678 media: i2c: imx678: Add driver for Sony IMX678 .../devicetree/bindings/media/i2c/sony,imx678.yaml | 130 ++ MAINTAINERS | 7 + drivers/media/i2c/Kconfig | 11 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/imx678.c | 1527 ++++++++++++++++++++ 5 files changed, 1676 insertions(+) --- base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731 change-id: 20260513-imx678-5c1aee9c1dcf Best regards, -- Jai Luthra