Commit bb06eb36 authored by Antony Wang's avatar Antony Wang Committed by Bjorn Andersson

arm64: qcom: sc7180: trogdor: Add ADC nodes and thermal zone for charger thermistor

Trogdor has a thermistor to monitor the temperature of the charger IC.
Add the ADC (monitor) nodes and a thermal zone for this thermistor.
Signed-off-by: default avatarAntony Wang <antony_wang@compal.corp-partner.google.com>
[mka: tweaked commit message]
Signed-off-by: default avatarMatthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/20201030084840.1.If389f211a8532b83095ff8c66ec181424440f8d6@changeidSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 7ee3eae8
......@@ -13,6 +13,23 @@
#include "pm6150.dtsi"
#include "pm6150l.dtsi"
/ {
thermal-zones {
charger-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pm6150_adc_tm 1>;
trips {
temperature = <125000>;
hysteresis = <1000>;
type = "critical";
};
};
};
};
/*
* Reserved memory changes
*
......@@ -741,6 +758,25 @@ &mdss {
status = "okay";
};
&pm6150_adc {
charger-thermistor@4f {
reg = <ADC5_AMUX_THM3_100K_PU>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
};
};
&pm6150_adc_tm {
status = "okay";
charger-thermistor@1 {
reg = <1>;
io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>;
qcom,ratiometric;
qcom,hw-settle-time-us = <200>;
};
};
&pm6150_pwrkey {
status = "disabled";
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment