[PATCH v3 1/3] ARM: dts: qcom: pm8921: add labels for ADC channels

Antony Kurniawan Soemardi
2026-04-05T17:30:36Z

Add label properties to all XOADC ADC channel nodes in the PM8921 PMIC
device tree. This allows userspace and drivers to identify channels by
name rather than relying on datasheet name.

Acked-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Antony Kurniawan Soemardi <linux@smankusors.com>
---
arch/arm/boot/dts/qcom/pm8921.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/qcom/pm8921.dtsi b/arch/arm/boot/dts/qcom/pm8921.dtsi
index 535cb6a2543f69bc30abc89bff4e14a19147ce38..15246f4bd2672ccd4fc3359b66541d53d4da88b4 100644
--- a/arch/arm/boot/dts/qcom/pm8921.dtsi
+++ b/arch/arm/boot/dts/qcom/pm8921.dtsi
@@ -75,50 +75,62 @@ pm8921_xoadc: xoadc@197 {

vcoin: adc-channel@0 {
reg = <0x00 0x00>;
+ label = "vcoin";
};

vbat: adc-channel@1 {
reg = <0x00 0x01>;
+ label = "vbat";
};

dcin: adc-channel@2 {
reg = <0x00 0x02>;
+ label = "dcin";
};

vph_pwr: adc-channel@4 {
reg = <0x00 0x04>;
+ label = "vph_pwr";
};

batt_therm: adc-channel@8 {
reg = <0x00 0x08>;
+ label = "batt_therm";
};

batt_id: adc-channel@9 {
reg = <0x00 0x09>;
+ label = "batt_id";
};

usb_vbus: adc-channel@a {
reg = <0x00 0x0a>;
+ label = "usb_vbus";
};

die_temp: adc-channel@b {
reg = <0x00 0x0b>;
+ label = "die_temp";
};

ref_625mv: adc-channel@c {
reg = <0x00 0x0c>;
+ label = "ref_625mv";
};

ref_1250mv: adc-channel@d {
reg = <0x00 0x0d>;
+ label = "ref_1250mv";
};

chg_temp: adc-channel@e {
reg = <0x00 0x0e>;
+ label = "chg_temp";
};

ref_muxoff: adc-channel@f {
reg = <0x00 0x0f>;
+ label = "ref_muxoff";
};
};
};

--
2.34.1