Display and Modification of LVDS Display Interface on AM62x Development Board

TI AM62x Single board computer LVDS

1. LVDS Interface Specification

Forlinx Embedded OK6254-C development board provides 2 x 4-lane LVDS display serial interfaces supporting up to 1.19Gbps per lane; the maximum resolution supported by a single LVDS interface is WUXGA (1920 x 1200@60fps, 162MHz pixel clock).

In addition, the interface supports the following three output modes:

  • (1) Single-channel LVDS output mode: at this time, only 1 x LVDS interface displays output;
  • (2) 2x single-channel LVDS (copy) output mode: in this mode, 2 x LVDS display and output the same content;
  • (3) Dual LVDS output mode: 8-lane data and 2-lane clock form the same display output channel.Forlinx Embedded OK6254-C development board is equipped with dual asynchronous channels (8 data, 2 clocks), supporting 1920x1200@60fps. All signals are by default compatible with Forlinx Embedded's 10.1-inch LVDS screen, with a resolution of 1280x800@60fps.

2. Output Mode Setting

(1) Single LVDS output mode:

We need a single LVDS screen cable. The black port of the cable is connected to the embedded OK6254-C development board, and the white port is connected to the embedded 10.1-inch LVDS display screen. Connection method as shown in the figure below:

TI AM62x Single board computer Single LVDS output mode

Note that the red line section corresponds to the triangle position, so don't plug it in wrong.

TI AM62x sbc red line section corresponds to the triangle position

(2) 2x single LVDS (duplicate) output mode:

This mode uses the same connections as the Single LVDS Output Mode. Two white ports link to two 10.1-inch LVDS screens from Forlinx Embedded, and a black port on the right connects to the OK6254-C board's LVDS interface for dual-screen display.

TI AM62x sbc single LVDS (duplicate) output mode

(3) Dual LVDS output mode:

The maximum resolution supported by a single LVDS interface on the OK6254-C development board is WUXGA (1920 x 1200@60fps). To achieve this high-resolution display output, dual LVDS output mode is required.

It is worth noting that the connection between the development board and the screen in this mode is the same as in [Single LVDS Output Mode], but the LVDS cable's and the screen's specifications have been improved.

3. Screen Resolution Changing Method

OK6254-C development board device tree is easy to modify, we need to open the OK6254-C-lvds.dts (single 8-way configuration) and OK6254-C-lvds-dual.dts (dual 8-way configuration) files.

Open OK6254-C-lvds.dts

Open OK6254-C-lvds

Open OK6254-C-lvds-dual.dts

Open OK6254-C-lvds-dual

The above figure is the single LVDS and dual LVDS screen resolution information, the default resolution of 1024 * 600, and the maximum resolution support of 1920x1200, you can modify the corresponding parameters according to the Screen User’s Manual.

4. Compilation Configuration

Because we only modified the device tree, we don't need a full compilation. After compiling the kernel, a new Image and multiple device tree files will be generated in the images directory. Here we only need to compile the kernel separately.

  • (1) Switch directory: cd OK6254-linux-sdk/
  • (2) Execution environment variables:.. build.sh
  • (3) Execute the instructions that compile the kernel separately: sudo./build. Sh kernel.
  • (4) Pack all the device tree files to the development board /boot/ directory and replace them, then sync save and reboot scp images/OK6254-C* [email protected]:/boot/

We have modified the corresponding file. How should we select the screen after replacing it?
At present, there are three kinds of screen switching control methods: kernel device tree designation, Uboot menu dynamic control, Forlinx Desktop interface and Uboot menu application. Today, I will briefly introduce the dynamic control of Uboot menu.

During Uboot, pressing the space bar will take you to the Uboot menu. There are three options in the menu:

Enter 0 to enter the Uboot command line;

Enter 1 to restart Uboot;

Enter 2 to enter the Display Configuration menu.

Display and Modification of LVDS Display Interface on AM62x Development Board

There are three options in the menu:

Enter 0 to return to the previous menu;

Enter 1 will toggle what option 1 displays to configure Screen 1 LVDS; Note: Screen 1 supports single LVDS, dual LVDS, and off (i.e., LVDS off)

Enter 2 to toggle the display of option 2 to configure the Screen 2 LCD. Note: Screen 2 supports 1024 * 600 resolution LCD screen, 800 * 480 resolution LCD screen and off (i.e. RGB off)

When selecting the LVDS screen, we enter 1 to select single 8-channel LVDS or dual 8-channel LVDS.

Display and Modification of LVDS Display Interface on AM62x Development Board

After selecting the desired configuration, enter 0 to return to the previous menu level. Restart Uboot or enter the command line to start the system, which can make the screen settings take effect. For other resolution screens, please modify the kernel device tree screen parameters according to the screen parameter requirements.