Add DTS override for CAMx_REG GPIOs for the Raspberry Pi 5 #6210
+2
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds overrides for using the CAMx_REG pins on the CAM/DISP connectors as generic GPIO. The rationale for the override is to use this GPIO as a reset pin for MIPI DSI displays.
This PR mirrors how it is done on the CM3 and CM4. I didn't add the overrides for manual specification of the camera regulator GPIO pin (as done in the Compute Modules) considering the GPIO on the CAM/DISP connector is fixed. However, if that feature is desired I can add it to this pull request.
This forum post by @6by9 implies that this functionality was also intended for the Raspberry Pi 5. Because there is no
__override__
for cam0_reg or cam1_reg, addingdtparam=cam0_reg=off
ordtparam=cam1_reg=off
causes an error when parsing config.txt as shown invclog --msg
output. The resulting effect is that the GPIOs are still listed as used and they cannot be accessed in userspace.Thanks in advance for considering this pull request!