<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/input/touchscreen/cyttsp5.c, branch v6.3</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.3</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.3'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2023-04-14T06:44:12+00:00</updated>
<entry>
<title>Input: cyttsp5 - fix sensing configuration data structure</title>
<updated>2023-04-14T06:44:12+00:00</updated>
<author>
<name>hrdl</name>
<email>git@hrdl.eu</email>
</author>
<published>2023-04-14T06:41:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5dc63e56a9cf8df0b59c234a505a1653f1bdf885'/>
<id>urn:sha1:5dc63e56a9cf8df0b59c234a505a1653f1bdf885</id>
<content type='text'>
Prior to this patch, the sensing configuration data was not parsed
correctly, breaking detection of max_tch. The vendor driver includes
this field. This change informs the driver about the correct maximum
number of simultaneous touch inputs.

Tested on a Pine64 PineNote with a modified touch screen controller
firmware.

Signed-off-by: hrdl &lt;git@hrdl.eu&gt;
Reviewed-by: Alistair Francis &lt;alistair@alistair23.me&gt;
Link: https://lore.kernel.org/r/20230411211651.3791304-1-git@hrdl.eu
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: cyttsp5 - fix bitmask for touch buttons</title>
<updated>2023-02-04T00:59:15+00:00</updated>
<author>
<name>Richard Kjerstadius</name>
<email>kjerstadius@gmail.com</email>
</author>
<published>2023-02-04T00:57:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0424931431b5d593e602ec9c3ed35a34811d30d2'/>
<id>urn:sha1:0424931431b5d593e602ec9c3ed35a34811d30d2</id>
<content type='text'>
Prior to this patch, the bitmask ends up being 0x3, as opposed to 0x1
which likely was the intention. The erroneous bit results in the driver
reporting 2 different button activations in designs with 2 or more
buttons.

To detect which button has been pressed, cyttsp5_btn_attention() uses a
for loop to iterate through the input buffer, while shifting and
applying a bitmask to determine the state for each button.
Unfortunately, when the bitmask is 0x3 and there are multiple buttons,
this procedure falls apart.

Consider a design with 3 buttons. Pressing the third button will result
in a call to cyttsp5_btn_attention() with the input buffer containing
0x4 (binary 0100). In the first iteration of the for loop cur_btn_state
will be:

(0x4 &gt;&gt; 0 * 1) &amp; 0x3 = 0x4 &amp; 0x3 = 0x0

This is correct. However, in the next iteration this happens:

(0x4 &gt;&gt; 1 * 1) &amp; 0x3 = 0x2 &amp; 0x3 = 0x2

Which means that a key event for key 1 is generated, even though it's
not really active. In the third iteration, the loop detects the button
that was actually pressed:

(0x4 &gt;&gt; 2 * 1) &amp; 0x3 = 0x1 &amp; 0x3 = 0x1

This key event is the only one that should have been detected, but it is
accompanied by the preceding key. Ensuring the applied mask is 0x1
solves this problem.

Signed-off-by: Richard Kjerstadius &lt;richard.kjerstadius@teledyne.com&gt;
Reviewed-by: Alistair Francis &lt;alistair@alistair23.me&gt;
Link: https://lore.kernel.org/r/20230127102903.3317089-1-richard.kjerstadius@teledyne.com
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: cyttsp5: Convert to i2c's .probe_new()</title>
<updated>2022-12-02T22:53:44+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2022-11-18T22:39:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=eebf2bf1f591fd23d03958743da28415ea975281'/>
<id>urn:sha1:eebf2bf1f591fd23d03958743da28415ea975281</id>
<content type='text'>
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Link: https://lore.kernel.org/r/20221118224540.619276-236-uwe@kleine-koenig.org
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: Add driver for Cypress Generation 5 touchscreen</title>
<updated>2022-11-01T14:57:33+00:00</updated>
<author>
<name>Alistair Francis</name>
<email>alistair@alistair23.me</email>
</author>
<published>2022-10-31T23:36:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5b0c03e24a061f9c9e8b28fa157b80990c559a37'/>
<id>urn:sha1:5b0c03e24a061f9c9e8b28fa157b80990c559a37</id>
<content type='text'>
This is the basic driver for the Cypress TrueTouch Gen5 touchscreen
controllers. This driver supports only the I2C bus but it uses regmap
so SPI support could be added later.
The touchscreen can retrieve some defined zone that are handled as
buttons (according to the hardware). That is why it handles
button and multitouch events.

Reviewed-by: Maxime Ripard &lt;maxime.ripard@bootlin.com&gt;
Signed-off-by: Mylène Josserand &lt;mylene.josserand@bootlin.com&gt;
Signed-off-by: Alistair Francis &lt;alistair@alistair23.me&gt;
Tested-by: Andreas Kemnade &lt;andreas@kemnade.info&gt; # Kobo Clara HD
Tested-by: Peter Geis &lt;pgwipeout@gmail.com&gt;
Link: https://lore.kernel.org/r/20221026114908.191472-2-alistair@alistair23.me
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
</feed>
