Hello, I have a customized MIPI camera board and the driver has been successfully registered.
Media device information
------------------------
driver tegra-camrtc-ca
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 5.10.120
Device topology
- entity 1: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
<- "rn6752 9-002c":0 [ENABLED]
pad1: Source
-> "vi-output, rn6752 9-002c":0 [ENABLED]
- entity 4: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
<- "rn6752 10-002c":0 [ENABLED]
pad1: Source
-> "vi-output, rn6752 10-002c":0 [ENABLED]
- entity 7: rn6752 9-002c (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
pad0: Source
[fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb]
-> "13e40000.host1x:nvcsi@15a00000-":0 [ENABLED]
- entity 9: vi-output, rn6752 9-002c (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "13e40000.host1x:nvcsi@15a00000-":1 [ENABLED]
- entity 23: rn6752 10-002c (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev3
pad0: Source
[fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb]
-> "13e40000.host1x:nvcsi@15a00000-":0 [ENABLED]
- entity 25: vi-output, rn6752 10-002c (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
However, executing the command:v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --set-ctrl bypass_mode=0 --stream-mmap
,
The following error will be reported:
[ 112.852516] bwmgr API not supported
[ 115.420466] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 115.420492] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 115.421005] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 115.421012] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[ 115.421021] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 115.421024] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 1 vc- 0
[ 115.421397] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
$ sudo cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 21/21 #P:6
#
# _-------=> irqs-off
# / _------=> need-resched
# | / _-----=> need-resched-lazy
# || / _----=> hardirq/softirq
# ||| / _---=> preempt-depth
# |||| / _--=> preempt-lazy-depth
# ||||| / _-=> migrate-disable
# |||||| / delay
# TASK-PID CPU# ||||||| TIMESTAMP FUNCTION
# | | | ||||||| | |
kworker/4:4-183 [004] ....... 104.256482: rtcpu_string: tstamp:3784498673 id:0x04010000 str:"VM0 deactivating."
v4l2-ctl-2916 [000] ....... 112.837685: tegra_channel_open: vi-output, rn6752 9-002c
v4l2-ctl-2916 [000] ....... 112.841391: tegra_channel_set_power: rn6752 9-002c : 0x1
v4l2-ctl-2916 [000] ....... 112.841403: camera_common_s_power: status : 0x1
v4l2-ctl-2916 [000] ....... 112.841412: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2916 [000] ....... 112.841415: csi_s_power: enable : 0x1
v4l2-ctl-2916 [000] ....... 112.842095: tegra_channel_capture_setup: vnc_id 0 W 1280 H 720 fmt 13
kworker/4:4-183 [004] ....... 112.848451: rtcpu_string: tstamp:4053059467 id:0x04010000 str:"VM0 activating."
v4l2-ctl-2916 [004] ....... 112.848887: tegra_channel_set_stream: enable : 0x1
v4l2-ctl-2916 [004] ....... 112.852823: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2916 [004] ....... 112.852826: csi_s_stream: enable : 0x1
v4l2-ctl-2916 [004] ....... 112.853219: tegra_channel_set_stream: rn6752 9-002c : 0x1
kworker/4:4-183 [004] ....... 112.908459: rtcpu_vinotify_event: tstamp:4053697235 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:129702251968 data:0x759d580010000000
kworker/4:4-183 [004] ....... 112.908462: rtcpu_vinotify_event: tstamp:4053697492 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:129702261728 data:0x0000000031000001
kworker/4:4-183 [004] ....... 112.908462: rtcpu_vinotify_event: tstamp:4053697781 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:129702353344 data:0x759d550010000000
kworker/4:4-183 [004] ....... 112.908463: rtcpu_vinotify_event: tstamp:4053698028 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:129702363232 data:0x0000000031000002
vi-output, rn67-2919 [003] ....... 115.421198: tegra_channel_capture_setup: vnc_id 0 W 1280 H 720 fmt 13
kworker/4:4-183 [004] ....... 115.448460: rtcpu_vinotify_event: tstamp:4133992978 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:132274945408 data:0x759d580010000000
kworker/4:4-183 [004] ....... 115.448464: rtcpu_vinotify_event: tstamp:4133993235 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:132275002912 data:0x0000000031000001
kworker/4:4-183 [004] ....... 115.448465: rtcpu_vinotify_event: tstamp:4133993520 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:132275020608 data:0x759d550010000000
kworker/4:4-183 [004] ....... 115.448465: rtcpu_vinotify_event: tstamp:4133993768 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:132275080928 data:0x0000000031000002
Through i2cdump, I can see the value successfully written to the register, but I cannot see the mipi-clock signal through the oscilloscope. What should I do?