Re: [PATCH 2/2] [media] Input: synaptics-rmi4: disallow impossible configuration

2016-09-15 Thread Nick Dyer
nd Bergmann <a...@arndb.de> > Fixes: 3a762dbd5347 ("[media] Input: synaptics-rmi4 - add support for F54 > diagnostics") Acked-by: Nick Dyer <n...@shmanahar.org> > --- > drivers/input/rmi4/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > &

[PATCH] Input: v4l-touch - add copyright lines

2016-09-15 Thread Nick Dyer
Hi Hans- Please could you apply this patch to your media_tree/touch branch before it goes to v4.9 if possible. Thanks Add copyright lines for Zodiac who paid for the V4L touch work. Signed-off-by: Nick Dyer <n...@shmanahar.org> --- drivers/input/rmi4/rmi_f54.c | 1 + d

Re: [PATCH 1/2] [media] Input: atmel_mxt: disallow impossible configuration

2016-09-15 Thread Nick Dyer
l it. > > Signed-off-by: Arnd Bergmann <a...@arndb.de> > Fixes: ecfdd7e2660e ("[media] Input: atmel_mxt_ts - output diagnostic debug > via V4L2 device") Acked-by: Nick Dyer <n...@shmanahar.org> > --- > drivers/input/touchscreen/Kconfig | 3 ++- > 1 file chan

[PATCH v2] Documentation: add support for V4L touch devices

2016-08-14 Thread Nick Dyer
[v2: Fix minor issues and document V4L2_INPUT_TYPE_TOUCH and V4L2_CAP_TOUCH] Signed-off-by: Nick Dyer <n...@shmanahar.org> --- Documentation/media/uapi/mediactl/media-types.rst | 24 +++-- Documentation/media/uapi/v4l/dev-touch.rst| 56 +++ Documentation/media/ua

Re: [PATCH v8 10/10] Input: sur40 - use new V4L2 touch input type

2016-08-12 Thread Nick Dyer
Signed-off-by: Nick Dyer <n...@shmanahar.org> On 12 August 2016 10:41:08 BST, Hans Verkuil <hverk...@xs4all.nl> wrote: >Hi Nick, > >On 07/18/2016 11:10 PM, Nick Dyer wrote: >> Support both V4L2_TCH_FMT_TU08 and V4L2_PIX_FMT_GREY for backwards >> compatibilit

[PATCH v8 10/10] Input: sur40 - use new V4L2 touch input type

2016-07-18 Thread Nick Dyer
Support both V4L2_TCH_FMT_TU08 and V4L2_PIX_FMT_GREY for backwards compatibility. Note: I have not tested these changes (I have no access to the hardware) so not signing off. --- drivers/input/touchscreen/sur40.c | 122 +++-- 1 file changed, 89 insertions(+), 33

[PATCH v8 0/10] Output raw touch data via V4L2

2016-07-18 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 v8 03/10] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-07-18 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 <n...@shmanahar.org> --- drivers/input/touchscreen/Kconfig

[PATCH] v4l2-compliance: Changes to support touch sensors

2016-07-18 Thread Nick Dyer
Signed-off-by: Nick Dyer <n...@shmanahar.org> --- utils/v4l2-compliance/v4l2-compliance.cpp| 51 +- utils/v4l2-compliance/v4l2-compliance.h |1 + utils/v4l2-compliance/v4l2-test-input-output.cpp |4 +- 3 files changed, 53 insertions(+), 3 del

[PATCH v8 01/10] Input: atmel_mxt_ts - update MAINTAINERS email address

2016-07-18 Thread Nick Dyer
I'm leaving ITDev, so change to my personal email. My understanding is that someone at Atmel will take this on once their takeover by Microchip has settled down. Signed-off-by: Nick Dyer <n...@shmanahar.org> --- MAINTAINERS |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH v8 04/10] Input: atmel_mxt_ts - output diagnostic debug via V4L2 device

2016-07-18 Thread Nick Dyer
Register a video device to output T37 diagnostic data. Signed-off-by: Nick Dyer <n...@shmanahar.org> --- drivers/input/touchscreen/Kconfig|6 +- drivers/input/touchscreen/atmel_mxt_ts.c | 245 ++ 2 files changed, 249 insertions(+), 2 deletions(-)

[PATCH v8 06/10] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-07-18 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer <n...@shmanahar.org> --- drivers/input/touchscreen/atmel_mxt_ts.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/input/touch

[PATCH v8 05/10] Input: atmel_mxt_ts - read touchscreen size

2016-07-18 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 <n...@shmanahar.

