<?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のトピックCamera sensor os02g10 MIPI CSI for IMX8MM</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Camera-sensor-os02g10-MIPI-CSI-for-IMX8MM/m-p/1508947#M194068</link>
    <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I got the driver for os02g10 from:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Shaggy013/kernel-5.10" target="_blank" rel="noopener"&gt;https://github.com/Shaggy013/kernel-5.10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I added driver as a patch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My DeviceTree looks that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;            csi1_bridge: csi1_bridge@32e20000 {
                compatible = "fsl,imx8mm-csi", "fsl,imx8mq-csi", "fsl,imx6s-csi";
                reg = &amp;lt;0x32e20000 0x1000&amp;gt;;
                interrupts = &amp;lt;GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH&amp;gt;;
                clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_DISP_AXI_ROOT&amp;gt;,
                         &amp;lt;&amp;amp;clk IMX8MM_CLK_CSI1_ROOT&amp;gt;,
                         &amp;lt;&amp;amp;clk IMX8MM_CLK_DISP_APB_ROOT&amp;gt;;
                clock-names = "disp-axi", "csi_mclk", "disp_dcic";
                power-domains = &amp;lt;&amp;amp;dispmix_pd&amp;gt;;
                status = "disabled";
            };

            mipi_csi_1: mipi_csi@32e30000 {
                compatible = "fsl,imx8mm-mipi-csi";
                reg = &amp;lt;0x32e30000 0x1000&amp;gt;;
                interrupts = &amp;lt;GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH&amp;gt;;
                clock-frequency = &amp;lt;360000000&amp;gt;;
                clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_CSI1_CORE&amp;gt;,
                         &amp;lt;&amp;amp;clk IMX8MM_CLK_CSI1_PHY_REF&amp;gt;,
                         &amp;lt;&amp;amp;clk IMX8MM_CLK_DISP_AXI_ROOT&amp;gt;,
                         &amp;lt;&amp;amp;clk IMX8MM_CLK_DISP_APB_ROOT&amp;gt;;
                clock-names = "mipi_clk", "phy_clk", "disp_axi", "disp_apb";
                bus-width = &amp;lt;2&amp;gt;;
                resets = &amp;lt;&amp;amp;mipi_csi_resets&amp;gt;;
                power-domains = &amp;lt;&amp;amp;mipi_pd&amp;gt;;
                status = "disabled";
            };

    os02g10: os02g10@3c {
		compatible = "ovti,os02g10";
		reg = &amp;lt;0x3c&amp;gt;; // spec (manual) says that I2c addres is 0x3d 
        status = "okay";
		pinctrl-names = "rockchip,camera_default", "rockchip,camera_sleep";		
		pinctrl-0 = &amp;lt;&amp;amp;pinctrl_csi_pwdn&amp;gt;, &amp;lt;&amp;amp;pinctrl_csi_rst&amp;gt;, &amp;lt;&amp;amp;pinctrl_mux_oe&amp;gt;;
		pinctrl-1 = &amp;lt;&amp;amp;pinctrl_csi_pwdn&amp;gt;, &amp;lt;&amp;amp;pinctrl_csi_rst&amp;gt;, &amp;lt;&amp;amp;pinctrl_mux_oe&amp;gt;;
		csi_id = &amp;lt;0&amp;gt;;
        pwdn-gpios = &amp;lt;&amp;amp;gpio2 16 GPIO_ACTIVE_HIGH&amp;gt;;
        reset-gpios = &amp;lt;&amp;amp;gpio2 13 GPIO_ACTIVE_HIGH&amp;gt;;
        mux-gpios = &amp;lt;&amp;amp;gpio2 14 GPIO_ACTIVE_HIGH&amp;gt;;
		mclk = &amp;lt;24000000&amp;gt;;
		mclk_source = &amp;lt;0&amp;gt;;
		rockchip,camera-module-index = &amp;lt;1&amp;gt;;
		rockchip,camera-module-facing = "back";
		rockchip,camera-module-name = "OS02G10 camera";
		rockchip,camera-module-lens-name = "1//2.9 inch 15*";
		rockchip,camera-hdr-mode = &amp;lt;0&amp;gt;; // kernel-5.10\include\uapi\linux\rk-camera-module.h:307  (enum rkmodule_hdr_mode)
		mipi_csi;

		port {
			os02g10_ep: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;mipi1_sensor_ep&amp;gt;;
			};
		};
    };
};

