dt-bindings: thermal: Use generic ADC node name in examples
authorMarijn Suijten <marijn.suijten@somainline.org>
Mon, 10 Apr 2023 20:29:15 +0000 (22:29 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 26 Apr 2023 08:38:28 +0000 (10:38 +0200)
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
Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm-hc.yaml
Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml

index 8273ac55b63feea76e4fe664e570df7f9d89b918..01253d58bf9fa38fd335ed76705eaecd9aa7fe50 100644 (file)
@@ -124,8 +124,8 @@ examples:
             #size-cells = <0>;
             #io-channel-cells = <1>;
 
-            /* Other propreties are omitted */
-            adc-chan@4c {
+            /* Other properties are omitted */
+            channel@4c {
                 reg = <ADC5_XO_THERM_100K_PU>;
             };
         };
index 52ec18cf1edaa38e5e774e67e4cce9fcb4ed61e8..3c81def03c84c7787a4557b2bdadda2e0a27ce9a 100644 (file)
@@ -178,10 +178,11 @@ examples:
             #io-channel-cells = <1>;
 
             /* Other properties are omitted */
-            conn-therm@4f {
+            channel@4f {
                 reg = <ADC5_AMUX_THM3_100K_PU>;
                 qcom,ratiometric;
                 qcom,hw-settle-time = <200>;
+                label = "conn_therm";
             };
         };
 
@@ -217,16 +218,18 @@ examples:
             #io-channel-cells = <1>;
 
             /* Other properties are omitted */
-            xo-therm@44 {
+            channel@44 {
                 reg = <PMK8350_ADC7_AMUX_THM1_100K_PU>;
                 qcom,ratiometric;
                 qcom,hw-settle-time = <200>;
+                label = "xo_therm";
             };
 
-            conn-therm@147 {
+            channel@147 {
                 reg = <PM8350_ADC7_AMUX_THM4_100K_PU(1)>;
                 qcom,ratiometric;
                 qcom,hw-settle-time = <200>;
+                label = "conn_therm";
             };
         };