如何配置max9286与max96705驱动

硬件环境

  1. NVIDIA xavier
  2. Jetson Kernel-4.3
  3. CSI E Port 4 4 LANES
  4. MAX9286, MAX96705(YUV8-bit,1280x720)
  5. i2c映射到0x31e0000, MAX9286的I2C地址是0x6a, MAX96705的I2C地址是0x40
  6. 摄像头是森云的SG1-AR0143-0101-GMSL, ISP型号是AP0101AT, 1280x720/30fps, YUV/8bit
  7. 摄像头连接MAX9286的LINK0, CSI用到4LANES, CSI E, Port 4

问题

  1. 用示波器测量有CSI信号,但是用gst-launch-1.0 v4l2src ! xvimagesink 播放窗口没有图像,也不是绿色

打印信息
kworker/5:0-42 [005] … 544.045242: rtos_queue_send_from_isr_failed: tstamp:17490933810 queue:0x0bcb41f8
kworker/5:0-42 [005] … 544.045243: rtos_queue_send_from_isr_failed: tstamp:17490933980 queue:0x0bcb8a60
kworker/5:0-42 [005] … 544.045243: rtos_queue_send_from_isr_failed: tstamp:17490934133 queue:0x0bcba5e0
kworker/5:0-42 [005] … 544.045243: rtos_queue_send_from_isr_failed: tstamp:17490934280 queue:0x0bcbb3a0
kworker/5:0-42 [005] … 544.045243: rtos_queue_send_from_isr_failed: tstamp:17490934426 queue:0x0bcbc160
kworker/5:0-42 [005] … 544.045243: rtcpu_vinotify_event: tstamp:17491147096 tag:CHANSEL_PXL_EOF channel:0x23 frame:141 vi_tstamp:17490921728 data:0x02ce0002
kworker/5:0-42 [005] … 544.045244: rtcpu_vinotify_event: tstamp:17491147259 tag:ATOMP_FRAME_DONE channel:0x23 frame:141 vi_tstamp:17490921753 data:0x00000000
kworker/5:0-42 [005] … 544.045244: rtcpu_vinotify_event: tstamp:17491147398 tag:RESERVED_19 channel:0x23 frame:141 vi_tstamp:18543623872 data:0x02020a8d
kworker/5:0-42 [005] … 544.045244: rtcpu_vinotify_event: tstamp:17491147556 tag:CHANSEL_FAULT channel:0x23 frame:141 vi_tstamp:17490921805 data:0x02cf0040
kworker/5:0-42 [005] … 544.045244: rtcpu_vinotify_event: tstamp:17491147692 tag:RESERVED_19 channel:0x23 frame:141 vi_tstamp:18543642208 data:0x01020a8d
kworker/5:0-42 [005] … 544.045244: rtcpu_vinotify_event: tstamp:17491147853 tag:FE channel:0x00 frame:141 vi_tstamp:17490938591 data:0x00000024
kworker/5:0-42 [005] … 544.045245: rtcpu_vinotify_event: tstamp:17491147996 tag:ATOMP_FE channel:0x00 frame:141 vi_tstamp:17490938595 data:0x00000000
kworker/5:0-42 [005] … 544.045245: rtcpu_vinotify_event: tstamp:17491148154 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:18544171392 data:0x07020a8e
kworker/5:0-42 [005] … 544.045245: rtcpu_vinotify_event: tstamp:17491148289 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:18544226848 data:0x10000000
kworker/5:0-42 [005] … 544.045245: rtcpu_vinotify_event: tstamp:17491148444 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:18544256576 data:0x31000a8f
kworker/5:0-42 [005] … 544.045245: rtcpu_vinotify_event: tstamp:17491148582 tag:FS channel:0x00 frame:142 vi_tstamp:17490957552 data:0x00000014
kworker/5:0-42 [005] … 544.045246: rtcpu_vinotify_event: tstamp:17491148740 tag:ATOMP_FS channel:0x00 frame:142 vi_tstamp:17490957554 data:0x00000000
kworker/5:0-42 [005] … 544.101227: rtcpu_vinotify_event: tstamp:17491689387 tag:CHANSEL_PXL_SOF channel:0x23 frame:142 vi_tstamp:17491191116 data:0x00000001
kworker/5:0-42 [005] … 544.101227: rtcpu_vinotify_event: tstamp:17491689553 tag:RESERVED_19 channel:0x23 frame:142 vi_tstamp:18552240672 data:0x08020a8e
kworker/5:0-42 [005] … 544.101227: rtcpu_vinotify_event: tstamp:17492016486 tag:CHANSEL_PXL_EOF channel:0x23 frame:142 vi_tstamp:17492011523 data:0x02ce0002
kworker/5:0-42 [005] … 544.101228: rtos_queue_send_from_isr_failed: tstamp:17492025523 queue:0x0bcb41f8
kworker/5:0-42 [005] … 544.101230: rtos_queue_send_from_isr_failed: tstamp:17492025677 queue:0x0bcb8a60
kworker/5:0-42 [005] … 544.101234: rtos_queue_send_from_isr_failed: tstamp:17492025833 queue:0x0bcba5e0
kworker/5:0-42 [005] … 544.101234: rtos_queue_send_from_isr_failed: tstamp:17492025982 queue:0x0bcbb3a0
kworker/5:0-42 [005] … 544.101234: rtos_queue_send_from_isr_failed: tstamp:17492026126 queue:0x0bcbc160
kworker/5:0-42 [005] … 544.101236: rtcpu_vinotify_event: tstamp:17492503028 tag:ATOMP_FRAME_DONE channel:0x23 frame:142 vi_tstamp:17492011548 data:0x00000000
kworker/5:0-42 [005] … 544.101237: rtcpu_vinotify_event: tstamp:17492503172 tag:RESERVED_19 channel:0x23 frame:142 vi_tstamp:18578503264 data:0x02020a8e
kworker/5:0-42 [005] … 544.101237: rtcpu_vinotify_event: tstamp:17492503334 tag:CHANSEL_FAULT channel:0x23 frame:142 vi_tstamp:17492011601 data:0x02cf0040
kworker/5:0-42 [005] … 544.101237: rtcpu_vinotify_event: tstamp:17492503469 tag:RESERVED_19 channel:0x23 frame:142 vi_tstamp:18578521920 data:0x01020a8e
kworker/5:0-42 [005] … 544.101237: rtcpu_vinotify_event: tstamp:17492503630 tag:FE channel:0x00 frame:142 vi_tstamp:17492028387 data:0x00000024
kworker/5:0-42 [005] … 544.101238: rtcpu_vinotify_event: tstamp:17492503771 tag:ATOMP_FE channel:0x00 frame:142 vi_tstamp:17492028389 data:0x00000000
kworker/5:0-42 [005] … 544.101238: rtcpu_vinotify_event: tstamp:17492503928 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:18579044832 data:0x07020a8f
kworker/5:0-42 [005] … 544.101238: rtcpu_vinotify_event: tstamp:17492504063 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:18579094496 data:0x10000000
kworker/5:0-42 [005] … 544.101238: rtcpu_vinotify_event: tstamp:17492504219 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:18579124224 data:0x31000a90
kworker/5:0-42 [005] … 544.101238: rtcpu_vinotify_event: tstamp:17492504353 tag:FS channel:0x00 frame:143 vi_tstamp:17492047348 data:0x00000014
kworker/5:0-42 [005] … 544.101238: rtcpu_vinotify_event: tstamp:17492504513 tag:ATOMP_FS channel:0x00 frame:143 vi_tstamp:17492047350 data:0x00000000
kworker/5:0-42 [005] … 544.101239: rtcpu_vinotify_event: tstamp:17492504646 tag:CHANSEL_PXL_SOF channel:0x23 frame:143 vi_tstamp:17492279770 data:0x00000001
kworker/5:0-42 [005] … 544.101239: rtcpu_vinotify_event: tstamp:17492504805 tag:RESERVED_19 channel:0x23 frame:143 vi_tstamp:18587077600 data:0x08020a8f
kworker/5:0-42 [005] … 544.157224: rtcpu_vinotify_event: tstamp:17493105112 tag:CHANSEL_PXL_EOF channel:0x23 frame:143 vi_tstamp:17493100178 data:0x02ce0002
kworker/5:0-42 [005] … 544.157225: rtcpu_vinotify_event: tstamp:17493105274 tag:ATOMP_FRAME_DONE channel:0x23 frame:143 vi_tstamp:17493100203 data:0x00000000
kworker/5:0-42 [005] … 544.157225: rtcpu_vinotify_event: tstamp:17493105413 tag:RESERVED_19 channel:0x23 frame:143 vi_tstamp:18613334272 data:0x02020a8f
kworker/5:0-42 [005] … 544.157225: rtos_queue_send_from_isr_failed: tstamp:17493114177 queue:0x0bcb41f8
kworker/5:0-42 [005] … 544.157225: rtos_queue_send_from_isr_failed: tstamp:17493114346 queue:0x0bcb8a60
kworker/5:0-42 [005] … 544.157226: rtos_queue_send_from_isr_failed: tstamp:17493114501 queue:0x0bcba5e0
kworker/5:0-42 [005] … 544.157226: rtos_queue_send_from_isr_failed: tstamp:17493114648 queue:0x0bcbb3a0
kworker/5:0-42 [005] … 544.157226: rtos_queue_send_from_isr_failed: tstamp:17493114793 queue:0x0bcbc160
kworker/5:0-42 [005] … 544.157229: rtcpu_vinotify_event: tstamp:17493642595 tag:CHANSEL_FAULT channel:0x23 frame:143 vi_tstamp:17493100255 data:0x02cf0040
kworker/5:0-42 [005] … 544.157229: rtcpu_vinotify_event: tstamp:17493642735 tag:RESERVED_19 channel:0x23 frame:143 vi_tstamp:18613358816 data:0x01020a8f
kworker/5:0-42 [005] … 544.157229: rtcpu_vinotify_event: tstamp:17493642899 tag:FE channel:0x00 frame:143 vi_tstamp:17493117042 data:0x00000024
kworker/5:0-42 [005] … 544.157230: rtcpu_vinotify_event: tstamp:17493643041 tag:ATOMP_FE channel:0x00 frame:143 vi_tstamp:17493117044 data:0x00000000
kworker/5:0-42 [005] … 544.157230: rtcpu_vinotify_event: tstamp:17493643198 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:18613881792 data:0x07020a90
kworker/5:0-42 [005] … 544.157230: rtcpu_vinotify_event: tstamp:17493643333 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:18613936928 data:0x10000000
kworker/5:0-42 [005] … 544.157230: rtcpu_vinotify_event: tstamp:17493643489 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:18613966688 data:0x31000a91
kworker/5:0-42 [005] … 544.157230: rtcpu_vinotify_event: tstamp:17493643625 tag:FS channel:0x00 frame:144 vi_tstamp:17493136002 data:0x00000014
kworker/5:0-42 [005] … 544.157231: rtcpu_vinotify_event: tstamp:17493643785 tag:ATOMP_FS channel:0x00 frame:144 vi_tstamp:17493136004 data:0x00000000
kworker/5:0-42 [005] … 544.157231: rtcpu_vinotify_event: tstamp:17493643920 tag:CHANSEL_PXL_SOF channel:0x23 frame:144 vi_tstamp:17493368423 data:0x00000001
kworker/5:0-42 [005] … 544.157231: rtcpu_vinotify_event: tstamp:17493644077 tag:RESERVED_19 channel:0x23 frame:144 vi_tstamp:18621914496 data:0x08020a90
kworker/5:0-42 [005] … 544.157232: rtos_queue_peek_from_isr_failed: tstamp:17493966729 queue:0x0bcbcf78
kworker/5:0-42 [005] … 544.157232: rtcpu_vinotify_event: tstamp:17494193756 tag:CHANSEL_PXL_EOF channel:0x23 frame:144 vi_tstamp:17494188832 data:0x02ce0002
kworker/5:0-42 [005] … 544.157233: rtcpu_vinotify_event: tstamp:17494193922 tag:ATOMP_FRAME_DONE channel:0x23 frame:144 vi_tstamp:17494188857 data:0x00000000
kworker/5:0-42 [005] … 544.157233: rtcpu_vinotify_event: tstamp:17494194060 tag:RESERVED_19 channel:0x23 frame:144 vi_tstamp:18648171232 data:0x02020a90
kworker/5:0-42 [005] … 544.157233: rtcpu_vinotify_event: tstamp:17494194217 tag:CHANSEL_FAULT channel:0x23 frame:144 vi_tstamp:17494188907 data:0x02cf0040
kworker/5:0-42 [005] … 544.157233: rtcpu_vinotify_event: tstamp:17494194352 tag:RESERVED_19 channel:0x23 frame:144 vi_tstamp:18648189536 data:0x01020a90
kworker/5:0-42 [005] … 544.157233: rtos_queue_send_from_isr_failed: tstamp:17494203504 queue:0x0bcb41f8
kworker/5:0-42 [005] … 544.157234: rtos_queue_send_from_isr_failed: tstamp:17494203656 queue:0x0bcb8a60
kworker/5:0-42 [005] … 544.157234: rtos_queue_send_from_isr_failed: tstamp:17494203808 queue:0x0bcba5e0
kworker/5:0-42 [005] … 544.157234: rtos_queue_send_from_isr_failed: tstamp:17494203955 queue:0x0bcbb3a0
kworker/5:0-42 [005] … 544.157234: rtos_queue_send_from_isr_failed: tstamp:17494204102 queue:0x0bcbc160
kworker/5:0-42 [005] … 544.157235: rtcpu_vinotify_event: tstamp:17494727417 tag:FE channel:0x00 frame:144 vi_tstamp:17494205693 data:0x00000024
kworker/5:0-42 [005] … 544.157235: rtcpu_vinotify_event: tstamp:17494727564 tag:ATOMP_FE channel:0x00 frame:144 vi_tstamp:17494205697 data:0x00000000
kworker/5:0-42 [005] … 544.157235: rtcpu_vinotify_event: tstamp:17494727726 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:18648718656 data:0x07020a91
kworker/5:0-42 [005] … 544.157236: rtcpu_vinotify_event: tstamp:17494727864 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:18648779392 data:0x10000000
kworker/5:0-42 [005] … 544.157236: rtcpu_vinotify_event: tstamp:17494728023 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:18648809184 data:0x31000a92
kworker/5:0-42 [005] … 544.157236: rtcpu_vinotify_event: tstamp:17494728159 tag:FS channel:0x00 frame:145 vi_tstamp:17494224654 data:0x00000014
kworker/5:0-42 [005] … 544.157236: rtcpu_vinotify_event: tstamp:17494728320 tag:ATOMP_FS channel:0x00 frame:145 vi_tstamp:17494224657 data:0x00000000
kworker/5:0-42 [005] … 544.157236: rtcpu_vinotify_event: tstamp:17494728454 tag:CHANSEL_PXL_SOF channel:0x23 frame:145 vi_tstamp:17494458219 data:0x00000001
kworker/5:0-42 [005] … 544.157236: rtcpu_vinotify_event: tstamp:17494728612 tag:RESERVED_19 channel:0x23 frame:145 vi_tstamp:18656787936 data:0x08020a91
kworker/5:0-42 [005] … 544.213224: rtos_queue_send_from_isr_failed: tstamp:17495290939 queue:0x0bcb41f8
kworker/5:0-42 [005] … 544.213225: rtos_queue_send_from_isr_failed: tstamp:17495291100 queue:0x0bcb8a60
kworker/5:0-42 [005] … 544.213225: rtos_queue_send_from_isr_failed: tstamp:17495291257 queue:0x0bcba5e0
kworker/5:0-42 [005] … 544.213225: rtos_queue_send_from_isr_failed: tstamp:17495291402 queue:0x0bcbb3a0
kworker/5:0-42 [005] … 544.213225: rtos_queue_send_from_isr_failed: tstamp:17495291549 queue:0x0bcbc160
kworker/5:0-42 [005] … 544.213225: rtcpu_vinotify_event: tstamp:17495298343 tag:CHANSEL_PXL_EOF channel:0x23 frame:145 vi_tstamp:17495278626 data:0x02ce0002
kworker/5:0-42 [005] … 544.213226: rtcpu_vinotify_event: tstamp:17495298512 tag:ATOMP_FRAME_DONE channel:0x23 frame:145 vi_tstamp:17495278651 data:0x00000000
kworker/5:0-42 [005] … 544.213226: rtcpu_vinotify_event: tstamp:17495298652 tag:RESERVED_19 channel:0x23 frame:145 vi_tstamp:18683044640 data:0x02020a91
kworker/5:0-42 [005] … 544.213226: rtcpu_vinotify_event: tstamp:17495298814 tag:CHANSEL_FAULT channel:0x23 frame:145 vi_tstamp:17495278703 data:0x02cf0040
kworker/5:0-42 [005] … 544.213226: rtcpu_vinotify_event: tstamp:17495298950 tag:RESERVED_19 channel:0x23 frame:145 v^C
root@xavier:/sys/kernel/debug/dynamic_debug# echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
root@xavier:/sys/kernel/debug/dynamic_debug# echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
root@xavier:/sys/kernel/debug/dynamic_debug# echo 2 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
root@xavier:/sys/kernel/debug/dynamic_debug# echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace
root@xavier:/sys/kernel/debug/dynamic_debug# echo > /sys/kernel/debug/tracing/trace
cat /sys/kernel/debug/tracing/traceroot@xavier:/sys/kernel/debug/dynamic_debug# cat /sys/kernel/debug/tracing/trace

