How to setting device tree YUV format?

Hi everyone,
I want to get YUV420/RGB888 format video.

Here’s my changed Device Tree file.
Is it wrong?

			mode0 { // OV5693_MODE_2592X1944
				mclk_khz = "24000";//?
				num_lanes = "4";//?
				tegra_sinterface = "serial_e";//?
				phy_mode = "CPHY";//?
				discontinuous_clk = "no";//?
				dpcm_enable = "false";//?
				cil_settletime = "0";//?

				active_w = "2592";//
				active_h = "1944";//
				mode_type = "yuv";
				pixel_phase = "uyvy";//?
				csi_pixel_bit_depth = "12";//The sensor readout pixel pattern
				readout_orientation = "0";//
				line_length = "2592";//
				inherent_gain = "1";//
				mclk_multiplier = "6.67";//

But when I reflash Xavier found

Screenshot from 2022-05-25 15-56-57

Then I use $dmesg got

Screenshot from 2022-05-25 15-56-24

What should I do next?

The csi_pixel_bit_depth should be 16 for YUV422 input.

Hi ShaneCCC,

Thanks for your reply.
How about YUV420? The csi_pixel_bit_depth still 16?

Yes

Hi ShaneCCC,

ok.
After reflash Xavier, I can get /dev/video0

And I try to get YUV420 data by using below command:

v4l2-ctl -d /dev/video0 --set-fmt-video=width=2592,height=1944,pixelformat=YU12 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=yu12.raw

Then I v4l2-ctl --all

But Pixel Format didn’t change… It still ‘UYVY’

image

Please confirm what the sensor output format? Usually the pixel format report as UYVY/VYUY/… for YUV sensor.

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