<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040627#M233788</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;My camera board has internal ISP in it and the Hardware connections were made correct as we have got it working in verdin with imx8mp. Here the only issue with the kernel registration and the format not being set properly, which is driver side issue. I have also seen the similar kind of issue&lt;/P&gt;&lt;PRE&gt;mxc_isi.0: set remote fmt fail!&lt;/PRE&gt;&lt;P&gt;in this link &lt;A href="https://community.nxp.com/t5/i-MX-Processors/Adding-support-for-Camera-sensor-IMX708/m-p/1988663" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors/Adding-support-for-Camera-sensor-IMX708/m-p/1988663&lt;/A&gt; Kindly help me with the driver registration part like the reasons for this issue and how to solve it. The issue is not with the Hardware here.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2025 05:58:52 GMT</pubDate>
    <dc:creator>Navee_nK</dc:creator>
    <dc:date>2025-02-10T05:58:52Z</dc:date>
    <item>
      <title>Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2038219#M233615</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to integrate my AR1335 sensor (which has its own ISP) with the i.MX93-EVK. I have written the driver under &lt;STRONG&gt;drivers/media/platform/imx8/ar1335.c&lt;/STRONG&gt; and am able to load the driver and generate the video node. I have attached the dmesg and media-ctl logs for your reference.&lt;BR /&gt;However, I am unable to list my controls when I run v4l2-ctl -d 0 -l or --list-ctrls. I’ve tried changing the video device, but nothing seems to work.&lt;BR /&gt;In my driver, I have registered a new function with:&lt;BR /&gt;static struct v4l2_subdev_core_ops ar1335_subdev_core_ops = {&lt;BR /&gt;.queryctrl = ar1335_queryctrl,&lt;BR /&gt;};&lt;BR /&gt;and registered it in v4l2-subdev.h with the following:&lt;BR /&gt;int (*queryctrl)(struct v4l2_subdev *sd, struct v4l2_queryctrl *qc);&lt;BR /&gt;&lt;BR /&gt;I’m not sure where I’m going wrong. Could you help me understand the flow for getting these kernel calls working with my i.MX93-EVK kit?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Naveen&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 04:46:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2038219#M233615</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-05T04:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2038369#M233627</link>
      <description>&lt;P&gt;what the result of "v4l2-ctl --list-device" ?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 07:57:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2038369#M233627</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-02-05T07:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2038532#M233640</link>
      <description>Hi Joanxie,&lt;BR /&gt;Below is the result:&lt;BR /&gt;v4l2-ctl --list-device&lt;BR /&gt;FSL Capture Media Device (platform:42800000.bus:camera):&lt;BR /&gt;/dev/media0&lt;BR /&gt;&lt;BR /&gt;mxc-isi-cap_v1 (platform:4ae40000.isi:cap_devic):&lt;BR /&gt;/dev/video0&lt;BR /&gt;&lt;BR /&gt;Kindly help me understand the kernel flow of registering these properly.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.</description>
      <pubDate>Wed, 05 Feb 2025 10:35:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2038532#M233640</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-05T10:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2038671#M233649</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Adding to the above points, I have also implemented the below changes in the kernel driver &lt;STRONG&gt;drivers/staging/media/imx/imx8-isi-cap.c&lt;/STRONG&gt;&lt;BR /&gt;static const struct v4l2_ioctl_ops mxc_isi_capture_ioctl_ops = {&lt;BR /&gt;.vidioc_queryctrl = mxc_vidioc_queryctrl,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static int mxc_vidioc_queryctrl(struct file *file, void *fh,&lt;BR /&gt;struct v4l2_queryctrl *a)&lt;BR /&gt;{&lt;BR /&gt;struct mxc_isi_cap_dev *isi_cap = video_drvdata(file);&lt;BR /&gt;struct v4l2_subdev *sd;&lt;BR /&gt;int ret = 0;&lt;BR /&gt;printk("MXC Vidioc Queryctrl\n");&lt;BR /&gt;sd = mxc_get_remote_subdev(&amp;amp;isi_cap-&amp;gt;sd, __func__);&lt;BR /&gt;printk("Subdevice: %p, type: %s\n", sd, sd-&amp;gt;name);&lt;BR /&gt;&lt;BR /&gt;if (!sd)&lt;BR /&gt;return -EINVAL;&lt;BR /&gt;ret = v4l2_subdev_call(sd, core, queryctrl, a);&lt;BR /&gt;if (ret &amp;lt; 0) {&lt;BR /&gt;printk("v4l2_subdev_call failed with error %d\n", ret);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;And with the above implementation when given v4l2-ctl -d 0 -l command am getting the below mentioned logs in dmesg&lt;BR /&gt;[ 607.910646] MXC Vidioc Queryctrl&lt;BR /&gt;[ 607.910652] Subdevice: 0000000063e9cea4, type: mxc-mipi-csi2.0&lt;BR /&gt;[ 607.910658] v4l2_subdev_call failed with error -515&lt;BR /&gt;&lt;BR /&gt;I don't know what else is missing, kindly help me with this. Below are some additional dmesg logs related to this&lt;BR /&gt;&lt;BR /&gt;[ 13.901196] MXC Media Dev Probe Call&lt;BR /&gt;[ 13.901309] MXC ISI Subdev registered&lt;BR /&gt;[ 13.901313] MXC ISI Register Cap Device&lt;BR /&gt;[ 13.904724] mx8-img-md: Registered mxc_isi.0.capture as /dev/video0&lt;BR /&gt;[ 13.904840] mx8-img-md: Registered sensor subdevice : ar1335 (1)&lt;BR /&gt;[ 13.904848] Inside MXC MD Create Links function&lt;BR /&gt;[ 13.904859] mx8-img-md: 1 created link [mxc_isi.0] =&amp;gt; [mxc_isi.0.capture]&lt;BR /&gt;[ 13.904873] mx8-img-md: 3 created link [mxc-mipi-csi2.0] =&amp;gt; [mxc_isi.0]&lt;BR /&gt;[ 13.904879] mx8-img-md: 5 created link [ar1335] =&amp;gt; [mxc-mipi-csi2.0]&lt;BR /&gt;[ 13.904885] mxc-md 42800000.bus:camera: mxc_md_create_links&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 15:09:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2038671#M233649</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-05T15:09:38Z</dc:date>
    </item>
    <item>
      <title>for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2039896#M233736</link>
      <description>&lt;P&gt;I'm not sure why you add queryctrl, but did you add this in camera driver? refer to the error message, maybe your camera driver didn't enable queryctrl&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 10:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2039896#M233736</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-02-07T10:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2039925#M233741</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I have solved this issue by implementing few funcions in the kernel drivers and now this list controls works fine. But right now am facing issues with stream on call which is the default implementation. When I give v4l2-ctl -d 0 --stream-mmap I am facing the below kernel crash issue.&lt;BR /&gt;[ 696.215896] ------------[ cut here ]------------&lt;BR /&gt;[ 696.215903] WARNING: CPU: 0 PID: 675 at drivers/media/common/videobuf2/videobuf2-core.c:827 vb2_core_reqbufs+0x224/0x548&lt;BR /&gt;[ 696.215921] Modules linked in: crct10dif_ce polyval_ce polyval_generic snd_soc_fsl_asoc_card layerscape_edac_mod snd_soc_imx_audmux snd_soc_imx_card snd_soc_wm8962 snd_soc_fsl_micfil rtc_pcf2127 rtc_pcf2131 flexcan can_dev snd_soc_fsl_xcvr snd_soc_fsl_sai imx_pcm_dma snd_soc_fsl_utils imx8_media_dev(C) fuse&lt;BR /&gt;[ 696.215975] CPU: 0 PID: 675 Comm: v4l2-ctl Tainted: G WC 6.6.52-g5b10ef983033-dirty #24&lt;BR /&gt;[ 696.215982] Hardware name: NXP i.MX93 11X11 EVK board (DT)&lt;BR /&gt;[ 696.215986] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)&lt;BR /&gt;[ 696.215992] pc : vb2_core_reqbufs+0x224/0x548&lt;BR /&gt;[ 696.215997] lr : vb2_core_reqbufs+0x1e0/0x548&lt;BR /&gt;[ 696.216001] sp : ffff8000843e3b00&lt;BR /&gt;[ 696.216004] x29: ffff8000843e3b00 x28: ffff00000436b8b8 x27: 0000000000000000&lt;BR /&gt;[ 696.216014] x26: ffff8000825fe000 x25: ffff00000436a750 x24: 0000000000000001&lt;BR /&gt;[ 696.216023] x23: ffff8000843e3d38 x22: ffff00000436a790 x21: 0000000000000000&lt;BR /&gt;[ 696.216032] x20: ffff800081db7000 x19: ffff00000436a6e8 x18: 0000000000000000&lt;BR /&gt;[ 696.216041] x17: 0000000000000000 x16: 0000000000000000 x15: 0000ffffd7d962c8&lt;BR /&gt;[ 696.216050] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000&lt;BR /&gt;[ 696.216058] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000&lt;BR /&gt;[ 696.216067] x8 : ffff00000436a988 x7 : ffff8000824a4978 x6 : ffff00000436a080&lt;BR /&gt;[ 696.216076] x5 : 0000000000000001 x4 : ffff00000436a750 x3 : 0000000000000001&lt;BR /&gt;[ 696.216084] x2 : 0000000000000001 x1 : ffff8000843e3b60 x0 : 0000000000000000&lt;BR /&gt;[ 696.216093] Call trace:&lt;BR /&gt;[ 696.216097] vb2_core_reqbufs+0x224/0x548&lt;BR /&gt;[ 696.216102] vb2_ioctl_reqbufs+0xb0/0xe8&lt;BR /&gt;[ 696.216109] v4l_reqbufs+0x50/0x64&lt;BR /&gt;[ 696.216116] __video_do_ioctl+0x1a0/0x424&lt;BR /&gt;[ 696.216123] video_usercopy+0x330/0x684&lt;BR /&gt;[ 696.216129] video_ioctl2+0x18/0x24&lt;BR /&gt;[ 696.216135] v4l2_ioctl+0x3c/0x5c&lt;BR /&gt;[ 696.216140] __arm64_sys_ioctl+0xac/0xec&lt;BR /&gt;[ 696.216149] invoke_syscall+0x44/0x104&lt;BR /&gt;[ 696.216158] el0_svc_common.constprop.1+0xc0/0xe0&lt;BR /&gt;[ 696.216165] do_el0_svc+0x1c/0x28&lt;BR /&gt;[ 696.216171] el0_svc+0x3c/0xd4&lt;BR /&gt;[ 696.216178] el0t_64_sync_handler+0xa0/0xc4&lt;BR /&gt;[ 696.216183] el0t_64_sync+0x174/0x178&lt;BR /&gt;[ 696.216189] ---[ end trace 0000000000000000 ]---&lt;BR /&gt;&lt;BR /&gt;Kindly help me with solving this.&lt;BR /&gt;&lt;BR /&gt;Adding to that kindly help me with the correct understanding of this flow like when we give the v4l2-ctl user space call through which driver we will get the call at last to my camera driver. Then to understand this we need more debug prints on v4l2-ioctls and other v4l2 and csi and isi cap related function prints, kindly provide me the steps to enable these debug prints. I have tried Dynamic Debugging but that ain't giving me any dmesg logs.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 11:08:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2039925#M233741</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-07T11:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040035#M233747</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;An update with my above reply,&lt;BR /&gt;When I start my stream by setting the formats properly I am not getting any kernel crashes. However am facing this below issue in the next step&lt;BR /&gt;&lt;FONT size="2"&gt;[ 35.446028] isi-capture 4ae40000.isi:cap_device: mxc_isi_cap_streamon&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[ 35.446060] mxc_isi.0: set remote fmt fail! -22&lt;/FONT&gt;&lt;BR /&gt;Which belongs to the below attached part of the code in the file imx8-isi-cap.c in the function&lt;BR /&gt;&lt;FONT size="2"&gt;static int mxc_isi_source_fmt_init(struct mxc_isi_cap_dev *isi_cap)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ret = v4l2_subdev_call(src_sd, pad, set_fmt, NULL, &amp;amp;src_fmt);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;if (ret &amp;lt; 0 &amp;amp;&amp;amp; ret != -ENOIOCTLCMD) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;v4l2_err(&amp;amp;isi_cap-&amp;gt;sd, "set remote fmt fail! %d\n", ret);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;return ret;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Am using the format MEDIA_BUS_FMT_UYVY8_2X8 which I have added like src_fmt.format.code =&amp;nbsp;MEDIA_BUS_FMT_UYVY8_2X8; before v4l2_subdev_call function and in imx8-isi-fmt.c file as well I have added the below part&lt;BR /&gt;&lt;FONT size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.name = "UYVY-16",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.fourcc = V4L2_PIX_FMT_UYVY,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.depth = { 16 },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.color = MXC_ISI_OUT_FMT_YUV422_1P8P,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.memplanes = 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.colplanes = 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.mbus_code = MEDIA_BUS_FMT_UYVY8_2X8,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;},{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.name = "YUYV-16",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.fourcc = V4L2_PIX_FMT_YUYV,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.depth = { 16 },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.color = MXC_ISI_OUT_FMT_YUV422_1P8P,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.memplanes = 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.colplanes = 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.align = 3,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;},&lt;/FONT&gt;&lt;BR /&gt;and my doubt now is in the file imx8-mipi-csi2-sam.c file in static const struct csis_pix_format mipi_csis_formats[] = {}&lt;BR /&gt;it is given&lt;BR /&gt;&lt;FONT size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.code = MEDIA_BUS_FMT_UYVY8_1X16,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.fmt_reg = MIPI_CSIS_ISPCFG_FMT_YCBCR422_8BIT,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.data_alignment = 16,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;}, {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.code = MEDIA_BUS_FMT_UYVY8_2X8,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.fmt_reg = MIPI_CSIS_ISPCFG_FMT_YCBCR422_8BIT,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.data_alignment = 16,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;But in dwc-mipi-csi2.c only the below is given&lt;BR /&gt;&lt;FONT size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.code = MEDIA_BUS_FMT_YUYV8_2X8,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.fmt_reg = 0x18,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;},&lt;BR /&gt;&lt;/FONT&gt;There is no code for UYVY8 but it is there in the function disp_mix_gasket_config&lt;BR /&gt;&lt;FONT size="2"&gt;case MEDIA_BUS_FMT_UYVY8_2X8:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;case MEDIA_BUS_FMT_UYVY8_1X16:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;case MEDIA_BUS_FMT_VYUY8_2X8:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;fmt_val = DT_YUV422_8;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;I need the fmt_reg for MEDIA_BUS_FMT_UYVY8_2X8 and MEDIA_BUS_FMT_UYVY8_1X16.&lt;/STRONG&gt;&lt;BR /&gt;to set in &lt;STRONG&gt;static const struct csi2h_pix_format dwc_csi2h_formats[]&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;I think the above mentioned issue of dmesg log is because of this.&lt;BR /&gt;&lt;FONT size="2"&gt;[ 35.446028] isi-capture 4ae40000.isi:cap_device: mxc_isi_cap_streamon&lt;BR /&gt;[ 35.446053] Subdevice in fmt: 00000000178376df, type: mxc-mipi-csi2.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[ 35.446060] mxc_isi.0: set remote fmt fail! -22&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;Kindly help me to solve this issue.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 14:27:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040035#M233747</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-07T14:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040372#M233768</link>
      <description>&lt;P&gt;could you confirm what format your camera output? refer to the AR1335 data sheet, it seems ar1335 output raw data, and we have solution is that ar1335 plus external ISP chip, pls double confirm this from camera vendor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 09:47:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040372#M233768</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-02-08T09:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040385#M233769</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;We have an ISP in our Camera board so the output our board sends in UYVY only.&lt;BR /&gt;&lt;BR /&gt;I have also tried getting few logs and below are they.&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975283] Inside DWC MIPI CSI2 Get Fmt&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975299] pad 0 code 0 field 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975304] colorspace 0 width 0 height 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975309] AR1335 pad 0 code 8198 field 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975313] colorspace 8 width 640 height 480&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975317] Ret value 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975319] pad 0 code 8198 field 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975322] colorspace 8 width 640 height 480&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975326] csi2h_fmt code 8198 csi2h_fmt reg 25&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980369] Inside MXC isi cap stream on&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980389] Config Parm Entry&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980392] MXC ISI Source Fmt init&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980395] UYVY_2x8 8198&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980401] pad 4 code 8198 field 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980404] colorspace 8 width 640 height 480&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980408] dst_f-&amp;gt;fmt-&amp;gt;mbus_code: 8198&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980412] mxc_isi.0: set remote fmt fail! -22&lt;/FONT&gt;&lt;BR /&gt;This is prints I have added in those functions&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;static int dwc_mipi_csi2_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *cfg, struct v4l2_subdev_format *format)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;struct dwc_mipi_csi2_host *csi2h = sd_to_dwc_mipi_csi2h(sd);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;struct v4l2_mbus_framefmt *mf = &amp;amp;csi2h-&amp;gt;format;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;struct media_pad *source_pad;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;struct v4l2_subdev *sen_sd;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;struct csi2h_pix_format const *csi2h_fmt; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;int ret;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;printk("Inside DWC MIPI CSI2 Get Fmt\n");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;/* Get remote source pad */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;source_pad = dwc_csi2_get_remote_sensor_pad(csi2h);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;if (!source_pad) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;v4l2_err(&amp;amp;csi2h-&amp;gt;sd, "%s, No remote pad found!\n", __func__);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;return -EINVAL;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;/* Get remote source pad subdev */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;sen_sd = dwc_get_remote_subdev(csi2h, __func__);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;if (!sen_sd) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;v4l2_err(&amp;amp;csi2h-&amp;gt;sd, "%s, No remote subdev found!\n", __func__);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;return -EINVAL;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;format-&amp;gt;pad = source_pad-&amp;gt;index;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;printk("pad %d code %d field %d\n", format-&amp;gt;pad, format-&amp;gt;format.code, format-&amp;gt;format.field);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;printk("colorspace %d width %d height %d\n\n", format-&amp;gt;format.colorspace, format-&amp;gt;format.width, format-&amp;gt;format.height);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;ret = v4l2_subdev_call(sen_sd, pad, get_fmt, NULL, format);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;if (ret &amp;lt; 0) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;v4l2_err(&amp;amp;csi2h-&amp;gt;sd, "%s, call get_fmt of subdev failed!\n", __func__);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;return ret;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;printk("Ret value %d\n", ret);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;printk("pad %d code %d field %d\n", format-&amp;gt;pad, format-&amp;gt;format.code, format-&amp;gt;format.field);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;printk("colorspace %d width %d height %d\n\n", format-&amp;gt;format.colorspace, format-&amp;gt;format.width, format-&amp;gt;format.height);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;memcpy(mf, &amp;amp;format-&amp;gt;format, sizeof(struct v4l2_mbus_framefmt));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;csi2h_fmt = find_csi2h_format(mf-&amp;gt;code);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;if (!csi2h_fmt) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;printk("Not\n");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;csi2h_fmt = &amp;amp;dwc_csi2h_formats[0];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;mf-&amp;gt;code = csi2h_fmt-&amp;gt;code;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;csi2h-&amp;gt;csi2h_fmt = csi2h_fmt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;printk("csi2h_fmt code %d csi2h_fmt reg %d\n\n", csi2h-&amp;gt;csi2h_fmt-&amp;gt;code, csi2h-&amp;gt;csi2h_fmt-&amp;gt;fmt_reg);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;return 0;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This is the prints I have added in my driver&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;static int ar1335_get_fmt(struct v4l2_subdev *sd,struct v4l2_subdev_state *state,struct v4l2_subdev_format *format)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;struct i2c_client *client = v4l2_get_subdevdata(sd);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;struct v4l2_mbus_framefmt *mf = &amp;amp;format-&amp;gt;format;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;struct ar1335 *sensor = to_ar1335_dev(client);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;int ret = 0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;if (format-&amp;gt;pad)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;return -EINVAL;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;format-&amp;gt;format.code = sensor-&amp;gt;fmt.code;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;format-&amp;gt;format.colorspace = sensor-&amp;gt;fmt.colorspace;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;format-&amp;gt;format.field = V4L2_FIELD_NONE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;format-&amp;gt;format.width = sensor-&amp;gt;pix.width;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;format-&amp;gt;format.height = sensor-&amp;gt;pix.height;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;printk("AR1335 pad %d code %d field %d\n", format-&amp;gt;pad, format-&amp;gt;format.code, format-&amp;gt;format.field);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;printk("colorspace %d width %d height %d\n\n", format-&amp;gt;format.colorspace, format-&amp;gt;format.width, format-&amp;gt;format.height);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;return ret;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;}&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;These are the dmesg logs we get when do stream on with the previously said command.&lt;BR /&gt;in imx8-isi-cap.c inside the above said error function am also implementing this&lt;BR /&gt;src_fmt.format.code = MEDIA_BUS_FMT_UYVY8_2X8;&lt;BR /&gt;before that v4l2_subdev_call.&lt;BR /&gt;in dwc-mipi-csi2.c file I have added the below&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;static const struct csi2h_pix_format dwc_csi2h_formats[] = {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;.code = MEDIA_BUS_FMT_UYVY8_2X8,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;.fmt_reg = 0x19,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;}, {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;.code = MEDIA_BUS_FMT_UYVY8_1X16,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;.fmt_reg = 0x1A,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;},&lt;/FONT&gt;&lt;BR /&gt;I want to know the fmt_reg val for these as MEDIA_BUS_FMT_UYVY8_2X8 is my format. And by&amp;nbsp; this error&amp;nbsp; [33.980412] mxc_isi.0: set remote fmt fail! -22 where should I concentrate, either in dwc-mipi-csi2.c file as it is the subdev of imx8-isi-cap.c or should I debug on imx8-isi-cap.c.&lt;BR /&gt;&lt;BR /&gt;I don't know what I am missing. Kindly help me to solve it.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 10:54:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040385#M233769</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-08T10:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040497#M233776</link>
      <description>&lt;P&gt;what ISP chip do you use? your information is limited, I don't know how your HW connection, you should connect camera with imx93 via this ISP chip, right, so you should add this chip in the dts file and use this ISP driver&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 01:56:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040497#M233776</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-02-10T01:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040627#M233788</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;My camera board has internal ISP in it and the Hardware connections were made correct as we have got it working in verdin with imx8mp. Here the only issue with the kernel registration and the format not being set properly, which is driver side issue. I have also seen the similar kind of issue&lt;/P&gt;&lt;PRE&gt;mxc_isi.0: set remote fmt fail!&lt;/PRE&gt;&lt;P&gt;in this link &lt;A href="https://community.nxp.com/t5/i-MX-Processors/Adding-support-for-Camera-sensor-IMX708/m-p/1988663" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors/Adding-support-for-Camera-sensor-IMX708/m-p/1988663&lt;/A&gt; Kindly help me with the driver registration part like the reasons for this issue and how to solve it. The issue is not with the Hardware here.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 05:58:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040627#M233788</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-10T05:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040817#M233803</link>
      <description>&lt;P&gt;if you need &lt;STRONG&gt;MEDIA_BUS_FMT_UYVY8_2X8 &lt;/STRONG&gt;, did you change the "src_fmt.format.code= MEDIA_BUS_FMT_UYVY8_2X8" in the mxc_isi_source_fmt_init of mx8-isi-cap.c? refer to the error message, it seems you didn't set correct format in this function&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 09:47:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040817#M233803</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-02-10T09:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040833#M233806</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have explicitly changed it to src_fmt.format.code =&amp;nbsp;MEDIA_BUS_FMT_UYVY8_2X8; and even printed and checked and have attached the debug log print earlier and below is that and it is being correctly printed as 8198 d (0x2006 h)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975283] Inside DWC MIPI CSI2 Get Fmt&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975299] pad 0 code 0 field 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975304] colorspace 0 width 0 height 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975309] AR1335 pad 0 code 8198 field 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975313] colorspace 8 width 640 height 480&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975317] Ret value 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975319] pad 0 code 8198 field 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975322] colorspace 8 width 640 height 480&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.975326] csi2h_fmt code 8198 csi2h_fmt reg 25&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980369] Inside MXC isi cap stream on&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980389] Config Parm Entry&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980392] MXC ISI Source Fmt init&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980395] UYVY_2x8 8198&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980401] pad 4 code 8198 field 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980404] colorspace 8 width 640 height 480&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980408] dst_f-&amp;gt;fmt-&amp;gt;mbus_code: 8198&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ 33.980412] mxc_isi.0: set remote fmt fail! -2&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 10:11:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040833#M233806</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-10T10:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040953#M233817</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;The same driver now I have used with 6.1 kernel version and it worked fine. Kindly let me know the driver changes I need to make with respect to the kernel 6.6 and also let me know if you have any driver source tested by getting and setting the format and got stream. Kindly help me to solve this issue with the latest 6.6 kernel.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 14:06:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2040953#M233817</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-10T14:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2042943#M233946</link>
      <description>&lt;P&gt;until now, I didn't have your driver, could you give me patch of isi or any other drives you change based on the nxp source code, and this patch can work with 6.1 but failed with 6.6, so this driver failed with 6.6, the error message is "mxc_isi.0: set remote fmt fail!" right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 01:21:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2042943#M233946</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-02-13T01:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2044620#M234031</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;There was an issue with my driver and I have resolved it and now I can able to successfully set the resolution, format and stream via v4l2-ctl. However, now I am facing another issue, that is when I tried to stream it via gst-launch(gstreamer), I can able to successfully stream the 1280x720 and 1920x1080 resolution, but when I tried to stream it with 3840x2160(4K) the streaming is not proper and it looks corrupted, attached the image of all the three resolutions output. Adding to that, below is my device tree entry in imx93-11x11-evk.dts file:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;ar1335_mipi: ar1335_mipi@42 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;compatible = "econ,ar1335_ff";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;reg = &amp;lt;0x42&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;clocks = &amp;lt;&amp;amp;cam_xtal&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;clock-names = "xclk";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;clock-frequency = &amp;lt;24000000&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;camera_mipi_lanes = &amp;lt;0x2&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;camera-mipi-clk = &amp;lt;800&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;csi_id = &amp;lt;0&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;mclk = &amp;lt;24000000&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;mclk_source = &amp;lt;0&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;mipi_csi;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;cam_xtal: cam-xtal {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;compatible = "fixed-clock";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#clock-cells = &amp;lt;0&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;clock-frequency = &amp;lt;25000000&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;clock-output-names = "cam_xtal";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;}; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;port {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ar0830_mipi_ep: endpoint {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;remote-endpoint = &amp;lt;&amp;amp;mipi_csi_ep&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;data-lanes = &amp;lt;2&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;cfg-clk-range = &amp;lt;28&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;hs-clk-range = &amp;lt;0x2b&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;};&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;};&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;};&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;amp;mipi_csi {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;status = "okay";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;port {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;mipi_csi_ep: endpoint {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;remote-endpoint = &amp;lt;&amp;amp;ar0830_mipi_ep&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;data-lanes = &amp;lt;2&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;cfg-clk-range = &amp;lt;28&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;hs-clk-range = &amp;lt;0x2b&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;bus-type = &amp;lt;4&amp;gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;};&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;};&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;};&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The output from our camera module is correct as we have tested the same source with IMX8MPLUS 2 lane mode and we haven't faced any issues there.&lt;BR /&gt;&lt;BR /&gt;I doubt the issue may be due to sampling, Kindly let me know how to handle the clocks here and &lt;STRONG&gt;let me know the overall mipi csi data rate supported by this imx93 evk&lt;/STRONG&gt; which is very important for me to work further and what are the other parameters I need to check on. Kindly help me solve this issue as this is very critical for me.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 15:01:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2044620#M234031</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-14T15:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2045983#M234110</link>
      <description>&lt;P&gt;imx93 mipi csi can support up to 200Mhz clock, you check if you set the mipi csi clock as max clock already&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 05:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2045983#M234110</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-02-18T05:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2046014#M234112</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;i) imx93 mipi csi can support up to 200Mhz clock. &lt;/STRONG&gt;By this do you mean per lane or totally ? If totally then it can only support 400Mbps data rate on the whole ?&lt;BR /&gt;&lt;BR /&gt;From the above images, we are using data rate as 1200Mbps common for all the three resolution and with that I can able to get 720 and 1080p but not 4K. Kindly let me know what should I do to resolve this. And also how to change the clocks on the platform side ?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;ii) you check if you set the mipi csi clock as max clock already&lt;/STRONG&gt;. How to check that in platform if it is set to max already ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Feb 2025 06:36:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2046014#M234112</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-18T06:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2049366#M234337</link>
      <description>&lt;P&gt;1) IMX93 has one mipi csi which can support up to 200Mhz, for data rate, each lane can support up to 1.5G, total 2 data lane is 3Gbps, but in the dts, you just need the clock&lt;/P&gt;
