Skip to contentSkip to conversation

Lenovo ThinkPad X1 Carbon Gen 14 IR camera: ST VD55G1 on Intel IPU7

PATCH Superseded Ruslan Koreev 4 participants 12 messages Sep 24 – Oct 1

Subsystems (7)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Lenovo ThinkPad X1 Carbon Gen 14 IR camera: ST VD55G1 on Intel IPU7

The ThinkPad X1 Carbon Gen 14 (Panther Lake, Intel IPU7) has a second MIPI camera for Windows Hello: an ST VD55G1 monochrome global-shutter sensor, enumerated by ACPI as TBE20A1, with one CSI-2 lane, powered through an INT3472 discrete device that provides a power enable GPIO, a reset GPIO, a privacy LED and a 19.2 MHz clock. The RGB camera of the same laptop (Sony IMX471, TBE20A0) is already supported.

Patches 1 to 3 wire the sensor up on ACPI: the INT3472 supply mapping, the ipu-bridge entry and ACPI matching in the vd55g1 driver, which also has to defer its probe while the bridge has not attached the endpoint yet. Patch 4 adds monochrome pixel formats to the IPU7 ISYS, which only offered Bayer, YUV and RGB formats, so that a mono sensor can stream at all, and keeps the mono codes out of the Bayer order conversion in the CSI-2 cropping path, which warns about them otherwise.

Tested on that laptop with Fedora 44 (kernel 7.2.5 with these changes carried as out-of-tree modules): the sensor probes, libcamera negotiates Y8 and streams 804x704 at 58 fps, Y10 and Y10P stream with plain V4L2, and with the IR illuminator on the frames are good enough for face authentication with howdy.

Peter Marshall's series "media: i2c: st-vd55g1: Genericize driver and add VD55G0 support" (v2 on linux-media, 18 September 2026) adds the VD55G0 (SMO55F0) to the same places: its patches 3 and 4 add entries next to the ipu-bridge and INT3472 lines added here, patch 6 drops the endpoint check in vd55g1 in favour of the deferral done by v4l2_fwnode_endpoint_parse(), and patch 11 adds an ACPI match table. The overlap is a few adjacent lines either way; if that series lands first, patch 3 here reduces to adding TBE20A1 to its table. Patches 1, 2 and 4 do not depend on it.

Ruslan Koreev (4):
platform/x86: int3472: Map the VD55G1 power enable GPIO to "vana"
media: ipu-bridge: Add the ST VD55G1 (TBE20A1)
media: i2c: vd55g1: Add ACPI support for the Lenovo TBE20A1 HID
media: staging/ipu7: Add monochrome pixel formats

 drivers/media/i2c/vd55g1.c                    | 15 +++++++++++----
 drivers/media/pci/intel/ipu-bridge.c          |  2 ++
 drivers/platform/x86/intel/int3472/discrete.c |  1 +
 drivers/staging/media/ipu7/ipu7-isys-csi2.c   |  1 +
 drivers/staging/media/ipu7/ipu7-isys-subdev.c |  5 +++++
 drivers/staging/media/ipu7/ipu7-isys-video.c  |  6 ++++++
 6 files changed, 26 insertions(+), 4 deletions(-)

base-commit: 62f4c998b297cf233997a2b4cd6fc2d2df0319c9

Signature · 1 line
2.55.0
#1 lore raw

PATCH 1/4 platform/x86: int3472: Map the VD55G1 power enable GPIO to "vana"

The Lenovo ThinkPad X1 Carbon Gen 14 has an ST VD55G1 IR camera, ACPI HID TBE20A1, behind an INT3472 discrete device that provides a power enable GPIO, a reset GPIO and a privacy LED. The vd55g1 driver names its analog supply "vana", so map the power enable regulator to that name, as is already done for the imx471 on the same laptop.

---
 drivers/platform/x86/intel/int3472/discrete.c | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/intel/int3472/discrete.c +1 -0
