mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Volodymyr Chapman <volodymyrchapman@gmail.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Dan Scally <dan.scally@ideasonboard.com>,
	Hans de Goede <hansg@kernel.org>,
	Andy Shevchenko <andy@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-media@vger.kernel.org, linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org,
	Volodymyr Chapman <volodymyrchapman@gmail.com>
Subject: [PATCH 0/3] media: Add Sony IMX175 sensor driver (Lenovo ThinkPad 10 rear camera)
Date: Mon, 16 Nov 2026 17:51:48 +0000	[thread overview]
Message-ID: <20261116175151.20150-1-volodymyrchapman@gmail.com> (raw)

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


             reply	other threads:[~2026-11-16 17:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16 17:51 Volodymyr Chapman [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261116175151.20150-1-volodymyrchapman@gmail.com \
    --to=volodymyrchapman@gmail.com \
    --cc=andy@kernel.org \
    --cc=dan.scally@ideasonboard.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hansg@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=mchehab@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®