Skip to content

Commit 92767f9

Browse files
Smankusorsjic23
authored andcommitted
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>
1 parent 70a1012 commit 92767f9

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ patternProperties:
7878
reg:
7979
maxItems: 1
8080

81+
label:
82+
description: |
83+
Unique name to identify which channel this is.
84+
8185
qcom,decimation:
8286
$ref: /schemas/types.yaml#/definitions/uint32
8387
description: |
@@ -130,36 +134,47 @@ examples:
130134
131135
vcoin: adc-channel@0 {
132136
reg = <0x00 0x00>;
137+
label = "vcoin";
133138
};
134139
vbat: adc-channel@1 {
135140
reg = <0x00 0x01>;
141+
label = "vbat";
136142
};
137143
dcin: adc-channel@2 {
138144
reg = <0x00 0x02>;
145+
label = "dcin";
139146
};
140147
ichg: adc-channel@3 {
141148
reg = <0x00 0x03>;
149+
label = "ichg";
142150
};
143151
vph_pwr: adc-channel@4 {
144152
reg = <0x00 0x04>;
153+
label = "vph_pwr";
145154
};
146155
usb_vbus: adc-channel@a {
147156
reg = <0x00 0x0a>;
157+
label = "usb_vbus";
148158
};
149159
die_temp: adc-channel@b {
150160
reg = <0x00 0x0b>;
161+
label = "die_temp";
151162
};
152163
ref_625mv: adc-channel@c {
153164
reg = <0x00 0x0c>;
165+
label = "ref_625mv";
154166
};
155167
ref_1250mv: adc-channel@d {
156168
reg = <0x00 0x0d>;
169+
label = "ref_1250mv";
157170
};
158171
ref_325mv: adc-channel@e {
159172
reg = <0x00 0x0e>;
173+
label = "ref_325mv";
160174
};
161175
ref_muxoff: adc-channel@f {
162176
reg = <0x00 0x0f>;
177+
label = "ref_muxoff";
163178
};
164179
};
165180
};

0 commit comments

Comments
 (0)