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

From ESS-WIKI
Jump to: navigation, search
 
Line 5: Line 5:
 
= display timing setting on SDK =
 
= 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:  
+
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>display-timings {
 
<pre>display-timings {
 
native-mode = <&timing2>;
 
native-mode = <&timing2>;
Line 26: Line 26:
 
</pre>
 
</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).
+
<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

Latest revision as of 03: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