The IMX219 sensor driver does not control the GPIO

Hi there!

with “manual” supply of a high level to the EN input of the video sensor module IMX219, the driver works fine and the sensor is available in the system, also the Argus-Camera connects without any problems and broadcasts the image from the sensor.

But at the same time, CAM0_RST_L TEGRA234_MAIN_GPIO(H, 3) is not controlled from the driver.

but in “manual” mode GPIO(H, 3) can be controlled.
log shows system registration and GPIO(H, 3) control.
log_v4l2-compliance & GPIO_RESET .txt (3.7 KB)
tegra234-p3737-0000-camera-imx219-auvidea.dtsi (16.0 KB)

custom board X230D and standard nvidia driver nv_imx219

hello videodev,

it doesn’t looks correct.
why you have two cameras that’s were sharing same GPIO pin.
for example,

	i2c@31e0000 {				
		imx219_cam0: rbpcv2_imx219_a@10 {
			pwdn-gpios = <&tegra_main_gpio CAM0_RST_L GPIO_ACTIVE_HIGH>;

	i2c@c240000 {					
		imx219_cam1: rbpcv2_imx219_g@10 {
			pwdn-gpios = <&tegra_main_gpio CAM0_RST_L GPIO_ACTIVE_HIGH>;

Hello JerryChang,

physically, the pin is connected to one camera connector and one camera is connected,
made changes.
tegra234-p3737-0000-camera-imx219-auvidea.dtsi (16.1 KB)
Kernel dtb to dts.
tegra234-p3701-0004-p3737-0000_2.zip (55.5 KB)

still CAM0_RST_L TEGRA234_MAIN_GPIO(H, 3) is not controlled from the driver.

Thanks!

hello videodev,

may I know which JetPack release you’re working with?
I saw some issues while using GPIO marco, could you please try using GPIO number directly,
you may using $ sudo cat /sys/kernel/debug/gpio | grep PH.03 to check the GPIO number.

Hello JerryChang,

Jetpack 5.0.2 ,

nv_orin@nv:~$ sudo cat /sys/kernel/debug/gpio | grep PH.03
gpio-394 (PH.03               |camera-control-outpu) out lo 

log shows system registration and GPIO(H, 3) control.
log_v4l2-compliance & GPIO_CAMERA .txt (5.2 KB)
Thanks!

hello videodev,

I did see some issues related to GPIO marco on JP-5.0.2,
you may either upgrade to later Jetpack release version, or trying below to control the pin, i.e. pwdn-gpios = <&tegra_main_gpio 394 GPIO_ACTIVE_HIGH>;

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.