i.MX8 MAX9296 Stream Problem

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

i.MX8 MAX9296 Stream Problem

173 Views
kayakaantuna
Contributor III

Hi all,

I can get a stream using the following device-tree settings without an MAX9296 from my camera:

 

/ {
	fragment@7 {
		target = <&i2c_mipi_csi0>;
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";
			pinctrl-names = "default";
			pinctrl-0 = <&pinctrl_i2c_mipi_csi0>;
			as0149_mipi_0: as0149_mipi@5d {
					compatible = "as0149";
					reg = <0x5d>;
                clocks = <&xtal24m>;
                clock-names = "xclk";
                csi_id = <0>;
                mclk = <24000000>;
                mclk_source = <0>;
                mipi_csi;
                status = "okay";
                port {
						as0149_mipi_ep_0: endpoint {
                        remote-endpoint = <&mipi_csi0_ep>;
                        data-lanes = <1 2>;
                        clocks-lanes = <0>;
                    };
                };
			};

		};
	};

	fragment@8 {
		target = <&i2c_mipi_csi1>;
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";
			pinctrl-names = "default";
			pinctrl-0 = <&pinctrl_i2c_mipi_csi1>;
			as0149_mipi_1: as0149_mipi@5d {
				compatible = "as0149";
				reg = <0x5d>;
                clocks = <&xtal24m>;
                clock-names = "xclk";
                csi_id = <0>;
                mclk = <24000000>;
                mclk_source = <0>;
                mipi_csi;
                status = "okay";
                port {
					as0149_mipi_ep_1: endpoint {
                        remote-endpoint = <&mipi_csi1_ep>;
                        data-lanes = <1 2>;
                        clocks-lanes = <0>;
                    };
                };
			};
		};
	};

	fragment@9 {
		target = <&irqsteer_csi0>;
		__overlay__ {
			status = "okay";
		};
	};

	fragment@10 {
		target = <&irqsteer_csi1>;
		__overlay__ {
			status = "okay";
		};
	};

	fragment@11 {
		target = <&mipi_csi_0>;
		__overlay__  {
			#address-cells = <1>;
			#size-cells = <0>;
			/delete-property/virtual-channel;
			status = "okay";

			/* Camera 0  MIPI CSI-2 (CSIS0) */
			port@0 {
				reg = <0>;
				mipi_csi0_ep: endpoint {
					remote-endpoint = <&as0149_mipi_ep_0>;
                   	data-lanes = <1 2>;
               	};
			};
		};
	};

	fragment@12 {
		target = <&isi_0>;
		__overlay__ {
			status = "okay";

			cap_device {
				status = "okay";
			};

			m2m_device {
				status = "okay";
			};
		};
	};

	fragment@13 {
		target = <&mipi_csi_1>;
		__overlay__  {
			#address-cells = <1>;
			#size-cells = <0>;
			/delete-property/virtual-channel;
			status = "okay";

			/* Camera 1  MIPI CSI-2 (CSIS1) */
			port@1 {
               	reg = <1>;
           		mipi_csi1_ep: endpoint {
					remote-endpoint = <&as0149_mipi_ep_1>;
                   	data-lanes = <1 2>;			
				};
			};
		};
	};

	fragment@14 {
		target = <&isi_4>;
		__overlay__ {
			status = "okay";

			cap_device {
				status = "okay";
			};

			m2m_device {
				status = "okay";
			};
		};
	};

};

 

 

However, when I add max9296 driver inside of my camera driver I get the following output:

kayakaantuna_0-1730286144432.jpeg



I check my max9296 and as0149 status registers, both with no error and both stating they are on stream.

Input and output format also seems correct by looking at the dmesg log below:

[ 884.552763] bypass csc
[ 884.555176] input fmt UYVY
[ 884.557914] output fmt UYVY

Only thing that came to my mind right now is the pixel clock. I set it like below at the momment:

 

port {
					as0149_serdes_ep_0: endpoint {
						data-lanes = <1 2>;
						clocks-lanes = <0>;
						/*clock-noncontinuous;*/
						link-frequencies = /bits/ 64 <833333333>;
						//max-pixel-frequency = /bits/ 64 <100000000>;
						remote-endpoint = <&mipi_csi0_ep_0>;
					};

...

            port@0 {
                reg = <0>;
                mipi_csi0_ep_0: endpoint {
                    remote-endpoint = <&as0149_serdes_ep_0>;
                    data-lanes = <1 2>;
					csis-hs-settle = <18>;
               		csis-clk-settle = <2>;
					csis-wclk;
                };

 

 

does this correct setting for 833333333 pixel clock ? Or these values does nothing ? Can any of you guide me on this one ?

Thanks.



0 Kudos
Reply
1 Reply

143 Views
joanxie
NXP TechSupport
NXP TechSupport

could you share the full logfile and dts file? and tell me what bsp version you use

0 Kudos
Reply