Skip to content

dtoverlays: Update all image sensor overlays for Media Controller option - #4645

Merged
popcornmix merged 1 commit into
raspberrypi:rpi-5.10.yfrom
6by9:rpi-5.10.y-unicam-mc-dt
Nov 2, 2021
Merged

popcornmix merged 1 commit into
raspberrypi:rpi-5.10.yfrom
6by9:rpi-5.10.y-unicam-mc-dt

Conversation

@6by9

@6by9 6by9 commented Oct 22, 2021

Copy link
Copy Markdown
Contributor

Add an option to enable configuration via the Media Controller API
(rather than the video-node-centric /dev/videoN) as about to
be used by libcamera as it enables more complex pipelines to be
handled.

Any source that has a libcamera tuning merged has MC enabled by
default.
Sources with no libcamera tuning merged have it disabled by
default.
In either case it can be overridden with the overlay parameter
"media-controller".

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

Follow up to #4641 to switch over to MC usage. Wants the libcamera updates to be merged first/at the same time.

Add an option to enable configuration via the Media Controller API
(rather than the video-node-centric /dev/videoN) as about to
be used by libcamera as it enables more complex pipelines to be
handled.

Any source that has a libcamera tuning merged has MC enabled by
default.
Sources with no libcamera tuning merged have it disabled by
default.
In either case it can be overridden with the overlay parameter
"media-controller".

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
@6by9
6by9 force-pushed the rpi-5.10.y-unicam-mc-dt branch from 3e5d625 to 24be7a1 Compare October 22, 2021 11:25
@6by9

6by9 commented Oct 22, 2021

Copy link
Copy Markdown
Contributor Author

Updated to fix the phandles for the overrides.

naushir added a commit to naushir/libcamera that referenced this pull request Oct 22, 2021
…roller

Switch the pipeline handler to use the new Unicam media controller based driver.
With this change, we directly talk to the sensor device driver to set controls
and set/get formats in the pipeline handler.

This change requires the accompanying Raspberry Pi linux kernel change at
raspberrypi/linux#4645. If this kernel change is not
present, the pipeline handler will fail to run with an error message informing
the user to update the kernel build.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
@pelwell

pelwell commented Oct 22, 2021

Copy link
Copy Markdown
Contributor

That looks OK. Let me know when you'd like it merged, @naushir.

@naushir

naushir commented Oct 22, 2021

Copy link
Copy Markdown
Contributor

Will do, I've published the accompanying userland changes to the mailing list, so once the review cycle is done, I'll let you know.

kbingham pushed a commit to kbingham/libcamera that referenced this pull request Nov 2, 2021
…roller

Switch the pipeline handler to use the new Unicam media controller based driver.
With this change, we directly talk to the sensor device driver to set controls
and set/get formats in the pipeline handler.

This change requires the accompanying Raspberry Pi linux kernel change at
raspberrypi/linux#4645. If this kernel change is not
present, the pipeline handler will fail to run with an error message informing
the user to update the kernel build.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
@naushir

naushir commented Nov 2, 2021

Copy link
Copy Markdown
Contributor

@popcornmix, this can be merged now.

@6by9 6by9 changed the title WIP: dtoverlays: Update all image sensor overlays for Media Controller option dtoverlays: Update all image sensor overlays for Media Controller option Nov 2, 2021
@6by9

6by9 commented Nov 2, 2021

Copy link
Copy Markdown
Contributor Author

WIP tag removed - libcamera changes are merged.

@popcornmix
popcornmix merged commit 59e91ce into raspberrypi:rpi-5.10.y Nov 2, 2021
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Nov 2, 2021
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Nov 2, 2021
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.

4 participants