Skip to content

IMX477 Test Pattern register is 16bit #7160

@pbeltram

Description

@pbeltram

Describe the bug

Register declaration #define IMX477_REG_TEST_PATTERN CCI_REG8(0x0600) is for 8 bit register, but test pattern register is 16bit (same as imx219).
Correct declaration in https://github.com/raspberrypi/linux/blob/rpi-6.12.y/drivers/media/i2c/imx477.c line 117 should be:
#define IMX477_REG_TEST_PATTERN CCI_REG16(0x0600)

Steps to reproduce the behaviour

Setting test pattern does not work because it modifies only bit[0] of register 0x0600.
After modifying the declaration of IMX477_REG_TEST_PATTERN to 16 bit the test pattern settings works OK.

Device (s)

Other

System

It is a generic imx477 Linux driver issue.

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions