Multiple IXM219 detected but only one /dev/video device

Hi, we have a Jetson NX Xavier with pca9548 behind i2c cam bus, we reconfigured the device tree for the i2c mux and the ixm219 cameras, they show up fine but the ixm219 driver only loads the first camera it finds and the other two are not showing up under /dev/

[ 64.461649] imx219 31-0010: tegracam sensor driver:imx219_v2.0.6
[ 64.478422] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx219 31-0010 bound
[ 64.482074] imx219 32-0010: tegracam sensor driver:imx219_v2.0.6
[ 64.499281] imx219 33-0010: tegracam sensor driver:imx219_v2.0.6

camera 31-0010 shows up under /dev/video0 but camera 32-0010 and 33-0010 do not.

Any ideas?

hello felipeapolanco,

it looks boot-up process also checking for 32-0010 and 33-0010. what’s the remaining kernel messages?
is there any failures? please share the complete logs for reference, thanks

That’s the end of the messages

[46244.338135] imx219 30-0010: tegracam sensor driver:imx219_v2.0.6
[46244.348966] imx219 30-0010: imx219_board_setup: error during i2c read probe (-121)
[46244.354377] imx219 30-0010: board setup failed
[46244.354621] imx219: probe of 30-0010 failed with error -121
[46244.355265] imx219 31-0010: tegracam sensor driver:imx219_v2.0.6
[46244.371747] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx219 31-0010 bound
[46244.374986] imx219 32-0010: tegracam sensor driver:imx219_v2.0.6
[46244.392858] imx219 33-0010: tegracam sensor driver:imx219_v2.0.6
root@dev-kit-sd:~#

device 30-0010 is missing that’s why it complains but the other three are present but only one shows up under /dev/

hello felipeapolanco,

it may due to you’re not configure i2cmux correctly.
please see-also reference device tree to review your sensor implementation.
for example,
$public_sources/kernel_src/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-camera-jakku-rbpcv2-imx219.dtsi

We found that the gpio-reset was referencing the incorrect gpio-controller, would that cause the cameras to not be initialized?

ok now we have 4 /dev/video devices, we had to update the num-channels to 4 for the nvcsi and tegra-capture-vi device definitions.

Thanks anyway

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