[PATCH v8 02/10] v4l2-core: Add support for touch devices

2016-07-18 Thread Nick Dyer
touch data - V4L2_TCH_FMT_TU08 for unsigned 8-bit touch data This support will be used by: - Atmel maXTouch (atmel_mxt_ts) - Synaptics RMI4. - sur40 Signed-off-by: Nick Dyer <n...@shmanahar.org> Tested-By: Chris Healy <cphe...@gmail.com> --- drivers/media/media-entity.c |2

[PATCH v8 09/10] Input: synaptics-rmi4 - add support for F54 diagnostics

2016-07-18 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 <n...@shmanahar.org> Tested-by: Andrew Duggan <adug...@synaptics.com> Tested-by:

[PATCH v8 08/10] Input: atmel_mxt_ts - add support for reference data

2016-07-18 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 <n...@shmanahar.org> --- drivers/input/touchscreen/atmel_mxt_ts.c | 57 ++ 1 file changed, 51 insertions(+), 6 deletions(-)

[PATCH v8 07/10] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-07-18 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 <n...@shmanahar.org> --- drivers/input/touchscreen/atmel_mxt_ts.c | 31 +++--- 1 file changed, 28 insertions(+), 3 deletions(-)

[PATCH v7 08/11] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-07-08 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 <n...@shmanahar.org> --- drivers/input/touchscreen/atmel_mxt_ts.c | 31 +++--- 1 file changed, 28 insertions(+), 3 deletions(-)

[PATCH v7 10/11] Input: synaptics-rmi4 - add support for F54 diagnostics

2016-07-08 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 <n...@shmanahar.org> Tested-by: Andrew Duggan <adug...@synaptics.com> Tested-by:

[PATCH v7 06/11] Input: atmel_mxt_ts - read touchscreen size

2016-07-08 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 <n...@shmanahar.

[PATCH v7 03/11] DocBook: add support for touch devices

2016-07-08 Thread Nick Dyer
Signed-off-by: Nick Dyer <n...@shmanahar.org> --- Documentation/DocBook/media/v4l/dev-touch.xml | 51 Documentation/DocBook/media/v4l/media-types.xml|5 ++ .../DocBook/media/v4l/pixfmt-tch-td08.xml | 66 .../DocBook/media/v4l/pixfmt-tc

[PATCH v7 07/11] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-07-08 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer <n...@shmanahar.org> --- drivers/input/touchscreen/atmel_mxt_ts.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/input/touch

[PATCH v7 05/11] Input: atmel_mxt_ts - output diagnostic debug via V4L2 device

2016-07-08 Thread Nick Dyer
Register a video device to output T37 diagnostic data. Signed-off-by: Nick Dyer <n...@shmanahar.org> --- drivers/input/touchscreen/Kconfig|6 +- drivers/input/touchscreen/atmel_mxt_ts.c | 244 ++ 2 files changed, 248 insertions(+), 2 deletions(-)

[PATCH v7 0/11] Output raw touch data via V4L2

2016-07-08 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 v7 04/11] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-07-08 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 <n...@shmanahar.org> --- drivers/input/touchscreen/Kconfig

[PATCH v7 11/11] Input: sur40 - use new V4L2 touch input type

2016-07-08 Thread Nick Dyer
Support both V4L2_TCH_FMT_TU08 and V4L2_PIX_FMT_GREY for backwards compatibility. Note: I have not tested these changes (I have no access to the hardware) so not signing off. --- drivers/input/touchscreen/sur40.c | 123 +++-- 1 file changed, 89 insertions(+), 34

[PATCH] v4l2-compliance: Changes to support touch sensors

2016-07-08 Thread Nick Dyer
Signed-off-by: Nick Dyer <n...@shmanahar.org> --- utils/v4l2-compliance/v4l2-compliance.cpp| 51 +- utils/v4l2-compliance/v4l2-compliance.h |1 + utils/v4l2-compliance/v4l2-test-input-output.cpp |4 +- 3 files changed, 53 insertions(+), 3 del

[PATCH v7 01/11] Input: atmel_mxt_ts - update MAINTAINERS email address

2016-07-08 Thread Nick Dyer
I'm leaving ITDev, so change to my personal email. My understanding is that someone at Atmel will take this on once their takeover by Microchip has settled down. Signed-off-by: Nick Dyer <n...@shmanahar.org> --- MAINTAINERS |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH v7 09/11] Input: atmel_mxt_ts - add support for reference data

2016-07-08 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 <n...@shmanahar.org> --- drivers/input/touchscreen/atmel_mxt_ts.c | 57 ++ 1 file changed, 51 insertions(+), 6 deletions(-)

[PATCH v7 02/11] v4l2-core: Add support for touch devices

2016-07-08 Thread Nick Dyer
touch data - V4L2_TCH_FMT_TU08 for unsigned 8-bit touch data This support will be used by: - Atmel maXTouch (atmel_mxt_ts) - Synaptics RMI4. - sur40 Signed-off-by: Nick Dyer <n...@shmanahar.org> Tested-By: Chris Healy <cphe...@gmail.com> --- drivers/media/media-entity.c |2

Re: [PATCH v6 10/11] Input: synaptics-rmi4 - add support for F54 diagnostics

2016-07-01 Thread Nick Dyer
On Thu, Jun 30, 2016 at 06:38:53PM +0100, Nick Dyer wrote: > 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 &

[PATCH v6 06/11] Input: atmel_mxt_ts - read touchscreen size

2016-06-30 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 <n...@shmanahar.

[PATCH v6 10/11] Input: synaptics-rmi4 - add support for F54 diagnostics

2016-06-30 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 <n...@shmanahar.org> --- drivers/input/rmi4/Kconfig | 11 + drivers/inpu

[PATCH v6 04/11] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-06-30 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 <n...@shmanahar.org> --- drivers/input/touchscreen/Kconfig

[PATCH v6 01/11] Input: atmel_mxt_ts - update MAINTAINERS email address

2016-06-30 Thread Nick Dyer
I'm leaving ITDev, so change to my personal email. My understanding is that someone at Atmel will take this on once their takeover by Microchip has settled down. Signed-off-by: Nick Dyer <n...@shmanahar.org> --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH v6 11/11] Input: sur40 - use new V4L2 touch input type

2016-06-30 Thread Nick Dyer
Support both V4L2_TCH_FMT_TU08 and V4L2_PIX_FMT_GREY for backwards compatibility. Note: I have not tested these changes (I have no access to the hardware) so not signing off. --- drivers/input/touchscreen/sur40.c | 121 +++--- 1 file changed, 88 insertions(+), 33

[PATCH v6 09/11] Input: atmel_mxt_ts - add support for reference data

2016-06-30 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 <n...@shmanahar.org> --- drivers/input/touchscreen/atmel_mxt_ts.c | 57 1 file changed, 51 insertions(+), 6 deletions(-)

[PATCH v6 07/11] Input: atmel_mxt_ts - handle diagnostic data orientation

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

[PATCH v6 03/11] [media] DocBook: add support for touch devices

2016-06-30 Thread Nick Dyer
Signed-off-by: Nick Dyer <n...@shmanahar.org> --- Documentation/DocBook/media/v4l/dev-touch.xml | 51 ++ Documentation/DocBook/media/v4l/media-types.xml| 5 ++ .../DocBook/media/v4l/pixfmt-tch-td08.xml | 66 + .../DocBook/media/v4l/pixfmt-tc

[PATCH v6 08/11] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-06-30 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 <n...@shmanahar.org> --- drivers/input/touchscreen/atmel_mxt_ts.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff

[PATCH v6 0/11] Output raw touch data via V4L2

2016-06-30 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 v6 05/11] Input: atmel_mxt_ts - output diagnostic debug via V4L2 device

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

[PATCH v6 02/11] [media] v4l2-core: Add support for touch devices

2016-06-30 Thread Nick Dyer
touch data - V4L2_TCH_FMT_TU08 for unsigned 8-bit touch data This support will be used by: - Atmel maXTouch (atmel_mxt_ts) - Synaptics RMI4. - sur40 Signed-off-by: Nick Dyer <n...@shmanahar.org> --- drivers/media/media-entity.c | 2 ++ drivers/media/v4l2-core/v4l2-dev.c

[PATCH] v4l2-compliance: Changes to support touch sensors

2016-06-30 Thread Nick Dyer
Signed-off-by: Nick Dyer <n...@shmanahar.org> --- utils/v4l2-compliance/v4l2-compliance.cpp| 48 +++- utils/v4l2-compliance/v4l2-compliance.h | 1 + utils/v4l2-compliance/v4l2-test-input-output.cpp | 4 +- 3 files changed, 51 insertions(+), 2 del

Re: [PATCH v5 0/9] Output raw touch data via V4L2

2016-06-27 Thread Nick Dyer
On 27/06/2016 13:22, Hans Verkuil wrote: > On 06/27/2016 01:57 PM, Nick Dyer wrote: > 2) Alternatively, if we want to keep using BUF_TYPE_VIDEO_CAPTURE, then: > > - we keep V4L2_CAP_TOUCH which is combined with CAP_VIDEO_CAPTURE (and perhaps > VIDEO_OUTPUT in the future). The

