[PATCH v4 4/9] Input: atmel_mxt_ts - output diagnostic debug via v4l2 device

2016-06-17 Thread Nick Dyer
Register a video device to output T37 diagnostic data. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/Kconfig| 6 +- drivers/input/touchscreen/atmel_mxt_ts.c | 244 +++ 2 files changed, 248 insertions(+), 2 deletions(-)

[PATCH v4 4/9] Input: atmel_mxt_ts - output diagnostic debug via v4l2 device

2016-06-17 Thread Nick Dyer
Register a video device to output T37 diagnostic data. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/Kconfig| 6 +- drivers/input/touchscreen/atmel_mxt_ts.c | 244 +++ 2 files changed, 248 insertions(+), 2 deletions(-) diff --git a/drivers/input

[PATCH v4 0/9] Output raw touch data via V4L2

2016-06-17 Thread Nick Dyer
This is a series of patches to add output of raw touch diagnostic data via V4L2 to the Atmel maXTouch and Synaptics RMI4 drivers. It's a rewrite of the previous implementation which output via debugfs: it now uses a V4L2 device in a similar way to the sur40 driver. We have a utility which can

[PATCH v4 8/9] Input: atmel_mxt_ts - add support for reference data

2016-06-17 Thread Nick Dyer
There are different datatypes available from a maXTouch chip. Add support to retrieve reference data as well. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 58 1 file changed, 51 insertions(+), 7 del

[PATCH v4 0/9] Output raw touch data via V4L2

2016-06-17 Thread Nick Dyer
This is a series of patches to add output of raw touch diagnostic data via V4L2 to the Atmel maXTouch and Synaptics RMI4 drivers. It's a rewrite of the previous implementation which output via debugfs: it now uses a V4L2 device in a similar way to the sur40 driver. We have a utility which can

[PATCH v4 8/9] Input: atmel_mxt_ts - add support for reference data

2016-06-17 Thread Nick Dyer
There are different datatypes available from a maXTouch chip. Add support to retrieve reference data as well. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 58 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/drivers/input

[PATCH v4 5/9] Input: atmel_mxt_ts - read touchscreen size

2016-06-17 Thread Nick Dyer
The touchscreen may have a margin where not all the matrix is used. Read the parameters from T9 and T100 and take account of the difference. Note: this does not read the XORIGIN/YORIGIN fields so it assumes that the touchscreen starts at (0,0) Signed-off-by: Nick Dyer <nick.d...@itdev.co

[PATCH v4 6/9] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-06-17 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/input/touch

[PATCH v4 5/9] Input: atmel_mxt_ts - read touchscreen size

2016-06-17 Thread Nick Dyer
The touchscreen may have a margin where not all the matrix is used. Read the parameters from T9 and T100 and take account of the difference. Note: this does not read the XORIGIN/YORIGIN fields so it assumes that the touchscreen starts at (0,0) Signed-off-by: Nick Dyer --- drivers/input

[PATCH v4 6/9] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-06-17 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers

[PATCH v4 2/9] [media] v4l2-core: Add VFL_TYPE_TOUCH_SENSOR

2016-06-17 Thread Nick Dyer
Some touch controllers send out raw touch data in a similar way to a greyscale frame grabber. Add a new device type for these devices. Use a new device prefix v4l-touch for these devices, to stop generic capture software from treating them as webcams. Signed-off-by: Nick Dyer <nic

[PATCH v4 7/9] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-06-17 Thread Nick Dyer
The mXT1386 family of chips have a different architecture which splits the diagnostic data into 3 columns. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-)

[PATCH v4 2/9] [media] v4l2-core: Add VFL_TYPE_TOUCH_SENSOR

2016-06-17 Thread Nick Dyer
Some touch controllers send out raw touch data in a similar way to a greyscale frame grabber. Add a new device type for these devices. Use a new device prefix v4l-touch for these devices, to stop generic capture software from treating them as webcams. Signed-off-by: Nick Dyer --- drivers/input

