Inquiry Regarding GMSL Camera RAW12 BGGR Bayer Format Recognition

Hello,

I am currently working on porting a GMSL camera that uses a RAW12 BGGR Bayer format.
I have attached my DTS file and also forced the format to RAW12 in my driver code.
As below


I hard coded 0x2C
However, when I check the video input using v4l2-ctl, it shows the following:
tegra234-p3737-camera-imx390-overlay.dts.txt (49.3 KB)

Video input : 0 (Camera 0: ok)
Format Video Capture:
        Width/Height      : 1920/1080
        Pixel Format      : 'UYVY' (UYVY 4:2:2)
        Field             : None
        Bytes per Line    : 3840

It seems that the pixel format is still recognized as ‘UYVY’ instead of RAW12 BGGR.
Could you please advise me on how to properly set and verify the RAW12 BGGR Bayer format so that it is recognized correctly by V4L2?

hello spshin,

please refer to public kernel sources.. $public_sources/kernel_src/nvidia-oot/drivers/media/platform/tegra/camera/sensor_common.c
could you please add some debug prints within static int extract_pixel_format(...)

Hello JerryChang
You are always giving me prompt and kind response !!
Thank you for your information, I have success to recognize correct pixel format.
Thank you so much.!!

hello spshin,

thanks for confirmation, are we able to close this discussion thread now?

Hello JerryChang.
How could I close this issue?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.