Hi 6by9,
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.)
It took me a while to figure out what the regulator framework is and how to use it.
Oh, my bad! I forgot to mention which device I am using. It is RPi 4B.Which Pi are you using?
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.)
Yeah, I know that. because I have written both versions of driver.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.

It took me a while to figure out what the regulator framework is and how to use it.
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.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).
Statistics: Posted by lak4cyut — Mon May 27, 2024 2:27 am