]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
arm64: dts: qcom: sc7280: Add ADC channel nodes for PMIC temperatures to sc7280-idp
authorsatya priya <skakit@codeaurora.org>
Tue, 25 May 2021 10:11:05 +0000 (15:41 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 26 May 2021 03:40:34 +0000 (22:40 -0500)
Add channel nodes for the on die temperatures of PMICS
pmk8350, pm8350, pmr735a and pmr735b.

Signed-off-by: satya priya <skakit@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/1621937466-1502-11-git-send-email-skakit@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/sc7280-idp.dts

index f2955808083fb40d555d791c8bedd4e58c339b28..704fb9a88a61b5df9c2f8b0655fa4b502198b780 100644 (file)
@@ -7,6 +7,10 @@
 
 /dts-v1/;
 
+#include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h>
+#include <dt-bindings/iio/qcom,spmi-adc7-pmr735b.h>
+#include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h>
+#include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h>
 #include "sc7280.dtsi"
 #include "pm7325.dtsi"
 #include "pmr735a.dtsi"
        };
 };
 
+&pmk8350_vadc {
+               pm8350_die_temp {
+                       reg = <PM8350_ADC7_DIE_TEMP>;
+                       label = "pm8350_die_temp";
+                       qcom,pre-scaling = <1 1>;
+               };
+
+               pmk8350_die_temp {
+                       reg = <PMK8350_ADC7_DIE_TEMP>;
+                       label = "pmk8350_die_temp";
+                       qcom,pre-scaling = <1 1>;
+               };
+
+               pmr735a_die_temp {
+                       reg = <PMR735A_ADC7_DIE_TEMP>;
+                       label = "pmr735a_die_temp";
+                       qcom,pre-scaling = <1 1>;
+               };
+
+               pmr735b_die_temp {
+                       reg = <PMR735B_ADC7_DIE_TEMP>;
+                       label = "pmr735b_die_temp";
+                       qcom,pre-scaling = <1 1>;
+               };
+};
+
 &qupv3_id_0 {
        status = "okay";
 };