[PATCH v3 0/3] media: i2c: Add imx576 camera sensor driver
Himanshu Bhavani <[email protected]> Thu, 6 Aug 2026 17:32:06 +0530
| Newsgroups | org.kernel.vger.linux-media,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
The following features are supported: - Manual exposure an gain control support. - vblank/hblank control support. - Supported resolution: 5760 x 4312 30fps (SRGGB10) This series depends on the SM6350 CAMSS support series https://lore.kernel.org/linux-arm-msm/[email protected]/ The driver has been tested on the mainline v7.0-rc6 kernel on the Fairphone 4 running postmarketOS. fairphone-fp4:~$ v4l2-compliance -d /dev/v4l-subdev21 v4l2-compliance 1.32.0, 64 bits, 64-bit time_t Compliance test for device /dev/v4l-subdev21: Driver Info: Driver version : 7.0.0 Capabilities : 0x00000000 Client Capabilities: 0x0000000000000002 interval-uses-which Required ioctls: test VIDIOC_SUDBEV_QUERYCAP: OK test invalid ioctls: OK Allow for multiple opens: test second /dev/v4l-subdev21 open: OK test VIDIOC_SUBDEV_QUERYCAP: OK test for unlimited opens: OK Debug ioctls: test VIDIOC_LOG_STATUS: OK (Not Supported) Input ioctls: test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported) test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported) Inputs: 0 Audio Inputs: 0 Tuners: 0 Output ioctls: test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported) Outputs: 0 Audio Outputs: 0 Modulators: 0 Input/Output configuration ioctls: test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported) Control ioctls: test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK test VIDIOC_QUERYCTRL: OK test VIDIOC_G/S_CTRL: OK test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 12 Private Controls: 0 Format ioctls: test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK (Not Supported) test VIDIOC_TRY_FMT: OK (Not Supported) test VIDIOC_S_FMT: OK (Not Supported) test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported) test Composing: OK (Not Supported) test Scaling: OK (Not Supported) Codec ioctls: test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) test CREATE_BUFS maximum buffers: OK test VIDIOC_REMOVE_BUFS: OK test VIDIOC_EXPBUF: OK (Not Supported) test Requests: OK (Not Supported) test blocking wait: OK (Not Supported) Total for device /dev/v4l-subdev21: 46, Succeeded: 46, Failed: 0, Warnings: 0 V2 -> V3 In Patch 1/3 - Added required endpoint In Patch 2/3 - Change the capturing to full active-area of 5760x4312, up to 30fps. - Replace mode table with imx576_program_window(). - Added DT-configurable link frequency with PLL parameters. In Patch 3/3 - Replace the hardcoded orientation <0> with <MEDIA_ORIENTATION_FRONT>. V1 -> V2 In Patch 1/3 - Rename regulator supplies to (vana, vdig, vif). In Patch 2/3 - Rename link_freq array to avoid confusion with the link_freq control. - Use IMX576_EXPOSURE_STEP in exposure control range update. - Make cci_write() error handling consistent. - Return imx576_set_pad_format() result instead of return 0. - Initialize link_freq_index before creating the link frequency control. - Replace dev_err() with dev_err_probe(). - Remove redundant comment. In Patch 3/3 - Added the remaining supplies CSIPHYs (0-3). - Add comment for camera orientation property. - Move cam_mclk1_default{..} pinctrl definition to SoC SM6350 dtsi. Hardevsinh Palaniya (2): dt-bindings: media: i2c: Add imx576 sensor arm64: dts: qcom: sm7225-fairphone-fp4: Add Sony IMX576 front camera support Himanshu Bhavani (1): media: i2c: add imx576 image sensor driver .../bindings/media/i2c/sony,imx576.yaml | 114 ++ MAINTAINERS | 8 + arch/arm64/boot/dts/qcom/sm6350.dtsi | 7 + .../boot/dts/qcom/sm7225-fairphone-fp4.dts | 54 +- drivers/media/i2c/Kconfig | 10 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/imx576.c | 1054 +++++++++++++++++ 7 files changed, 1247 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx576.yaml create mode 100644 drivers/media/i2c/imx576.c -- 2.34.1