MC13892 Digitizer Driver
i.MX51 EVK Linux Reference Manual
5-2
Freescale Semiconductor
The PMIC Digitizer Driver supports the following features for supporting a touch panel device:
•
Selects either a single ADC input channel or an entire group of input channels to be converted
•
Specifies high and low level thresholds for each ADC conversion
•
Starts an ADC conversion by issuing the appropriate start conversion command
•
Starts an ADC conversion immediately following the rising edge of the ADTRIG input line or after
a predefined delay following the rising edge
•
Enable/disables hardware interrupts for all ADC-related event notifications
•
Provides an interrupt handler routine that receives and properly handles all ADC
end-of-conversion or exceeded high/low level threshold event notifications
•
Other device drivers register/deregister additional callback functions to provide custom handling
of all ADC-related event notifications
•
Provides a read-only device interface for passing touchpanel (X,Y) coordinates and pressure
measurements to applications
•
Provides the ability to read out one or more ADC conversion results
•
Implements the appropriate input scaling equations so that the ADC results are correct
•
Specifies the delay between successive ADC conversion operations, if supported by the PMIC. For
PMIC chips that do not support this feature, the device driver returns a NOT_SUPPORTED status
•
Provides support for a pulse generator that is synchronized with the ADC conversion. For PMIC
chips that do not support this feature, returns a NOT_SUPPORTED status
•
Provides a complete IOCTL interface to initiate an ADC conversion operation and to return the
conversion results
•
Provides support for a polling method to detect when the ADC conversion has been completed
This digitizer driver is not responsible for any additional ADC-related activities such as battery level or
USB ID handling. Such functions are handled by other PMIC-related device drivers. Also, this device
driver is not responsible for SPI bus arbitration configuration. The appropriate arbitration settings that are
required in order for this device driver to work properly are expected to have been set during the system
boot process.
5.2
Software Operation
Most of the required operations for this device driver simply involve writing the correct configuration
settings to the appropriate PMIC control registers. This can be done by using the APIs that are provided
with the PMIC protocol driver.
Once an ADC conversion has been started, suspend the calling thread until the conversion has been
completed. Avoid using a busy loop since this negatively impacts processor and overall system
performance. Instead, the use of a wait queue offers a much better solution. Therefore, any potentially
time-consuming operations results in the calling thread being placed into a wait queue until the operation
is completed.
The PMIC ADC conversion can take a significant amount of time. The delay between a start of conversion
request and a conversion completed event may even be open ended, if the conversion is not started until
the appropriate external trigger signal is received. Therefore, all ADC conversion requests must be placed
Summary of Contents for i.MX51 EVK
Page 1: ...Part Number 924 76374 Rev 10 11 01 11 2010 i MX51 EVK Linux Reference Manual...
Page 14: ...i MX51 EVK Linux Reference Manual xiv Freescale Semiconductor...
Page 18: ...i MX51 EVK Linux Reference Manual xviii Freescale Semiconductor...
Page 24: ...i MX51 EVK Linux Reference Manual xxiv Freescale Semiconductor...
Page 38: ...Machine Specific Layer MSL i MX51 EVK Linux Reference Manual 2 8 Freescale Semiconductor...
Page 52: ...MC13892 Digitizer Driver i MX51 EVK Linux Reference Manual 5 4 Freescale Semiconductor...
Page 64: ...TV Encoder TVE Driver i MX51 EVK Linux Reference Manual 10 4 Freescale Semiconductor...
Page 82: ...Video for Linux Two V4L2 Driver i MX51 EVK Linux Reference Manual 12 8 Freescale Semiconductor...
Page 86: ...i MX5 Dual Display i MX51 EVK Linux Reference Manual 13 4 Freescale Semiconductor...
Page 100: ...X Windows Acceleration i MX51 EVK Linux Reference Manual 16 6 Freescale Semiconductor...
Page 118: ...Low Level Keypad Driver i MX51 EVK Linux Reference Manual 20 6 Freescale Semiconductor...
Page 134: ...Security Drivers i MX51 EVK Linux Reference Manual 22 10 Freescale Semiconductor...
Page 148: ...Inter IC I2C Driver i MX51 EVK Linux Reference Manual 24 4 Freescale Semiconductor...
Page 178: ...ARC USB Driver i MX51 EVK Linux Reference Manual 29 10 Freescale Semiconductor...
Page 194: ...OProfile i MX51 EVK Linux Reference Manual 33 6 Freescale Semiconductor...