[PATCH v8 0/3] Add support for the Sony IMX681 camera sensor

From: Sergey Lebedev

Date: Fri Oct 02 2026 - 04:28:02 EST


The Sony IMX681 is the user-facing camera on the Microsoft Surface Pro 11 for
Business (Intel Lunar Lake, IPU7), ACPI device SONY0681. Without a driver the
camera does not appear at all.

1/3 dt-bindings: media: Add Sony IMX681 (mine)
2/3 media: i2c: Add Sony IMX681 sensor driver (Andre's, co-developed)
3/3 media: ipu-bridge: Add Sony IMX681 (mine)

The driver is Andre's, reverse-engineered from I2C traces taken under
Windows.

Changes in v8
=============

>From Andre's review of v7 2/3:
https://lore.kernel.org/all/CAKNG7X8_fNSNKK8FGtm4pey+Pq1PP+38PFTn8O2yP8L04rpcpg@xxxxxxxxxxxxxx/

- The clock comes from devm_v4l2_sensor_clk_get(), and the 19.2 MHz check
no longer depends on a clock being found. v7 skipped it when
devm_clk_get_optional() returned NULL, and its comment said INT3472 on
this machine hands the clock over outside the clk framework. That was
wrong: the sensor gets INT3472:02-clk at 19.2 MHz through clkdev, as
v7's own cover letter showed.
- The probe error path calls pm_runtime_dont_use_autosuspend(), as
remove() does.
- At Andre's suggestion, we are both maintainers, in the binding and in
MAINTAINERS, and 2/3 carries Co-developed-by for me.

Also:
- Andre's Acked-by on 1/3, from a mail lore does not thread under v7:
https://lore.kernel.org/all/CAKNG7X9NkbXSnWGR4-79akJ7WiVeGa7D0mC=p1Pz2gTFO4npZw@xxxxxxxxxxxxxx/
Krzysztof's Reviewed-by is kept: the binding changed only by the second
maintainer line.
- German's Tested-by on 2/3 is kept. Its only functional changes are
Andre's two above, which he tested on the same machine, as I did.
- Each patch carries Assisted-by: Claude:claude-opus-5-5.

While this sensor streams, IPU7's CSI-2 receiver logs "Received packet is
too long" once per frame, and the frames are complete. Andre sees the same
with his downstream driver, so it does not come from this series, and he is
looking into it.

Tested on the Surface Pro 11 for Business, on media next 2dcdfb625c3 with
KASAN and lockdep:
- the clock is INT3472:02-clk at 19.2 MHz, with the sensor as consumer;
- v4l2-compliance 46 of 46, no warnings;
- 3844x2640 at 30.01 fps;
- the four flip states give the four Bayer orders, and EBUSY while
streaming;
- runtime suspend after streaming, and capture after unbind and bind;
- no KASAN or lockdep report from the driver;
- W=1 and sparse clean, dt_binding_check clean.

v7: https://lore.kernel.org/all/20260923211816.89954-1-lsa.uz@xxxxx/

Andre Gilerson (1):
media: i2c: Add Sony IMX681 sensor driver

Sergey Lebedev (2):
dt-bindings: media: Add Sony IMX681
media: ipu-bridge: Add Sony IMX681

.../bindings/media/i2c/sony,imx681.yaml | 108 ++
MAINTAINERS | 8 +
drivers/media/i2c/Kconfig | 10 +
drivers/media/i2c/Makefile | 1 +
drivers/media/i2c/imx681.c | 1032 +++++++++++++++++
drivers/media/pci/intel/ipu-bridge.c | 2 +
6 files changed, 1161 insertions(+)
create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx681.yaml
create mode 100644 drivers/media/i2c/imx681.c

--
2.54.0 (Apple Git-157)