Linux kernel staging patches
 help / color / mirror / Atom feed
From: Maurizio Casciano <mauriziocasciano7@gmail.com>
To: linux-media@vger.kernel.org
Cc: Maurizio Casciano <mauriziocasciano7@gmail.com>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
	Nicholas Roth <nicholas@rothemail.net>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Bingbu Cao <bingbu.cao@amd.com>,
	Dan Scally <dan.scally@ideasonboard.com>,
	Hans de Goede <hansg@kernel.org>,
	Andy Shevchenko <andy@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Andy Shevchenko <andriy.shevchenko@intel.com>,
	linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: [PATCH v11 00/14] media: Add Lenovo Yoga Book camera support
Date: Sat, 21 Nov 2026 14:31:30 +0100	[thread overview]
Message-ID: <cover.1795267528.git.mauriziocasciano7@gmail.com> (raw)

Add front and rear camera support for the Lenovo Yoga Book X91L.
The front sensor is OV2740 and the rear sensor is OV8858 with a
WV517S focus actuator. AtomISP ISP2401 can capture RAW Bayer from
both cameras.

This review series is based on media-next. Apply David Heidelberg's
posted V4L2 subdevice release fix first. The prerequisite patch ID
below identifies that patch. WV517S needs it before the V4L2 core
can release the actuator's final reference.

Changes since v10:

- Drop the upstream ACPI initializer and INT3477 ID changes. Reuse
  the existing rear IPU bridge entry and shared Cherry Trail PCI ID.
- Limit OV8858 19.2 MHz support to four-lane R2A. Carry the 2014
  Intel OV8858 notice and record the sources of the register table.
- Drop the per-component white-balance controls from both sensors.
- Use div64_s64() for CSI-2 timing and make AtomISP RAW negotiation
  and enumeration follow the sensor's advertised formats.
- Defer WV517S I/O until use and hold its state through final release.
  Preserve existing camera nodes if registration of a new node fails.
- Keep the OV2740 probe retry as a separate diagnostic patch. The
  cold-boot logs did not show a natural I2C failure or recovery.

The revised sources built the full x86-64 image and modules. The
focused Sparse checks, i386 AtomISP object link and WV517S build
with CONFIG_PM disabled also passed.
The mocked registration test reproduced the previous rollback and
verified that existing nodes survive each simulated failure. The
format and notifier fixtures also passed.

On the X91L, the exact revised 7.4 image bound both sensors and
WV517S at boot. Each camera delivered 30 distinct RAW and 20
distinct Preview YU12 frames before and after lens rebind. The
capture and sensor nodes survived rebind, focus controls worked,
and the actuator returned to runtime suspend. Physical focus
travel, 24 MHz OV8858 hardware and X91F lane configuration remain
open.

Codex drafted the rollback fix and cover text and consolidated the
previously tested follow-ups. Individual commits describe its role.

v10: https://lore.kernel.org/linux-media/20261002-submission-media-yogabook-v10-b4-final-v10-0-817ec765b257@gmail.com/T/
V4L2 prerequisite: https://lore.kernel.org/r/20260917-v4l2-release-fix-v1-1-acbac7f9b78e@ixit.cz/

With Best Regards,
Maurizio Casciano

Maurizio Casciano (14):
  media: v4l2-core: Preserve existing subdevice nodes on rollback
  media: ov8858: Extract digital gain programming
  media: ov8858: Support a 19.2 MHz input clock on four-lane R2A
  media: ov2740: Add OVTI2740 ACPI ID
  media: intel: ipu-bridge: Add the Yoga Book OVTI2740 entry
  media: atomisp: Add Yoga Book camera configuration
  media: ov2740: support 288 MHz link frequency
  media: intel: ipu-bridge: select OV2740 frequency by IPU ID
  media: atomisp: Derive CSI-2 timing from the sensor link frequency
  media: ov2740: release group hold after gain write errors
  media: atomisp: Use struct v4l2_area for padding
  media: atomisp: Allow raw Bayer capture
  media: i2c: Add WV517S lens actuator driver
  media: atomisp: Preserve the capture graph when a lens rebinds

 MAINTAINERS                                   |   1 +
 drivers/media/i2c/Kconfig                     |  11 +
 drivers/media/i2c/Makefile                    |   1 +
 drivers/media/i2c/ov2740.c                    |  65 +++-
 drivers/media/i2c/ov8858.c                    | 172 +++++++---
 drivers/media/i2c/wv517s.c                    | 320 ++++++++++++++++++
 drivers/media/pci/intel/ipu-bridge.c          |   9 +
 drivers/media/v4l2-core/v4l2-device.c         |  26 +-
 .../staging/media/atomisp/pci/atomisp_cmd.c   | 103 +++---
 .../staging/media/atomisp/pci/atomisp_cmd.h   |   6 +-
 .../staging/media/atomisp/pci/atomisp_csi2.c  |  24 +-
 .../media/atomisp/pci/atomisp_csi2_bridge.c   |  36 +-
 .../staging/media/atomisp/pci/atomisp_ioctl.c | 117 +++++--
 .../media/atomisp/pci/atomisp_subdev.c        |   4 +-
 .../media/atomisp/pci/atomisp_subdev.h        |   3 +-
 include/media/v4l2-device.h                   |   3 +
 16 files changed, 748 insertions(+), 153 deletions(-)
 create mode 100644 drivers/media/i2c/wv517s.c


base-commit: ccf78740d63813c452c035b57d17a650492562fa
prerequisite-patch-id: def08de8e36aa31f6d2360428b29f6b0f4c8e1c8
-- 
2.53.0


             reply	other threads:[~2026-11-21 13:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21 13:31 Maurizio Casciano [this message]
2026-11-21 13:31 ` [PATCH v11 01/14] media: v4l2-core: Preserve existing subdevice nodes on rollback Maurizio Casciano
2026-11-21 13:53   ` Laurent Pinchart
2026-11-21 13:31 ` [PATCH v11 02/14] media: ov8858: Extract digital gain programming Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 03/14] media: ov8858: Support a 19.2 MHz input clock on four-lane R2A Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 04/14] media: ov2740: Add OVTI2740 ACPI ID Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 05/14] media: intel: ipu-bridge: Add the Yoga Book OVTI2740 entry Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 06/14] media: atomisp: Add Yoga Book camera configuration Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 07/14] media: ov2740: support 288 MHz link frequency Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 08/14] media: intel: ipu-bridge: select OV2740 frequency by IPU ID Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 09/14] media: atomisp: Derive CSI-2 timing from the sensor link frequency Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 10/14] media: ov2740: release group hold after gain write errors Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 11/14] media: atomisp: Use struct v4l2_area for padding Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 12/14] media: atomisp: Allow raw Bayer capture Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 13/14] media: i2c: Add WV517S lens actuator driver Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 14/14] media: atomisp: Preserve the capture graph when a lens rebinds Maurizio Casciano

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=cover.1795267528.git.mauriziocasciano7@gmail.com \
    --to=mauriziocasciano7@gmail.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=bingbu.cao@amd.com \
    --cc=dan.scally@ideasonboard.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hansg@kernel.org \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=mchehab@kernel.org \
    --cc=nicholas@rothemail.net \
    --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