AnsweredAssumed Answered

About IMX8MQ USB camera issue

Question asked by yingjin yan on Oct 9, 2019
Latest reply on Oct 11, 2019 by yingjin yan

Hi NXP teams:

 

  I've had a problem recently.

 When I flash NXP offical demo image(Android P9_0.0_1.0.0)  into evk board,I found in system dev directory.

It already exists /dev/video0 /dev/video1,When I plugged in a USB camera,the sensor will be registered from video2.

Is there any way to remove the /dev/video0 and /dev/video1?   In addition, I found that the video0 and video1 are registered by the following code.

fsl-imx8mq-evk.dts

&csi1_bridge {
fsl,mipi-mode;
fsl,two-8bit-sensor-mode;
status = "okay";

port {
csi1_ep: endpoint {
remote-endpoint = <&csi1_mipi_ep>;
                             };
       };
};

&csi2_bridge {
fsl,mipi-mode;
fsl,two-8bit-sensor-mode;
status = "okay";

port {
csi2_ep: endpoint {
remote-endpoint = <&csi2_mipi_ep>;
                             };
        };
};

 

fsl-imx8mq.dtsi

csi1_bridge: csi1_bridge@30a90000 {
compatible = "fsl,imx8mq-csi", "fsl,imx6s-csi";
reg = <0x0 0x30a90000 0x0 0x10000>;
interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MQ_CLK_DUMMY>,
<&clk IMX8MQ_CLK_CSI1_ROOT>,
<&clk IMX8MQ_CLK_DUMMY>;
clock-names = "disp-axi", "csi_mclk", "disp_dcic";
status = "disabled";
};

csi2_bridge: csi2_bridge@30b80000 {
compatible = "fsl,imx8mq-csi", "fsl,imx6s-csi";
reg = <0x0 0x30b80000 0x0 0x10000>;
interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MQ_CLK_DUMMY>,
<&clk IMX8MQ_CLK_CSI2_ROOT>,
<&clk IMX8MQ_CLK_DUMMY>;
clock-names = "disp-axi", "csi_mclk", "disp_dcic";
status = "disabled";
};

I'm not sure if I can delete the registration of this node.

 

thanks

Outcomes