Skip to content

media: i2c: imx471: Add line length PCK setting and derive pixel rate from PLL configuration

Kate Hsuan linux-media lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 0 repliesNew

Changes in v3 from the cover letter

1. The line length PCK is set with the hblank control.
2. Define symbolic names for the PLL registers.
3. Fix the register size for the PLL registers. (0x0300-0x0310)
4. Derive pixel rate from the PLL configuration.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3media: i2c: imx471: Configure line length PCK via hblank controldrivers/media/i2c/imx471.c+14 -80 replies
2/3media: i2c: imx471: Define symbolic names for PLL registersdrivers/media/i2c/imx471.c+21 -130 replies
3/3media: i2c: imx471: Derive pixel rate from PLL configurationdrivers/media/i2c/imx471.c+10 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] media: i2c: imx471: Add line length PCK setting and derive pixel rate from PLL configuration

This patchset adds the line length PCK setting and calculates the pixel rate based on the external clock rate and PLL configurations.

Changes in v3:
1. The line length PCK is set with the hblank control.
2. Define symbolic names for the PLL registers.
3. Fix the register size for the PLL registers. (0x0300-0x0310)
4. Derive pixel rate from the PLL configuration.

The discussion of pixel rate can be found at the following URL
https://lore.kernel.org/linux-media/CAEth8oHj1Jon9m_4aFzRGoKcdopUMym+MyV0JxTo6F+AUFOLoQ@mail.gmail.com/

Changes in v2:
The patchset contains three patches:
1. Add line length PCK setting
2. Name the PLL registers in the OP domain
3. Calculate pixel rate based on the external clock rate and the PLL configurations in the OP domain.

The line length PCK setting is added to the sensor driver to ensure the pixel rate is correct. The pixel rate is calculated based on the external clock rate. Moreover, since the sensor runs in the PLL DUAL mode, the configurations of the OP domain are considered.

Tested with libcamera 0.7.2 and the patchset mitigated the horizontal line noise.

Changes in v1:
1. Add line length PCK setting

Kate Hsuan (3):
media: i2c: imx471: Configure line length PCK via hblank control
media: i2c: imx471: Define symbolic names for PLL registers
media: i2c: imx471: Derive pixel rate from PLL configuration

 drivers/media/i2c/imx471.c | 70 ++++++++++++++++++++++++--------------
 1 file changed, 45 insertions(+), 25 deletions(-)
Signature · 1 line
2.55.0