[ 1.484438] i2c /dev entries driver
[ 1.485961] ov9732 7-0036: probing v4l2 sensor.
[ 1.490566] ov9732 7-0036: ov9732_common_ops called here
[ 1.496421] ov9732 7-0036: ov9732_subdev_internal_ops called here
[ 1.503048] ov9732 7-0036: ov9732_ctrl_ops
[ 1.507768] ov9732 7-0036: ov9732_parse_dt called here
[ 1.513450] ov9732 7-0036: mclk in DT extperiph2
[ 1.518092] ov9732 7-0036: power down gpio not in DT: -2
[ 1.523418] ov9732 7-0036: power down gpio in DT: 0
[ 1.528557] ov9732 7-0036: reset gpios in DT: 457
[ 1.533795] ov9732 7-0036: get mclk extperiph2
[ 1.538792] ov9732 7-0036: ov9732_power_get canāt request pwdn_gpio -517
[ 1.540567] tegra-pcie 10003000.pcie-controller: link 0 down, retrying
[ 1.545624] ov9732 7-0036: ov9732_power_get request success reset_gpio 0
[ 1.552566] ov9732 7-0036: tegracam sensor driver:ov9732_v2.0.6
[ 1.552569] ov9732 7-0036: VVDN: tegra camera driver registration success
[ 1.559385] ov9732 7-0036: ov9732_probe: initialize ov9732_board_setup
[ 1.566447] ov9732 7-0036: ov9732_board_setup called here ++
[ 1.572119] ov9732 7-0036: ov9732_board_setup: going to enable camera_common_mclk
[ 1.580139] ov9732 7-0036: camera_common_mclk_enable: camera_common_mclk_enable called
[ 1.588592] ov9732 7-0036: camera_common_mclk_enable: enable MCLK with 24000000 Hz
[ 1.597267] ov9732 7-0036: camera_common_mclk_enable: MCLK rate24000000 Hz
[ 1.604938] ov9732 7-0036: ov9732_power_on: power on
[ 1.604999] ata1: SATA link down (SStatus 0 SControl 300)
[ 1.614523] ov9732 7-0036: ov9732_power_on: Power ON success
[ 1.622755] ov9732 7-0036: ov9732_probe: initialize v4l2subdev_register
[ 1.629947] ov9732 7-0036: ov9732_probe: ov9732_debugfs_create called
[ 1.636925] ov9732 7-0036: Detected OV9732 sensor
But no video node and subdev node is coming in /dev
I have seen some errors related to nvcsi and vi as below
root@localhost:/home/ubuntu# dmesg | grep nvcsi
[ 0.573086] iommu: Adding device 150c0000.nvcsi to group 30
[ 22.087451] nvcsi 150c0000.nvcsi: initialized
[ 22.087698] nvcsi: probe of 150c0000.nvcsi failed with error -22
root@localhost:/home/ubuntu# dmesg | grep tegra-vi4
[ 22.093716] tegra-vi4 15700000.vi: using default number of vi channels,15
[ 22.103124] tegra-vi4 15700000.vi: initialized
[ 22.104903] tegra-vi4 15700000.vi: ep of_device is not enabled /host1x/vi@15700000/ports/port@0/endpoint.
[ 22.104911] tegra-vi4 15700000.vi: ep of_device is not enabled /host1x/vi@15700000/ports/port@1/endpoint.
[ 22.114530] tegra-vi4: probe of 15700000.vi failed with error -22
is this the reason for no video node ??
JFI, In our design ov9732 is connected to CSI port 5 and we are using single lane. and below are the changes done for this in kernel_source/hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-modules/tegra186-camera-e3326-a00.dtsi
[ 22.158379] VVDN: dev_get_drvdata error //error case
[ 22.158384] nvcsi 150c0000.nvcsi: VVDN: err_module_init (-22)
[ 22.164311] nvcsi: probe of 150c0000.nvcsi failed with error -22
[ 22.170248] tegra-vi4 15700000.vi: VVDN: tegra_vi4_probe
[ 22.175845] tegra-vi4 15700000.vi: VVDN: match found
[ 22.180959] tegra-vi4 15700000.vi: VVDN: device data found
[ 22.181571] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517
[ 22.185973] tegra-usb-cd usb_cd: otg phy is not available yet
[ 22.188702] gpio tegra-gpio-aon wake29 for gpio=56(FF:0)
[ 22.188804] gpio tegra-gpio-aon wake67 for gpio=57(FF:1)
[ 22.188893] gpio tegra-gpio-aon wake68 for gpio=58(FF:2)
[ 22.189144] input: gpio-keys as /devices/gpio-keys/input/input2
[ 22.194397] tegra-vi4 15700000.vi: using default number of vi channels,15
[ 22.194402] tegra-vi4 15700000.vi: num vi channels : 15
[ 22.194634] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517
[ 22.199257] tegra-usb-cd usb_cd: otg phy is not available yet
[ 22.212159] tegra-vi4 15700000.vi: VVDN: nvhost_module_init
[ 22.218226] tegra-vi4 15700000.vi: initialized
[ 22.219898] tegra-vi4 15700000.vi: ep of_device is not enabled /host1x/vi@15700000/ports/port@0/endpoint.
[ 22.219906] tegra-vi4 15700000.vi: ep of_device is not enabled /host1x/vi@15700000/ports/port@1/endpoint.
[ 22.219909] tegra-vi4 15700000.vi: VVDN: tegra_vi_media_controller_init called
[ 22.233366] VVDN: dev_get_drvdata error //error case
[ 22.233374] tegra-vi4 15700000.vi: VVDN: tegra_camera_device_register
[ 22.251659] tegra-vi4: probe of 15700000.vi failed with error -22
=================================================================
Could you please suggest what could be the possible reason for the failure of the ādev_get_drvdata errorā
We are facing tegra_camera_platform probe failures due to which subdev bound is failing for our camera. I have attached the full logs for your reference .
[ 1.298215] tegra-pcie 10003000.pcie-controller: PCIE: Enable power rails
[ 1.298794] tegra_camera_platform tegra-camera-platform: tegra_camera_probe: VVDN: camera_platform_driver probe
[ 1.298857] tegra-pcie 10003000.pcie-controller: probing port 0, using 4 lanes
[ 1.299052] misc tegra_camera_ctrl: tegra_camera_isomgr_register tpg_max_iso = 3916800KBs
[ 1.299059] misc tegra_camera_ctrl: tegra_camera_isomgr_register isp_iso_bw=4687500, vi_iso_bw=2000000, max_bw=4687500
[ 1.299069] pre_t19x_iso_plat_register(): iso bandwidth 4687500KB is not available, client tegra_camera_ctrl
[ 1.299116] misc tegra_camera_ctrl: tegra_camera_isomgr_register: unable to register to isomgr
[ 1.299138] misc tegra_camera_ctrl: tegra_camera_probe: VVDN: failed to register CAMERA as isomgr client
[ 1.299172] tegra_camera_platform: probe of tegra-camera-platform failed with error -12
[ 1.305145] tegra-pcie 10003000.pcie-controller: probing port 2, using 1 lanes
ov9732 driver is probed successfully and now i am getting video/subdev nodes also. but the video which is captured using gst-launch is not proper used below command to capture video:
gst-launch-1.0 nvarguscamerasrc num-buffers=200 ! āvideo/x-raw(memory:NVMM),width=1280, height=720, framerate=30/1, format=NV12ā ! omxh264enc ! qtmux ! filesink location=test2.mp4 -e
I had checked regarding the sensor register configuration from the vendor and they said its fine. As per their response the issue is from the platform configuration.