Re: [PATCH v6 0/4] iio: adc: qcom-pm8xxx-xoadc: add support for reading channel labels from DT
From: Jonathan Cameron
Date: Mon May 11 2026 - 12:28:08 EST
On Sun, 10 May 2026 07:01:29 +0000 (UTC)
Antony Kurniawan Soemardi <linux@xxxxxxxxxxxxxx> wrote:
> This series adds support for reading channel labels from the device tree
> in the Qualcomm PM8xxx XOADC driver, along with the corresponding DT
> updates for the PM8921 PMIC. Also removes the redundant error logs when
> reading values, as returning -EINVAL and -ETIMEDOUT are sufficient to
> report failures.
>
> This series also includes minor refactoring, such as removing redundant
> error loggings.
>
> 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
> > sensors
> iio_hwmon-isa-0000
> Adapter: ISA adapter
> vbat: 267.86 V
> dcin: 4.82 kV
> ...
> chg_temp: +1071.4°C
>
> Note: the sensor readings above are incorrect due to pending calibration
> fixes are not included in this series. This patch only addresses label
> visibility. The values are expected to be wrong until the calibration
> fixes lands separately.
Applied patches 3 and 4 to the testing branch of iio.git.
When I get caught up with the backlog and the tests finish I'll push that
out as togreg for linux-next to pick up.
Thanks,
Jonathan