OV5640 working only on first MIPI CSI interface(CSI0) but not on another (CSI1) of i.MX 8M Plus evk

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

OV5640 working only on first MIPI CSI interface(CSI0) but not on another (CSI1) of i.MX 8M Plus evk

跳至解决方案
447 次查看
devds
Contributor III

Hello NXP community,

issue : OV5640 working only on first MIPI CSI interface(CSI0) but not on another (CSI1) of i.MX 8M Plus evk.

I'm using Yocto with LF6.6.3_1.0.0 bsp version. In imx8mp-evk.dts file i have seen some configuration for csi0 as below but not for csi1

ov5640_1: ov5640_mipi@3c {
compatible = "ovti,ov5640";
reg = <0x3c>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi0_pwn>, <&pinctrl_csi0_rst>, <&pinctrl_csi_mclk>;
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
clock-names = "xclk";
assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
assigned-clock-parents = <&clk IMX8MP_CLK_24M>;
assigned-clock-rates = <24000000>;
csi_id = <0>;
powerdown-gpios = <&gpio4 1 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
mclk = <24000000>;
mclk_source = <0>;
mipi_csi;
status = "okay";

port {
ov5640_mipi_1_ep: endpoint {
remote-endpoint = <&mipi_csi1_ep>;
data-lanes = <1 2>;
clock-lanes = <0>;
};
};

there is no similar configuration as above for csi1 so, I'm suspecting this is the reason why we are not able to use ov5640  on csi1(2nd csi) of imx8mp evk.

Could anyone please let me know whether this reason is valid or not and also let me know the steps to update this dts file changes like how to compile and and add changes to image for verifying changes.

 

0 项奖励
回复
1 解答
426 次查看
joanxie
NXP TechSupport
NXP TechSupport

you can try to use this dts file to enable ov5640 on the mipi csi2

https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk-os08a20-...

because the ov5640 in the mipi csi2 set the wrong powerdown pin and reset pin, for more detailed information, you also can refer the document as below

"ov5640 support on imx8mp - NXP Community"

在原帖中查看解决方案

1 回复
427 次查看
joanxie
NXP TechSupport
NXP TechSupport

you can try to use this dts file to enable ov5640 on the mipi csi2

https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk-os08a20-...

because the ov5640 in the mipi csi2 set the wrong powerdown pin and reset pin, for more detailed information, you also can refer the document as below

"ov5640 support on imx8mp - NXP Community"