@@ -3,10 +3,26 @@ ALPS Touchpad Protocol
33
44Introduction
55------------
6-
7- Currently the ALPS touchpad driver supports four protocol versions in use by
8- ALPS touchpads, called versions 1, 2, 3, and 4. Information about the various
9- protocol versions is contained in the following sections.
6+ Currently the ALPS touchpad driver supports five protocol versions in use by
7+ ALPS touchpads, called versions 1, 2, 3, 4 and 5.
8+
9+ Since roughly mid-2010 several new ALPS touchpads have been released and
10+ integrated into a variety of laptops and netbooks. These new touchpads
11+ have enough behavior differences that the alps_model_data definition
12+ table, describing the properties of the different versions, is no longer
13+ adequate. The design choices were to re-define the alps_model_data
14+ table, with the risk of regression testing existing devices, or isolate
15+ the new devices outside of the alps_model_data table. The latter design
16+ choice was made. The new touchpad signatures are named: "Rushmore",
17+ "Pinnacle", and "Dolphin", which you will see in the alps.c code.
18+ For the purposes of this document, this group of ALPS touchpads will
19+ generically be called "new ALPS touchpads".
20+
21+ We experimented with probing the ACPI interface _HID (Hardware ID)/_CID
22+ (Compatibility ID) definition as a way to uniquely identify the
23+ different ALPS variants but there did not appear to be a 1:1 mapping.
24+ In fact, it appeared to be an m:n mapping between the _HID and actual
25+ hardware type.
1026
1127Detection
1228---------
@@ -20,9 +36,13 @@ If the E6 report is successful, the touchpad model is identified using the "E7
2036report" sequence: E8-E7-E7-E7-E9. The response is the model signature and is
2137matched against known models in the alps_model_data_array.
2238
23- With protocol versions 3 and 4, the E7 report model signature is always
24- 73-02-64. To differentiate between these versions, the response from the
25- "Enter Command Mode" sequence must be inspected as described below.
39+ For older touchpads supporting protocol versions 3 and 4, the E7 report
40+ model signature is always 73-02-64. To differentiate between these
41+ versions, the response from the "Enter Command Mode" sequence must be
42+ inspected as described below.
43+
44+ The new ALPS touchpads have an E7 signature of 73-03-50 or 73-03-0A but
45+ seem to be better differentiated by the EC Command Mode response.
2646
2747Command Mode
2848------------
@@ -47,6 +67,14 @@ address of the register being read, and the third contains the value of the
4767register. Registers are written by writing the value one nibble at a time
4868using the same encoding used for addresses.
4969
70+ For the new ALPS touchpads, the EC command is used to enter command
71+ mode. The response in the new ALPS touchpads is significantly different,
72+ and more important in determining the behavior. This code has been
73+ separated from the original alps_model_data table and put in the
74+ alps_identify function. For example, there seem to be two hardware init
75+ sequences for the "Dolphin" touchpads as determined by the second byte
76+ of the EC response.
77+
5078Packet Format
5179-------------
5280
@@ -187,3 +215,28 @@ There are several things worth noting here.
187215 well.
188216
189217So far no v4 devices with tracksticks have been encountered.
218+
219+ ALPS Absolute Mode - Protocol Version 5
220+ ---------------------------------------
221+ This is basically Protocol Version 3 but with different logic for packet
222+ decode. It uses the same alps_process_touchpad_packet_v3 call with a
223+ specialized decode_fields function pointer to correctly interpret the
224+ packets. This appears to only be used by the Dolphin devices.
225+
226+ For single-touch, the 6-byte packet format is:
227+
228+ byte 0: 1 1 0 0 1 0 0 0
229+ byte 1: 0 x6 x5 x4 x3 x2 x1 x0
230+ byte 2: 0 y6 y5 y4 y3 y2 y1 y0
231+ byte 3: 0 M R L 1 m r l
232+ byte 4: y10 y9 y8 y7 x10 x9 x8 x7
233+ byte 5: 0 z6 z5 z4 z3 z2 z1 z0
234+
235+ For mt, the format is:
236+
237+ byte 0: 1 1 1 n3 1 n2 n1 x24
238+ byte 1: 1 y7 y6 y5 y4 y3 y2 y1
239+ byte 2: ? x2 x1 y12 y11 y10 y9 y8
240+ byte 3: 0 x23 x22 x21 x20 x19 x18 x17
241+ byte 4: 0 x9 x8 x7 x6 x5 x4 x3
242+ byte 5: 0 x16 x15 x14 x13 x12 x11 x10
0 commit comments