i fixed RGB fpga chips and fixing wrong codes and enabled rgb888
root@test-desktop:/home/test# v4l2-ctl -d 1 --all
Driver Info (not using libv4l2):
Driver name : tegra-video
Card type : vi-output, imx390 2-001c
Bus info : platform:15700000.vi:0
Driver version: 4.9.140
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Priority: 2
Video input : 0 (Camera 0: no power)
Format Video Capture:
Width/Height : 1920/720
Pixel Format : 'AR24'
Field : None
Bytes per Line : 7680
Size Image : 5529600
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
but video data isnt coming from max9296 or fpga
v4l2-ctl --verbose -w -d /dev/video1 --set-fmt-video=width=1920,height=720,pixelformat=AR24 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1
vi-output, imx3-9082 [005] .... 1235.640002: tegra_channel_capture_setup: vnc_id 0 W 1920 H 720 fmt 41
vi-output, imx3-9082 [005] .... 1235.640052: tegra_channel_capture_frame: sof:-549619122596.-268048213696
kworker/5:1-8840 [005] .... 1235.659062: rtos_queue_send_from_isr_failed: tstamp:38757929673 queue:0x0b4a7258
kworker/5:1-8840 [005] .... 1235.659068: rtos_queue_send_from_isr_failed: tstamp:38757929818 queue:0x0b4aad68
kworker/5:1-8840 [005] .... 1235.659070: rtos_queue_send_from_isr_failed: tstamp:38757929962 queue:0x0b4ac998
kworker/5:1-8840 [005] .... 1235.659073: rtos_queue_send_from_isr_failed: tstamp:38757930101 queue:0x0b4ae518
kworker/5:1-8840 [005] .... 1235.659075: rtos_queue_send_from_isr_failed: tstamp:38757930237 queue:0x0b4af2d8
kworker/5:1-8840 [005] .... 1235.659078: rtos_queue_send_from_isr_failed: tstamp:38757930396 queue:0x0b4b0098
kworker/5:1-8840 [005] .... 1235.659080: rtos_queue_send_from_isr_failed: tstamp:38757930534 queue:0x0b4b0e58
kworker/5:1-8840 [005] .... 1235.659083: rtos_queue_send_from_isr_failed: tstamp:38757930678 queue:0x0b4b1c18
I asked that and the FPGA sides answered that ’ we got nothing to wrong and check your SW settings’.
The HW and FPGA said video data is sending and serdes registers setting is works.
but data isnt coming. so i want to check DT for CSI and MIPI settings.
Anyway i have questions about serdes and csi .
my question is
- Can I using Virtual Channel?
reference using vc and i had same setting too. but my custom device is get yuvu and rgb888 data from serdes (max9296, max9295) .
YUV is 16 bit and RGB is 24 bits so is it have to using different csi port on gmsl-link ?
and how to changing that?
// remains for others
i read threads and changed Device tree and added rgb888.
RGB : [ Connecting RGB888 format camera device to TX2 ]
// tegra186-camera-imx390-a00.dtsi
/*
dynamic_pixel_bit_depth = "12";
csi_pixel_bit_depth = "12";
mode_type = "bayer";
pixel_phase = "rggb";
*/
// imx390_a@1b
dynamic_pixel_bit_depth = "16";
csi_pixel_bit_depth = "16";
mode_type = "yuv";
pixel_phase = "yuyv";
// ....
// imx390_b@1c
dynamic_pixel_bit_depth = "24";
csi_pixel_bit_depth = "24";
mode_type = "bayer";
pixel_phase = "rgb";
// sensor_common.c
#if 1
else if (strncmp(pixel_t, "bayer_rgb24", size) == 0) {
printk("[%s : %d checking \n", __func__, __LINE__);
*format = V4L2_PIX_FMT_RGB24;
}
#endif
// camera_common.c
// ...
{
MEDIA_BUS_FMT_RGB888_1X24,
V4L2_COLORSPACE_RAW,
V4L2_PIX_FMT_RGB24,
},
{
MEDIA_BUS_FMT_RGB888_1X24,
V4L2_COLORSPACE_ADOBERGB,
V4L2_PIX_FMT_RGB24,
},