[v5,0/6] media: i2c: imx334: support lower bandwidth mode

Message ID 20221125050807.1857479-1-shravan.chippa@microchip.com
Headers
Series media: i2c: imx334: support lower bandwidth mode |

Message

shravan chippa Nov. 25, 2022, 5:08 a.m. UTC
  From: Shravan Chippa <shravan.chippa@microchip.com>

Hi

This patch series is for imx334 sensor driver support for lower bandwidth

Some platforms may not be capable of supporting the bandwidth
required for 12 bit or 3840x2160@60 resolutions.

Add support for dynamically selecting 10 bit and 1920x1080@30
resolutions while leaving the existing configuration as default

Sorry for taking dealy to send updated the series
as i need to check the impact of my patch on 3840x2160@60 resolutions

V4 -> V5
-Added 5 more patchs as per the review comments witch has below updates
-Updated 1782000000Mbps link frequency for 3840x2160@60 as per the mode
values
-Updated 1782000000Mbps link frequency in dt-bindings also
-Updated 3840x2160@60 mode array with default(reset) values

-Updated hblank __v4l2_ctrl_s_ctrl() to __v4l2_ctrl_modify_range()
Suggested-by: Jacopo Mondi <jacopo@jmondi.org>

-Current mode update only when we try to set V4L2_SUBDEV_FORMAT_ACTIVE
-Added link frequency (891000000Mbps) and pixel rate (74250000) to
1920x1080@30 mode
Suggested-by: Sakari Ailus <sakari.ailus@iki.fi>

-Updated commit message

V3 -> V4
- Make the 12 bit and 3840x2160 as default
- Set bus code SRGGB12 if set format fails

V2 -> V3
- Fixed the warning reported by kernel test robot

V1 -> V2
- Addressed the review comment given by Jacopo Mondi,
  Which has bug in imx334_enum_frame_size() loop function,
- Renamed array codes[] to imx334_mbus_codes[]
- Modified supported_modes[] to get higher resolution first

Shravan Chippa (6):
  dt-bindings: imx334: modify link frequency in examples
  media: i2c: imx334: modify link frequency as for the configureation
  media: i2c: imx334: hblank set function modify
  media: i2c: imx334: add default values in 3840x2160@60 array
  media: i2c: imx334: support lower bandwidth mode
  media: i2c: imx334: updating pixel and link frequency

 .../bindings/media/i2c/sony,imx334.yaml       |   2 +-
 drivers/media/i2c/imx334.c                    | 338 ++++++++++++++++--
 2 files changed, 311 insertions(+), 29 deletions(-)