mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] media: Add Sony IMX175 sensor driver (Lenovo ThinkPad 10 rear camera)
@ 2026-11-16 17:51 Volodymyr Chapman
  2026-11-16 17:51 ` [PATCH 1/3] media: i2c: Add Sony IMX175 sensor driver Volodymyr Chapman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Volodymyr Chapman @ 2026-11-16 17:51 UTC (permalink / raw)
  To: Sakari Ailus, Mauro Carvalho Chehab
  Cc: Dan Scally, Hans de Goede, Andy Shevchenko, Greg Kroah-Hartman,
	linux-media, linux-staging, linux-kernel, Volodymyr Chapman

This series adds support for the Sony IMX175 8 Mpixel raw sensor, the
rear camera of the Lenovo ThinkPad 10 (20C1/20C3, Bay Trail), using the
atomisp driver through its v4l2-async csi2-bridge path:

1. a new standard sensor driver, drivers/media/i2c/imx175.c;
2. the INTCF1A ACPI HID in ipu-bridge;
3. a 4-lane sensor config entry for INTCF1A in the atomisp csi2-bridge.

Notes for testing on this machine:

- The firmware exposes the ISP in "ACPI mode" by default (subdevice of
  the IGD), which atomisp does not support. The hidden BIOS setup option
  "ISP PCI Device Selection" (Setup variable offset 0x235, value 2 =
  "ISP PCI Device as B0D3F0") must be set for the ISP to appear as PCI
  device 00:03.0.
- The IMX175 probe fails intermittently at boot (-EREMOTEIO) without
  "media: atomisp: csi2-bridge: Don't cycle the PMC clock if its rate is
  correct", sent separately [1]. With it, the probe succeeded on 10 out
  of 10 boots in my testing; without it on 8 out of 10.
- The OV2722 front camera of the same machine needs "media: atomisp:
  ov2722: Report SGRBG10 consistently as media bus code", also sent
  separately [2], but is not otherwise related to this series.

[1] https://lore.kernel.org/linux-media/20261116173307.14169-1-volodymyrchapman@gmail.com/
[2] https://lore.kernel.org/linux-media/20261116173143.13584-1-volodymyrchapman@gmail.com/

Testing, on a media.git next kernel (3fc9303dba01) with this series and
the two patches above, on a ThinkPad 10 20C3 (Atom Z3795):
- the binned 1640x1232 mode streams through atomisp, alternating with
  the front camera; the full 3280x2464 mode was tested as a still
  capture, as atomisp limits continuous capture to 1920 pixels wide;
- the sensor's colour bar test pattern and real scenes have the correct
  colours, also with horizontal and vertical flip;
- v4l2-compliance 1.32.0 on the IMX175 sub-device: 46 tests, 0 failures,
  0 warnings.

Not supported: the voice coil motor (the firmware does not name its
type) and the LM3554 flash.

No DT binding is added, as the sensor is only known to be used on ACPI
systems; one can be added when a DT user appears.

This series was developed with the help of an AI coding assistant
(Claude), which wrote most of the driver code and commit messages based
on Intel's register tables, existing sensor drivers and my testing on
the hardware. I have reviewed the series and tested it as described
above.

Volodymyr Chapman (3):
  media: i2c: Add Sony IMX175 sensor driver
  media: ipu-bridge: Add Sony IMX175 (INTCF1A)
  media: atomisp: csi2-bridge: Add IMX175 sensor config

 MAINTAINERS                                   |   7 +
 drivers/media/i2c/Kconfig                     |  10 +
 drivers/media/i2c/Makefile                    |   1 +
 drivers/media/i2c/imx175.c                    | 797 ++++++++++++++++++
 drivers/media/pci/intel/ipu-bridge.c          |   2 +
 .../media/atomisp/pci/atomisp_csi2_bridge.c   |   1 +
 6 files changed, 818 insertions(+)
 create mode 100644 drivers/media/i2c/imx175.c


base-commit: 3fc9303dba01676c2090768126e5327e341b7761
-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-16 17:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 17:51 [PATCH 0/3] media: Add Sony IMX175 sensor driver (Lenovo ThinkPad 10 rear camera) Volodymyr Chapman
2026-11-16 17:51 ` [PATCH 1/3] media: i2c: Add Sony IMX175 sensor driver Volodymyr Chapman
2026-11-16 17:51 ` [PATCH 2/3] media: ipu-bridge: Add Sony IMX175 (INTCF1A) Volodymyr Chapman
2026-11-16 17:51 ` [PATCH 3/3] media: atomisp: csi2-bridge: Add IMX175 sensor config Volodymyr Chapman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®