[PATCH] staging/iio/adc/MXS/LRADC: fix touchscreen statemachine

2014-02-24 Thread Juergen Beisert
: Juergen Beisert diff --git a/drivers/staging/iio/adc/mxs-lradc.c b/drivers/staging/iio/adc/mxs-lradc.c index 7fc66a6..514844e 100644 --- a/drivers/staging/iio/adc/mxs-lradc.c +++ b/drivers/staging/iio/adc/mxs-lradc.c @@ -757,6 +757,7 @@ static void mxs_lradc_finish_touch_event(struct mxs_lradc

Re: [PATCHv6] staging/iio/adc: change the MXS touchscreen driver implementation

2014-02-24 Thread Juergen Beisert
Hi Dan, On Monday 24 February 2014 14:33:16 Dan Carpenter wrote: > On Mon, Feb 24, 2014 at 02:16:24PM +0100, Juergen Beisert wrote: > > > While I don't have much experience with the TS part of the code but I > > > can investigate if you don't have any idea.

Re: [PATCHv6] staging/iio/adc: change the MXS touchscreen driver implementation

2014-02-24 Thread Juergen Beisert
-- Pengutronix e.K.                              | Juergen Beisert             | Linux Solutions for Science and Industry      | Phone: +49-5121-206917-5128 | Peiner Str. 6-8, 31137 Hildesheim, Germany    | Fax:   +49-5121-206917- | Amtsgericht Hildesheim, HRA 2686              | http:/

[PATCH 4/9] Staging/iio/adc/touchscreen/MXS: simplify register access

2013-09-23 Thread Juergen Beisert
Replace the individual register access by a few shared access function to make the code easier to read and in order to add the i.MX23 SoC in the next step. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: linux-in...@vger.kernel.org CC: de...@driverdev.osuosl.org CC

[PATCH 1/9] Staging/iio/adc/touchscreen/MXS: add proper clock handling

2013-09-23 Thread Juergen Beisert
The delay units inside the LRADC depend on the presence of a 2 kHz clock. This change enables the clock to be able to use the delay unit for the touchscreen part of the driver. Signed-off-by: Juergen Beisert --- arch/arm/boot/dts/imx23.dtsi| 1 + arch/arm/boot/dts/imx28.dtsi| 1

[PATCH 8/9] Staging/iio/adc/touchscreen/MXS: provide devicetree adaption

2013-09-23 Thread Juergen Beisert
This is an RFC for the new touchscreen properties. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: linux-in...@vger.kernel.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron CC: devicet...@vger.kernel.org --- .../bindings

[PATCH 5/9] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC touchscreen driver

2013-09-23 Thread Juergen Beisert
Distinguish i.MX23 and i.MX28 at runtime and do the same for both SoC at least for the 4 wire touchscreen. Note: support for the remaining LRADC channels is not tested on an i.MX23 yet. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: linux-in...@vger.kernel.org CC

[PATCH 6/9] Staging/iio/adc/touchscreen/MXS: add interrupt driven touch detection

2013-09-23 Thread Juergen Beisert
-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: linux-in...@vger.kernel.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron CC: Dmitry Torokhov CC: linux-in...@vger.kernel.org --- drivers/staging/iio/adc/mxs-lradc.c | 530

[PATCH 9/9] Staging/iio: add TODO reminder

2013-09-23 Thread Juergen Beisert
Some things have still to be done to the LRADC driver. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: linux-in...@vger.kernel.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/TODO | 11

[PATCHv6] staging/iio/adc: change the MXS touchscreen driver implementation

2013-09-23 Thread Juergen Beisert
The following series replaces the current busy loop touchscreen implementation for i.MX28/i.MX23 SoCs by a fully interrupt driven implementation. Since i.MX23 and i.MX28 silicon differs, the existing implementation can be used for the i.MX28 SoC only. The first patch adds proper clock handling. V

[PATCH 2/9] Staging/iio/adc/touchscreen/MXS: distinguish i.MX23's and i.MX28's LRADC

2013-09-23 Thread Juergen Beisert
The LRADC units in i.MX23 and i.MX28 differ and we need to distinguish both SoC variants in order to make the touchscreen work on i.MX23 Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: linux-in...@vger.kernel.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC

[PATCH 7/9] Staging/iio/adc/touchscreen/MXS: remove old touchscreen detection implementation

2013-09-23 Thread Juergen Beisert
Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: linux-in...@vger.kernel.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 163 1 file changed, 163

[PATCH 3/9] Staging/iio/adc/touchscreen/MXS: separate i.MX28 specific register bits

2013-09-23 Thread Juergen Beisert
In order to support i.MX23 and i.MX28 within one driver we need to separate the register definitions which differ in both SoC variants. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: linux-in...@vger.kernel.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC

[PATCHv5] staging/iio/adc: change the MXS touchscreen driver implementation

2013-09-19 Thread Juergen Beisert
The following series replaces the current busy loop touchscreen implementation for i.MX28/i.MX23 SoCs by a fully interrupt driven implementation. Since i.MX23 and i.MX28 silicon differs, the existing implementation can be used for the i.MX28 SoC only. So, the first two patches of this series move

[PATCH 7/7] Staging/iio/adc/touchscreen/MXS: provide devicetree adaption

2013-09-19 Thread Juergen Beisert
This is an RFC for the new touchscreen properties. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron CC: devicetree-disc...@lists.ozlabs.org --- .../bindings/staging/iio/adc/mxs

[PATCH 4/7] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC touchscreen driver

2013-09-19 Thread Juergen Beisert
Distinguish i.MX23 and i.MX28 at runtime and do the same for both SoC at least for the 4 wire touchscreen. Note: support for the remaining LRADC channels is not tested on an i.MX23 yet. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC

[PATCH 1/7] Staging/iio/adc/touchscreen/MXS: distinguish i.MX23's and i.MX28's LRADC

2013-09-19 Thread Juergen Beisert
The LRADC units in i.MX23 and i.MX28 differ and we need to distinguish both SoC variants in order to make the touchscreen work on i.MX23 Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

[PATCH 6/7] Staging/iio/adc/touchscreen/MXS: Remove old touchscreen detection implementation

2013-09-19 Thread Juergen Beisert
Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 163 1 file changed, 163 deletions(-) diff --git a

[PATCH 2/7] Staging/iio/adc/touchscreen/MXS: separate i.MX28 specific register bits

2013-09-19 Thread Juergen Beisert
In order to support i.MX23 and i.MX28 within one driver we need to separate the register definitions which differ in both SoC variants. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

[PATCH 5/7] Staging/iio/adc/touchscreen/MXS: add interrupt driven touch detection

2013-09-19 Thread Juergen Beisert
-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 532 1 file changed, 476 insertions(+), 56 deletions(-) diff --git

[PATCH 3/7] Staging/iio/adc/touchscreen/MXS: simplify register access

2013-09-19 Thread Juergen Beisert
Replace the individual register access by a few shared access function to make the code easier to read and in order to add the i.MX23 SoC in the next step. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam

[PATCH 2/6] Staging/iio/adc/touchscreen/MXS: separate i.MX28 specific register bits

2013-09-11 Thread Juergen Beisert
In order to support i.MX23 and i.MX28 within one driver we need to separate the register definitions which differ in both SoC variants. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

[PATCH 5/6] Staging/iio/adc/touchscreen/MXS: add interrupt driven touch detection

2013-09-11 Thread Juergen Beisert
-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 530 1 file changed, 476 insertions(+), 54 deletions(-) diff --git

[PATCH 6/6] Staging/iio/adc/touchscreen/MXS: Remove old touchscreen detection implementation

2013-09-11 Thread Juergen Beisert
Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 165 1 file changed, 165 deletions(-) diff --git a

[PATCH 3/6] Staging/iio/adc/touchscreen/MXS: simplify register access

2013-09-11 Thread Juergen Beisert
Replace the individual register access by a few shared access function to make the code easier to read and in order to add the i.MX23 SoC in the next step. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam

[RFCv4] staging/iio/adc: change the MXS touchscreen driver implementation

2013-09-11 Thread Juergen Beisert
The following series replaces the current busy loop touchscreen implementation for i.MX28/i.MX23 SoCs by a fully interrupt driven implementation. Since i.MX23 and i.Mx28 silicon differs, the existing implementation can be used for the i.MX28 SoC only. So, the first two patches of this series move

[PATCH 4/6] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC touchscreen driver

2013-09-11 Thread Juergen Beisert
Distinguish i.MX23 and i.MX28 at runtime and do the same for both SoC at least for the 4 wire touchscreen. Note: support for the remaining LRADC channels is not tested on an i.MX23 yet. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC

[PATCH 1/6] Staging/iio/adc/touchscreen/MXS: distinguish i.MX23's and i.MX28's LRADC

2013-09-11 Thread Juergen Beisert
The LRADC units in i.MX23 and i.MX28 differ and we need to distinguish both SoC variants in order to make the touchscreen work on i.MX23 Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

[PATCH 4/5] Staging/iio/adc/touchscreen/MXS: add interrupt driven touch detection

2013-09-10 Thread Juergen Beisert
-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 531 1 file changed, 477 insertions(+), 54 deletions(-) diff --git

[PATCH 1/5] Staging/iio/adc/touchscreen/MXS: distinguish i.MX23's and i.MX28's LRADC

2013-09-10 Thread Juergen Beisert
The LRADC units in i.MX23 and i.MX28 differ and we need to distinguish both SoC variants in order to make the touchscreen work on i.MX23 Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

[RFCv3] staging/iio/adc: change the MXS touchscreen driver implementation

2013-09-10 Thread Juergen Beisert
The following series replaces the current busy loop touchscreen implementation for i.MX28/i.MX23 SoCs by a fully interrupt driven implementation. Since i.MX23 and i.Mx28 silicon differs, the existing implementation can be used for the i.MX28 SoC only. So, the first two patches of this series move

[PATCH 2/5] Staging/iio/adc/touchscreen/MXS: separate i.MX28 specific register bits

2013-09-10 Thread Juergen Beisert
In order to support i.MX23 and i.MX28 within one driver we need to separate the register definitions which differ in both SoC variants. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

[PATCH 5/5] Staging/iio/adc/touchscreen/MXS: Remove old touchscreen detection implementation

2013-09-10 Thread Juergen Beisert
Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 165 1 file changed, 165 deletions(-) diff --git a

[PATCH 3/5] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC driver

2013-09-10 Thread Juergen Beisert
Distinguish i.MX23 and i.MX28 at runtime and do the same for both SoC at least for the 4 wire touchscreen. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc

[PATCH 5/5] Staging/iio/adc/touchscreen/MXS: Remove old touchscreen detection implementation

2013-09-06 Thread Juergen Beisert
Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 165 1 file changed, 165 deletions(-) diff --git a

[PATCH 4/5] Staging/iio/adc/touchscreen/MXS: add interrupt driven touch detection

2013-09-06 Thread Juergen Beisert
-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 548 1 file changed, 494 insertions(+), 54 deletions(-) diff --git

[PATCH 2/5] Staging/iio/adc/touchscreen/MXS: separate i.MX28 specific register bits

2013-09-06 Thread Juergen Beisert
In order to support i.MX23 and i.MX28 within one driver we need to separate the register definitions which differ in both SoC variants. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

[PATCH 1/5] Staging/iio/adc/touchscreen/MXS: distinguish i.MX23's and i.MX28's LRADC

2013-09-06 Thread Juergen Beisert
The LRADC units in i.MX23 and i.MX28 differ and we need to distinguish both SoC variants in order to make the touchscreen work on i.MX23 Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

[PATCH 3/5] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC driver

2013-09-06 Thread Juergen Beisert
Distinguish i.MX23 and i.MX28 at runtime and do the same for both SoC at least for the 4 wire touchscreen. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc

[RFCv2] staging/iio/adc: change the MXS touchscreen driver implementation

2013-09-06 Thread Juergen Beisert
The following series replaces the current busy loop touchscreen implementation for i.MX28/i.MX23 SoCs by a fully interrupt driven implementation. Since i.MX23 and i.Mx28 silicon differs, the existing implementation can be used for the i.MX28 SoC only. So, the first two patches of this series move

[PATCH 3/5] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC driver

2013-09-04 Thread Juergen Beisert
Distinguish i.MX23 and i.MX28 at runtime and do the same for both SoC at least for the 4 wire touchscreen. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc

[PATCH 5/5] Staging/iio/adc/touchscreen/MXS: Remove old touchscreen detection implementation

2013-09-04 Thread Juergen Beisert
Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 193 1 file changed, 193 deletions(-) diff --git a

[PATCH 1/5] Staging/iio/adc/touchscreen/MXS: distinguish i.MX23's and i.MX28's LRADC

2013-09-04 Thread Juergen Beisert
The LRADC units in i.MX23 and i.MX28 differ and we need to distinguish both SoC variants in order to make the touchscreen work on i.MX23 Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

[PATCH 2/5] Staging/iio/adc/touchscreen/MXS: separate i.MX28 specific register bits

2013-09-04 Thread Juergen Beisert
In order to support i.MX23 and i.MX28 within one driver we need to separate the register definitions which differ in both SoC variants. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

[PATCH 4/5] Staging/iio/adc/touchscreen/MXS: add interrupt driven touch detection

2013-09-04 Thread Juergen Beisert
-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 609 1 file changed, 542 insertions(+), 67 deletions(-) diff --git