arm64: dts: qcom: pm8998: Use ADC temperature to temp-alarm node
authorMatthias Kaehlcke <mka@chromium.org>
Thu, 27 Sep 2018 21:22:53 +0000 (14:22 -0700)
committerAndy Gross <agross@kernel.org>
Tue, 23 Apr 2019 19:19:06 +0000 (14:19 -0500)
The temperature information from the temp-alarm block itself is very
coarse ("temperature is above/below trip points"). Provide the driver
with the die temperature channel of the ADC on the PMIC for more precise
readings.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Andy Gross <agross@kernel.org>
arch/arm64/boot/dts/qcom/pm8998.dtsi

index 4872f11..d3ca35a 100644 (file)
@@ -58,6 +58,8 @@
                        compatible = "qcom,spmi-temp-alarm";
                        reg = <0x2400>;
                        interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
+                       io-channels = <&pm8998_adc ADC5_DIE_TEMP>;
+                       io-channel-names = "thermal";
                        #thermal-sensor-cells = <0>;
                };