tracer: nop

entries-in-buffer/entries-written: 12/12 #P:8

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

 kworker/5:0-42    [005] ....  1397.741264: rtos_queue_peek_from_isr_failed: tstamp:44168195332 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1397.909250: rtos_queue_peek_from_isr_failed: tstamp:44173195332 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1398.077222: rtos_queue_peek_from_isr_failed: tstamp:44178195336 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1398.189222: rtos_queue_peek_from_isr_failed: tstamp:44183195338 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1398.357231: rtos_queue_peek_from_isr_failed: tstamp:44188195335 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1398.525257: rtos_queue_peek_from_isr_failed: tstamp:44193195336 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1398.693244: rtos_queue_peek_from_isr_failed: tstamp:44198195339 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1398.861235: rtos_queue_peek_from_isr_failed: tstamp:44203195382 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1399.029226: rtos_queue_peek_from_isr_failed: tstamp:44208195344 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1399.145333: rtos_queue_peek_from_isr_failed: tstamp:44213195335 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1399.313245: rtos_queue_peek_from_isr_failed: tstamp:44218195335 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1399.485261: rtos_queue_peek_from_isr_failed: tstamp:44223195336 queue:0x0bcbcf78

root@xavier:/sys/kernel/debug/dynamic_debug# echo 1 > /sys/kernel/debug/tracing/tracing_on
root@xavier:/sys/kernel/debug/dynamic_debug# echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
root@xavier:/sys/kernel/debug/dynamic_debug# echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
root@xavier:/sys/kernel/debug/dynamic_debug# echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
root@xavier:/sys/kernel/debug/dynamic_debug# echo 2 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
root@xavier:/sys/kernel/debug/dynamic_debug# echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
root@xavier:/sys/kernel/debug/dynamic_debug# echo > /sys/kernel/debug/tracing/trace
cat /sys/kernel/debug/tracing/traceroot@xavier:/sys/kernel/debug/dynamic_debug# cat /sys/kernel/debug/tracing/trace