&amp;amp;csi1_bridge {
    fsl,mipi-mode;
	status = "okay";
	port {
		csi1_ep: endpoint {
			remote-endpoint = &amp;lt;&amp;amp;csi1_mipi_ep&amp;gt;;
		};
	};
};

&amp;amp;mipi_csi_1 {
	status = "okay";
	port {
        #address-cells = &amp;lt;1&amp;gt;;
        #size-cells = &amp;lt;0&amp;gt;;
            
		    mipi1_sensor_ep: endpoint@1 {
            reg = &amp;lt;1&amp;gt;;
			remote-endpoint = &amp;lt;&amp;amp;os02g10_ep&amp;gt;;
			data-lanes = &amp;lt;2&amp;gt;;
			csis-hs-settle = &amp;lt;13&amp;gt;;
			csis-clk-settle = &amp;lt;2&amp;gt;;
			csis-wclk;
            };
           
            csi1_mipi_ep: endpoint@2 {
            reg = &amp;lt;2&amp;gt;;
			remote-endpoint = &amp;lt;&amp;amp;csi1_ep&amp;gt;;
        };
	};
};

&amp;amp;clk {
    init-on-array = &amp;lt;IMX8MM_CLK_UART4_ROOT
                     IMX8MM_CLK_AHB IMX8MM_CLK_DRAM_CORE
                     IMX8MM_CLK_NOC IMX8MM_CLK_NOC_APB
                     IMX8MM_CLK_USB_BUS
                     IMX8MM_CLK_MAIN_AXI IMX8MM_CLK_AUDIO_AHB
                     IMX8MM_CLK_DRAM_APB IMX8MM_CLK_A53_DIV
                     IMX8MM_ARM_PLL_OUT IMX8MM_CLK_DISP_AXI
                     IMX8MM_CLK_DISP_APB
                    &amp;gt;;
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified probe function for camera driver and for mxc_mipi-csi.c, mx6s-csi.c&lt;/P&gt;&lt;P&gt;Before I had 2 times format match error but I added to the mx6s-csi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
.name		= "RAWRGB10 (SBGGR10)",
.fourcc	= V4L2_PIX_FMT_SBGGR10,
.pixelformat	= V4L2_PIX_FMT_SBGGR10,
.mbus_code	= MEDIA_BUS_FMT_SBGGR10_1X10,
.bpp		= 1,
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and added to mxc_mipi-csi.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
.code = MEDIA_BUS_FMT_SBGGR10_1X10,
.fmt_reg = MIPI_CSIS_ISPCFG_FMT_RAW10,
.data_alignment = 8,
 }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and v4l2 API works, there is no error. Below my command to get picture&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;v4l2-ctl -d /dev/video0 --verbose --set-fmt-video=width=1920,height=1080,pixelformat=BG10  --stream-mmap --stream-count=1 --stream-to=bb001.raw&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the result with my debug messages&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_s_power
os02g10 3-003c: in function: os02g10_s_power
os02g10 3-003c: in function: os02g10_runtime_resume
os02g10 3-003c: in function: __os02g10_power_on

os02g10 3-003c: OS02G10_REG_SOFTWARE_RESET
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_clk_enable
mxc_mipi-csi 32e30000.mipi_csi: enable mipi_clk returns: 0
mxc_mipi-csi 32e30000.mipi_csi: enable phy_clk returns: 0
mxc_mipi-csi 32e30000.mipi_csi: enable disp_axi returns: 0
mxc_mipi-csi 32e30000.mipi_csi: enable disp_apb returns: 0

VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok

mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_enum_mbus_code
os02g10 3-003c: in function: os02g10_enum_mbus_code
mxc_mipi-csi 32e30000.mipi_csi: camera sensor format (media-bus-format.h): 0x3007
mxc_mipi-csi 32e30000.mipi_csi: supported format0 by mipi-csi driver:    0x2008
mxc_mipi-csi 32e30000.mipi_csi: supported format1 by mipi-csi driver:    0x2007
mxc_mipi-csi 32e30000.mipi_csi: supported format2 by mipi-csi driver:    0x3001
mxc_mipi-csi 32e30000.mipi_csi: supported format3 by mipi-csi driver:    0x3007
mx6s-csi 32e20000.csi1_bridge: in function: mx6s_vidioc_enum_fmt_vid_cap - format RAWRGB10 (SBGGR10)
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_set_fmt

VIDIOC_S_FMT: ok
Format Video Capture:
        Width/Height      : 1920/1080

mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_enum_mbus_code
os02g10 3-003c: in function: os02g10_enum_mbus_code
mxc_mipi-csi 32e30000.mipi_csi: camera sensor format (media-bus-format.h): 0x3007
mxc_mipi-csi 32e30000.mipi_csi: supported format0 by mipi-csi driver:    0x2008
mxc_mipi-csi 32e30000.mipi_csi: supported format1 by mipi-csi driver:    0x2007
mxc_mipi-csi 32e30000.mipi_csi: supported format2 by mipi-csi driver:    0x3001
mxc_mipi-csi 32e30000.mipi_csi: supported format3 by mipi-csi driver:    0x3007
mx6s-csi 32e20000.csi1_bridge: in function: mx6s_vidioc_enum_fmt_vid_cap - format RAWRGB10 (SBGGR10)


        Pixel Format      : 'BG10' (10-bit Bayer BGBG/GRGR)
        Field             : None
        Bytes per Line    : 1920
        Size Image        : 2073600
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: ITU-R 601
        Quantization      : Full Range
        Flags:

mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_s_stream
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_clear_counters
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_start_stream
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_sw_reset: REG CMN_CTRL 0x32E30004 = 0x00004000
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_set_params
mxc_mipi-csi 32e30000.mipi_csi: in function: __mipi_csis_set_format
mxc_mipi-csi.0: fmt: 0x3007, 1920 x 1080
mxc_mipi-csi 32e30000.mipi_csi: in function: __mipi_csis_set_format: REG ISPRESOL_CH0 0x32E30044 = 0x04380780
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_set_hsync_settle: REG DPHYCTRL 0x32E30024=0x0d800000
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_set_params: REG CMN_CTRL 0x32E30004 = 0x00004104
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_system_enable: REG CMN_CTRL 0x32E30004=0x00004105

VIDIOC_REQBUFS returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)

mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_system_enable: REG DPHYCTRL 0x32E30024=0x0d800007
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_enable_interrupts: REG CSIS_INTMSK 0x32E30010 = 0xf00fffff
mxc_mipi-csi.0: --- mipi_csis_start_stream ---
mxc_mipi-csi.0: 0x04 CMM CTRL : 0x00004105
mxc_mipi-csi.0: 0x08 CLK CTRL : 0x000f0000
mxc_mipi-csi.0: 0x10 INT MASK0: 0xf00fffff
mxc_mipi-csi.0: 0x14 INT SRC0 : 0x00000000
mxc_mipi-csi.0: 0x18 INT MASK1: 0x00000000
mxc_mipi-csi.0: 0x1c INT SRC1 : 0x00000000
mxc_mipi-csi.0: 0x20 PHY STAT : 0x000000f1
mxc_mipi-csi.0: 0x24 PHY CTRL : 0x0d800007
mxc_mipi-csi.0: 0x30 PHY M/S-L: 0x000001f4
mxc_mipi-csi.0: 0x34 PHY M/S-H: 0x00000000
mxc_mipi-csi.0: 0x38 PHY S-CTL: 0x00000000
mxc_mipi-csi.0: 0x3C PHY S-CTH: 0x00000000
mxc_mipi-csi.0: 0x40 ISP CONF : 0x000000ac
mxc_mipi-csi.0: 0x44 ISP RESOL: 0x04380780
mxc_mipi-csi.0: 0x48 ISP SYNC : 0x04380780
os02g10 3-003c: in function: os02g10_s_stream
os02g10 3-003c: in function: __os02g10_start_stream
os02g10 3-003c: in function: __os02g10_start_stream  __v4l2_ctrl_handler_setup returns: 0
os02g10 3-003c: in function: os02g10_s_stream: unlock_and_return

               VIDIOC_STREAMON returned 0 (Success)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that nothing is going to happen, just waiting and waiting and nothing.&lt;/P&gt;&lt;P&gt;I can not observe any traffic on MIPI DATA and MIPI CLK lines by 20MHz oscilloscope. (I know the bandwidth is low but for data lines there should be anything seen - any change but there is completely silence)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Im not sure if clk node is correct and maybe there is no match &amp;amp;clk node with mipi_csi clocks by clock names.&lt;/STRONG&gt; Has anyone experience with it?&lt;BR /&gt;&lt;BR /&gt;What can I do ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 17:59:40 GMT</pubDate>
    <dc:creator>btarnowski</dc:creator>
    <dc:date>2022-08-19T17:59:40Z</dc:date>
    <item>
      <title>Camera sensor os02g10 MIPI CSI for IMX8MM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-sensor-os02g10-MIPI-CSI-for-IMX8MM/m-p/1508947#M194068</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I got the driver for os02g10 from:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Shaggy013/kernel-5.10" target="_blank" rel="noopener"&gt;https://github.com/Shaggy013/kernel-5.10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I added driver as a patch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My DeviceTree looks that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;            csi1_bridge: csi1_bridge@32e20000 {
                compatible = "fsl,imx8mm-csi", "fsl,imx8mq-csi", "fsl,imx6s-csi";
                reg = &amp;lt;0x32e20000 0x1000&amp;gt;;
                interrupts = &amp;lt;GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH&amp;gt;;
                clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_DISP_AXI_ROOT&amp;gt;,
                         &amp;lt;&amp;amp;clk IMX8MM_CLK_CSI1_ROOT&amp;gt;,
                         &amp;lt;&amp;amp;clk IMX8MM_CLK_DISP_APB_ROOT&amp;gt;;
                clock-names = "disp-axi", "csi_mclk", "disp_dcic";
                power-domains = &amp;lt;&amp;amp;dispmix_pd&amp;gt;;
                status = "disabled";
            };

            mipi_csi_1: mipi_csi@32e30000 {
                compatible = "fsl,imx8mm-mipi-csi";
                reg = &amp;lt;0x32e30000 0x1000&amp;gt;;
                interrupts = &amp;lt;GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH&amp;gt;;
                clock-frequency = &amp;lt;360000000&amp;gt;;
                clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_CSI1_CORE&amp;gt;,
                         &amp;lt;&amp;amp;clk IMX8MM_CLK_CSI1_PHY_REF&amp;gt;,
                         &amp;lt;&amp;amp;clk IMX8MM_CLK_DISP_AXI_ROOT&amp;gt;,
                         &amp;lt;&amp;amp;clk IMX8MM_CLK_DISP_APB_ROOT&amp;gt;;
                clock-names = "mipi_clk", "phy_clk", "disp_axi", "disp_apb";
                bus-width = &amp;lt;2&amp;gt;;
                resets = &amp;lt;&amp;amp;mipi_csi_resets&amp;gt;;
                power-domains = &amp;lt;&amp;amp;mipi_pd&amp;gt;;
                status = "disabled";
            };

    os02g10: os02g10@3c {
		compatible = "ovti,os02g10";
		reg = &amp;lt;0x3c&amp;gt;; // spec (manual) says that I2c addres is 0x3d 
        status = "okay";
		pinctrl-names = "rockchip,camera_default", "rockchip,camera_sleep";		
		pinctrl-0 = &amp;lt;&amp;amp;pinctrl_csi_pwdn&amp;gt;, &amp;lt;&amp;amp;pinctrl_csi_rst&amp;gt;, &amp;lt;&amp;amp;pinctrl_mux_oe&amp;gt;;
		pinctrl-1 = &amp;lt;&amp;amp;pinctrl_csi_pwdn&amp;gt;, &amp;lt;&amp;amp;pinctrl_csi_rst&amp;gt;, &amp;lt;&amp;amp;pinctrl_mux_oe&amp;gt;;
		csi_id = &amp;lt;0&amp;gt;;
        pwdn-gpios = &amp;lt;&amp;amp;gpio2 16 GPIO_ACTIVE_HIGH&amp;gt;;
        reset-gpios = &amp;lt;&amp;amp;gpio2 13 GPIO_ACTIVE_HIGH&amp;gt;;
        mux-gpios = &amp;lt;&amp;amp;gpio2 14 GPIO_ACTIVE_HIGH&amp;gt;;
		mclk = &amp;lt;24000000&amp;gt;;
		mclk_source = &amp;lt;0&amp;gt;;
		rockchip,camera-module-index = &amp;lt;1&amp;gt;;
		rockchip,camera-module-facing = "back";
		rockchip,camera-module-name = "OS02G10 camera";
		rockchip,camera-module-lens-name = "1//2.9 inch 15*";
		rockchip,camera-hdr-mode = &amp;lt;0&amp;gt;; // kernel-5.10\include\uapi\linux\rk-camera-module.h:307  (enum rkmodule_hdr_mode)
		mipi_csi;

		port {
			os02g10_ep: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;mipi1_sensor_ep&amp;gt;;
			};
		};
    };
};

