Skip to content

Commit

Permalink
arm64: dts: qcom: sc8280xp-pmics: Add thermal zones for PM8280_{1/2} …
Browse files Browse the repository at this point in the history
…PMICs

Add thermal zones for the PM8280_{1/2} PMICs by using the temperature
alarm blocks as the thermal sensors. Temperature trip points are
inherited from PM8350 PMIC.

Reviewed-by: Konrad Dybcio <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
Mani-Sadhasivam authored and andersson committed Nov 7, 2022
1 parent 6c82f40 commit 448a782
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,50 @@
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/spmi/spmi.h>

/ {
thermal-zones {
pm8280_1_thermal: pm8280-1-thermal {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-sensors = <&pm8280_1_temp_alarm>;

trips {
trip0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};

trip1 {
temperature = <115000>;
hysteresis = <0>;
type = "critical";
};
};
};

pm8280_2_thermal: pm8280-2-thermal {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-sensors = <&pm8280_2_temp_alarm>;

trips {
trip0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};

trip1 {
temperature = <115000>;
hysteresis = <0>;
type = "critical";
};
};
};
};
};

&spmi_bus {
pmk8280: pmic@0 {
compatible = "qcom,pmk8350", "qcom,spmi-pmic";
Expand Down

0 comments on commit 448a782

Please sign in to comment.