diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2018-09-28 00:22:53 +0300 |
---|---|---|
committer | Andy Gross <agross@kernel.org> | 2019-04-23 22:19:06 +0300 |
commit | 7bfd90f5a57e49c3b97929ce1f7868629e3e13d0 (patch) | |
tree | b6bb939a94e6668d57a3437027f3d0eb78144342 /arch/arm64/boot/dts/qcom/pm8998.dtsi | |
parent | 6ef7c11b31a57e43062da15a36fac54fcb97b533 (diff) | |
download | linux-7bfd90f5a57e49c3b97929ce1f7868629e3e13d0.tar.xz |
arm64: dts: qcom: pm8998: Use ADC temperature to temp-alarm node
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>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/pm8998.dtsi')
-rw-r--r-- | arch/arm64/boot/dts/qcom/pm8998.dtsi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/pm8998.dtsi b/arch/arm64/boot/dts/qcom/pm8998.dtsi index 4872f116758d..d3ca35a940fb 100644 --- a/arch/arm64/boot/dts/qcom/pm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8998.dtsi @@ -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>; }; |