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.
Solved! Go to Solution.
you can try to use this dts file to enable ov5640 on the mipi csi2
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
you can try to use this dts file to enable ov5640 on the mipi csi2
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