Skip to contentSkip to conversation

media: Add ISX031 sensor support

PATCH New [email protected] 1 participant 3 messages Dec 4 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

v6 cover media: Add ISX031 sensor support

From: "Sodhi, Vunny" <[email protected]>

This series adds INTC113C support to ipu-bridge and a V4L2 driver for the Sony ISX031 sensor. The driver is ACPI-only and does not add a Device Tree binding; it relies on ipu-bridge for endpoint properties.

Changes since v5:
- Update sensor power-on and power-off callbacks and initialization.
- Revise exposure control handling and firmware-property error checking.
- Remove FSIN GPIO handling and adjust endpoint parsing.

Changes since v4:
- Replace fixed crop register tables with crop-register programming.
- Remove the remaining external frame-sync code.
- Simplify the sensor driver in response to review comments.

Changes since v3:
- Get and validate the 24-MHz sensor input clock.
- Reset and power up the sensor explicitly during probe, with cleanup on failure.
- Disable external frame-sync property handling.

Changes since v2:
- Add ISX031 to the media sensor MAINTAINERS file pattern.
- Simplify mode selection for the supported 4-lane, 30-fps configuration.
- Read the OTP type-name register as little-endian 16-bit data and mask it.
- Update exposure handling and co-development/review trailers.

Changes since v1:
- Update the sensor driver, including OTP register access, exposure limits and mode state handling.
- Update the sensor driver attribution and review trailers.

Kris Pan (1):
media: ipu-bridge: add INTC113C for the ISX031 sensor

Yew, Chang Ching (1):
media: i2c: add isx031 sensor driver

 MAINTAINERS                          |   7 +
 drivers/media/i2c/Kconfig            |  11 +
 drivers/media/i2c/Makefile           |   1 +
 drivers/media/i2c/isx031.c           | 919 +++++++++++++++++++++++++++
 drivers/media/pci/intel/ipu-bridge.c |   2 +
 5 files changed, 940 insertions(+)
 create mode 100644 drivers/media/i2c/isx031.c
Signature · 1 line
2.43.0
#1 lore raw

PATCH v6 1/2 media: ipu-bridge: add INTC113C for the ISX031 sensor

From: Kris Pan <[email protected]>

The ISX031 sensor driver binds through the ACPI HID INTC113C and needs the IPU bridge to create its software node and endpoint. Add the HID to ipu_supported_sensors[] with a 288 MHz link frequency, matching the driver's V4L2_CID_LINK_FREQ menu.

---
 drivers/media/pci/intel/ipu-bridge.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/media/pci/intel/ipu-bridge.c +2 -0
index 3739c4a2a8c4..8020bcf00dc1 100644
@@ -90,6 +90,8 @@ static const struct ipu_sensor_config ipu_supported_sensors[] = {
 	IPU_SENSOR_CONFIG("INT3537", 1, 437000000),
 	/* Lontium lt6911uxe */
 	IPU_SENSOR_CONFIG("INTC10C5", 0),
+	/* D3 Embedded ISX031 */
+	IPU_SENSOR_CONFIG("INTC113C", 1, 288000000),
 	/* Omnivision OV01A10 / OV01A1B / OV01A1S */
 	IPU_SENSOR_CONFIG("OVTI01A0", 1, 400000000),
 	IPU_SENSOR_CONFIG("OVTI01AB", 1, 400000000),
Signature · 1 line
2.43.0
#2 lore raw

PATCH v6 2/2 media: i2c: add isx031 sensor driver

In reply to [email protected]

From: "Yew, Chang Ching" <[email protected]>

Add a V4L2 sub-device driver for the Sony ISX031 YUV422 image sensor. The sensor is controlled over I2C with the CCI helpers and outputs MIPI CSI-2.

Supported modes:
- 1920x1536 at 30 fps
- 1920x1080 at 30 fps
- 1280x720 at 30 fps

The driver supports four CSI-2 lanes at 30 fps, runtime PM and auto/manual exposure controls.

The driver is ACPI-only: it binds through the INTC113C HID and relies on the IPU bridge for the endpoint (lane count) and device properties.

---
 MAINTAINERS                |   7 +
 drivers/media/i2c/Kconfig  |  11 +
 drivers/media/i2c/Makefile |   1 +
 drivers/media/i2c/isx031.c | 919 +++++++++++++++++++++++++++++++++++++
 4 files changed, 938 insertions(+)
 create mode 100644 drivers/media/i2c/isx031.c
MAINTAINERS +7 -0
index ccbcdc0799b9..ccb3a1e077e9 100644
@@ -26266,6 +26266,12 @@ S:	Maintained
 F:	Documentation/devicetree/bindings/media/i2c/sony,imx678.yaml
 F:	drivers/media/i2c/imx678.c
 
+SONY ISX031 SENSOR DRIVER
+M:	Yew, Chang Ching <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	drivers/media/i2c/isx031.c
+
 SONY MEMORYSTICK SUBSYSTEM
 M:	Maxim Levitsky <[email protected]>
 M:	Alex Dubov <[email protected]>
@@ -29374,6 +29380,7 @@ F:	drivers/media/i2c/ar*
 F:	drivers/media/i2c/gc*
 F:	drivers/media/i2c/hi*
 F:	drivers/media/i2c/imx*
+F:	drivers/media/i2c/isx*
 F:	drivers/media/i2c/mt*
 F:	drivers/media/i2c/og*
 F:	drivers/media/i2c/ov*
drivers/media/i2c/Kconfig +11 -0
index 11c30252540e..cdca5c8fcf53 100644
@@ -300,6 +300,17 @@ config VIDEO_IMX415
 	  To compile this driver as a module, choose M here: the
 	  module will be called imx415.
 
+config VIDEO_ISX031
+	tristate "ISX031 sensor support"
+	depends on ACPI || COMPILE_TEST
+	select V4L2_CCI_I2C
+	help
+	  This is a Video4Linux2 sensor-level driver for the
+	  Sony ISX031 camera.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called isx031.
+
 config VIDEO_IMX471
 	tristate "Sony IMX471 sensor support"
 	select V4L2_CCI_I2C
drivers/media/i2c/Makefile +1 -0
index 59e31af457cd..53449ed01969 100644
@@ -67,6 +67,7 @@ obj-$(CONFIG_VIDEO_IMX576) += imx576.o
 obj-$(CONFIG_VIDEO_IMX678) += imx678.o
 obj-$(CONFIG_VIDEO_IR_I2C) += ir-kbd-i2c.o
 obj-$(CONFIG_VIDEO_ISL7998X) += isl7998x.o
+obj-$(CONFIG_VIDEO_ISX031) += isx031.o
 obj-$(CONFIG_VIDEO_IT6625) += it6625.o
 obj-$(CONFIG_VIDEO_KS0127) += ks0127.o
 obj-$(CONFIG_VIDEO_LM3560) += lm3560.o
drivers/media/i2c/isx031.c new file +919 -0

919 lines not on this page · raw message

Signature · 1 line
2.43.0