tracer: nop

entries-in-buffer/entries-written: 10/10 #P:8

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

 kworker/5:0-42    [005] ....  1440.653253: rtos_queue_peek_from_isr_failed: tstamp:45509125492 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1440.821245: rtos_queue_peek_from_isr_failed: tstamp:45514125493 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1440.989241: rtos_queue_peek_from_isr_failed: tstamp:45519125501 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1441.101247: rtos_queue_peek_from_isr_failed: tstamp:45524125493 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1441.269257: rtos_queue_peek_from_isr_failed: tstamp:45529125493 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1441.437241: rtos_queue_peek_from_isr_failed: tstamp:45534125497 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1441.605253: rtos_queue_peek_from_isr_failed: tstamp:45539125493 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1441.773231: rtos_queue_peek_from_isr_failed: tstamp:45544125504 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1441.941227: rtos_queue_peek_from_isr_failed: tstamp:45549125493 queue:0x0bcbcf78
 kworker/5:0-42    [005] ....  1442.109230: rtos_queue_peek_from_isr_failed: tstamp:45554125495 queue:0x0bcbcf78

root@xavier:/sys/kernel/debug/dynamic_debug#

设备树:
tegra194-p2888-0001-p2822-0000.dts
/ {
host1x {
vi@15c10000 {
status = “okay”;/add by lk/
num-channels = <1>;
ports {
status = “okay”;/add by lk/
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
e3326_vi_in0: endpoint {
status = “okay”;/add by lk/
port-index = <cam1_csi_port>;
bus-width = <4>;
remote-endpoint = <&e3326_csi_out0>;
};
};
};
};

	nvcsi@15a00000 {
		status = "okay";/*add by lk*/
		num-channels = <1>;
		#address-cells = <1>;
		#size-cells = <0>;
		channel@0 {
			status = "okay";/*add by lk*/
			reg = <0>;
			ports {
				status = "okay";/*add by lk*/
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					status = "okay";/*add by lk*/
					reg = <0>;
					e3326_csi_in0: endpoint@0 {
						status = "okay";/*add by lk*/
						port-index = <cam1_csi_port>;
						bus-width = <4>;
						remote-endpoint = <&e3326_ov5693_out0>;
					};
				};
				port@1 {
					status = "okay";/*add by lk*/
					reg = <1>;
					e3326_csi_out0: endpoint@1 {
						status = "okay";/*add by lk*/
						remote-endpoint = <&e3326_vi_in0>;
					};
				};
			};
		};
	};
};

