Display Output Setting

From ESS-WIKI
Revision as of 04:56, 10 December 2018 by Zhengguang.yang (talk | contribs) (remove some display parameters)
Jump to: navigation, search

Execute the following instructions, then you will see the video demo on the default display screen.

$ /etc/init.d/matrix-gui-2.0 stop
$ /etc/init.d/weston stop
$ gst-launch-1.0 playbin uri=file:///usr/share/ti/video/TearOfSteel-Short-1920x800.mov audio-sink="alsasink" video-sink="kmssink scale=true"

If you don't have EG-52 on the board, please test with the following instructions:

$ /etc/init.d/matrix-gui-2.0 stop
$ /etc/init.d/weston stop
$ gst-launch-1.0 filesrc location=/usr/share/ti/video/TearOfSteel-Short-1920x800.mov ! decodebin ! videoconvert ! kmssink

The default supported LVDS is Dual-Channel and 1920 × 1080 resolutions. If you want to support Single-Channel 7 inch screen, the modification is as follows:

1) Open the mux_rom7510a2.h header file found in {UBOOT}/board/ti/advantech/. Modify the pinmux of GPMC_CS0 from PIN_OUTPUT_PULLDOWN to PIN_OUTPUT_PULLUP

Original:

{GPMC_CS0, (M14 | PIN_OUTPUT_PULLDOWN)},/* gpmc_cs0.gpio2_19 */

Modified:

{GPMC_CS0, (M14 | PIN_OUTPUT_PULLUP)},/* gpmc_cs0.gpio2_19 */

2) Open the am57xx-rom7510a2.dts device tree file found in {LINUX}/arch/ arm/boot/dts/. Change the original panel-timing to panel-timing of 7 inch screen.

The following configuration is only used as a sample( The actual timings of the screen you used should be based on its datasheet):

panel-timing {
clock-frequency = <148500000

Original:

panel-timing {
clock-frequency = <148500000>;
hactive = <1920>;
vactive = <1080>;
hfront-porch = <24>;
hback-porch = <54>;
hsync-len = <12>;
vback-porch = <3>;
vfront-porch = <40>;
vsync-len = <7>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <1>;
pixelclk-active = <1>;
};

Modified:

panel-timing {
clock-frequency = <29500000>;
hactive = <800>;
vactive = <480>;
hfront-porch = <24>;
hback-porch = <96>;
hsync-len = <72>;
vback-porch = <3>;
vfront-porch = <10>;
vsync-len = <7>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <1>;
pixelclk-active = <1>;
};

 

Note:The voltage required for different screen backlighting is different, so you have to choose the appropriate backlight voltage. You can refer the detail jump information to select backlight voltage from ROMDB7502_User_Manual.