[PATCH v4 7/9] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-06-17 Thread Nick Dyer
The mXT1386 family of chips have a different architecture which splits the diagnostic data into 3 columns. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/drivers/input

[PATCH v4 3/9] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-06-17 Thread Nick Dyer
Atmel maXTouch devices have a T37 object which can be used to read raw touch deltas from the device. This consists of an array of 16-bit integers, one for each node on the touchscreen matrix. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/Kconfig

[PATCH v4 3/9] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-06-17 Thread Nick Dyer
Atmel maXTouch devices have a T37 object which can be used to read raw touch deltas from the device. This consists of an array of 16-bit integers, one for each node on the touchscreen matrix. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/Kconfig| 6 ++ drivers/input

[PATCH v4 9/9] Input: synaptics-rmi4 - add support for F54 diagnostics

2016-06-17 Thread Nick Dyer
Function 54 implements access to various RMI4 diagnostic features. This patch adds support for retrieving this data. It registers a V4L2 device to output the data to user space. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/rmi4/Kconfig | 11 + drivers/inpu

[PATCH v4 1/9] [media] Add signed 16-bit pixel format

2016-06-17 Thread Nick Dyer
This will be used for output of raw touch delta data. This format is used by Atmel maXTouch (atmel_mxt_ts) and also Synaptics RMI4. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- Documentation/DocBook/media/v4l/pixfmt-ys16.xml | 79 + Documentation/DocBook/med

[PATCH v4 9/9] Input: synaptics-rmi4 - add support for F54 diagnostics

2016-06-17 Thread Nick Dyer
Function 54 implements access to various RMI4 diagnostic features. This patch adds support for retrieving this data. It registers a V4L2 device to output the data to user space. Signed-off-by: Nick Dyer --- drivers/input/rmi4/Kconfig | 11 + drivers/input/rmi4/Makefile | 1

[PATCH v4 1/9] [media] Add signed 16-bit pixel format

2016-06-17 Thread Nick Dyer
This will be used for output of raw touch delta data. This format is used by Atmel maXTouch (atmel_mxt_ts) and also Synaptics RMI4. Signed-off-by: Nick Dyer --- Documentation/DocBook/media/v4l/pixfmt-ys16.xml | 79 + Documentation/DocBook/media/v4l/pixfmt.xml | 1

