devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] iio: mxs-lradc: add support to optional divider_by_two
@ 2013-07-19  9:13 Hector Palacios
       [not found] ` <1374225208-28940-1-git-send-email-hector.palacios-i7dp0qKlBMg@public.gmane.org>
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: Hector Palacios @ 2013-07-19  9:13 UTC (permalink / raw)
  To: linux-iio
  Cc: linux-kernel, devicetree-discuss, marex, alexandre.belloni, jic23,
	lars, fabio.estevam, hector.palacios

Greetings,

This is v2 of the patchset that adds support to the optional 
divider_by_two of LRADC channels. 

Changes in v2:
- Fix the sample mask passed by the touchscreen driver to the input
  subsytem, to be 12 bits.
- Move the reference voltages to the Device Tree.
- Rebased to avoid conflict with Marek Vasut's prior patch.
- Use IIO_DEVICE_ATTR() macro for adding scale_available property to
  all channels.
- Make 'is_divided' unsigned int.

Notes:
- Other fixes were discussed in v1 but they were not part of this
  patchset changes, and should be handled in a separate patch.
- The 64bit math to calculate the integer and decimal parts of the
  scaling attribute is a bit unreadable but used in other similar
  drivers like ad7791, ad7793, and ad7192. If it is to be changed
  it should be done in parallel with these, in a different patch.

The first patch changes the realbits to 12. The 
second adds the channels reference voltages to the DT.
The following add the scale read operation, scale_available read 
operation, and scale write operation.

This was tested on a custom i.MX28 platform.
Could someone please test on an i.MX23?

Hector Palacios (5):
  iio: mxs-lradc: change the realbits to 12
  ARM: dts: add reference voltage property for MXS LRADC
  iio: mxs-lradc: add scale attribute to channels
  iio: mxs-lradc: add scale_available file to channels
  iio: mxs-lradc: add write_raw function to modify scale

 .../bindings/staging/iio/adc/mxs-lradc.txt         |   9 +-
 arch/arm/boot/dts/imx23.dtsi                       |   4 +
 arch/arm/boot/dts/imx28.dtsi                       |   4 +
 drivers/staging/iio/adc/mxs-lradc.c                | 249 ++++++++++++++++++---
 4 files changed, 231 insertions(+), 35 deletions(-)

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2013-07-22  8:01 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-19  9:13 [PATCH v2 0/5] iio: mxs-lradc: add support to optional divider_by_two Hector Palacios
     [not found] ` <1374225208-28940-1-git-send-email-hector.palacios-i7dp0qKlBMg@public.gmane.org>
2013-07-19  9:13   ` [PATCH v2 1/5] iio: mxs-lradc: change the realbits to 12 Hector Palacios
     [not found]     ` <1374225208-28940-2-git-send-email-hector.palacios-i7dp0qKlBMg@public.gmane.org>
2013-07-19 13:56       ` Marek Vasut
2013-07-19 17:09       ` Alexandre Belloni
2013-07-19  9:13   ` [PATCH v2 3/5] iio: mxs-lradc: add scale attribute to channels Hector Palacios
     [not found]     ` <1374225208-28940-4-git-send-email-hector.palacios-i7dp0qKlBMg@public.gmane.org>
2013-07-19 14:30       ` Marek Vasut
     [not found]         ` <201307191630.17149.marex-ynQEQJNshbs@public.gmane.org>
2013-07-19 15:44           ` Hector Palacios
     [not found]             ` <51E95EF1.4040503-i7dp0qKlBMg@public.gmane.org>
2013-07-19 16:14               ` Marek Vasut
     [not found]                 ` <201307191814.15491.marex-ynQEQJNshbs@public.gmane.org>
2013-07-22  7:22                   ` Hector Palacios
     [not found]                     ` <51ECDD9F.4080506-i7dp0qKlBMg@public.gmane.org>
2013-07-22  7:42                       ` Marek Vasut
     [not found]                         ` <201307220942.08990.marex-ynQEQJNshbs@public.gmane.org>
2013-07-22  7:46                           ` Hector Palacios
2013-07-22  7:58                             ` Marek Vasut
2013-07-19 17:06       ` Alexandre Belloni
     [not found]         ` <51E97201.4010508-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2013-07-22  7:26           ` Hector Palacios
2013-07-19  9:13   ` [PATCH v2 5/5] iio: mxs-lradc: add write_raw function to modify scale Hector Palacios
     [not found]     ` <1374225208-28940-6-git-send-email-hector.palacios-i7dp0qKlBMg@public.gmane.org>
2013-07-19 14:39       ` Marek Vasut
     [not found]         ` <201307191639.01240.marex-ynQEQJNshbs@public.gmane.org>
2013-07-19 15:31           ` Hector Palacios
     [not found]             ` <51E95BEC.5080703-i7dp0qKlBMg@public.gmane.org>
2013-07-19 16:17               ` Marek Vasut
2013-07-19 16:22                 ` Hector Palacios
     [not found]                   ` <51E967D8.8020001-i7dp0qKlBMg@public.gmane.org>
2013-07-19 20:23                     ` Jonathan Cameron
     [not found]                       ` <51E9A029.3000008-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-07-20 19:00                         ` Marek Vasut
2013-07-19 20:32               ` Jonathan Cameron
     [not found]                 ` <51E9A240.3000108-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-07-22  8:01                   ` Hector Palacios
2013-07-19 17:21       ` Alexandre Belloni
2013-07-19  9:13 ` [PATCH v2 2/5] ARM: dts: add reference voltage property for MXS LRADC Hector Palacios
     [not found]   ` <1374225208-28940-3-git-send-email-hector.palacios-i7dp0qKlBMg@public.gmane.org>
2013-07-19 13:58     ` Marek Vasut
2013-07-19 17:10     ` Alexandre Belloni
2013-07-19  9:13 ` [PATCH v2 4/5] iio: mxs-lradc: add scale_available file to channels Hector Palacios
     [not found]   ` <1374225208-28940-5-git-send-email-hector.palacios-i7dp0qKlBMg@public.gmane.org>
2013-07-19 17:20     ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).