Difference between revisions of "ETRA SOM/ETRA Evaluation Kit/Interfaces and Connectors/Touchscreen"

From DAVE Developer's Wiki
Jump to: navigation, search
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
! colspan="4" style="width:100%; text-align:left" ; border-bottom:solid 2px #ededed" |History
 
! colspan="4" style="width:100%; text-align:left" ; border-bottom:solid 2px #ededed" |History
 
|-  
 
|-  
 +
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Version
 
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Issue Date
 
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Issue Date
 
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes
 
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes
 
|-
 
|-
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |{{oldid|12508|2021/01/11}}
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |1.0.0
 +
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |Dec 2020
 
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |First Release
 
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |First Release
 
|-
 
|-
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |2023/09/01
 
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |Add USB touchscreen
 
 
|-
 
|-
 
|}
 
|}
Line 20: Line 20:
 
=== Description  ===
 
=== Description  ===
  
The Touchscreen interface is available on USB or I2C interface connectors.
+
The Touchscreen interface is available on the Evaluation Kit at the connector ''J20''
  
ETRA Evaluation Kit uses, by default, the USB interface for connecting the touchscreen controller. Anyway, the I2C interface is available too and - optionally - can be activated in the device tree for enabling the I2C touch controller driver.
+
''J20'' is a 6 pin ''Molex PicoBlade'' connector for the I2C and control signals needed by most of the capacitive TSC.
  
=== USB touchscreen ===
+
This interface can be configured to work with 3.3V (default) or 5V power and signal levels.
 
 
The USB OTG port - available on J16 connector - is configured as USB Host controller for driving the touchscreen. For this purpose, it is required to enable the <code>USB OTG ID</code> signals a low. This can be possible using the S1.4 DIP switch which forces the ID signal as low:
 
 
 
[[File:ETRA-EVK-USB-touchscreen.png|thumb|center|300px|Touchscreen connector]]
 
  
[[File:ETRA_EVK-S1.4-USB_OTG_ID.png|thumb|center|300px|USB OTG ID set to low]]
 
 
=== I2C touchscreen ===
 
 
The I2C touchscreen interface is available on the Evaluation Kit at the connector J20. J20 is a 6-pin Molex PicoBlade connector for the I2C and control signals needed by most of the capacitive TSC.
 
 
This interface can be configured to work with 3.3V (default) or 5V power and signal levels.
 
  
[[File:ETRA-EVK-I2C-touchscreen.png|thumb|center|500px|Touchscreen connector]]
+
[[File:{{{nome-som}}-EVB-Touchscreen-connector.png|thumb|center|500px|Touchscreen connector]]
  
====Signals ====
+
===Signals ===
  
 
The following table describes the interface signals:
 
The following table describes the interface signals:
Line 95: Line 84:
 
=== Device usage ===
 
=== Device usage ===
  
The simplest tools for touch screen management are the <code>tslib</code> library and <code>ts_tools</code> utilities. To calibrate the touch screen, the <code>ts_calibrate</code> command line tool is available. After calibration, the touch screen can be tested using the graphical <code>ts_test</code> utility or the <code>ts_print</code> command line tool.
+
The simplest tools for touch screen management are the tslib library and ts_tools utilities. To calibrate the touch screen, the <code>ts_calibrate</code> command line tool is available. After calibration, the touch screen can be tested using the graphical <code>ts_test</code> utility or the <code>ts_print</code> command line tool.
  
 
----
 
----
  
 
[[Category:ETRA]]
 
[[Category:ETRA]]

Revision as of 15:20, 31 December 2020

History
Version Issue Date Notes
1.0.0 Dec 2020 First Release


Touchscreen interface[edit | edit source]

Description[edit | edit source]

The Touchscreen interface is available on the Evaluation Kit at the connector J20

J20 is a 6 pin Molex PicoBlade connector for the I2C and control signals needed by most of the capacitive TSC.

This interface can be configured to work with 3.3V (default) or 5V power and signal levels.


[[File:{Template:Nome-som-EVB-Touchscreen-connector.png|thumb|center|500px|Touchscreen connector]]

Signals[edit | edit source]

The following table describes the interface signals:

Pin# SOM Pin# Pin name Pin function Pin Notes
1 - DGND Ground
2 J18.48 TOUCH_SDA I2C_SDA
3 J18.38 TOUCH_SCL I2C_SCL
4 J18.101 TOUCH_VDD TSC power powered through a control switch
5 J18.201 TOUCH_INT TSC interrupt input
6 J18.199 TOUCH_RES TSC reset output

Device mapping[edit | edit source]

The device is typically mapped to /dev/touchscreen0 device in Linux.

The touch controller is attached to the generic Linux input event interface (evdev).

Device usage[edit | edit source]

The simplest tools for touch screen management are the tslib library and ts_tools utilities. To calibrate the touch screen, the ts_calibrate command line tool is available. After calibration, the touch screen can be tested using the graphical ts_test utility or the ts_print command line tool.