/*add by lk: i2c@cam1_i2c_ctl*/
i2c@cam1_i2c_ctl {
	status = "okay";
	ar0143_a@30 {
		status = "okay";
			ports {
				status = "okay";/*add by lk*/
				#address-cells = <1>;
				#size-cells = <0>;
				status = "okay";
				port@0 {
					status = "okay";
					reg = <0>;
					e3326_ov5693_out0: endpoint {
						status = "okay";
						port-index = <cam1_csi_port>;
						bus-width = <4>;
						remote-endpoint = <&e3326_csi_in0>;
					};
				};
		};
	};		
};

/*add by lk:*/
tegra-camera-platform {
	compatible = "nvidia, tegra-camera-platform";
	/**
	* Physical settings to calculate max ISO BW
	*
	* num_csi_lanes = <>;
	* Total number of CSI lanes when all cameras are active
	*
	* max_lane_speed = <>;
	* Max lane speed in Kbit/s
	*
	* min_bits_per_pixel = <>;
	* Min bits per pixel
	*
	* vi_peak_byte_per_pixel = <>;
	* Max byte per pixel for the VI ISO case
	*
	* vi_bw_margin_pct = <>;
	* Vi bandwidth margin in percentage
	*
	* max_pixel_rate = <>;
	* Max pixel rate in Kpixel/s for the ISP ISO case
	*
	* isp_peak_byte_per_pixel = <>;
	* Max byte per pixel for the ISP ISO case
	*
	* isp_bw_margin_pct = <>;
	* Isp bandwidth margin in percentage
	*/
	num_csi_lanes = <4>;
	max_lane_speed = <1500000>;
	min_bits_per_pixel = <8>;
	vi_peak_byte_per_pixel = <0>;
	vi_bw_margin_pct = <25>;
	max_pixel_rate = <160000>;
	isp_peak_byte_per_pixel = <5>;
	isp_bw_margin_pct = <25>;

	/**
	* The general guideline for naming badge_info contains 3 parts, and is as follows,
	* The first part is the camera_board_id for the module; if the module is in a FFD
	* platform, then use the platform name for this part.
	* The second part contains the position of the module, ex
	* The third part contains the last 6 characters of a part number which is found
	* in the module's specsheet from the vender.
	*/
	
	modules {
		module0 {
			status = "okay";
			badge = "e3326_front_P5V27C";
			position = "front";
			orientation = "1";
			drivernode0 {
				status = "okay";
				/* Declare PCL support driver (classically known as guid)  */
				pcl_id = "v4l2_sensor";
				/* Driver v4l2 device name */
				devname = cam1_devname;
				/* Declare the device-tree hierarchy to driver instance */
				proc-device-tree = "/proc/device-tree/i2c@cam1_i2c_ctl/ar0143_a@30";
			};
			drivernode1 {
				status = "okay";/*add by lk*/
				/* Declare PCL support driver (classically known as guid)  */
				pcl_id = "v4l2_lens";
				proc-device-tree = "/proc/device-tree/e3326_lens_ov5693@P5V27C/";
			};
		};
	};
};

};

