Skip to content

Add support for the Sony IMX681 camera sensor

Sergey Lebedev linux-devicetree linux-media lkml 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest3 patches 1 replyIn review
  2. v93 patches 0 repliesSuperseded
  3. v83 patches 1 replySuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v73 patches5 repliesSuperseded
v63 patches0 repliesSuperseded
v53 patches2 repliesSuperseded
v43 patches0 repliesSuperseded
v33 patches15 repliesSuperseded
v23 patches1 replySuperseded
v13 patches1 replySuperseded

Changes in v10 from the cover letter

==============

- 2/3: hold a runtime PM reference across probe. Setting the autosuspend delay with the usage count at 0 suspended the sensor in the middle of probe, and a later failure then powered it off a second time. Found by Sashiko on v9 2/3 and 3/3.
- All three: the Assisted-by tags are dropped; see the end of this letter.

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: media: Add Sony IMX681Documentation/devicetree/bindings/media/i2c/sony,imx681.yaml+108 -00 replies
2/3media: i2c: Add Sony IMX681 sensor driverMAINTAINERS drivers/media/i2c/Kconfig drivers/media/i2c/Makefile +1 more+1053 -00 replies
3/3media: ipu-bridge: Add Sony IMX681drivers/media/pci/intel/ipu-bridge.c+2 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiAndre GilersonGerman Pablo Lindo
1/3R-b A-b
2/3T-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v10 thread

Cover letter [PATCH v10 0/3] Add support for the Sony IMX681 camera sensor

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 v10
==============

- 2/3: hold a runtime PM reference across probe. Setting the autosuspend delay with the usage count at 0 suspended the sensor in the middle of probe, and a later failure then powered it off a second time. Found by Sashiko on v9 2/3 and 3/3.
- All three: the Assisted-by tags are dropped; see the end of this letter.

1/3 and 3/3 are otherwise unchanged. The review and test tags are kept, German's Tested-by on 2/3 too: the change is limited to probe's runtime PM and its error path, both tested below.

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.

Tested with v10 on the Surface Pro 11 for Business, on v7.4-rc1 with [1],
[2] and [3] applied, KASAN and lockdep on:
- after probe the sensor stays active and suspends about 1 s later; v9 was already suspended when probe returned;
- probe forced to fail after the runtime PM setup and at registration, with a test-only parameter: no clock or regulator warning, where v9 gives three per failure (clock already disabled and unprepared, unbalanced regulator disable);
- 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 and after five module reloads;
- no KASAN or lockdep report;
- W=1 and sparse clean on x86_64, on i386 and without CONFIG_PM; dt_binding_check clean.

Tool use, per Documentation/process/generated-content.rst (Assisted-by tags in commits were dropped in 7.4-rc1):

* My contributions to this series were prepared with Claude Code (claude-opus-5-5); work by others in it is their own.
* This replaces any Assisted-by tags in earlier versions.

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/
v9: https://lore.kernel.org/all/[email protected]/

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                    | 1034 +++++++++++++++++
 drivers/media/pci/intel/ipu-bridge.c          |    2 +
 6 files changed, 1163 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx681.yaml
 create mode 100644 drivers/media/i2c/imx681.c

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.54.0