index 6c729fcfc..d005595ba 100644
@@ -130,6 +130,7 @@ skl_int3472_gpiod_get_from_temp_lookup(struct int3472_discrete_device *int3472,
 static const char * const power_enable_hids_vana[] = {
 	"SONY471A", /* imx471 on Lenovo X9-14 and X9-15 */
 	"TBE20A0", /* imx471 on Lenovo X1 Carbon G14 */
+	"TBE20A1", /* vd55g1 on Lenovo X1 Carbon G14 */
 	NULL
 };
 
Signature · 1 line
2.55.0
#3 lore raw

PATCH 2/4 media: ipu-bridge: Add the ST VD55G1 (TBE20A1)

In reply to Ruslan Koreev

Add the ACPI HID Lenovo uses for the ST VD55G1 IR camera of the ThinkPad X1 Carbon Gen 14. The firmware describes one CSI-2 data lane and, as usual, no link frequency, so the value has to come from this table; the vd55g1 driver requires exactly one.

Use 402 MHz (804 Mbps). The sensor derives its MIPI rate and clock tree from this value and the IPU7 CSI-2 receiver reads the same value back through V4L2_CID_LINK_FREQ, so both ends agree by construction. At 804 Mbps a full-width 10-bit line takes about 11 us on the link, which allows well over 100 fps at full resolution; lower rates lengthen every line proportionally. The rate is in the lower half of the 250 to 1200 Mbps range the sensor supports and is the one validated on the hardware, where 804x704 streams at 58 fps.

---
 drivers/media/pci/intel/ipu-bridge.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/media/pci/intel/ipu-bridge.c +2 -0
index bd64c0400..5941428ed 100644
@@ -101,6 +101,8 @@ static const struct ipu_sensor_config ipu_supported_sensors[] = {
 	IPU_SENSOR_CONFIG("SONY471A", 1, 200000000),
 	/* Sony IMX471 (found on Lenovo X1 Carbon G14) */
 	IPU_SENSOR_CONFIG("TBE20A0", 1, 200000000),
+	/* STMicroelectronics VD55G1 (found on Lenovo X1 Carbon G14) */
+	IPU_SENSOR_CONFIG("TBE20A1", 1, 402000000),
 	/* Toshiba T4KA3 */
 	IPU_SENSOR_CONFIG("XMCC0003", 1, 321468000),
 };
Signature · 1 line
2.55.0
#5 lore raw

PATCH 3/4 media: i2c: vd55g1: Add ACPI support for the Lenovo TBE20A1 HID

In reply to Ruslan Koreev

The IR camera of the Lenovo ThinkPad X1 Carbon Gen 14 is an ST VD55G1 enumerated by ACPI as TBE20A1, connected to the Intel IPU7 with one CSI-2 lane and powered through an INT3472 discrete device. Match the HID and take the sensor version from the match data, as for OF. Only the analog supply is switchable on this platform; vcore and vddio are always on and fall back to dummy regulators.

On these platforms the CSI-2 endpoint is a software node that ipu-bridge attaches to the sensor device when the IPU driver probes, which can happen after the sensor driver has been bound. Defer probing instead of failing when there is no endpoint yet, as the other sensor drivers used with the IPU bridge do and as v4l2_fwnode_endpoint_parse() itself does for a missing endpoint.

Tested on a ThinkPad X1 Carbon Gen 14 (Core Ultra X7 358H, IPU7), streaming 804x704 through libcamera.

---
 drivers/media/i2c/vd55g1.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
drivers/media/i2c/vd55g1.c +11 -4
index 6f458f611..64889c35d 100644
@@ -1903,10 +1903,9 @@ static int vd55g1_parse_dt(struct vd55g1 *sensor)
 
 	endpoint = fwnode_graph_get_endpoint_by_id(dev_fwnode(sensor->dev),
 						   0, 0, 0);
-	if (!endpoint) {
-		dev_err(sensor->dev, "Endpoint node not found\n");
-		return -EINVAL;
-	}
+	if (!endpoint)
+		return dev_err_probe(sensor->dev, -EPROBE_DEFER,
+				     "waiting for fwnode graph endpoint\n");
 
 	ret = vd55g1_check_csi_conf(sensor, endpoint);
 	fwnode_handle_put(endpoint);
@@ -2084,6 +2083,13 @@ static const struct of_device_id vd55g1_dt_ids[] = {
 };
 MODULE_DEVICE_TABLE(of, vd55g1_dt_ids);
 
+static const struct acpi_device_id vd55g1_acpi_ids[] = {
+	/* Lenovo ThinkPad X1 Carbon Gen 14 IR camera, Intel IPU7 */
+	{ "TBE20A1", (kernel_ulong_t)&vd55g1_versions[0] },
+	{ /* sentinel */ }
+};
+MODULE_DEVICE_TABLE(acpi, vd55g1_acpi_ids);
+
 static const struct dev_pm_ops vd55g1_pm_ops = {
 	SET_RUNTIME_PM_OPS(vd55g1_power_off, vd55g1_power_on, NULL)
 };
@@ -2092,6 +2098,7 @@ static struct i2c_driver vd55g1_i2c_driver = {
 	.driver = {
 		.name  = "vd55g1",
 		.of_match_table = vd55g1_dt_ids,
+		.acpi_match_table = vd55g1_acpi_ids,
 		.pm = &vd55g1_pm_ops,
 	},
 	.probe = vd55g1_probe,
Signature · 1 line
2.55.0
#7 lore raw

PATCH 4/4 media: staging/ipu7: Add monochrome pixel formats

In reply to Ruslan Koreev

The CSI-2 receiver already accepts MEDIA_BUS_FMT_Y10_1X10 but the video nodes offer no pixel format for it, and MEDIA_BUS_FMT_Y8_1X8 is not accepted at all, so a monochrome sensor cannot stream through the IPU7:
the ST VD55G1 IR camera of the Lenovo ThinkPad X1 Carbon Gen 14 only produces Y8 and Y10 and no configuration can be negotiated for it.

Add the GREY, Y10 and Y10P pixel formats, mapped to the RAW8, RAW16 and RAW10 frame formats like their Bayer counterparts, and accept MEDIA_BUS_FMT_Y8_1X8 on the CSI-2 receiver with the RAW8 data type. ipu7_isys_is_bayer_format() treats every raw code as Bayer, so the mono codes take the raw path in the CSI-2 cropping code; leave them alone in ipu7_isys_convert_bayer_order(), which otherwise warns about them. The two parts belong together: with the mono codes exposed but not excluded there, any crop offset on a mono stream triggers the warning.

Tested with the VD55G1 on that laptop: libcamera negotiates Y8 and streams 804x704 at 58 fps, and Y10 and Y10P stream with plain V4L2.

---
 drivers/staging/media/ipu7/ipu7-isys-csi2.c   | 1 +
 drivers/staging/media/ipu7/ipu7-isys-subdev.c | 5 +++++
 drivers/staging/media/ipu7/ipu7-isys-video.c  | 6 ++++++
 3 files changed, 12 insertions(+)
drivers/staging/media/ipu7/ipu7-isys-csi2.c +1 -0
index f34eabfe8..3067ae942 100644
@@ -27,6 +27,7 @@
 #include "ipu7-isys-csi-phy.h"
 
 static const u32 csi2_supported_codes[] = {
+	MEDIA_BUS_FMT_Y8_1X8,
 	MEDIA_BUS_FMT_Y10_1X10,
 	MEDIA_BUS_FMT_RGB565_1X16,
 	MEDIA_BUS_FMT_RGB888_1X24,
drivers/staging/media/ipu7/ipu7-isys-subdev.c +5 -0
index 67a776033..10908383b 100644
@@ -42,6 +42,7 @@ unsigned int ipu7_isys_mbus_code_to_mipi(u32 code)
 	case MEDIA_BUS_FMT_SGRBG10_1X10:
 	case MEDIA_BUS_FMT_SRGGB10_1X10:
 		return MIPI_CSI2_DT_RAW10;
+	case MEDIA_BUS_FMT_Y8_1X8:
 	case MEDIA_BUS_FMT_SBGGR8_1X8:
 	case MEDIA_BUS_FMT_SGBRG8_1X8:
 	case MEDIA_BUS_FMT_SGRBG8_1X8:
@@ -88,6 +89,10 @@ u32 ipu7_isys_convert_bayer_order(u32 code, int x, int y)
 	};
 	unsigned int i;
 
+	/* Monochrome raw formats have no Bayer order to convert */
+	if (code == MEDIA_BUS_FMT_Y8_1X8 || code == MEDIA_BUS_FMT_Y10_1X10)
+		return code;
+
 	for (i = 0; i < ARRAY_SIZE(code_map); i++)
 		if (code_map[i] == code)
 			break;
drivers/staging/media/ipu7/ipu7-isys-video.c +6 -0
index 8c6730833..c9abd4560 100644
@@ -54,6 +54,8 @@ const struct ipu7_isys_pixelformat ipu7_isys_pfmts[] = {
 	 IPU_INSYS_FRAME_FORMAT_RAW16},
 	{V4L2_PIX_FMT_SRGGB10, 16, 10, MEDIA_BUS_FMT_SRGGB10_1X10,
 	 IPU_INSYS_FRAME_FORMAT_RAW16},
+	{V4L2_PIX_FMT_Y10, 16, 10, MEDIA_BUS_FMT_Y10_1X10,
+	 IPU_INSYS_FRAME_FORMAT_RAW16},
 	{V4L2_PIX_FMT_SBGGR8, 8, 8, MEDIA_BUS_FMT_SBGGR8_1X8,
 	 IPU_INSYS_FRAME_FORMAT_RAW8},
 	{V4L2_PIX_FMT_SGBRG8, 8, 8, MEDIA_BUS_FMT_SGBRG8_1X8,
@@ -62,6 +64,8 @@ const struct ipu7_isys_pixelformat ipu7_isys_pfmts[] = {
 	 IPU_INSYS_FRAME_FORMAT_RAW8},
 	{V4L2_PIX_FMT_SRGGB8, 8, 8, MEDIA_BUS_FMT_SRGGB8_1X8,
 	 IPU_INSYS_FRAME_FORMAT_RAW8},
+	{V4L2_PIX_FMT_GREY, 8, 8, MEDIA_BUS_FMT_Y8_1X8,
+	 IPU_INSYS_FRAME_FORMAT_RAW8},
 	{V4L2_PIX_FMT_SBGGR12P, 12, 12, MEDIA_BUS_FMT_SBGGR12_1X12,
 	 IPU_INSYS_FRAME_FORMAT_RAW12},
 	{V4L2_PIX_FMT_SGBRG12P, 12, 12, MEDIA_BUS_FMT_SGBRG12_1X12,
@@ -78,6 +82,8 @@ const struct ipu7_isys_pixelformat ipu7_isys_pfmts[] = {
 	 IPU_INSYS_FRAME_FORMAT_RAW10},
 	{V4L2_PIX_FMT_SRGGB10P, 10, 10, MEDIA_BUS_FMT_SRGGB10_1X10,
 	 IPU_INSYS_FRAME_FORMAT_RAW10},
+	{V4L2_PIX_FMT_Y10P, 10, 10, MEDIA_BUS_FMT_Y10_1X10,
+	 IPU_INSYS_FRAME_FORMAT_RAW10},
 	{V4L2_PIX_FMT_UYVY, 16, 16, MEDIA_BUS_FMT_UYVY8_1X16,
 	 IPU_INSYS_FRAME_FORMAT_UYVY},
 	{V4L2_PIX_FMT_YUYV, 16, 16, MEDIA_BUS_FMT_YUYV8_1X16,
Signature · 1 line
2.55.0
maintainer
#6 lore raw

Re: [PATCH 3/4] media: i2c: vd55g1: Add ACPI support for the Lenovo TBE20A1 HID

In reply to Ruslan Koreev

Hi Ruslan,

Thanks for the set.

Quoted 14 lines · Ruslan Koreev

The IR camera of the Lenovo ThinkPad X1 Carbon Gen 14 is an ST VD55G1 enumerated by ACPI as TBE20A1, connected to the Intel IPU7 with one CSI-2 lane and powered through an INT3472 discrete device. Match the HID and take the sensor version from the match data, as for OF. Only the analog supply is switchable on this platform; vcore and vddio are always on and fall back to dummy regulators.

On these platforms the CSI-2 endpoint is a software node that ipu-bridge attaches to the sensor device when the IPU driver probes, which can happen after the sensor driver has been bound. Defer probing instead of failing when there is no endpoint yet, as the other sensor drivers used with the IPU bridge do and as v4l2_fwnode_endpoint_parse() itself does for a missing endpoint.

Quoted 2 lines

Tested on a ThinkPad X1 Carbon Gen 14 (Core Ultra X7 358H, IPU7), streaming 804x704 through libcamera.

Please describe here what the patch does; most of the above goes to the cover letter.

I'd split the endpoint handling changes into a separate patch, too.

Quoted 11 lines
---
 drivers/media/i2c/vd55g1.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
drivers/media/i2c/vd55g1.c +0 -0
index 6f458f611..64889c35d 100644

drivers/media/i2c/vd55g1.c static int vd55g1_parse_dt(struct vd55g1 *sensor) · line 1908

Quoted 10 lines
drivers/media/i2c/vd55g1.c +3 -4
@@ -1903,10 +1903,9 @@ static int vd55g1_parse_dt(struct vd55g1 *sensor)
 
 	endpoint = fwnode_graph_get_endpoint_by_id(dev_fwnode(sensor->dev),
 						   0, 0, 0);
-	if (!endpoint) {
-		dev_err(sensor->dev, "Endpoint node not found\n");
-		return -EINVAL;
-	}
+	if (!endpoint)
+		return dev_err_probe(sensor->dev, -EPROBE_DEFER,
+				     "waiting for fwnode graph endpoint\n");

I'd drop the check here and return v4l2_fwnode_endpoint_alloc_parse()'s return value in vd55g1_check_csi_conf(). Then -EPROBE_DEFER is returned when appropriate.

drivers/media/i2c/vd55g1.c static const struct of_device_id vd55g1_dt_ids[] = { · line 2087

Quoted 9 lines
drivers/media/i2c/vd55g1.c +2 -0
 	ret = vd55g1_check_csi_conf(sensor, endpoint);
 	fwnode_handle_put(endpoint);
@@ -2084,6 +2083,13 @@ static const struct of_device_id vd55g1_dt_ids[] = {
 };
 MODULE_DEVICE_TABLE(of, vd55g1_dt_ids);
 
+static const struct acpi_device_id vd55g1_acpi_ids[] = {
+	/* Lenovo ThinkPad X1 Carbon Gen 14 IR camera, Intel IPU7 */

No need for such a comment here, I think it's enough it's documented in the IPU bridge.

Quoted 16 lines
drivers/media/i2c/vd55g1.c +6 -0
+	{ "TBE20A1", (kernel_ulong_t)&vd55g1_versions[0] },
+	{ /* sentinel */ }
+};
+MODULE_DEVICE_TABLE(acpi, vd55g1_acpi_ids);
+
 static const struct dev_pm_ops vd55g1_pm_ops = {
 	SET_RUNTIME_PM_OPS(vd55g1_power_off, vd55g1_power_on, NULL)
 };
@@ -2092,6 +2098,7 @@ static struct i2c_driver vd55g1_i2c_driver = {
 	.driver = {
 		.name  = "vd55g1",
 		.of_match_table = vd55g1_dt_ids,
+		.acpi_match_table = vd55g1_acpi_ids,
 		.pm = &vd55g1_pm_ops,
 	},
 	.probe = vd55g1_probe,
Signature · 3 lines
Kind regrds,

Sakari Ailus
maintainer
#8 lore raw

Re: [PATCH 4/4] media: staging/ipu7: Add monochrome pixel formats

In reply to Ruslan Koreev

Hi Ruslan,

Quoted 15 lines · Ruslan Koreev

The CSI-2 receiver already accepts MEDIA_BUS_FMT_Y10_1X10 but the video nodes offer no pixel format for it, and MEDIA_BUS_FMT_Y8_1X8 is not accepted at all, so a monochrome sensor cannot stream through the IPU7:
the ST VD55G1 IR camera of the Lenovo ThinkPad X1 Carbon Gen 14 only produces Y8 and Y10 and no configuration can be negotiated for it.

Add the GREY, Y10 and Y10P pixel formats, mapped to the RAW8, RAW16 and RAW10 frame formats like their Bayer counterparts, and accept MEDIA_BUS_FMT_Y8_1X8 on the CSI-2 receiver with the RAW8 data type. ipu7_isys_is_bayer_format() treats every raw code as Bayer, so the mono codes take the raw path in the CSI-2 cropping code; leave them alone in ipu7_isys_convert_bayer_order(), which otherwise warns about them. The two parts belong together: with the mono codes exposed but not excluded there, any crop offset on a mono stream triggers the warning.

Quoted 2 lines

Tested with the VD55G1 on that laptop: libcamera negotiates Y8 and streams 804x704 at 58 fps, and Y10 and Y10P stream with plain V4L2.

Can you try doing this with the ipu6 driver instead? We're about to drop the ipu7 staging driver after some smallish number of kernel releases.

Signature · 3 lines
Regards,

Sakari Ailus
maintainer Acked-by on v1 1/4
#2 lore raw

Re: [PATCH 1/4] platform/x86: int3472: Map the VD55G1 power enable GPIO to "vana"

In reply to Ruslan Koreev

Hi Ruslan,

Thank you for your patch.

Le 24/09/2026 à 19:18, Ruslan Koreev a écrit :

Quoted 3 lines

The Lenovo ThinkPad X1 Carbon Gen 14 has an ST VD55G1 IR camera, ACPI HID TBE20A1, behind an INT3472 discrete device that provides a power enable GPIO, a reset GPIO and a privacy LED. The vd55g1 driver names its

About the privacy LED, the driver powers on the device at probe to detect its version, so the privacy led might flash at boot. This is a problem we could handle latter on.

Quoted 4 lines

analog supply "vana", so map the power enable regulator to that name, as is already done for the imx471 on the same laptop.

I'm not comfortable enough on ACPI to do a proper review. If it works for you then :

Quoted 16 lines
---
 drivers/platform/x86/intel/int3472/discrete.c | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/intel/int3472/discrete.c +1 -0
index 6c729fcfc..d005595ba 100644
@@ -130,6 +130,7 @@ skl_int3472_gpiod_get_from_temp_lookup(struct int3472_discrete_device *int3472,
 static const char * const power_enable_hids_vana[] = {
 	"SONY471A", /* imx471 on Lenovo X9-14 and X9-15 */
 	"TBE20A0", /* imx471 on Lenovo X1 Carbon G14 */
+	"TBE20A1", /* vd55g1 on Lenovo X1 Carbon G14 */
 	NULL
 };
 
Signature · 2 lines
Regards,
Benjamin
maintainer Acked-by on v1 2/4
#4 lore raw

Re: [PATCH 2/4] media: ipu-bridge: Add the ST VD55G1 (TBE20A1)

In reply to Ruslan Koreev

Hi Ruslan,

Le 24/09/2026 à 19:18, Ruslan Koreev a écrit :

Quoted 14 lines

Add the ACPI HID Lenovo uses for the ST VD55G1 IR camera of the ThinkPad X1 Carbon Gen 14. The firmware describes one CSI-2 data lane and, as usual, no link frequency, so the value has to come from this table; the vd55g1 driver requires exactly one.

Use 402 MHz (804 Mbps). The sensor derives its MIPI rate and clock tree from this value and the IPU7 CSI-2 receiver reads the same value back through V4L2_CID_LINK_FREQ, so both ends agree by construction. At 804 Mbps a full-width 10-bit line takes about 11 us on the link, which allows well over 100 fps at full resolution; lower rates lengthen every line proportionally. The rate is in the lower half of the 250 to 1200 Mbps range the sensor supports and is the one validated on the hardware, where 804x704 streams at 58 fps.

Quoted 1 line
Quoted 17 lines
---
 drivers/media/pci/intel/ipu-bridge.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/media/pci/intel/ipu-bridge.c +2 -0
index bd64c0400..5941428ed 100644
@@ -101,6 +101,8 @@ static const struct ipu_sensor_config ipu_supported_sensors[] = {
 	IPU_SENSOR_CONFIG("SONY471A", 1, 200000000),
 	/* Sony IMX471 (found on Lenovo X1 Carbon G14) */
 	IPU_SENSOR_CONFIG("TBE20A0", 1, 200000000),
+	/* STMicroelectronics VD55G1 (found on Lenovo X1 Carbon G14) */
+	IPU_SENSOR_CONFIG("TBE20A1", 1, 402000000),
 	/* Toshiba T4KA3 */
 	IPU_SENSOR_CONFIG("XMCC0003", 1, 321468000),
 };
Signature · 2 lines
Regards,
Benjamin
#9 lore raw

Re: [PATCH 4/4] media: staging/ipu7: Add monochrome pixel formats

In reply to Sakari Ailus

Hi Sakari,

Quoted 2 lines · Sakari Ailus

Can you try doing this with the ipu6 driver instead? We're about to drop the ipu7 staging driver after some smallish number of kernel releases.

I wasn't aware the ipu6 driver had grown IPU7 support, my base was 7.3-rc5. Tested now on next-20260924 with the ipu6 driver and patches 1-3, the vd55g1 one reworked as you suggested: the sensor probes, ipu-bridge connects both cameras, libcamera streams Y8 804x704 at 58 fps from the VD55G1, and Y10 and Y10P stream with plain V4L2. So this patch is not needed there; I'll drop it in v2.

Ruslan

#10 lore raw

Re: [PATCH 4/4] media: staging/ipu7: Add monochrome pixel formats

Hi Ruslan,

Quoted 8 lines · Ruslan Koreev

I wasn't aware the ipu6 driver had grown IPU7 support, my base was 7.3-rc5. Tested now on next-20260924 with the ipu6 driver and patches 1-3, the vd55g1 one reworked as you suggested: the sensor probes, ipu-bridge connects both cameras, libcamera streams Y8 804x704 at 58 fps from the VD55G1, and Y10 and Y10P stream with plain V4L2. So this patch is not needed there; I'll drop it in v2.

Ruslan

I tested patches 1-3 from v1 on another ThinkPad X1 Carbon Gen 14 (21V8A028CD, Panther Lake, IPU7 PCI 8086:b05d) using the ipu6 driver on next-20260928. I did not apply patch 4.

Patches 1-3 applied cleanly without local changes. The VD55G1 probes successfully, TBE20A1 is discovered by ipu-bridge, and the media topology is established as:

vd55g1 1-0010

    -> Intel IPU6 CSI2 2
    -> Intel IPU6 ISYS Capture 16
    -> /dev/video16

The sensor reports Y10_1X10/804x704, and /dev/video16 enumerates GREY, Y10 and Y10P. Setting Y10 at 804x704 succeeds with:

Bytes per Line : 1664
Size Image : 1173120

However, VIDIOC_STREAMON returns EPIPE for Y10, Y10P and GREY, and no frames are captured.

Since you reported successful plain-V4L2 Y10/Y10P streaming on next-20260924, could you share the exact media-ctl/v4l2-ctl commands and any setup performed before STREAMON? I'd like to reproduce the same sequence before looking for differences between the two linux-next snapshots.

My test base before applying the series was:

6375e61c01e93e35ee7acd336a689ac1fae4b509 (next-20260928)

Hardware: ThinkPad X1 Carbon Gen 14, 21V8A028CD
Kernel: 7.3.0-rc5-next-20260928-x1c14ir

Thanks,
Qiling Zhu

#11 lore raw

Re: [PATCH 4/4] media: staging/ipu7: Add monochrome pixel formats

Hi Qiling,

Quoted 3 lines · Qiling Zhu

Since you reported successful plain-V4L2 Y10/Y10P streaming on next-20260924, could you share the exact media-ctl/v4l2-ctl commands and any setup performed before STREAMON?

I tested on next-20260924 with intel-ipu6 bound to 8086:b05d and v1 patches 1-3, with the vd55g1 changes reworked for v2. Before the plain V4L2 test, I ran the following with libcamera 0.7.2:

cam -l
timeout 30 cam -c '\_SB_.LNK1' -C5 -s width=804,height=704

That captured five frames at 804x704 R8. Afterwards, media-ctl -p showed Y8_1X8/804x704 on sensor pad 0 and CSI2 pads 0 and 1. The sensor link was enabled and immutable, and this capture link was enabled:

"Intel IPU6 CSI2 2":1 -> "Intel IPU6 ISYS Capture 16":0

I did not enable any links manually. I have not repeated this sequence from a fresh boot using only media-ctl and v4l2-ctl, so the prior libcamera setup is relevant to reproducing my test.

For each format, I ran these commands first:

sudo media-ctl -V '"vd55g1 1-0010":0 [fmt:Y10_1X10/804x704]' sudo media-ctl -V '"Intel IPU6 CSI2 2":0 [fmt:Y10_1X10/804x704]' sudo media-ctl -V '"Intel IPU6 CSI2 2":1 [fmt:Y10_1X10/804x704]'

Then, for Y10 (with the trailing space in the FourCC):

  sudo v4l2-ctl -d /dev/video16 --set-fmt-video \
    'width=804,height=704,pixelformat=Y10 '
  sudo v4l2-ctl -d /dev/video16 --get-fmt-video
  sudo timeout 20 v4l2-ctl -d /dev/video16 --stream-mmap=4 \
    --stream-count=5 --stream-to=/tmp/ir-Y10.raw

I repeated the three media-ctl commands, then used:

  sudo v4l2-ctl -d /dev/video16 --set-fmt-video \
    'width=804,height=704,pixelformat=Y10P'
  sudo v4l2-ctl -d /dev/video16 --get-fmt-video
  sudo timeout 20 v4l2-ctl -d /dev/video16 --stream-mmap=4 \
    --stream-count=5 --stream-to=/tmp/ir-Y10P.raw

Both Y10 and Y10P captured five frames successfully and the images looked correct.

I have not tested next-20260928, so I cannot yet explain the EPIPE. Could you capture media-ctl -p immediately before STREAMON and any IPU or vd55g1 messages from dmesg after it fails?

Ruslan