Re: [PATCH v3 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-06-13 Thread Nick Dyer
On 02/06/2016 16:14, Nick Dyer wrote: > On 01/06/2016 19:17, Dmitry Torokhov wrote: >> On Wed, Jun 01, 2016 at 05:39:44PM +0100, Nick Dyer wrote: >>> This is a series of patches to add diagnostic data support to the Atmel >>> maXTouch driver. It's a rewrite of the pr

Re: [PATCH v3 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-06-13 Thread Nick Dyer
On 02/06/2016 16:14, Nick Dyer wrote: > On 01/06/2016 19:17, Dmitry Torokhov wrote: >> On Wed, Jun 01, 2016 at 05:39:44PM +0100, Nick Dyer wrote: >>> This is a series of patches to add diagnostic data support to the Atmel >>> maXTouch driver. It's a rewrite of the pr

Re: [PATCH v3 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-06-02 Thread Nick Dyer
Hi Dmitry- On 01/06/2016 19:17, Dmitry Torokhov wrote: > On Wed, Jun 01, 2016 at 05:39:44PM +0100, Nick Dyer wrote: >> This is a series of patches to add diagnostic data support to the Atmel >> maXTouch driver. It's a rewrite of the previous implementation which output >> v

Re: [PATCH v3 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-06-02 Thread Nick Dyer
Hi Dmitry- On 01/06/2016 19:17, Dmitry Torokhov wrote: > On Wed, Jun 01, 2016 at 05:39:44PM +0100, Nick Dyer wrote: >> This is a series of patches to add diagnostic data support to the Atmel >> maXTouch driver. It's a rewrite of the previous implementation which output >> v

[PATCH v3 3/8] [media] v4l2-core: Add VFL_TYPE_TOUCH_SENSOR

2016-06-01 Thread Nick Dyer
Some touch controllers send out raw touch data in a similar way to a greyscale frame grabber. Add a new device type for these devices. Use a new device prefix v4l-touch for these devices, to stop generic capture software from treating them as webcams. Signed-off-by: Nick Dyer <nic

[PATCH v3 6/8] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-06-01 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/input/touch

[PATCH v3 3/8] [media] v4l2-core: Add VFL_TYPE_TOUCH_SENSOR

2016-06-01 Thread Nick Dyer
Some touch controllers send out raw touch data in a similar way to a greyscale frame grabber. Add a new device type for these devices. Use a new device prefix v4l-touch for these devices, to stop generic capture software from treating them as webcams. Signed-off-by: Nick Dyer --- drivers/input

[PATCH v3 6/8] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-06-01 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers

[PATCH v3 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-06-01 Thread Nick Dyer
This is a series of patches to add diagnostic data support to the Atmel maXTouch driver. It's a rewrite of the previous implementation which output via debugfs: it now uses a V4L2 device in a similar way to the sur40 driver. There are significant performance advantages to putting this code into

[PATCH v3 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-06-01 Thread Nick Dyer
This is a series of patches to add diagnostic data support to the Atmel maXTouch driver. It's a rewrite of the previous implementation which output via debugfs: it now uses a V4L2 device in a similar way to the sur40 driver. There are significant performance advantages to putting this code into

[PATCH v3 4/8] Input: atmel_mxt_ts - output diagnostic debug via v4l2 device

2016-06-01 Thread Nick Dyer
Register a video device to output T37 diagnostic data. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/Kconfig| 2 + drivers/input/touchscreen/atmel_mxt_ts.c | 247 +++ 2 files changed, 249 insertions(+) diff --git a/d

[PATCH v3 1/8] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-06-01 Thread Nick Dyer
Atmel maXTouch devices have a T37 object which can be used to read raw touch deltas from the device. This consists of an array of 16-bit integers, one for each node on the touchscreen matrix. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH v3 4/8] Input: atmel_mxt_ts - output diagnostic debug via v4l2 device

2016-06-01 Thread Nick Dyer
Register a video device to output T37 diagnostic data. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/Kconfig| 2 + drivers/input/touchscreen/atmel_mxt_ts.c | 247 +++ 2 files changed, 249 insertions(+) diff --git a/drivers/input/touchscreen

[PATCH v3 1/8] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-06-01 Thread Nick Dyer
Atmel maXTouch devices have a T37 object which can be used to read raw touch deltas from the device. This consists of an array of 16-bit integers, one for each node on the touchscreen matrix. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 152

[PATCH v3 5/8] Input: atmel_mxt_ts - read touchscreen size

2016-06-01 Thread Nick Dyer
The touchscreen may have a margin where not all the matrix is used. Read the parameters from T9 and T100 and take account of the difference. Note: this does not read the XORIGIN/YORIGIN fields so it assumes that the touchscreen starts at (0,0) Signed-off-by: Nick Dyer <nick.d...@itdev.co

[PATCH v3 8/8] Input: atmel_mxt_ts - add support for reference data

2016-06-01 Thread Nick Dyer
There are different datatypes available from a maXTouch chip. Add support to retrieve reference data as well. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 58 1 file changed, 51 insertions(+), 7 del

[PATCH v3 5/8] Input: atmel_mxt_ts - read touchscreen size

2016-06-01 Thread Nick Dyer
The touchscreen may have a margin where not all the matrix is used. Read the parameters from T9 and T100 and take account of the difference. Note: this does not read the XORIGIN/YORIGIN fields so it assumes that the touchscreen starts at (0,0) Signed-off-by: Nick Dyer --- drivers/input

[PATCH v3 8/8] Input: atmel_mxt_ts - add support for reference data

2016-06-01 Thread Nick Dyer
There are different datatypes available from a maXTouch chip. Add support to retrieve reference data as well. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 58 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/drivers/input

[PATCH v3 7/8] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-06-01 Thread Nick Dyer
The mXT1386 family of chips have a different architecture which splits the diagnostic data into 3 columns. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-)

[PATCH v3 7/8] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-06-01 Thread Nick Dyer
The mXT1386 family of chips have a different architecture which splits the diagnostic data into 3 columns. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/drivers/input

[PATCH v3 2/8] [media] Add signed 16-bit pixel format

2016-06-01 Thread Nick Dyer
This will be used for output of raw touch delta data. This format is used by Atmel maXTouch (atmel_mxt_ts) and also Synaptics RMI4. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- Documentation/DocBook/media/v4l/pixfmt-ys16.xml | 79 + Documentation/DocBook/med

[PATCH v3 2/8] [media] Add signed 16-bit pixel format

2016-06-01 Thread Nick Dyer
This will be used for output of raw touch delta data. This format is used by Atmel maXTouch (atmel_mxt_ts) and also Synaptics RMI4. Signed-off-by: Nick Dyer --- Documentation/DocBook/media/v4l/pixfmt-ys16.xml | 79 + Documentation/DocBook/media/v4l/pixfmt.xml | 1

Re: [PATCH v2 4/8] Input: atmel_mxt_ts - output diagnostic debug via v4l2 device

2016-06-01 Thread Nick Dyer
ame it. For what it's worth, Synaptics RMI4 also emits 16 bit signed, see https://github.com/wanam/Adam-Kernel-GS4/blob/master/drivers/input/touchscreen/rmi_f54.c#L1831 > On 05/04/2016 07:07 PM, Nick Dyer wrote: > BTW, did you run v4l2-compliance? I think it should work if you just do:

Re: [PATCH v2 4/8] Input: atmel_mxt_ts - output diagnostic debug via v4l2 device

2016-06-01 Thread Nick Dyer
ame it. For what it's worth, Synaptics RMI4 also emits 16 bit signed, see https://github.com/wanam/Adam-Kernel-GS4/blob/master/drivers/input/touchscreen/rmi_f54.c#L1831 > On 05/04/2016 07:07 PM, Nick Dyer wrote: > BTW, did you run v4l2-compliance? I think it should work if you just do:

Re: [PATCH v2 2/8] [media] Add signed 16-bit pixel format

2016-05-27 Thread Nick Dyer
On 27/05/2016 14:18, Hans Verkuil wrote: > On 05/27/2016 02:52 PM, Nick Dyer wrote: >> On 27/05/2016 13:38, Hans Verkuil wrote: >>> On 05/04/2016 07:07 PM, Nick Dyer wrote: >>>> +V4L2_PIX_FMT_YS16 >>>> +Grey-scale ima

Re: [PATCH v2 2/8] [media] Add signed 16-bit pixel format

2016-05-27 Thread Nick Dyer
On 27/05/2016 14:18, Hans Verkuil wrote: > On 05/27/2016 02:52 PM, Nick Dyer wrote: >> On 27/05/2016 13:38, Hans Verkuil wrote: >>> On 05/04/2016 07:07 PM, Nick Dyer wrote: >>>> +V4L2_PIX_FMT_YS16 >>>> +Grey-scale ima

Re: [PATCH v2 2/8] [media] Add signed 16-bit pixel format

2016-05-27 Thread Nick Dyer
On 27/05/2016 13:38, Hans Verkuil wrote: > On 05/04/2016 07:07 PM, Nick Dyer wrote: >> +V4L2_PIX_FMT_YS16 >> +Grey-scale image >> + >> + >> +Description >> + >> +This is a signed grey-scale image with a depth of 16 bits per &

Re: [PATCH v2 2/8] [media] Add signed 16-bit pixel format

2016-05-27 Thread Nick Dyer
On 27/05/2016 13:38, Hans Verkuil wrote: > On 05/04/2016 07:07 PM, Nick Dyer wrote: >> +V4L2_PIX_FMT_YS16 >> +Grey-scale image >> + >> + >> +Description >> + >> +This is a signed grey-scale image with a depth of 16 bits per &

Re: [PATCH v2 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-05-13 Thread Nick Dyer
on it. best regards Nick On 04/05/2016 18:07, Nick Dyer wrote: > This is a series of patches to add diagnostic data support to the Atmel > maXTouch driver. It's a rewrite of the previous implementation which output > via > debugfs: it now uses a V4L2 device in a similar way to the

Re: [PATCH v2 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-05-13 Thread Nick Dyer
on it. best regards Nick On 04/05/2016 18:07, Nick Dyer wrote: > This is a series of patches to add diagnostic data support to the Atmel > maXTouch driver. It's a rewrite of the previous implementation which output > via > debugfs: it now uses a V4L2 device in a similar way to the

[PATCH v2 6/8] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-05-04 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/drivers/input/touch

[PATCH v2 8/8] Input: atmel_mxt_ts - add support for reference data

2016-05-04 Thread Nick Dyer
There are different datatypes available from a maXTouch chip. Add support to retrieve reference data as well. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 66 +++- 1 file changed, 56 insertions(+), 10 del

[PATCH v2 6/8] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-05-04 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers

[PATCH v2 8/8] Input: atmel_mxt_ts - add support for reference data

2016-05-04 Thread Nick Dyer
There are different datatypes available from a maXTouch chip. Add support to retrieve reference data as well. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 66 +++- 1 file changed, 56 insertions(+), 10 deletions(-) diff --git a/drivers

[PATCH v2 4/8] Input: atmel_mxt_ts - output diagnostic debug via v4l2 device

2016-05-04 Thread Nick Dyer
Register a video device to output T37 diagnostic data. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/Kconfig| 2 + drivers/input/touchscreen/atmel_mxt_ts.c | 271 +++ 2 files changed, 273 insertions(+) diff --git a/d

[PATCH v2 4/8] Input: atmel_mxt_ts - output diagnostic debug via v4l2 device

2016-05-04 Thread Nick Dyer
Register a video device to output T37 diagnostic data. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/Kconfig| 2 + drivers/input/touchscreen/atmel_mxt_ts.c | 271 +++ 2 files changed, 273 insertions(+) diff --git a/drivers/input/touchscreen

[PATCH v2 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-05-04 Thread Nick Dyer
This is a series of patches to add diagnostic data support to the Atmel maXTouch driver. It's a rewrite of the previous implementation which output via debugfs: it now uses a V4L2 device in a similar way to the sur40 driver. There are significant performance advantages to putting this code into

[PATCH v2 1/8] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-05-04 Thread Nick Dyer
Atmel maXTouch devices have a T37 object which can be used to read raw touch deltas from the device. This consists of an array of 16-bit integers, one for each node on the touchscreen matrix. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH v2 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-05-04 Thread Nick Dyer
This is a series of patches to add diagnostic data support to the Atmel maXTouch driver. It's a rewrite of the previous implementation which output via debugfs: it now uses a V4L2 device in a similar way to the sur40 driver. There are significant performance advantages to putting this code into

[PATCH v2 1/8] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-05-04 Thread Nick Dyer
Atmel maXTouch devices have a T37 object which can be used to read raw touch deltas from the device. This consists of an array of 16-bit integers, one for each node on the touchscreen matrix. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 152

[PATCH v2 5/8] Input: atmel_mxt_ts - read touchscreen size

2016-05-04 Thread Nick Dyer
The touchscreen may have a margin where not all the matrix is used. Read the parameters from T9 and T100 and take account of the difference. Note: this does not read the XORIGIN/YORIGIN fields so it assumes that the touchscreen starts at (0,0) Signed-off-by: Nick Dyer <nick.d...@itdev.co

[PATCH v2 5/8] Input: atmel_mxt_ts - read touchscreen size

2016-05-04 Thread Nick Dyer
The touchscreen may have a margin where not all the matrix is used. Read the parameters from T9 and T100 and take account of the difference. Note: this does not read the XORIGIN/YORIGIN fields so it assumes that the touchscreen starts at (0,0) Signed-off-by: Nick Dyer --- drivers/input

[PATCH v2 7/8] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-05-04 Thread Nick Dyer
The mXT1386 family of chips have a different architecture which splits the diagnostic data into 3 columns. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-)

[PATCH v2 2/8] [media] Add signed 16-bit pixel format

2016-05-04 Thread Nick Dyer
This will be used for output of raw touch data. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- Documentation/DocBook/media/v4l/pixfmt-ys16.xml | 79 + Documentation/DocBook/media/v4l/pixfmt.xml | 1 + drivers/media/v4l2-core/v4l2-ioctl.c

[PATCH v2 7/8] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-05-04 Thread Nick Dyer
The mXT1386 family of chips have a different architecture which splits the diagnostic data into 3 columns. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/drivers/input

[PATCH v2 2/8] [media] Add signed 16-bit pixel format

2016-05-04 Thread Nick Dyer
This will be used for output of raw touch data. Signed-off-by: Nick Dyer --- Documentation/DocBook/media/v4l/pixfmt-ys16.xml | 79 + Documentation/DocBook/media/v4l/pixfmt.xml | 1 + drivers/media/v4l2-core/v4l2-ioctl.c| 1 + include/uapi/linux

[PATCH v2 3/8] [media] v4l2-core: Add VFL_TYPE_TOUCH_SENSOR

2016-05-04 Thread Nick Dyer
Some touch controllers send out raw touch data in a similar way to a greyscale frame grabber. Add a new device type for these devices. Use a new device prefix v4l-touch for these devices, to stop generic capture software from treating them as webcams. Signed-off-by: Nick Dyer <nic

[PATCH v2 3/8] [media] v4l2-core: Add VFL_TYPE_TOUCH_SENSOR

2016-05-04 Thread Nick Dyer
Some touch controllers send out raw touch data in a similar way to a greyscale frame grabber. Add a new device type for these devices. Use a new device prefix v4l-touch for these devices, to stop generic capture software from treating them as webcams. Signed-off-by: Nick Dyer --- drivers/input

Re: [PATCH 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-04-29 Thread Nick Dyer
On 22/04/2016 16:44, Mauro Carvalho Chehab wrote: >> On the other hand, it would be a good place to tell the user that it >> is from a touch sensor. >> >> Using the upcoming metadata feature wouldn't work since there is no width >> and height in the metadata format. >> >> I wonder what others

Re: [PATCH 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-04-29 Thread Nick Dyer
On 22/04/2016 16:44, Mauro Carvalho Chehab wrote: >> On the other hand, it would be a good place to tell the user that it >> is from a touch sensor. >> >> Using the upcoming metadata feature wouldn't work since there is no width >> and height in the metadata format. >> >> I wonder what others

Re: [PATCH 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-04-22 Thread Nick Dyer
On 22/04/2016 15:45, Mauro Carvalho Chehab wrote: > Em Fri, 22 Apr 2016 10:26:37 +0200 > Hans Verkuil <hverk...@xs4all.nl> escreveu: >> On 04/21/2016 11:31 AM, Nick Dyer wrote: >>> This is a series of patches to add diagnostic data support to the Atmel >>

Re: [PATCH 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-04-22 Thread Nick Dyer
On 22/04/2016 15:45, Mauro Carvalho Chehab wrote: > Em Fri, 22 Apr 2016 10:26:37 +0200 > Hans Verkuil escreveu: >> On 04/21/2016 11:31 AM, Nick Dyer wrote: >>> This is a series of patches to add diagnostic data support to the Atmel >>> maXTouch driver.

[PATCH 1/8] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-04-21 Thread Nick Dyer
Add function to retrieve raw references data from the diagnostic data object Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 152 +++ 1 file changed, 152 insertions(+) diff --git a/drivers/input/touch

[PATCH 1/8] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-04-21 Thread Nick Dyer
Add function to retrieve raw references data from the diagnostic data object Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 152 +++ 1 file changed, 152 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input

[PATCH 8/8] Input: atmel_mxt_ts - add v4l pixelformat definition for touch refs output

2016-04-21 Thread Nick Dyer
--- drivers/input/touchscreen/atmel_mxt_ts.c | 33 include/uapi/linux/videodev2.h | 1 + 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index

[PATCH 8/8] Input: atmel_mxt_ts - add v4l pixelformat definition for touch refs output

2016-04-21 Thread Nick Dyer
--- drivers/input/touchscreen/atmel_mxt_ts.c | 33 include/uapi/linux/videodev2.h | 1 + 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index

[PATCH 2/8] Input: atmel_mxt_ts - output diagnostic debug via v4l2 device

2016-04-21 Thread Nick Dyer
--- drivers/input/touchscreen/atmel_mxt_ts.c | 270 +++ 1 file changed, 270 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 0784a18..81eecf1 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++

[PATCH 7/8] Input: atmel_mxt_ts - single node diagnostic data support

2016-04-21 Thread Nick Dyer
Add support for retrieving a single node of data at high rate. --- drivers/input/touchscreen/atmel_mxt_ts.c | 79 1 file changed, 70 insertions(+), 9 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 2/8] Input: atmel_mxt_ts - output diagnostic debug via v4l2 device

2016-04-21 Thread Nick Dyer
--- drivers/input/touchscreen/atmel_mxt_ts.c | 270 +++ 1 file changed, 270 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 0784a18..81eecf1 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++

[PATCH 7/8] Input: atmel_mxt_ts - single node diagnostic data support

2016-04-21 Thread Nick Dyer
Add support for retrieving a single node of data at high rate. --- drivers/input/touchscreen/atmel_mxt_ts.c | 79 1 file changed, 70 insertions(+), 9 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 3/8] Input: atmel_mxt_ts - read touchscreen size

2016-04-21 Thread Nick Dyer
The touchscreen may have a margin where not all the matrix is used. Read the parameters from T9 and T100 and take account of the difference. Note: this does not read the XORIGIN/YORIGIN fields so it assumes that the touchscreen starts at (0,0) Signed-off-by: Nick Dyer <nick.d...@itdev.co

[PATCH 4/8] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-04-21 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/drivers/input/touch

[PATCH 3/8] Input: atmel_mxt_ts - read touchscreen size

2016-04-21 Thread Nick Dyer
The touchscreen may have a margin where not all the matrix is used. Read the parameters from T9 and T100 and take account of the difference. Note: this does not read the XORIGIN/YORIGIN fields so it assumes that the touchscreen starts at (0,0) Signed-off-by: Nick Dyer --- drivers/input

[PATCH 4/8] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-04-21 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers

[PATCH 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-04-21 Thread Nick Dyer
This is a series of patches to add diagnostic data support to the Atmel maXTouch driver. It's a rewrite of the previous implementation which output via debugfs: it now uses a V4L2 device in a similar way to the sur40 driver. There are significant performance advantages to putting this code into

[PATCH 6/8] Input: atmel_mxt_ts - add support for reference data

2016-04-21 Thread Nick Dyer
There are different datatypes available from a maXTouch chip. Add support to retrieve reference data as well. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 36 1 file changed, 32 insertions(+), 4 del

[PATCH 5/8] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-04-21 Thread Nick Dyer
The mXT1386 family of chips have a different architecture which splits the diagnostic data into 3 columns. Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-)

[PATCH 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-04-21 Thread Nick Dyer
This is a series of patches to add diagnostic data support to the Atmel maXTouch driver. It's a rewrite of the previous implementation which output via debugfs: it now uses a V4L2 device in a similar way to the sur40 driver. There are significant performance advantages to putting this code into

[PATCH 6/8] Input: atmel_mxt_ts - add support for reference data

2016-04-21 Thread Nick Dyer
There are different datatypes available from a maXTouch chip. Add support to retrieve reference data as well. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 36 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/drivers/input

[PATCH 5/8] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-04-21 Thread Nick Dyer
The mXT1386 family of chips have a different architecture which splits the diagnostic data into 3 columns. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/drivers/input

[PATCH] Input: atmel_mxt_ts - use mxt_acquire_irq in mxt_soft_reset

2016-04-11 Thread Nick Dyer
-W -T18 44 mxt-app --backup Tested-by: Tom Rini <tr...@konsulko.com> Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/atmel_mxt_ts.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/input

[PATCH] Input: atmel_mxt_ts - use mxt_acquire_irq in mxt_soft_reset

2016-04-11 Thread Nick Dyer
-W -T18 44 mxt-app --backup Tested-by: Tom Rini Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

Re: [PATCH] Revert "Input: atmel_mxt_ts - disable interrupt for 50ms after reset"

2016-04-08 Thread Nick Dyer
On 2016-04-08 13:39, Tom Rini wrote: I have a Pixel 2 here - can you advise how to reproduce? >>> >>> I (and a bunch of other folks, the linux-samus people now point people >>> at using mxt-app every boot to reset the device) see this every time I >>> either suspend the laptop or do a warm

Re: [PATCH] Revert "Input: atmel_mxt_ts - disable interrupt for 50ms after reset"

2016-04-08 Thread Nick Dyer
On 2016-04-08 13:39, Tom Rini wrote: I have a Pixel 2 here - can you advise how to reproduce? >>> >>> I (and a bunch of other folks, the linux-samus people now point people >>> at using mxt-app every boot to reset the device) see this every time I >>> either suspend the laptop or do a warm

Re: [PATCH] Revert "Input: atmel_mxt_ts - disable interrupt for 50ms after reset"

2016-04-08 Thread Nick Dyer
On 2016-04-08 13:14, Tom Rini wrote: > On Fri, Apr 08, 2016 at 10:10:06AM +0100, Nick Dyer wrote: >> On 2016-04-07 23:52, Tom Rini wrote: >>> This reverts commit 885f3fb9fa1f9e185e8a4e905157087495734349 due to this >>> change breaking the touchpad on the Chromeboo

Re: [PATCH] Revert "Input: atmel_mxt_ts - disable interrupt for 50ms after reset"

2016-04-08 Thread Nick Dyer
On 2016-04-08 13:14, Tom Rini wrote: > On Fri, Apr 08, 2016 at 10:10:06AM +0100, Nick Dyer wrote: >> On 2016-04-07 23:52, Tom Rini wrote: >>> This reverts commit 885f3fb9fa1f9e185e8a4e905157087495734349 due to this >>> change breaking the touchpad on the Chromeboo

Re: [PATCH] Revert "Input: atmel_mxt_ts - disable interrupt for 50ms after reset"

2016-04-08 Thread Nick Dyer
On 2016-04-07 23:52, Tom Rini wrote: > This reverts commit 885f3fb9fa1f9e185e8a4e905157087495734349 due to this > change breaking the touchpad on the Chromebook Pixel 2015 on resume from > sleep or warm resets. > > Cc: Olof Johansson <o...@lixom.net> > Cc: Nick Dyer <

Re: [PATCH] Revert "Input: atmel_mxt_ts - disable interrupt for 50ms after reset"

2016-04-08 Thread Nick Dyer
On 2016-04-07 23:52, Tom Rini wrote: > This reverts commit 885f3fb9fa1f9e185e8a4e905157087495734349 due to this > change breaking the touchpad on the Chromebook Pixel 2015 on resume from > sleep or warm resets. > > Cc: Olof Johansson > Cc: Nick Dyer > Cc: Dmitry Torokhov

Re: [PATCH RFC 0/8] Input: atmel_mxt_ts - raw data via debugfs

2016-03-10 Thread Nick Dyer
> On Wed, Jan 13, 2016 at 05:20:57PM +0000, Nick Dyer wrote: >> The devices we want to support are I2C based and the frame rate is low: >> typically less than 10 fps with 1386 nodes, as an example. So performance >> is not critical and doing meaningful processing i

Re: [PATCH RFC 0/8] Input: atmel_mxt_ts - raw data via debugfs

2016-03-10 Thread Nick Dyer
> On Wed, Jan 13, 2016 at 05:20:57PM +0000, Nick Dyer wrote: >> The devices we want to support are I2C based and the frame rate is low: >> typically less than 10 fps with 1386 nodes, as an example. So performance >> is not critical and doing meaningful processing i

<    1   2   3   4   5   6   7   8   9   10   >