Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media: i2c: ov9282: Read chip ID via 2 reads #5644

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

6by9
Copy link
Contributor

@6by9 6by9 commented Oct 11, 2023

Vision Components have made an OV9281 module which blocks reading back the majority of registers to comply with NDAs, and in doing so doesn't allow auto-increment register reading as used when reading the chip ID.

Use two reads and manually combine the results.

We used to have an equivalent patch for this for the downstream ov9281 driver. Mainline view Vision Components' icky I2C behaviour as needing to be supported in either regmap or the v4l2_cci helpers, but doing so looks fairly non-trivial to me, and needs this driver converting to use either of those.

Vision Components have made an OV9281 module which blocks reading
back the majority of registers to comply with NDAs, and in doing
so doesn't allow auto-increment register reading as used when
reading the chip ID.

Use two reads and manually combine the results.

Signed-off-by: Dave Stevenson <[email protected]>
@pelwell
Copy link
Contributor

pelwell commented Oct 11, 2023

ov9282_read_reg feels like the right place for the workaround, but the end result is likely to be more complicated, so this is OK.

@pelwell pelwell merged commit 57b2721 into raspberrypi:rpi-6.6.y Oct 11, 2023
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Oct 12, 2023
kernel: configs: Enable more sound devices
See: raspberrypi/linux#5637

kernel: media: i2c: ov9282: Read chip ID via 2 reads
See: raspberrypi/linux#5644

kernel: vc04_services: bcm2835-codec: Correct alignment requirements for YUYV
See: raspberrypi/linux#5646

kernel: xhci: add quirk for host controllers that don't update endpoint DCS
See: raspberrypi/linux#5642

kernel: drivers: media: rp1_cfe: Remove PISP specific MBUS formats
See: raspberrypi/linux#5641

kernel: media/rpivid: Make iommu work on rpivid
See: raspberrypi/linux#5627

kernel: gpio: brcmstb: Use dynamic GPIO base numbers
See: raspberrypi/linux#5639
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Oct 12, 2023
kernel: configs: Enable more sound devices
See: raspberrypi/linux#5637

kernel: media: i2c: ov9282: Read chip ID via 2 reads
See: raspberrypi/linux#5644

kernel: vc04_services: bcm2835-codec: Correct alignment requirements for YUYV
See: raspberrypi/linux#5646

kernel: xhci: add quirk for host controllers that don't update endpoint DCS
See: raspberrypi/linux#5642

kernel: drivers: media: rp1_cfe: Remove PISP specific MBUS formats
See: raspberrypi/linux#5641

kernel: media/rpivid: Make iommu work on rpivid
See: raspberrypi/linux#5627

kernel: gpio: brcmstb: Use dynamic GPIO base numbers
See: raspberrypi/linux#5639
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants