How are you operating via MMAL? Other than the legacy camera stack (limited to ov5647, imx219, and imx477) there are no routes to enable CAM_GPIO. (Hacking via the raspiraw camera_i2c script is ignoring all the correct subsystems).
libcamera for eg imx477 will enable the regulator via the regulator_bulk_enable call in the driver, where the VANA supply is linked to cam1_reg via DT.
You should be able to see the status of the regulator via "sudo cat /sys/kernel/debug/regulator/regulator_summary", eg on my Pi4 with ov5647 connectedcam1_reg has one user as "10-0036 avdd" (i2c-10 address 0x36 is ov5647), but use is currently 0, so the regulator is powered down.
If I run "rpicam-hello -t 0" in a second shell, I get the entry change toThe use count for both 10-0036-avdd and hence cam1_reg is now 1, and the GPIO is high.
libcamera for eg imx477 will enable the regulator via the regulator_bulk_enable call in the driver, where the VANA supply is linked to cam1_reg via DT.
You should be able to see the status of the regulator via "sudo cat /sys/kernel/debug/regulator/regulator_summary", eg on my Pi4 with ov5647 connected
Code:
pi@bookworm64:~ $ sudo cat /sys/kernel/debug/regulator/regulator_summary regulator use open bypass opmode voltage current min max--------------------------------------------------------------------------------------- regulator-dummy 8 7 0 unknown 0mV 0mA 0mV 0mV fe700000.dsi.0-iovcc 1 0mA 0mV 0mV fe700000.dsi.0-vddp 1 0mA 0mV 0mV serial0-0-vddio 1 0mA 0mV 0mV serial0-0-vbat 1 0mA 0mV 0mV 0000:01-vpcie12v 1 0mA 0mV 0mV 0000:01-vpcie3v3aux 1 0mA 0mV 0mV 0000:01-vpcie3v3 1 0mA 0mV 0mV cam-dummy-reg 1 2 0 unknown 0mV 0mA 0mV 0mV 10-0036-dvdd 0 0mA 0mV 0mV 10-0036-dovdd 0 0mA 0mV 0mV 3v3 1 0 0 unknown 3300mV 0mA 3300mV 3300mV 5v0 1 0 0 unknown 5000mV 0mA 5000mV 5000mV cam1-reg 0 1 0 unknown 0mV 0mA 0mV 0mV 10-0036-avdd 0 0mA 0mV 0mV vcc-sd 1 1 0 unknown 3300mV 0mA 3300mV 3300mV fe340000.mmc-vmmc 1 0mA 3300mV 3400mV vdd-sd-io 2 1 0 unknown 1800mV 0mA 1800mV 3300mV fe340000.mmc-vqmmc 1 0mA 1800mV 1950mVIf I run "rpicam-hello -t 0" in a second shell, I get the entry change to
Code:
cam1-reg 1 1 0 unknown 0mV 0mA 0mV 0mV 10-0036-avdd 1 0mA 0mV 0mVStatistics: Posted by 6by9 — Wed May 08, 2024 10:32 am