&amp;amp;csi1_bridge {
    fsl,mipi-mode;
	status = "okay";
	port {
		csi1_ep: endpoint {
			remote-endpoint = &amp;lt;&amp;amp;csi1_mipi_ep&amp;gt;;
		};
	};
};

&amp;amp;mipi_csi_1 {
	status = "okay";
	port {
        #address-cells = &amp;lt;1&amp;gt;;
        #size-cells = &amp;lt;0&amp;gt;;
            
		    mipi1_sensor_ep: endpoint@1 {
            reg = &amp;lt;1&amp;gt;;
			remote-endpoint = &amp;lt;&amp;amp;os02g10_ep&amp;gt;;
			data-lanes = &amp;lt;2&amp;gt;;
			csis-hs-settle = &amp;lt;13&amp;gt;;
			csis-clk-settle = &amp;lt;2&amp;gt;;
			csis-wclk;
            };
           
            csi1_mipi_ep: endpoint@2 {
            reg = &amp;lt;2&amp;gt;;
			remote-endpoint = &amp;lt;&amp;amp;csi1_ep&amp;gt;;
        };
	};
};

&amp;amp;clk {
    init-on-array = &amp;lt;IMX8MM_CLK_UART4_ROOT
                     IMX8MM_CLK_AHB IMX8MM_CLK_DRAM_CORE
                     IMX8MM_CLK_NOC IMX8MM_CLK_NOC_APB
                     IMX8MM_CLK_USB_BUS
                     IMX8MM_CLK_MAIN_AXI IMX8MM_CLK_AUDIO_AHB
                     IMX8MM_CLK_DRAM_APB IMX8MM_CLK_A53_DIV
                     IMX8MM_ARM_PLL_OUT IMX8MM_CLK_DISP_AXI
                     IMX8MM_CLK_DISP_APB
                    &amp;gt;;
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified probe function for camera driver and for mxc_mipi-csi.c, mx6s-csi.c&lt;/P&gt;&lt;P&gt;Before I had 2 times format match error but I added to the mx6s-csi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
.name		= "RAWRGB10 (SBGGR10)",
.fourcc	= V4L2_PIX_FMT_SBGGR10,
.pixelformat	= V4L2_PIX_FMT_SBGGR10,
.mbus_code	= MEDIA_BUS_FMT_SBGGR10_1X10,
.bpp		= 1,
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and added to mxc_mipi-csi.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
.code = MEDIA_BUS_FMT_SBGGR10_1X10,
.fmt_reg = MIPI_CSIS_ISPCFG_FMT_RAW10,
.data_alignment = 8,
 }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and v4l2 API works, there is no error. Below my command to get picture&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;v4l2-ctl -d /dev/video0 --verbose --set-fmt-video=width=1920,height=1080,pixelformat=BG10  --stream-mmap --stream-count=1 --stream-to=bb001.raw&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the result with my debug messages&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_s_power
