Hi,
We used jetpack6.2.1 on orign nano 8G platform, I have set devnode in our device tree which i want to bind port name with port-index,but I find it was useless, I have 4 camera with virtual channel support 4 lanes. it works when i used all,but someone will used 1,2,3 camera, how can i bind the /dev/videoX with port-index(just like: port-index=0->/dev/video0, port-index=1->/dev/video1…)? I will attach my dts file here.
Any advice is greatly appreciated!!!
tegra234-camera-rbpcv2-imx219-quad.dtsi.txt (13.1 KB)
tegra234-p3767-camera-p3768-imx219-quad.dts.txt (2.0 KB)
by the way, my v4l2 device was register in kernel and the log was:
[ 3510.177428] ===imx219_probe start
[ 3510.177437] sensor_common_set_bit_depth 16
[ 3510.177439] ===Width parameter: 1920
[ 3510.177441] ===Height parameter: 1536
[ 3510.177554] csi_pixel_bit_depth=16
[ 3510.177654] imx219 9-001d: tegracam sensor driver:imx219_v2.0.6
[ 3510.177718] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx219 9-001d bound
[ 3510.178651] ===imx219_probe end
[ 3510.178767] ===imx219_probe start
[ 3510.178771] sensor_common_set_bit_depth 16
[ 3510.178773] ===Width parameter: 1920
[ 3510.178774] ===Height parameter: 1536
[ 3510.178863] csi_pixel_bit_depth=16
[ 3510.178889] debugfs: Directory ‘imx219_c’ with parent ‘/’ already present!
[ 3510.178895] imx219 10-001c: tegracam sensor driver:imx219_v2.0.6
[ 3510.178941] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx219 10-001c bound
[ 3510.182103] ===imx219_probe end
[ 3510.182196] ===imx219_probe start
[ 3510.182200] sensor_common_set_bit_depth 16
[ 3510.182201] ===Width parameter: 1920
[ 3510.182203] ===Height parameter: 1536
[ 3510.182287] csi_pixel_bit_depth=16
[ 3510.182315] imx219 11-001b: tegracam sensor driver:imx219_v2.0.6
[ 3510.182508] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx219 11-001b bound
[ 3510.187728] ===imx219_probe end
[ 3510.188006] ===imx219_probe start
[ 3510.188010] sensor_common_set_bit_depth 16
[ 3510.188012] ===Width parameter: 1920
[ 3510.188013] ===Height parameter: 1536
[ 3510.188103] csi_pixel_bit_depth=16
[ 3510.188132] debugfs: Directory ‘imx219_a’ with parent ‘/’ already present!
[ 3510.188140] imx219 12-001a: tegracam sensor driver:imx219_v2.0.6
[ 3510.188180] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx219 12-001a bound
[ 3510.192099] ===imx219_probe end
I found if i used jetpack5.1.2,the camera i2c device probe seq from i2c0->3, but it was i2c3->0 when i switch jetpack6.2.1…
You can modify the -1 to request number for it. -1 is auto assign by free number by sequency.
./vi/graph.c: ret = video_register_device(chan->video, VFL_TYPE_GRABBER, -1);
thanks a lot, i have fixed this issue, but i have checked jetpack5.1.2,it used
video_register_device(chan->video, VFL_TYPE_GRABBER, -1) too,why it worked?
It’s kernel regression to list the device by different sort cause the different.
Thanks