summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/pm8953.dtsi
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2023-06-25 13:13:05 +0200
committerBjorn Andersson <andersson@kernel.org>2023-07-09 21:29:37 -0700
commit519c47acac28db7cec7ab5d929055a73001ac2d9 (patch)
tree7035670cfabb0523c4237eabdcd1d5e628984466 /arch/arm64/boot/dts/qcom/pm8953.dtsi
parent6d5872f2ccbe4ebd6aa926e3699a760356009dbb (diff)
downloadlwn-519c47acac28db7cec7ab5d929055a73001ac2d9.tar.gz
lwn-519c47acac28db7cec7ab5d929055a73001ac2d9.zip
arm64: dts: qcom: pm8953: Add thermal zone
Define the themal zones using the temperature values found in the downstream 4.9 sources so that the spmi-temp-alarm driver becomes active. Signed-off-by: Luca Weiss <luca@z3ntu.xyz> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20230625-pm8953-thermal-v1-1-2b4247d2f769@z3ntu.xyz Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/pm8953.dtsi')
-rw-r--r--arch/arm64/boot/dts/qcom/pm8953.dtsi33
1 files changed, 32 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/qcom/pm8953.dtsi b/arch/arm64/boot/dts/qcom/pm8953.dtsi
index 2268daf27fa7..d2dfc1699174 100644
--- a/arch/arm64/boot/dts/qcom/pm8953.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm8953.dtsi
@@ -6,6 +6,37 @@
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/spmi/spmi.h>
+/ {
+ thermal-zones {
+ pm8953-thermal {
+ polling-delay-passive = <0>;
+ polling-delay = <0>;
+
+ thermal-sensors = <&pm8953_temp>;
+
+ trips {
+ trip0 {
+ temperature = <105000>;
+ hysteresis = <0>;
+ type = "passive";
+ };
+
+ trip1 {
+ temperature = <125000>;
+ hysteresis = <0>;
+ type = "hot";
+ };
+
+ trip2 {
+ temperature = <145000>;
+ hysteresis = <0>;
+ type = "critical";
+ };
+ };
+ };
+ };
+};
+
&spmi_bus {
pmic@0 {
compatible = "qcom,pm8953", "qcom,spmi-pmic";
@@ -36,7 +67,7 @@
};
};
- temp-alarm@2400 {
+ pm8953_temp: temp-alarm@2400 {
compatible = "qcom,spmi-temp-alarm";
reg = <0x2400>;
interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;