AnsweredAssumed Answered

IMX6SX LCD TFT spi

Question asked by LPs on Feb 10, 2016
Latest reply on Feb 10, 2016 by igorpadykov

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.

Outcomes