ARM: dts: qcom: pm8941: fix vadc channel node names
authorLuca Weiss <luca@z3ntu.xyz>
Mon, 31 Oct 2022 18:10:22 +0000 (19:10 +0100)
committerBjorn Andersson <andersson@kernel.org>
Mon, 7 Nov 2022 23:21:59 +0000 (17:21 -0600)
The spmi-vadc bindings require the '@' in the node.

Additionally change the node name to adc-chan which both makes it a
generic node name and also removes the underscore from it.

At the same time sort the nodes by reg value.

Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221031181022.947412-2-luca@z3ntu.xyz
arch/arm/boot/dts/qcom-pm8941.dtsi

index 863e598591b7748b09b9801a5287d9fdfae4f779..a9e83836bf86c3d7cc97bc181fa6ff38dd73e15f 100644 (file)
                        #size-cells = <0>;
                        #io-channel-cells = <1>;
 
-                       bat_temp {
-                               reg = <VADC_LR_MUX1_BAT_THERM>;
+
+                       adc-chan@6 {
+                               reg = <VADC_VBAT_SNS>;
                        };
-                       die_temp {
+
+                       adc-chan@8 {
                                reg = <VADC_DIE_TEMP>;
                        };
-                       ref_625mv {
+
+                       adc-chan@9 {
                                reg = <VADC_REF_625MV>;
                        };
-                       ref_1250v {
+
+                       adc-chan@a {
                                reg = <VADC_REF_1250MV>;
                        };
-                       ref_gnd {
+
+                       adc-chan@e {
                                reg = <VADC_GND_REF>;
                        };
-                       ref_vdd {
+
+                       adc-chan@f {
                                reg = <VADC_VDD_VADC>;
                        };
-                       vbat_sns {
-                               reg = <VADC_VBAT_SNS>;
+
+                       adc-chan@30 {
+                               reg = <VADC_LR_MUX1_BAT_THERM>;
                        };
                };