public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: adc: qcom-pm8xxx-xoadc improvements
@ 2025-10-27 17:29 Antony Kurniawan Soemardi
  2025-10-27 17:29 ` [PATCH 1/2] iio: adc: qcom-pm8xxx-xoadc: add support for reading channel labels Antony Kurniawan Soemardi
  2025-10-27 17:29 ` [PATCH 2/2] iio: adc: qcom-pm8xxx-xoadc: fix incorrect calibration values Antony Kurniawan Soemardi
  0 siblings, 2 replies; 13+ messages in thread
From: Antony Kurniawan Soemardi @ 2025-10-27 17:29 UTC (permalink / raw)
  To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: linux-arm-msm, linux-iio, linux-kernel, Antony Kurniawan Soemardi

This small series improves the Qualcomm PM8xxx XOADC driver in two ways:

1. Adds support for reading channel labels through sysfs.
   This helps user-space tools identify ADC channels by name.

2. Fixes incorrect calibration values used on msm8960-based devices.
   Previously, the driver failed to apply the proper ratiometric scaling
   and incorrectly set certain bits in the ADC_ARB_USRP_DIG_PARAM
   register. This resulted in inaccurate voltage readings from the IIO
   interface. With the fix, calibration values now match downstream
   implementations, and readings for channels like USB_VBUS and 125V
   are correct.

Tested on Sony Xperia SP.

Signed-off-by: Antony Kurniawan Soemardi <linux@smankusors.com>
---
Antony Kurniawan Soemardi (2):
      iio: adc: qcom-pm8xxx-xoadc: add support for reading channel labels
      iio: adc: qcom-pm8xxx-xoadc: fix incorrect calibration values

 drivers/iio/adc/qcom-pm8xxx-xoadc.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
---
base-commit: dcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa
change-id: 20251018-pm8xxx-xoadc-fix-b98f8ff20f57

Best regards,
--
Antony Kurniawan Soemardi <linux@smankusors.com>


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

end of thread, other threads:[~2026-01-15  7:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-27 17:29 [PATCH 0/2] iio: adc: qcom-pm8xxx-xoadc improvements Antony Kurniawan Soemardi
2025-10-27 17:29 ` [PATCH 1/2] iio: adc: qcom-pm8xxx-xoadc: add support for reading channel labels Antony Kurniawan Soemardi
2025-10-28  9:55   ` Andy Shevchenko
2025-10-27 17:29 ` [PATCH 2/2] iio: adc: qcom-pm8xxx-xoadc: fix incorrect calibration values Antony Kurniawan Soemardi
2025-10-27 18:35   ` David Lechner
2025-10-27 19:53     ` Antony Kurniawan Soemardi
2025-10-27 20:36       ` David Lechner
2025-10-28  9:44   ` Konrad Dybcio
2025-10-30 16:57     ` Antony Kurniawan Soemardi
2025-10-31  9:00       ` Konrad Dybcio
2025-11-01  9:25         ` Dmitry Baryshkov
2026-01-11 17:31           ` Antony Kurniawan Soemardi
2026-01-15  7:32             ` Dmitry Baryshkov

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