How to receive gray raw12 in mipi camera driver?

The origin data format is below:

How to setup device tree to get below format:

P1(2 bytes[0000 11:0]), P2(2 bytes [0000 11:0])…etc
Byte 0 | ------------------Pixel[7:0]----------------- |
Byte 1 | 0 0 0 0 | -----Pixel[11:8]----- |

hello kingkong,

this is not supported by default, you may see-also $public_source/kernel_src/kernel/nvidia/drivers/media/platform/tegra/camera/sensor_common.c
please dig into static int extract_pixel_format() for details.

hi @JerryChang

Could you give more detail?

Should I use ISP?

Thank you!

hello kingkong,

what’s your real use-case?
you should have driver implementation to enable this format supports. you may have v4l2 standard control to access the stream if sensor bring-up has complete.

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