Skip to content

Commit d9f7eea

Browse files
MarijnS95dlezcano
authored andcommitted
dt-bindings: thermal: Use generic ADC node name in examples
Update the examples to reflect a future requirement for the generic `channel` node name on ADC channel nodes, while conveying the board name of the channel in a label instead. Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230410202917.247666-4-marijn.suijten@somainline.org
1 parent a8a2330 commit d9f7eea

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm-hc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ examples:
124124
#size-cells = <0>;
125125
#io-channel-cells = <1>;
126126
127-
/* Other propreties are omitted */
128-
adc-chan@4c {
127+
/* Other properties are omitted */
128+
channel@4c {
129129
reg = <ADC5_XO_THERM_100K_PU>;
130130
};
131131
};

Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,11 @@ examples:
178178
#io-channel-cells = <1>;
179179
180180
/* Other properties are omitted */
181-
conn-therm@4f {
181+
channel@4f {
182182
reg = <ADC5_AMUX_THM3_100K_PU>;
183183
qcom,ratiometric;
184184
qcom,hw-settle-time = <200>;
185+
label = "conn_therm";
185186
};
186187
};
187188
@@ -217,16 +218,18 @@ examples:
217218
#io-channel-cells = <1>;
218219
219220
/* Other properties are omitted */
220-
xo-therm@44 {
221+
channel@44 {
221222
reg = <PMK8350_ADC7_AMUX_THM1_100K_PU>;
222223
qcom,ratiometric;
223224
qcom,hw-settle-time = <200>;
225+
label = "xo_therm";
224226
};
225227
226-
conn-therm@147 {
228+
channel@147 {
227229
reg = <PM8350_ADC7_AMUX_THM4_100K_PU(1)>;
228230
qcom,ratiometric;
229231
qcom,hw-settle-time = <200>;
232+
label = "conn_therm";
230233
};
231234
};
232235

0 commit comments

Comments
 (0)