Re: [PATCH v5 0/9] Output raw touch data via V4L2

2016-06-27 Thread Nick Dyer
Hi Hans- Thanks for reviewing this again in such detail. On 27/06/2016 12:26, Hans Verkuil wrote: > On 06/23/2016 12:08 AM, Nick Dyer wrote: >> This is a series of patches to add output of raw touch diagnostic data via >> V4L2 >> to the Atmel maXTouch and Synaptics RMI

Re: [PATCH] sur40: drop unnecessary format description

2016-06-27 Thread Nick Dyer
On 27/06/2016 11:25, Hans Verkuil wrote: > Don't fill in the format description. This is now done in the V4L2 core to > ensure > consistent descriptions. > > Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> Acked-by: Nick Dyer <nick.d...@itdev.co.uk> >

Re: [PATCH v5 1/9] [media] v4l2-core: Add support for touch devices

2016-06-24 Thread Nick Dyer
On 22/06/2016 23:08, Nick Dyer wrote: > Some touch controllers send out touch data in a similar way to a > greyscale frame grabber. > > Use a new device prefix v4l-touch for these devices, to stop generic > capture software from treating them as webcams. &

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

2016-06-22 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 v5 1/9] [media] v4l2-core: Add support for touch devices

2016-06-22 Thread Nick Dyer
- V4L2_TCH_FMT_DELTA_TD08 for signed 16-bit touch deltas - V4L2_TCH_FMT_TU16 for unsigned 16-bit touch data - V4L2_TCH_FMT_TU08 for unsigned 8-bit touch data This support will be used by: * Atmel maXTouch (atmel_mxt_ts) * Synaptics RMI4. * sur40 Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- Documen

[PATCH v5 6/9] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-06-22 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 v5 4/9] Input: atmel_mxt_ts - read touchscreen size

2016-06-22 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 v5 2/9] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-06-22 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 v5 5/9] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-06-22 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 v5 7/9] Input: atmel_mxt_ts - add support for reference data

2016-06-22 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 v5 9/9] Input: sur40 - use new V4L2 touch input type

2016-06-22 Thread Nick Dyer
Signed-off-by: Nick Dyer <nick.d...@itdev.co.uk> --- drivers/input/touchscreen/sur40.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/sur40.c b/drivers/input/touchscreen/sur40.c index 880c40b..841e045 100644 --- a/drivers

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

2016-06-22 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 v5 3/9] Input: atmel_mxt_ts - output diagnostic debug via v4l2 device

2016-06-22 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(-)

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

2016-06-22 Thread Nick Dyer
On 22/06/2016 21:38, Florian Echtler wrote: > On Wed, 22 Jun 2016, Nick Dyer wrote: > >> On 22/06/2016 12:48, Florian Echtler wrote: >>> On 20.06.2016 14:00, Hans Verkuil wrote: >>>> On 06/17/2016 04:16 PM, Nick Dyer wrote: >>>>> >>>>&g

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

2016-06-22 Thread Nick Dyer
On 22/06/2016 12:48, Florian Echtler wrote: > On 20.06.2016 14:00, Hans Verkuil wrote: >> On 06/17/2016 04:16 PM, Nick Dyer wrote: >>> Some touch controllers send out raw touch data in a similar way to a >>> greyscale frame grabber. Add a new device type for these device

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

2016-06-21 Thread Nick Dyer
On 20/06/2016 17:20, Hans Verkuil wrote: > On 06/17/2016 04:16 PM, Nick Dyer wrote: >> +static int rmi_f54_vidioc_enum_input(struct file *file, void *priv, >> + struct v4l2_input *i) >> +{ >> +struct f54_data *f54 = video_

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

2016-06-20 Thread Nick Dyer
On 20/06/2016 17:09, Hans Verkuil wrote: > On 06/17/2016 04:16 PM, Nick Dyer wrote: >> @@ -2325,11 +2344,20 @@ static int mxt_vidioc_querycap(struct file *file, >> void *priv, >> static int mxt_vidioc_enum_input(struct file *file, void *priv, >>

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

2016-06-20 Thread Nick Dyer
Hi Hans- On 20/06/2016 12:00, Hans Verkuil wrote: > On 06/17/2016 04:16 PM, Nick Dyer wrote: >> 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

[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 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 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 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 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 <nic

[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 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 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 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

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

[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 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 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 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 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 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 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 <nick.d...@itdev.co

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 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

[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 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 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 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 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 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 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 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

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 >>

[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

  1   2   >