IMX6SX LCD TFT spi

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

IMX6SX LCD TFT spi

1,409 Views
LPs
Contributor III

Hi all,

I'm struggling understanding the management of LCD with LCDIF.

I inited lcdif with DTB as follows

&lcdif1 {

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_lcdif_dat

      &pinctrl_lcdif_ctrl>;

  lcd-supply = <&reg_lcd_3v3>;

  display = <&display0>;

  status = "okay";

  display0: display {

  bits-per-pixel = <24>;

  bus-width = <24>;

  display-timings {

  native-mode = <&timing0>;

  timing0: timing0 {

  clock-frequency = <6500000>;

  hactive = <320>;

  vactive = <240>;

  hback-porch = <75>;

  hfront-porch = <22>;z

  vback-porch = <18>;

  vfront-porch = <4>;

  hsync-len = <10>;

  vsync-len = <10>;

  hsync-active = <0>;

  vsync-active = <0>;

  de-active = <0>;

  pixelclk-active = <1>;

  };

  };

  };

};

My display woks and display linux splash screen and I'm able to launch my Qt application.

My display controller is HX8238-D. It has spi serial line that is need to set some parameters.

Questions are:

  1. Is it mandatory to set parameters through spi channel?
  2. Can I set it by dtb?
  3. If yes where I can find the lcd spi driver?

Thank you in advance.

0 Kudos
1 Reply

791 Views
igorpadykov
NXP Employee
NXP Employee

Hi LPs

1. if it works fine with default lcd parameters, seems it is not necessary

2. I believe it can be set in board init file

3. suggest to ask driver from lcd vendor

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------