How to modify DTS in order to use a LVDS display

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

How to modify DTS in order to use a LVDS display

672 Views
riccardobrue
Contributor I

Hi, I'm a beginner on Yocto and NXP, I have successfully compiled a Yocto distro with a demo image, now there is a custom carrier board where there is a LVDS connector with a display. The only info I have of such display is the following:

lvds_bridge: sn65dsi83@2c {
compatible = "ti,sn65dsi83";
reg = <0x2c>;
ti,dsi-lanes = <4>;
ti,lvds-format = <2>;
ti,lvds-bpp = <24>;
ti,width-mm = <521>;
ti,height-mm = <293>;
ti,lvds-channels = <2>;
enable-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; <--- WRONG!
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_dsi_lvds_bridge>; <--- DOESN'T EXISTS!
status = "okay";

display-timings {
lvds {
clock-frequency = <148500000>;
hactive = <1920>;
vactive = <1080>;
hsync-len = <44>;
hfront-porch = <88>;
hback-porch = <148>;
vfront-porch = <4>;
vback-porch = <36>;
vsync-len = <5>;
hsync-active = <1>;
vsync-active = <1>;
de-active = <1>;
pixelclk-active = <0>;
};
};

How should I edit the dts and create a path in order to use such display as primary instead of the HDMI (which works correctly)?

0 Kudos
1 Reply

655 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

You should edit and compile it, here are an example of lvds dtb with MX8MP:

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp-evk.d...

 

Regards

0 Kudos