summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Kurniawan Soemardi <linux@smankusors.com>2026-05-10 07:01:33 +0000
committerJonathan Cameron <jic23@kernel.org>2026-05-31 10:59:39 +0100
commit92767f9f574c985fdf9ff9c25e59624a74db58a1 (patch)
tree7e2979d17a3f8657e99a28bb4449bf9989167759
parent70a1012793056852df6eda5a89cbf0476e0590e9 (diff)
dt-bindings: iio: adc: qcom,pm8018-adc: add label property for ADC channels
Add a new optional label property for ADC channels to help users identify each channel when reading values from the sysfs interface. Signed-off-by: Antony Kurniawan Soemardi <linux@smankusors.com> Reviewed-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml
index c978c3a3e31a..63aac8de22ad 100644
--- a/Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml
@@ -78,6 +78,10 @@ patternProperties:
reg:
maxItems: 1
+ label:
+ description: |
+ Unique name to identify which channel this is.
+
qcom,decimation:
$ref: /schemas/types.yaml#/definitions/uint32
description: |
@@ -130,36 +134,47 @@ examples:
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";
};
ichg: adc-channel@3 {
reg = <0x00 0x03>;
+ label = "ichg";
};
vph_pwr: adc-channel@4 {
reg = <0x00 0x04>;
+ label = "vph_pwr";
};
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";
};
ref_325mv: adc-channel@e {
reg = <0x00 0x0e>;
+ label = "ref_325mv";
};
ref_muxoff: adc-channel@f {
reg = <0x00 0x0f>;
+ label = "ref_muxoff";
};
};
};