public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: adc: qcom-pm8xxx-xoadc: add support for reading channel labels from DT
@ 2026-03-25 21:02 Antony Kurniawan Soemardi
  2026-03-25 21:02 ` [PATCH 1/2] ARM: dts: qcom: pm8921: add labels for ADC channels Antony Kurniawan Soemardi
  2026-03-25 21:02 ` [PATCH 2/2] iio: adc: qcom-pm8xxx-xoadc: add support for reading channel labels Antony Kurniawan Soemardi
  0 siblings, 2 replies; 9+ messages in thread
From: Antony Kurniawan Soemardi @ 2026-03-25 21:02 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Jonathan Cameron, David Lechner, Nuno Sá,
	Andy Shevchenko
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-iio, phone-devel,
	Antony Kurniawan Soemardi

This series adds support for reading channel labels from the device tree
in the the Qualcomm PM8xxx XOADC driver, along with the corresponding
DT updates for the PM8921 PMIC.

Tested on Sony Xperia SP (PM8921):
> cat /sys/bus/iio/devices/iio\:device0/in_voltage7_label
usb_vbus
> cat /sys/bus/iio/devices/iio\:device0/in_temp12_label
ref_muxoff

This patch was originally part of the larger series addressing the said
driver improvements. As the calibration fixes are not yet ready, the
label support is split out to allow independent review and merging.

Changes since original patch:
- The label is now read from the platform description (device tree)
  instead of the internal datasheet name.
- Link to original patch:
  https://lore.kernel.org/all/20251028-pm8xxx-xoadc-fix-v1-1-b000e1036e41@smankusors.com/

Signed-off-by: Antony Kurniawan Soemardi <linux@smankusors.com>
---
Antony Kurniawan Soemardi (2):
      ARM: dts: qcom: pm8921: add labels for ADC channels
      iio: adc: qcom-pm8xxx-xoadc: add support for reading channel labels

 arch/arm/boot/dts/qcom/pm8921.dtsi  | 12 ++++++++++++
 drivers/iio/adc/qcom-pm8xxx-xoadc.c | 26 +++++++++++++++++++++-----
 2 files changed, 33 insertions(+), 5 deletions(-)
---
base-commit: c612261bedd6bbab7109f798715e449c9d20ff2f
change-id: 20260321-pm8xxx-xoadc-label-47afdf7f06a9

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


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

end of thread, other threads:[~2026-03-29 11:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-25 21:02 [PATCH 0/2] iio: adc: qcom-pm8xxx-xoadc: add support for reading channel labels from DT Antony Kurniawan Soemardi
2026-03-25 21:02 ` [PATCH 1/2] ARM: dts: qcom: pm8921: add labels for ADC channels Antony Kurniawan Soemardi
2026-03-26 11:01   ` Konrad Dybcio
2026-03-25 21:02 ` [PATCH 2/2] iio: adc: qcom-pm8xxx-xoadc: add support for reading channel labels Antony Kurniawan Soemardi
2026-03-26 10:18   ` Andy Shevchenko
2026-03-26 12:00     ` Antony Kurniawan Soemardi
2026-03-26 19:04       ` Andy Shevchenko
2026-03-27 19:05         ` Antony Kurniawan Soemardi
2026-03-29 11:54           ` Andy Shevchenko

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