Skip to content

dtoverlays: Use continuous clock mode for ov9281 - #6542

Merged
pelwell merged 1 commit into
raspberrypi:rpi-6.6.yfrom
6by9:rpi-6.6.y-ov9282
Dec 17, 2024
Merged

pelwell merged 1 commit into
raspberrypi:rpi-6.6.yfrom
6by9:rpi-6.6.y-ov9282

Conversation

@6by9

@6by9 6by9 commented Dec 16, 2024

Copy link
Copy Markdown
Contributor

This increases the maximum frame rate from 247 to 260fps in 10-bit mode.

This increases the maximum frame rate from 247 to 260fps in
10-bit mode.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
@pelwell

pelwell commented Dec 16, 2024

Copy link
Copy Markdown
Contributor

Can you explain briefly why this change can't be applied to all cameras, and why it mostly (but not always) must be applied to both ends?

@6by9

6by9 commented Dec 17, 2024

Copy link
Copy Markdown
Contributor Author

Support of continuous vs non-continuous mode is down to the sensor driver and whether it checks DT for the setting and acts accordingly. Many drivers don't check and assume it is correct.
The CSI2 receiver driver generally needs to know in order to avoid looking for the LP->HS transition on the clock lane and therefore not syncing.

Why V4L2 doesn't pass the setting from source to sink is their policy decision, and you're not meant to go rummaging in other DT entities to extract it yourself. There is actually an API call that does allow passing the setting, but it's not widely implemented, and whenever anyone has implemented it just to relay this clock mode information, it has been rejected. (DRM does do the sensible thing and passes it from panel/bridge driver to the DSI host controller).

Not dropping to LP mode on the clock lane saves a little time per line, hence this sensor driver allows the blanking period to be reduced slightly to match. AFAIK that is unique to OV928[12] as I noticed it and fixed it up (torvalds/linux@a387834)

@pelwell

pelwell commented Dec 17, 2024

Copy link
Copy Markdown
Contributor

Thanks - that makes sense.

@pelwell
pelwell merged commit a4a4d7f into raspberrypi:rpi-6.6.y Dec 17, 2024
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Dec 20, 2024
kernel: dtoverlays: Add override for target-path on I2C overlays
See: raspberrypi/linux#6541

kernel: misc: rp1-pio: Support larger data transfers
See: raspberrypi/linux#6543

kernel: dtoverlays: Use continuous clock mode for ov9281
See: raspberrypi/linux#6542

kernel: overlays: goodix: Allow override i2c address
See: raspberrypi/linux#6547

kernel: Add PIO-assisted WS2812 LEDs driver
See: raspberrypi/linux#6551

kernel: overlays: Add and document i2c_csi_dsi0 parameters
See: raspberrypi/linux#6553
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Dec 20, 2024
kernel: dtoverlays: Add override for target-path on I2C overlays
See: raspberrypi/linux#6541

kernel: misc: rp1-pio: Support larger data transfers
See: raspberrypi/linux#6543

kernel: dtoverlays: Use continuous clock mode for ov9281
See: raspberrypi/linux#6542

kernel: overlays: goodix: Allow override i2c address
See: raspberrypi/linux#6547

kernel: Add PIO-assisted WS2812 LEDs driver
See: raspberrypi/linux#6551

kernel: overlays: Add and document i2c_csi_dsi0 parameters
See: raspberrypi/linux#6553
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