Hi,
We have designed a carrier board (based on Variscite IMX8MP DART SOM) with 1 MIPI CSI camera and 1 MIPI DSI display.
When adding support for both camera and DSI display, the display works fine but we are unable to capture frames from the camera (camera driver loads correctly).
If we remove/disable the MIPI DSI display entry from the DTB, we can capture images from the camera.
MIPI DSI Display entry:
/* MIPI-DSI */
&lcdif1 {
status = "okay";
};
&mipi_dsi {
status = "okay";
/* DISPLAY */
panel@0 {
compatible = "techstar,ts8550b";
reg = <0>;
pinctrl-0 = <&pinctrl_mipi_dsi_en>;
reset-gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
dsi-lanes = <2>;
video-mode = <2>;
panel-width-mm = <68>; //TBC
panel-height-mm = <121>; //TBC
status = "okay";
};
};
Camera driver entry:
&i2c2 {
clock-frequency = <400000>;
pinctrl-names = "default", "gpio";
pinctrl-0 = <&pinctrl_i2c2>;
pinctrl-1 = <&pinctrl_i2c2_gpio>;
scl-gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>;
sda-gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
status = "okay";
ov2311_mipi1: ov2311_mipi1@42 {
compatible = "ov2311";
reg = <0x42>;
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
clock-names = "xclk";
/* Disabled CLKO2, since DART-MX8MP camera expansion board uses
* its own oscillator. Enable CLK02 if your desing requres it
*/
#if 0
assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
assigned-clock-parents = <&clk IMX8MP_CLK_24M>;
#endif
assigned-clock-rates = <24000000>;
mipi-data-lanes = <2>;
camera-mipi-clk = <832>;
csi_id = <0>;
pinctrl-names = "default";
pwn-gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
rst-gpios = <&gpio3 7 GPIO_ACTIVE_LOW>;
mclk = <24000000>;
mclk_source = <0>;
mipi_csi;
status = "okay";
port {
ov2311_mipi1_ep: endpoint {
remote-endpoint = <&mipi_csi0_ep>;
data-lanes = <1 2>;
clock-lanes = <0>;
};
};
};
};
&mipi_csi_0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@0 {
reg = <0>;
mipi_csi0_ep: endpoint {
remote-endpoint = <&ov2311_mipi1_ep>;
data-lanes = <2>;
csis-hs-settle = <13>;
csis-clk-settle = <2>;
csis-wclk;
};
};
};
Are we missing something to use both MIPI CSI and MIPI DSI simultaneously?
Attached dmesg log.
Thanks.