tegra194-p2822-0000-camera-e3326-a00.dtsi
/ {
i2c@cam1_i2c_ctl {
ar0143_a@30 {
/* Define any required hw resources needed by driver /
/
ie. clocks, io pins, power sources /
/
mclk-index indicates the index of the /
/
mclk-name with in the clock-names array */

		clocks = <&bpmp_clks TEGRA194_CLK_EXTPERIPH1>,
				 <&bpmp_clks TEGRA194_CLK_PLLP_OUT0>;
		clock-names = "extperiph1", "pllp_grtba";
		mclk = "extperiph1";
		clock-frequency = <25000000>;
	};
};

};

tegra194-camera-e3326-a00.dtsi
/ {
host1x {
vi@15c10000 {
status = “okay”;/add by lk/
num-channels = <1>;
ports {
status = “okay”;/add by lk/
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
e3326_vi_in0: endpoint {
status = “okay”;/add by lk/
port-index = <cam1_csi_port>;
bus-width = <4>;
remote-endpoint = <&e3326_csi_out0>;
};
};
};
};

	nvcsi@15a00000 {
		status = "okay";/*add by lk*/
		num-channels = <1>;
		#address-cells = <1>;
		#size-cells = <0>;
		channel@0 {
			status = "okay";/*add by lk*/
			reg = <0>;
			ports {
				status = "okay";/*add by lk*/
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					status = "okay";/*add by lk*/
					reg = <0>;
					e3326_csi_in0: endpoint@0 {
						status = "okay";/*add by lk*/
						port-index = <cam1_csi_port>;
						bus-width = <4>;
						remote-endpoint = <&e3326_ov5693_out0>;
					};
				};
				port@1 {
					status = "okay";/*add by lk*/
					reg = <1>;
					e3326_csi_out0: endpoint@1 {
						status = "okay";/*add by lk*/
						remote-endpoint = <&e3326_vi_in0>;
					};
				};
			};
		};
	};
};

