Hi Chavira,
Yes, the mipi camera is configured through I2C. Configuring through i2c is necessary whenever camera-related configurations are needed. The Ov5640 camera is an example.
The below is device-tree configuration
/* FPGA MIPI configuration */
&mipi_csi_0 { /* MIPI_CSI0: FPGA L MIPI TX */
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@0 {
reg = <0>;
mipi_csi0_ep: endpoint {
remote-endpoint = <&fpga_L_mipi_ep>;
data-lanes = <1 2 3 4>;
bus-type = <4>;
};
};
};
&i2c_mipi_csi0 { /* MIPI_CSI0: FPGA L TX */
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c_mipi_csi0>;
clock-frequency = <400000>;
status = "okay";
fpga_L_mipi: fpga_L_mipi@3d {
compatible = "iw,iw_mipi";
reg = <0x3D>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mipi_csi0>;
mipi_csi;
status = "okay";
port {
fpga_L_mipi_ep: endpoint {
remote-endpoint = <&mipi_csi0_ep>;
data-lanes = <1 2 3 4>;
clocks-lanes = <0>;
};
};
};
};
Thanks,
Shrithi