diff options
author | Amit Kucheria <amit.kucheria@linaro.org> | 2018-12-10 17:45:42 +0530 |
---|---|---|
committer | Amit Kucheria <amit.kucheria@linaro.org> | 2018-12-10 21:16:26 +0530 |
commit | 7b7cfc29c81a9647eb5eb7878ff23b2d9a462c96 (patch) | |
tree | 9a687ecc2a5562d09acd0c9474b8c825a4e9f11d | |
parent | 7245ef86b02b06eaba3f619168ef7734fe72c7f3 (diff) |
arm64: dts: qcom: pms405: Export PMIC temperature to thermal framework
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
-rw-r--r-- | arch/arm64/boot/dts/qcom/pms405.dtsi | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi index ad2b62dfc9f6..0e006feb95f7 100644 --- a/arch/arm64/boot/dts/qcom/pms405.dtsi +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi @@ -3,6 +3,32 @@ #include <dt-bindings/spmi/spmi.h> #include <dt-bindings/input/linux-event-codes.h> +#include <dt-bindings/iio/qcom,spmi-vadc.h> +#include <dt-bindings/thermal/thermal.h> + +/ { + thermal-zones { + pms405 { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&pms405_temp>; + + trips { + pm8998_alert0: pms405-alert0 { + temperature = <105000>; + hysteresis = <2000>; + type = "passive"; + }; + pm8998_crit: pms405-crit { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; +}; &spmi_bus { pms405_0: pms405@0 { @@ -45,6 +71,13 @@ }; }; + pms405_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <0>; + }; + rtc@6000 { compatible = "qcom,pm8941-rtc"; reg = <0x6000>; |