Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits
@ 2017-07-06  9:06 Stefan-Gabriel Mirea
  2017-07-06 18:41 ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan-Gabriel Mirea @ 2017-07-06  9:06 UTC (permalink / raw)
  To: jic23; +Cc: knaack.h, lars, pmeerw, singhalsimran0, linux-iio

In order to select the alternate voltage reference pair (VALTH/VALTL), the
right value for the REFSEL field in the ADCx_CFG register is "01", leading
to 0x800 as register mask. See section 8.2.6.4 in the reference manual[1].

[1] http://www.nxp.com/docs/en/reference-manual/VFXXXRM.pdf

Fixes: a775427632fd ("iio:adc:imx: add Freescale Vybrid vf610 adc driver")
Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
---
 drivers/iio/adc/vf610_adc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/vf610_adc.c b/drivers/iio/adc/vf610_adc.c
index 01fc76f7d660..c168e0db329a 100644
--- a/drivers/iio/adc/vf610_adc.c
+++ b/drivers/iio/adc/vf610_adc.c
@@ -77,7 +77,7 @@
 #define VF610_ADC_ADSTS_MASK		0x300
 #define VF610_ADC_ADLPC_EN		0x80
 #define VF610_ADC_ADHSC_EN		0x400
-#define VF610_ADC_REFSEL_VALT		0x100
+#define VF610_ADC_REFSEL_VALT		0x800
 #define VF610_ADC_REFSEL_VBG		0x1000
 #define VF610_ADC_ADTRG_HARD		0x2000
 #define VF610_ADC_AVGS_8		0x4000
-- 
1.9.1


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

* Re: [PATCH] iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits
  2017-07-06  9:06 [PATCH] iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits Stefan-Gabriel Mirea
@ 2017-07-06 18:41 ` Jonathan Cameron
  2017-07-07  8:54   ` Stefan-gabriel Mirea
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Cameron @ 2017-07-06 18:41 UTC (permalink / raw)
  To: Stefan-Gabriel Mirea
  Cc: knaack.h, lars, pmeerw, singhalsimran0, linux-iio, Fugang Duan

On Thu,  6 Jul 2017 10:06:41 +0100
Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com> wrote:

> In order to select the alternate voltage reference pair (VALTH/VALTL), the
> right value for the REFSEL field in the ADCx_CFG register is "01", leading
> to 0x800 as register mask. See section 8.2.6.4 in the reference manual[1].
> 
> [1] http://www.nxp.com/docs/en/reference-manual/VFXXXRM.pdf
> 
> Fixes: a775427632fd ("iio:adc:imx: add Freescale Vybrid vf610 adc driver")
> Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
Looks good.

Applied to the fixes to greg branch of iio.git.  

Cc'd Fugang as the original author.

Btw if you know the author is no longer available, adding a note below the
  --- saves on me trying to get hold of them!

Thanks,

Jonathan
> ---
>  drivers/iio/adc/vf610_adc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/vf610_adc.c b/drivers/iio/adc/vf610_adc.c
> index 01fc76f7d660..c168e0db329a 100644
> --- a/drivers/iio/adc/vf610_adc.c
> +++ b/drivers/iio/adc/vf610_adc.c
> @@ -77,7 +77,7 @@
>  #define VF610_ADC_ADSTS_MASK		0x300
>  #define VF610_ADC_ADLPC_EN		0x80
>  #define VF610_ADC_ADHSC_EN		0x400
> -#define VF610_ADC_REFSEL_VALT		0x100
> +#define VF610_ADC_REFSEL_VALT		0x800
>  #define VF610_ADC_REFSEL_VBG		0x1000
>  #define VF610_ADC_ADTRG_HARD		0x2000
>  #define VF610_ADC_AVGS_8		0x4000


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

* RE: [PATCH] iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits
  2017-07-06 18:41 ` Jonathan Cameron
@ 2017-07-07  8:54   ` Stefan-gabriel Mirea
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan-gabriel Mirea @ 2017-07-07  8:54 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net,
	singhalsimran0@gmail.com, linux-iio@vger.kernel.org,
	b38611@freescale.com, Andy Duan

Jonathan Cameron <jic23@kernel.org> writes:
> Looks good.
>=20
> Applied to the fixes to greg branch of iio.git.

Thank you.

> Cc'd Fugang as the original author.
>=20
> Btw if you know the author is no longer available, adding a note below th=
e
>   --- saves on me trying to get hold of them!

I only took maintainers from the get_maintainer.pl output. Now I Cc'd Andy
Duan on his new address as well.

Stefan

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

end of thread, other threads:[~2017-07-07  8:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-06  9:06 [PATCH] iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits Stefan-Gabriel Mirea
2017-07-06 18:41 ` Jonathan Cameron
2017-07-07  8:54   ` Stefan-gabriel Mirea

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox