There is a known issue with the device tree in the BSP-Yocto-TISDK-AM65xx-ALPHA1 release where the LCD-018 display is not properly enabled. Please see the Known Issues page for more information and a workaround.
The phyCORE-AM65x Carrier Board provides support for an OLDI LVDS display through the connector X24, which is comprised of an LVDS signal connector (white) and a power connector (red). These connectors support various PHYTEC LCDs, such as the LCD-018-070-KAP.
The development kit also provides a touch controller (STMPE811) at U39 and interfaces the resistive touch panel typically integrated into an LCD. Communication to and from this touch controller is accomplished with I2C and its device address which is configurable via the J8 jumper.
See the end of this guide for further information regarding advanced touch controller configurations.
This guide explains how to connect an OLDI LVDS display to the phyCORE-AM65x development kit and access it in Linux.
- Display LCD-018-070-KAP
Setting up the Display
- There is a switch labeled "S1" on the back of LCD-018 where the backlight can be set to either: "always on", "always off", "PWM", or "potentiometer" (there is a potentiometer on the display labeled R30). In order to control the backlight via the phyCORE-AM65x as described in this guide, this switch needs to be set to PWM which corresponds to | off | off | on | off |.
Display Switch S1
- There is a switch labeled "S2" on the back of the LCD-018 that specifies the I2C address of the EEPROM onboard the display. To ensure the address of the display EEPROM doesn't conflict with any other devices on the same bus (RTC and EEPROM on the SOM) this switch needs to be set to | on | on | off | on |.
Display Switch S2
- With the board powered off, connect the display to the connector on the phyCORE-AM65x Carrier Board as shown in the picture.
- Power on the phyCORE-AM65x and boot into Linux. (You may need to calibrate the LCD). An application will start.
Controlling Display Backlight
The backlight brightness of the display is controlled by a PWM and can be configured via Linux sysfs.
Read current brightness: (Expected output is a numeric value between 0-7)
Set "brightness" to values 0-7, with 7 being the brightest. For example:
Set bl_power to turn backlight off/on. Valid values are 0-4:
0 = FB_BLANK_UNBLANK backlight fully enabled 1 = FB_BLANK_NORMAL 2 = FB_BLANK_VSYNC_SUSPEND 3 = FB_BLANK_HSYNC_SUSPEND 4 = FB_BLANK_POWERDOWN backlight powered down
Use the following command to check the state of the backlight:
The backlight is on by default:
Poweroff the display:
Power the display back on:
Not seeing the display brightness change? Ensure you have the switch "S1" correctly set on the back of the LCD. See the above warning regarding the display switch settings.
The LCD-018 has an onboard capacitive touch screen controller that is controlled by the phyCORE-AM65x via I2C. You can use the touchscreen to interact with the application running on the display. This section provides some additional information on the touchscreen implementation in Linux.
By default, input0 corresponds with the touchscreen controller in the phyCORE-AM65x Linux BSP. However, if additional input devices have been added, this could be different. Confirm that the name of input0 matches the touchscreen controller's with the following command:
We can see here that the name of the input0 interface is named "EP0700M09".
Use the input-events command to print out additional information when the touch screen is pressed:
Use CTRL + C to cancel the print command
Touch Controller Solder Jumper Configurations
|1+2 (Default)||Sets the U39 LVDS Touch Controller I2C address to 0x82|
2019-07-02_20-10-32_Display Connectivity (X24)
|2+3||Sets the U39 LVDS Touch Controller I2C address to 0x88|