i2c@cam1_i2c_ctl {
	status = "okay";/*add by lk*/
	ar0143_a@30 {
		compatible = "nvidia,ar0143";
		/* I2C device address */
		reg = <0x6a>;

		/* V4L2 device node location */
		devnode = "video0";

		/* Physical dimensions of sensor */
		physical_w = "3.0";
		physical_h = "3.0";

		//sensor_model ="ar0143";//add by lk

		/* Define any required hw resources needed by driver */
		/* ie. clocks, io pins, power sources */
		avdd-reg = "vana";
		iovdd-reg = "vif";

		/* Sensor output flip settings */
		vertical-flip = "true";

		/* Defines number of frames to be dropped by driver internally after applying */
		/* sensor crop settings. Some sensors send corrupt frames after applying */
		/* crop co-ordinates */
		//post_crop_frame_drop = "0";

		/* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
		//use_decibel_gain = "true";

		/* enable CID_SENSOR_MODE_ID for sensor modes selection */
		//use_sensor_mode_id = "true";

		mode0 { //OV5693_MODE_1280X720
			mclk_khz = "25000";
			num_lanes = "4";
			tegra_sinterface = cam1_vi_num;
			phy_mode = "DPHY";
			discontinuous_clk = "no";
			dpcm_enable = "false";
			cil_settletime = "0";

			active_w = "1280";
			active_h = "720";
			mode_type = "yuv";
			pixel_phase = "yuyv";
			dynamic_pixel_bit_depth = "8";//add by lk
			csi_pixel_bit_depth = "8";
			readout_orientation = "0";
			line_length = "2560";
			inherent_gain = "1";
			//mclk_multiplier = "2.21";
			pix_clk_hz = "74250000";/*55219200*/
			serdes_pix_clk_hz = "500000000";/*100000000  18406400*/

			gain_factor = "10";
			min_gain_val = "1";/* 1DB*/
			max_gain_val = "16";/* 16DB*/
			step_gain_val = "1";
			default_gain = "1";
			min_hdr_ratio = "1";
			max_hdr_ratio = "64";
			framerate_factor = "1000000";/*add; modify-1;org-1000000*/
			min_framerate = "1000000";/* modify-1000000;2.787078=2787078 */
			max_framerate = "30000000";/* modify-30000000;120=120000000*/
			step_framerate = "1";
			default_framerate = "30000000";/* modify-30000000;org-120000000*/
			exposure_factor = "1000000";
			min_exp_time = "59";/* us */
			max_exp_time = "33333";/* us */
			step_exp_time = "1";
			default_exp_time = "33333";/* us */
			embedded_metadata_height = "0";
		};

		ports {
			status = "okay";/*add by lk*/
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
				status = "okay";/*add by lk*/
				reg = <0>;
				e3326_ov5693_out0: endpoint {
					status = "okay";/*add by lk*/
					port-index = <cam1_csi_port>;
					bus-width = <4>;
					remote-endpoint = <&e3326_csi_in0>;
				};
			};
		};
	};
};