&lt;P&gt;2)for 4K support, you also need consider the ISI driver, for the function &lt;SPAN data-teams="true"&gt;chain_buf which has 2k limitation, &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/drivers/staging/media/imx/imx8-isi-hw.c#L145C12-L145C22" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/drivers/staging/media/imx/imx8-isi-hw.c#L145C12-L145C22&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;in this function, if (frm-&amp;gt;o_width &amp;gt; ISI_2K)&amp;nbsp; to set 0,&amp;nbsp; because imx93 only one ISI couldn't support chain buffer&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 07:58:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2049366#M234337</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-02-22T07:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: for tRe: Camera Driver Guide for i.MX 93 EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2051904#M234495</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Now, the 4K streaming issue has been resolved. Gone through the file &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/drivers/staging/media/imx/imx8-isi-hw.c#L145C12-L145C22" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/drivers/staging/media/imx/imx8-isi-hw.c#L145C12-L145C22&lt;/A&gt; and functions you have mentioned. Thanks.&lt;BR /&gt;&lt;BR /&gt;Now, I have two doubts here. You said, &lt;STRONG&gt;IMX93 has one mipi csi which can support up to 200Mhz, for data rate, each lane can support up to 1.5G, total 2 data lane is 3Gbps, but in the dts, you just need the clock.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. From your above reply kindly help me clarify what do you mean by when you said &lt;STRONG&gt;IMX93 has one mipi csi which can support up to 200Mhz. &lt;/STRONG&gt;If data rate supported per lane is 1.5Gbps (1500 Mbps), then the clock supported per lane should be around 700Mhz right ? as MIPI function as double data rate. This is what is confusing me. Because I want to know so that I can modify my clock rate accordingly. Kindly help me clarify how this 200Mhz clock supports 1.5Gbps data rate. How this functions.&lt;BR /&gt;&lt;BR /&gt;2. &lt;STRONG&gt;but in the dts, you just need the clock.&lt;/STRONG&gt; -&amp;gt; what do you mean by this ? in dts what are the parameters need to be added regarding this clock. I have attached my dts entries earlier. Kindly tell me the clocks needed in the dts file, what are they ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 15:34:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Driver-Guide-for-i-MX-93-EVK/m-p/2051904#M234495</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-26T15:34:53Z</dc:date>
    </item>
  </channel>
</rss>

