Difference between revisions of "IoTGateway/BSP/Linux/AM335x/V2/Hardware module/LCD Module"

From ESS-WIKI
Jump to: navigation, search
(Created page with "= LVDS timing setting on SDK version 1 = *Add timing structure into dispaly driver LDB-XGA is an example for the resolution of your LVDS panel. You can input the actual reso...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
= LVDS timing setting on SDK version 1 =
+
{{DISPLAYTITLE:Display Module}} [[IoTGateway/BSP/Linux/AM335x/Hardware_module|<font style="background-color:yellow"><big><big>→Hardware Module</big></big></font>]]
  
*Add timing structure into dispaly driver
+
__TOC__
  
LDB-XGA is an example for the resolution of your LVDS panel. You can input the actual resolution of your LVDS panel here, such as 800x480, 1024x768, etc. The system will accomplish the corresponding parameters automatically. If the panel has problem to be activated, you may need to check the panel datasheet to configure the panel related parameters. The LVDS video mode database is stored in linux-3.2.0/drivers/video/da8xx-fb.c. You can add a new one for your LVDS panel.
+
= display timing setting on SDK =
<pre>static struct da8xx_panel known_lcd_panels[] = {
 
{
 
.name = "TFC_S9700RTWV35TR_01B",
 
.width = 800,
 
.height = 480,
 
.hfp = 127,
 
.hbp = 127,
 
.hsw = 2,
 
.vfp = 22,
 
.vbp = 22,
 
.vsw = 1,
 
.pxl_clk = 20000000,
 
.invert_pxl_clk = 0,
 
},
 
}
 
</pre>
 
  
The definition of da8xx_panel in linux-3.2.0/ drivers/video/da8xx-fb.c: The name field is optional. If you input this value, it can be used in U-Boot environment settings. The refresh field is the screen refresh frame rate, such as 60Hz, 70Hz. The resolution can be filled in the xres & yres fields. The pixel clock (pixclock) is equaled to 10ʌ12 /(Total horizontal line * Total vertical line * DCLK). For example, the total horizontal line is 1344 DCLK, and total vertical number is 806 horizontal lines. The frame rate is 60 MHz. Therefore, we can get 10 12 /(1344*806*60) = 15385.<br/>The margin values can be seen as front porch & back porch.<br/>The sync_len means pulse width.<br/>The sync value indicates the sync polarity (low or high).
+
If you want to select or change the type of LVDS panel, please set the parameter of "native-mode" in linux-4.1.6+gitAUTOINC+52c4aa7cdb-g52c4aa7/arch/arm/boot/dts/am335x-rsb4221.dts file to your panel parameter, which is shown as below:
<pre>struct da8xx_panel {
+
<pre>display-timings {
const char
+
native-mode = <&timing2>;
name[25];
+
...
/* Full name <vendor>_<model> */
+
...
unsigned short width;
+
timing2: 1360x768 {
unsigned short height;
+
hactive = <1024>;
int      hfp;  /* Horizontal front porch*/
+
vactive = <768>;
int      hbp;  /* Horizontal back porch*/
+
hback-porch = <120>;
int      hsw; /* Horizontal Sync Pulse Width*/
+
hfront-porch = <120>;
int      vfp; /* Vertical front porch*/
+
hsync-len = <104>;
int      vbp; /* Vertical back porch*/
+
vback-porch = <20>;
int      vsw; /* ertical Sync Pulse Width*/
+
vfront-porch = <20>;
unsigned int pxl_clk; /* Pixel clock*/
+
vsync-len = <1>;
unsigned charinvert_pxl_clk; /* Invert Pixel clock */
+
clock-frequency = <60000000>;
 +
hsync-active = <0>;
 +
vsync-active = <0>;
 +
};
 
};
 
};
 
</pre>
 
</pre>
  
*Select the suitable panel timing
+
<span id="result_box" lang="en"><span></span></span>For the meaning of each attribute, refer to the “Documentation/devicetree/bindings/video/display-timing.txt” file in the source code
 
 
LVDS (Single) out, please set in u-boot as below:
 
 
 
'''7’’ panle '''(TFC_S9700RTWV35TR_01B):
 
<pre>setenv mmcargs "run bootargs_defaults;setenv bootargs ${bootargs} console=${console} root=${mmcroot} rootfstype=${mmcrootfstype} ip=${ip_method} lvds_panel=TFC_S9700RTWV35TR_01B"
 
</pre>
 
 
 
'''15’’ panle '''(INNOLUX_G150XGE_L04):
 
<pre>setenv mmcargs "run bootargs_defaults;setenv  bootargs ${bootargs} console=${console} root=${mmcroot} rootfstype=${mmcrootfstype} ip=${ip_method} lvds_panel=INNOLUX_G150XGE_L04"
 
</pre>
 
 
 
'''18’’ panle '''(AUO_G185XW01_V1):
 
<pre>setenv mmcargs "run bootargs_defaults;setenv bootargs ${bootargs}  console=${console} root=${mmcroot} rootfstype=${mmcrootfstype} ip=${ip_method} lvds_panel=AUO_G185XW01_V1"
 
</pre>
 

Latest revision as of 04:42, 8 February 2017

→Hardware Module

display timing setting on SDK

If you want to select or change the type of LVDS panel, please set the parameter of "native-mode" in linux-4.1.6+gitAUTOINC+52c4aa7cdb-g52c4aa7/arch/arm/boot/dts/am335x-rsb4221.dts file to your panel parameter, which is shown as below:

display-timings {
native-mode = <&timing2>;
...
...
timing2: 1360x768 {
hactive = <1024>;
vactive = <768>;
hback-porch = <120>;
hfront-porch = <120>;
hsync-len = <104>;
vback-porch = <20>;
vfront-porch = <20>;
vsync-len = <1>;
clock-frequency = <60000000>;
hsync-active = <0>;
vsync-active = <0>;
};
};

For the meaning of each attribute, refer to the “Documentation/devicetree/bindings/video/display-timing.txt” file in the source code