AnsweredAssumed Answered

I.MX8M Mini - ar0144 mipi camera

Question asked by Josu Palenzuela on Sep 9, 2019
Latest reply on Sep 16, 2019 by igorpadykov

Hello,

 

I am using a ar0144 mipi camera in a i.MX8M Mini. I am trying take a photo but always appear de same error: "base address switching Change Err"

This is the device tree that I have used:

                mipi_csi_1: mipi_csi@32e30000 {

                               compatible = "fsl,imx8mm-mipi-csi";

                               reg = <0x0 0x32e30000 0x0 0x1000>;

                               interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;

                               clock-frequency = <445000000>;

                               clocks = <&clk IMX8MM_CLK_CSI1_CORE_DIV>,

                                               <&clk IMX8MM_CLK_CSI1_PHY_REF_DIV>,

                                               <&clk IMX8MM_CLK_DISP_AXI_ROOT>,

                                               <&clk IMX8MM_CLK_DISP_APB_ROOT>;

                               clock-names = "mipi_clk", "phy_clk", "disp_axi", "disp_apb";

                               bus-width = <2>;

                               csi-gpr = <&dispmix_gpr>;

                               power-domains = <&mipi_pd>;

                               status = "disabled";

                };

                ar0144_mipi1: ar0144_mipi1@20 {

                               status = "okay";

                               compatible = "onsemi,ar0144_mipi";

                               reg = <0x10>;

                               pinctrl-names = "default";

                               pinctrl-0 = <&pinctrl_csi1>;

                               clocks = <&clk IMX8MM_CLK_CLKO1_DIV>;

                               clock-names = "csi_mclk";

 

                               assigned-clocks = <&clk IMX8MM_CLK_CLKO1_SRC>,

                                                                 <&clk IMX8MM_CLK_CLKO1_DIV>;

                               assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;

                               assigned-clock-rates = <0>, <20000000>;

 

                               csi_id = <0>;

                               rst-gpios = <&gpio5 28 GPIO_ACTIVE_HIGH>;

                               mclk = <27000000>;

                               mclk_source = <0>;

                               port {

                                               ar0144_mipi1_ep: endpoint {

                                                               remote-endpoint = <&mipi1_sensor_ep>;

                                               };

                               };

                };

 

&mipi_csi_1 {

                #address-cells = <1>;

                #size-cells = <0>;

                status = "okay";

                port {

                               mipi1_sensor_ep: endpoint1 {

                                               remote-endpoint = <&ar0144_mipi1_ep>;

                                               data-lanes = <2>;

                                               csis-hs-settle = <9>;

                                               csis-clk-settle = <2>;

                                               csis-wclk;

                               };

 

                               csi1_mipi_ep: endpoint2 {

                                               remote-endpoint = <&csi1_ep>;

                               };

                };

};

 

What is the problem when appear this error?

Is clocks problem?

Is formats problem?

 

I have tried the same in i.MX8M (no mini) with the same camera and the same driver. In this case, I have succeeded taking a picture.

 

What is the diferent between two SOMs?

Thanks for all.

 

Josu.

Outcomes