Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4754

Camera board • Re: How do I control Pin 12 on the camera bus?

$
0
0
Hi 6by9,
Which Pi are you using?
Oh, my bad! I forgot to mention which device I am using. It is RPi 4B.
Can I control it (Pin 12) in my device? (This is a internal development, if we want to release it, we will change the GPIO back to CAM_GPIO for sure.)
The shutdown GPIO is defined for all platforms, and assigned to &cam1_reg.
The drivers used to use pwdn-gpio aliases. That was changed to use the regulator framework with CM4IO as it uses the same GPIO for both cameras, and GPIOs can only be claimed by one driver.
Yeah, I know that. because I have written both versions of driver. :D
It took me a while to figure out what the regulator framework is and how to use it.
If you're needing to translate dt-blob.dts to kernel, then GPIOs 0-127 map straight to the main GPIOs 0-53 (not all available to the user).
No, it is not necessary. It is just my curiosity because I recently found an old discussion about that, but I have never used it.

Statistics: Posted by lak4cyut — Mon May 27, 2024 2:27 am



Viewing all articles
Browse latest Browse all 4754

Trending Articles