mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
arm64: dts: qcom: pm6150l: add temp sensor and thermal zone config
[ Upstream commit ce1b5eb74b ]
Add temp-alarm device tree node and a default configuration for the
corresponding thermal zone for this PMIC. Temperatures are based on
downstream values, except for trip2 where 125°C is used instead of 145°C
due to limitations without a configured ADC.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221028075405.124809-2-luca.weiss@fairphone.com
Stable-dep-of: 9180b38d706c ("arm64: dts: qcom: sc7180-trogdor-pompom: rename 5v-choke thermal zone")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4086557f09
commit
c2781867da
@@ -5,6 +5,37 @@
|
|||||||
#include <dt-bindings/interrupt-controller/irq.h>
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
#include <dt-bindings/spmi/spmi.h>
|
#include <dt-bindings/spmi/spmi.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
thermal-zones {
|
||||||
|
pm6150l-thermal {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
|
||||||
|
thermal-sensors = <&pm6150l_temp>;
|
||||||
|
|
||||||
|
trips {
|
||||||
|
trip0 {
|
||||||
|
temperature = <95000>;
|
||||||
|
hysteresis = <0>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
|
||||||
|
trip1 {
|
||||||
|
temperature = <115000>;
|
||||||
|
hysteresis = <0>;
|
||||||
|
type = "hot";
|
||||||
|
};
|
||||||
|
|
||||||
|
trip2 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <0>;
|
||||||
|
type = "critical";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&spmi_bus {
|
&spmi_bus {
|
||||||
pm6150l_lsid4: pmic@4 {
|
pm6150l_lsid4: pmic@4 {
|
||||||
compatible = "qcom,pm6150l", "qcom,spmi-pmic";
|
compatible = "qcom,pm6150l", "qcom,spmi-pmic";
|
||||||
@@ -12,6 +43,13 @@
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
pm6150l_temp: temp-alarm@2400 {
|
||||||
|
compatible = "qcom,spmi-temp-alarm";
|
||||||
|
reg = <0x2400>;
|
||||||
|
interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
|
||||||
|
#thermal-sensor-cells = <0>;
|
||||||
|
};
|
||||||
|
|
||||||
pm6150l_adc: adc@3100 {
|
pm6150l_adc: adc@3100 {
|
||||||
compatible = "qcom,spmi-adc5";
|
compatible = "qcom,spmi-adc5";
|
||||||
reg = <0x3100>;
|
reg = <0x3100>;
|
||||||
|
|||||||
Reference in New Issue
Block a user