imx93 ov5640 camera display color is green, probability of stalling

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

imx93 ov5640 camera display color is green, probability of stalling

843 次查看
gongyaxuan
Contributor I

At present, I have encountered a problem that the ov5640 camera displays a green color. By comparing with our other boards, I have made data-lanes modifications, which are as follows
// data-lanes = <2>;
data-lanes = <1 2>;
At this time, the camera color display is normal, but there are other problems, the camera preview probability can not be successfully previewed as shown in the following figure

0 项奖励
回复
5 回复数

842 次查看
gongyaxuan
Contributor I
破坏者
 

gongyaxuan_0-1712057670790.jpeg

gongyaxuan_1-1712057677375.jpeg

 

 

0 项奖励
回复

840 次查看
gongyaxuan
Contributor I
 device tree:
 
  ov5640: camera@3c {
        compatible = "ovti,ov5640";
        reg = <0x3c>;

        pinctrl-names ="default";
        pinctrl-0=<&pinctrl_ov5640_gpio>;

        clocks = <&clk IMX93_CLK_CCM_CKO3>;
        assigned-clocks = <&clk IMX93_CLK_CCM_CKO3>;
        assigned-clock-rates = <24000000>;
        powerdown-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
        reset-gpios = <&gpio3 27 GPIO_ACTIVE_LOW>;
        clock-names = "xclk";

        csi_id = <0>;
        mclk = <24000000>;
        mclk_source = <0>;
        mipi_csi;
        status = "okay";

        port {
            csi2_cam0: endpoint {
                remote-endpoint = <&csi2rx0_in_sensor>;
                                // data-lanes = <2>;
                data-lanes = <1 2>;
                cfg-clk-range = <28>;
                hs-clk-range = <0x16>;
               
                // clock-lanes = <0>;
                // clock-lanes = <0>;
                // data-lanes = <1 2>;
                // link-frequencies = /bits/ 64 <336000000>;
            };
        };
    };
 
 
&mipi_csi {
    status = "okay";
    port@0 {
    csi2rx0_in_sensor: endpoint {
        remote-endpoint = <&csi2_cam0>;
            data-lanes = <2>;
            cfg-clk-range = <28>;
            hs-clk-range = <0x16>;
            bus-type = <4>;
    };
    };
};
 
0 项奖励
回复

761 次查看
gongyaxuan
Contributor I

I can't find any other ideas at present. Could you please help me check the configuration of my device tree? Thank you very much

0 项奖励
回复

744 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Just from the top of my head, you need to adjust the clock for the camera and the device tree.

Regards

0 项奖励
回复

738 次查看
gongyaxuan
Contributor I

I also think it should be a question of adjusting the clock. Can you give me some suggestions on which parameters to adjust

0 项奖励
回复