From: Sergey Lebedev <lsa.uz@pm.me>
To: Sakari Ailus <sakari.ailus@linux.intel.com>,
Benjamin Mugnier <benjamin.mugnier@foss.st.com>,
Sylvain Petinot <sylvain.petinot@foss.st.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Dan Scally <dan.scally@ideasonboard.com>,
Hans de Goede <hansg@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Peter Marshall <pm@petermarshall.ca>,
George Neacsu <geocausa@gmail.com>, Hao Yao <hao.yao@intel.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/4] media: Add the ST VD55G0 global shutter sensor
Date: Mon, 19 Oct 2026 16:27:29 +0000 [thread overview]
Message-ID: <20261019162722.25587-1-lsa.uz@pm.me> (raw)
The ST VD55G0 is a 644x604 monochrome global shutter sensor. It is the
infrared camera of the Microsoft Surface Pro 11 for Business with Intel
(Lunar Lake, IPU7), ACPI device SMO55F0, and other machines use it under
the same ID. Without a driver the camera does not appear at all.
1/4 dt-bindings: media: i2c: Add ST VD55G0 camera sensor
2/4 media: i2c: Add ST VD55G0 global shutter sensor driver
3/4 media: ipu-bridge: Add ST VD55G0
4/4 media: ipu-bridge: Add the Surface Pro 11 infrared illuminator
The driver is a port of ST's own downstream driver, firmware patch
included, as vd55g1 carries its own:
https://github.com/STMicroelectronics/vd55g0-linux-driver
Benjamin reviewed every version of it off-list and ran the previous one
on a Raspberry Pi 5; 1/4 and 2/4 carry his Co-developed-by, and the clock
tree in 2/4 is based on his. Peter Marshall's series adds the VD55G0 to
vd55g1 instead, and Benjamin preferred a separate driver:
https://lore.kernel.org/all/0bb08d07-bd06-4adb-851b-6b45d296b328@foss.st.com/
Peter's series also adds SMO55F0 to ipu-bridge, at a link frequency this
driver refuses from a 24 MHz clock; 3/4 says why it uses 396 MHz.
4/4 gives the sensor st,leds from a DMI match, as this machine's ACPI
tables do not say which sensor GPIO drives the illuminator. Sakari
preferred this in ipu-bridge to a quirk in the sensor driver:
https://lore.kernel.org/all/arY4HDSQZYAGJwYR@kekkonen.localdomain/
On this machine the sensor needs Hao Yao's int3472 fix, reviewed and
waiting for its v3:
https://lore.kernel.org/all/20251208035122.2147678-1-hao.yao@intel.com/
The SSDB asks for 24 MHz, but INT3472 enables the clock at 19.2 MHz, so
without the fix the sensor runs at four fifths of every rate this series
computes, its MIPI output below the 750 Mbps minimum.
While it streams, the IPU7 CSI-2 receiver logs "Received packet is too
long" in Y10 at 644x604 and Y8 at 640x480, though not in Y8 at 644x604 or
320x240, and the frames are complete. With the staging ipu7 driver, the
machine's two other cameras, an IMX681 and an OV13858, log it too, so it
does not look specific to this sensor.
Tested on the Surface Pro 11 for Business, on media next d7e7bca7169 with
Hao Yao's int3472 v2, KASAN and lockdep, IPU7 run by the ipu6 driver:
- probe defers until ipu-bridge has made the endpoint, then binds;
- every mode runs at 59.14 fps, as the controls give;
- Y8 and Y10 at all four sizes, and Y10 packed at full size;
- exposure, gains, flips and test patterns, vertical blanking changed
during a stream, set_fmt refused while streaming, runtime suspend after
it;
- under auto exposure, exposure and the gains read back the values the
sensor applies, as its registers show, and carry over to manual mode;
- the illuminator through led_mode, on and off during a stream;
- v4l2-compliance 46 of 46, and 54 of 54 through the media device, with
two warnings for the read-only crop;
- no KASAN report, and no lockdep report from vd55g0; the ipu6 driver's
lockdep_assert_held(&stream->mutex) in ipu6_isys_buffer_list_get()
fires at every stream start, from ipu6_isys_csi2_enable_streams();
- W=1 and sparse clean, dt_binding_check clean.
Sergey Lebedev (4):
dt-bindings: media: i2c: Add ST VD55G0 camera sensor
media: i2c: Add ST VD55G0 global shutter sensor driver
media: ipu-bridge: Add ST VD55G0
media: ipu-bridge: Add the Surface Pro 11 infrared illuminator
.../bindings/media/i2c/st,vd55g0.yaml | 137 +
MAINTAINERS | 10 +
drivers/media/i2c/Kconfig | 11 +
drivers/media/i2c/Makefile | 1 +
drivers/media/i2c/vd55g0.c | 2434 +++++++++++++++++
drivers/media/pci/intel/ipu-bridge.c | 62 +-
include/media/ipu-bridge.h | 2 +-
7 files changed, 2654 insertions(+), 3 deletions(-)
create mode 100644 Documentation/devicetree/bindings/media/i2c/st,vd55g0.yaml
create mode 100644 drivers/media/i2c/vd55g0.c
base-commit: d7e7bca7169873b46e857c025c10f3336c1258d8
--
2.54.0
next reply other threads:[~2026-10-19 16:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 16:27 Sergey Lebedev [this message]
2026-10-19 16:27 ` [PATCH 1/4] dt-bindings: media: i2c: Add ST VD55G0 camera sensor Sergey Lebedev
2026-10-20 8:27 ` Krzysztof Kozlowski
2026-10-20 9:08 ` Sergey Lebedev
2026-10-19 16:27 ` [PATCH 2/4] media: i2c: Add ST VD55G0 global shutter sensor driver Sergey Lebedev
2026-10-19 18:24 ` George Neacsu
2026-10-19 19:34 ` Sergey Lebedev
2026-10-20 6:44 ` George Neacsu
2026-10-20 8:52 ` Sergey Lebedev
2026-10-19 16:28 ` [PATCH 3/4] media: ipu-bridge: Add ST VD55G0 Sergey Lebedev
2026-10-19 16:28 ` [PATCH 4/4] media: ipu-bridge: Add the Surface Pro 11 infrared illuminator Sergey Lebedev
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=20261019162722.25587-1-lsa.uz@pm.me \
--to=lsa.uz@pm.me \
--cc=benjamin.mugnier@foss.st.com \
--cc=conor+dt@kernel.org \
--cc=dan.scally@ideasonboard.com \
--cc=devicetree@vger.kernel.org \
--cc=geocausa@gmail.com \
--cc=hansg@kernel.org \
--cc=hao.yao@intel.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=pm@petermarshall.ca \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=sylvain.petinot@foss.st.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®