e3326_lens_ov5693@P5V27C {
	min_focus_distance = "0.0";
	hyper_focal = "0.0";
	focal_length = "2.67";
	f_number = "2.0";
	aperture = "2.0";
};

tegra-camera-platform {
	compatible = "nvidia, tegra-camera-platform";
	num_csi_lanes = <4>;
	max_lane_speed = <1500000>;
	min_bits_per_pixel = <8>;
	vi_peak_byte_per_pixel = <0>;
	vi_bw_margin_pct = <25>;
	max_pixel_rate = <160000>;
	isp_peak_byte_per_pixel = <5>;
	isp_bw_margin_pct = <25>;

	modules {
		module0 {
			badge = "e3326_front_P5V27C";
			position = "front";
			orientation = "1";
			drivernode0 {
				status = "okay";
				pcl_id = "v4l2_sensor";
				devname = cam1_devname;
				proc-device-tree = "/proc/device-tree/i2c@cam1_i2c_ctl/ar0143_a@30";
			};
			drivernode1 {
				status = "okay";
				pcl_id = "v4l2_lens";
				proc-device-tree = "/proc/device-tree/e3326_lens_ov5693@P5V27C/";
			};
		};
	};
};

};

tegra194-camera-plugin-manager.dtsi
fragment-e3326@0 {
ids = "3326-";
/cam1-module/
override@0 {
target = <&ar0143_cam0>;
overlay {
status = “okay”;
};
};
override@1 {
target = <&cam_module0>;
overlay {
status = “okay”;
badge = “e3326_front_P5V27C”;
position = “front”;
orientation = “1”;
};
};
override@2 {
target = <&cam_module0_drivernode0>;
overlay {
status = “okay”;
pcl_id = “v4l2_sensor”;
devname = cam1_devname;
proc-device-tree = “/proc/device-tree/i2c@cam1_i2c_ctl/ar0143_a@30”;
};
};
override@3 {
target = <&cam_module0_drivernode1>;
overlay {
status = “okay”;
pcl_id = “v4l2_lens”;
proc-device-tree = “/proc/device-tree/e3326_lens_ov5693@P5V27C/”;
};
};
/
cam1: Enable VI ports /
override@4 {
target = <&vi_base>;
overlay {
status = “okay”;/add by lk/
num-channels=<1>;
};
};
override@5 {
target = <&vi_port0>;
overlay {
status = “okay”;
};
};
override@6 {
target = <&e3326_vi_in0>;
overlay {
status = “okay”;
port-index = <cam1_csi_port>;
bus-width = <4>;
remote-endpoint = <&e3326_csi_out0>;
};
};
/
cam1: Enable CSI ports /
override@7 {
target = <&csi_base>;
overlay {
status = “okay”;/add by lk/
num-channels=<1>;
};
};
override@8 {
target = <&csi_chan0>;
overlay {
status = “okay”;
};
};
override@9 {
target = <&csi_chan0_port0>;
overlay {
status = “okay”;
};
};
override@10 {
target = <&e3326_csi_in0>;
overlay {
status = “okay”;
port-index = <cam1_csi_port>;
bus-width = <4>;
remote-endpoint = <&e3326_ov5693_out0>;
};
};
override@11 {
target = <&csi_chan0_port1>;
overlay {
status = “okay”;
};
};
override@12 {
target = <&e3326_csi_out0>;
overlay {
status = “okay”;
remote-endpoint = <&e3326_vi_in0>;
};
};
/
tegra-camera-platform settings */
override@13 {
target = <&tcp>;
overlay {
status = “okay”;
num_csi_lanes = <4>;
max_lane_speed = <1500000>;
min_bits_per_pixel = <8>;
vi_peak_byte_per_pixel = <0>;
vi_bw_margin_pct = <25>;
isp_peak_byte_per_pixel = <5>;
isp_bw_margin_pct = <25>;
};
};
};

