Problem LVDS pixel clock on IMX8MP

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

Problem LVDS pixel clock on IMX8MP

1,554 Views
domenicoacri
Contributor I

Hi, I'm trying to connect an LVDS display on imx8mp. (Linux 5.10.35_2.0.0)

These are the timing of my LCD, pixel-clock at 64MHz as below the code,

but it doesen't seem to work.

panel-timing {
clock-frequency = <65000000>;
hactive = <1024>;
vactive = <600>;
hsync-len = <136>;
hfront-porch = <20>;
hback-porch = <160>;
vfront-porch = <3>;
vback-porch = <29>;
vsync-len = <6>;
};
 

The output frequency is fixed at 74.2 MHz.

It would appear set in the imx8mp-ldb.c driver.

How can this parameter be changed from the device tree?


Best Regards

Domenico Acri

0 Kudos
5 Replies

1,443 Views
embdev1
Contributor I

Can you please tell me the location of panel-timing structure? I am searching for this to modify timing settings of my LVDS display. Thanks in advance.

0 Kudos

1,411 Views
joanxie
NXP TechSupport
NXP TechSupport

you can add it in the imx8mp dts file

 

0 Kudos

1,529 Views
joanxie
NXP TechSupport
NXP TechSupport

you can refer to the driver of ldb

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/gpu/drm/imx/imx8mp-ldb.c?h=lf-5.10...

check the function "imx8mp_ldb_encoder_atomic_check, you need comment the fixed clock, but not all of clock can be supported, but I checked, the 65M can be supported

0 Kudos

1,513 Views
domenicoacri
Contributor I

Hi,

thank you very much for the prompt reply.

Yes, I had also changed that function and it seems to work.

The thing I was interested in knowing was,

what are the supported frequencies and where they are defined.

 

Best Regards

Domenico Acri

0 Kudos