Hello,
IMX Linux Integration manual doesn't quite explain MIPI DSI Panel integration.
Lets start with device tree:
https://github.com/varigit/linux-imx/blob/5.15-2.0.x-imx_var01/arch/arm64/boot/dts/freescale/imx8mm-... show us that in order to add panel we should just add panel to the &mipi_dsi device tree.
While https://github.com/varigit/linux-imx/blob/5.15-2.0.x-imx_var01/Documentation/devicetree/bindings/dis...
shows us that mipi-dsi requires two ports to be defined and second port should be connected to the MIPI display.
That goes well with the documentation for raydium device tree which can be found here:
https://www.kernel.org/doc/Documentation/devicetree/bindings/display/panel/raydium%2Crm67191.yaml
Therefore final device tree according to my logic should look something like this:
&lcdif {
status = "okay";
};
&mipi_dsi {
status = "okay";
panel@0 {
status = "okay";
reg = <0>;
compatible = "raydium,rm67191";
dsi-lanes = <2>;
pinctrl-names = "default";
reset-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
width-mm = <56>;
height-mm = <93>;
//video-mode = <2>;
port {
panel_in: endpoint {
remote-endpoint = <&mipi_out>;
};
};
};
port@0 {
dsim_from_lcdif: endpoint {
remote-endpoint = <&lcdif_to_dsim>;
};
};
port@1 {
mipi_out: endpoint {
remote-endpoint = <&panel_in>;
};
};
};
Can you please clarify how it should be done.