patch "iio/adc: ingenic: Fix battery VREF for JZ4770 SoC" added to staging-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
iio/adc: ingenic: Fix battery VREF for JZ4770 SoC
to my staging git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From c91ebcc578e09783cfa4d85c1b437790f140f29a Mon Sep 17 00:00:00 2001
From: Paul Cercueil <[email protected]>
Date: Wed, 4 Nov 2020 19:28:43 +0000
Subject: iio/adc: ingenic: Fix battery VREF for JZ4770 SoC
The reference voltage for the battery is clearly marked as 1.2V in the programming manual. With this fixed, the battery channel now returns correct values.
--- drivers/iio/adc/ingenic-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/ingenic-adc.c +1 -1
@@ -71,7 +71,7 @@#define JZ4725B_ADC_BATTERY_HIGH_VREF_BITS 10#define JZ4740_ADC_BATTERY_HIGH_VREF (7500 * 0.986)#define JZ4740_ADC_BATTERY_HIGH_VREF_BITS 12 -#define JZ4770_ADC_BATTERY_VREF 6600 +#define JZ4770_ADC_BATTERY_VREF 1200#define JZ4770_ADC_BATTERY_VREF_BITS 12#define JZ_ADC_IRQ_AUX BIT(0)
Signature · 1 line
2.29.2