Change IMX185 DEFAULTDATAFMT to MEDIA_BUS_FMT_UYVY8_1X16 In L4T32.2.1

Hi All,
I wnat to develope a new Driver YUV Sensor In L4T32.2.1 Jetson TX2!!
how can i change imx185 driver dataformat to MEDIA_BUS_FMT_UYVY8_1X16??

for example, how add

common_data->colorfmt = camera_common_find_datafmt(
					  IMX185_DEFAULT_DATAFMT);

in imx185_v1.c to imx185.c ??

Have modify the pixel_t in the DT to yuv_uyvy16 to report it as YUV sensor.

Hi ShaneCCC,
thank you for help,
if ,i want set dataformat to MEDIA_BUS_FMT_UYVY8_2X8,What should i do,pixel_t in DT??
Thank you very much,

in file

/TX1_public_sources/kernel/nvidia/drivers/media/platform/tegra/camera/camera_common.c

in struct camera_common_color_fmts::

static const struct camera_common_colorfmt camera_common_color_fmts[] = {
	{
		MEDIA_BUS_FMT_SRGGB12_1X12,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_SRGGB12,
	},
	{
		MEDIA_BUS_FMT_SGRBG12_1X12,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_SGRBG12,
	},
	{
		MEDIA_BUS_FMT_SRGGB10_1X10,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_SRGGB10,
	},
	{
		MEDIA_BUS_FMT_SGRBG10_1X10,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_SGRBG10,
	},
	{
		MEDIA_BUS_FMT_SBGGR10_1X10,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_SBGGR10,
	},
	{
		MEDIA_BUS_FMT_SRGGB8_1X8,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_SRGGB8,
	},
	{
		MEDIA_BUS_FMT_YUYV8_1X16,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_YUYV,
	},
	{
		MEDIA_BUS_FMT_YVYU8_1X16,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_YVYU,
	},
	{
		MEDIA_BUS_FMT_UYVY8_1X16,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_UYVY,
	},
	{
		MEDIA_BUS_FMT_VYUY8_1X16,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_VYUY,
	},
	{
		MEDIA_BUS_FMT_YUYV8_2X8,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_YUYV,
	},
	{
		MEDIA_BUS_FMT_YVYU8_2X8,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_YVYU,
	},
	{
		MEDIA_BUS_FMT_UYVY8_2X8,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_UYVY,
	},
	{
		MEDIA_BUS_FMT_VYUY8_2X8,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_VYUY,
	},
	/*
	 * The below two formats are not supported by VI4,
	 * keep them at the last to ensure they get discarded
	 */
	{
		MEDIA_BUS_FMT_XRGGB10P_3X10,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_XRGGB10P,
	},
	{
		MEDIA_BUS_FMT_XBGGR10P_3X10,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_XRGGB10P,
	},
};

exist 2 V4L2_PIX_FMT_UYVY for pix_fmt::

{
	MEDIA_BUS_FMT_UYVY8_1X16,
	V4L2_COLORSPACE_SRGB,
	V4L2_PIX_FMT_UYVY,
},
.
.
.
{
	MEDIA_BUS_FMT_UYVY8_2X8,
	V4L2_COLORSPACE_SRGB,
	V4L2_PIX_FMT_UYVY,
},

How are the two cases separated,in DT?

You need to add code to sensor_command.c to parser what you define for MEDIA_BUS_FMT_UYVY8_2X8 maybe like yuv_uyvu8.