os02g10 3-003c: in function: os02g10_s_power
os02g10 3-003c: in function: os02g10_runtime_resume
os02g10 3-003c: in function: __os02g10_power_on

os02g10 3-003c: OS02G10_REG_SOFTWARE_RESET
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_clk_enable
mxc_mipi-csi 32e30000.mipi_csi: enable mipi_clk returns: 0
mxc_mipi-csi 32e30000.mipi_csi: enable phy_clk returns: 0
mxc_mipi-csi 32e30000.mipi_csi: enable disp_axi returns: 0
mxc_mipi-csi 32e30000.mipi_csi: enable disp_apb returns: 0

VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok

mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_enum_mbus_code
os02g10 3-003c: in function: os02g10_enum_mbus_code
mxc_mipi-csi 32e30000.mipi_csi: camera sensor format (media-bus-format.h): 0x3007
mxc_mipi-csi 32e30000.mipi_csi: supported format0 by mipi-csi driver:    0x2008
mxc_mipi-csi 32e30000.mipi_csi: supported format1 by mipi-csi driver:    0x2007
mxc_mipi-csi 32e30000.mipi_csi: supported format2 by mipi-csi driver:    0x3001
mxc_mipi-csi 32e30000.mipi_csi: supported format3 by mipi-csi driver:    0x3007
mx6s-csi 32e20000.csi1_bridge: in function: mx6s_vidioc_enum_fmt_vid_cap - format RAWRGB10 (SBGGR10)
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_set_fmt

VIDIOC_S_FMT: ok
Format Video Capture:
        Width/Height      : 1920/1080

mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_enum_mbus_code
os02g10 3-003c: in function: os02g10_enum_mbus_code
mxc_mipi-csi 32e30000.mipi_csi: camera sensor format (media-bus-format.h): 0x3007
mxc_mipi-csi 32e30000.mipi_csi: supported format0 by mipi-csi driver:    0x2008
mxc_mipi-csi 32e30000.mipi_csi: supported format1 by mipi-csi driver:    0x2007
mxc_mipi-csi 32e30000.mipi_csi: supported format2 by mipi-csi driver:    0x3001
mxc_mipi-csi 32e30000.mipi_csi: supported format3 by mipi-csi driver:    0x3007
mx6s-csi 32e20000.csi1_bridge: in function: mx6s_vidioc_enum_fmt_vid_cap - format RAWRGB10 (SBGGR10)


        Pixel Format      : 'BG10' (10-bit Bayer BGBG/GRGR)
        Field             : None
        Bytes per Line    : 1920
        Size Image        : 2073600
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: ITU-R 601
        Quantization      : Full Range
        Flags:

mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_s_stream
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_clear_counters
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_start_stream
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_sw_reset: REG CMN_CTRL 0x32E30004 = 0x00004000
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_set_params
mxc_mipi-csi 32e30000.mipi_csi: in function: __mipi_csis_set_format
mxc_mipi-csi.0: fmt: 0x3007, 1920 x 1080
mxc_mipi-csi 32e30000.mipi_csi: in function: __mipi_csis_set_format: REG ISPRESOL_CH0 0x32E30044 = 0x04380780
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_set_hsync_settle: REG DPHYCTRL 0x32E30024=0x0d800000
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_set_params: REG CMN_CTRL 0x32E30004 = 0x00004104
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_system_enable: REG CMN_CTRL 0x32E30004=0x00004105

VIDIOC_REQBUFS returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)

mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_system_enable: REG DPHYCTRL 0x32E30024=0x0d800007
mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_enable_interrupts: REG CSIS_INTMSK 0x32E30010 = 0xf00fffff
mxc_mipi-csi.0: --- mipi_csis_start_stream ---
mxc_mipi-csi.0: 0x04 CMM CTRL : 0x00004105
mxc_mipi-csi.0: 0x08 CLK CTRL : 0x000f0000
mxc_mipi-csi.0: 0x10 INT MASK0: 0xf00fffff
mxc_mipi-csi.0: 0x14 INT SRC0 : 0x00000000
mxc_mipi-csi.0: 0x18 INT MASK1: 0x00000000
mxc_mipi-csi.0: 0x1c INT SRC1 : 0x00000000
mxc_mipi-csi.0: 0x20 PHY STAT : 0x000000f1
mxc_mipi-csi.0: 0x24 PHY CTRL : 0x0d800007
mxc_mipi-csi.0: 0x30 PHY M/S-L: 0x000001f4
mxc_mipi-csi.0: 0x34 PHY M/S-H: 0x00000000
mxc_mipi-csi.0: 0x38 PHY S-CTL: 0x00000000
mxc_mipi-csi.0: 0x3C PHY S-CTH: 0x00000000
mxc_mipi-csi.0: 0x40 ISP CONF : 0x000000ac
mxc_mipi-csi.0: 0x44 ISP RESOL: 0x04380780
mxc_mipi-csi.0: 0x48 ISP SYNC : 0x04380780
os02g10 3-003c: in function: os02g10_s_stream
os02g10 3-003c: in function: __os02g10_start_stream
os02g10 3-003c: in function: __os02g10_start_stream  __v4l2_ctrl_handler_setup returns: 0
os02g10 3-003c: in function: os02g10_s_stream: unlock_and_return

               VIDIOC_STREAMON returned 0 (Success)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that nothing is going to happen, just waiting and waiting and nothing.&lt;/P&gt;&lt;P&gt;I can not observe any traffic on MIPI DATA and MIPI CLK lines by 20MHz oscilloscope. (I know the bandwidth is low but for data lines there should be anything seen - any change but there is completely silence)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Im not sure if clk node is correct and maybe there is no match &amp;amp;clk node with mipi_csi clocks by clock names.&lt;/STRONG&gt; Has anyone experience with it?&lt;BR /&gt;&lt;BR /&gt;What can I do ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 17:59:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-sensor-os02g10-MIPI-CSI-for-IMX8MM/m-p/1508947#M194068</guid>
      <dc:creator>btarnowski</dc:creator>
      <dc:date>2022-08-19T17:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Camera sensor os02g10 MIPI CSI for IMX8MM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-sensor-os02g10-MIPI-CSI-for-IMX8MM/m-p/1512380#M194328</link>
      <description>&lt;P&gt;I got it to work.&lt;BR /&gt;.bpp has to be = 2&lt;BR /&gt;but main issue was with hardware&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 13:03:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-sensor-os02g10-MIPI-CSI-for-IMX8MM/m-p/1512380#M194328</guid>
      <dc:creator>btarnowski</dc:creator>
      <dc:date>2022-08-26T13:03:20Z</dc:date>
    </item>
  </channel>
</rss>