MAX9286寄存器打印信息
i2cdump -f -y 8 0x6a
No size specified (using byte-data access)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: e1 00 00 01 00 00 16 7c 27 d4 ff e4 99 f3 50 0b ?..?..?|’?.???P?
10: 00 00 f3 0f e4 0b 00 01 00 00 60 00 f6 ff 40 02 …???.?..`.?.@?
20: fa 00 00 00 00 00 00 b1 00 00 00 00 00 00 00 00 ?..?..
30: 00 40 99 99 b5 00 00 00 00 00 00 19 24 54 c8 4f .@???..?$T?O
40: 5a 10 00 a0 00 00 01 11 c1 01 ff 00 00 00 05 00 Z?.?..???..?.
50: 00 00 00 00 00 00 00 00 00 00 00 16 7c 27 00 00 …?|’…
60: 45 00 0f 00 00 12 96 00 50 30 00 00 00 00 00 00 E.?..??.P0…
70: 10 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ??..
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …

MAX96705寄存器打印信息
i2cdump -f -y 8 0x40
No size specified (using byte-data access)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 80 90 1f 00 83 00 a0 c4 00 62 60 8a 80 b6 02 3e ???.?.??.b`???>
10: 02 00 40 02 70 e3 1f 93 ff ff ff ff 00 00 41 01 ?.@?p???..A?
20: 1b 1a 19 18 17 16 15 14 13 12 11 10 0c 0d 0e 0f ???
30: 0b 0a 09 08 07 06 05 04 03 02 01 00 1c 1d 1e 0e ???.???
40: 0f 0d 5b 21 00 9c 80 00 b0 00 00 00 00 c0 00 00 ??[!.??.?..?..
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
60: 00 00 00 00 00 00 61 c4 19 0f 00 00 00 00 00 00 …a???..
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
90: 00 00 00 00 00 00 06 1f 4a 0d 10 00 00 00 00 00 …??J??..
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
c0: 00 00 00 00 00 00 00 00 4a ff 00 00 00 00 00 00 …J…
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …

The CHANSEL_FAULT tell the PIXEL_RUNAWAY, that means NVCSI/VI receive more than 720 lines.
Try to modify the device tree to increase the active_h to try.

kworker/5:0-42 [005] … 544.213226: rtcpu_vinotify_event: tstamp:17495298814 tag:CHANSEL_FAULT channel:0x23 frame:145 vi_tstamp:17495278703 data:0x02cf0040