imx93 ov5640 camera display color is green, probability of stalling

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx93 ov5640 camera display color is green, probability of stalling

897 Views
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 Kudos
Reply
5 Replies

896 Views
gongyaxuan
Contributor I
Spoiler
 

gongyaxuan_0-1712057670790.jpeg

gongyaxuan_1-1712057677375.jpeg

 

 

0 Kudos
Reply

894 Views
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 Kudos
Reply

815 Views
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 Kudos
Reply

798 Views
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 Kudos
Reply

792 Views
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 Kudos
Reply