ARM: dts: msm: Update ADC configuration for wlan_therm

wlan_therm has a 100k pullup connected to it on the board for
all platforms other than SG, so update VADC and ADC_TM
configurations for it accordingly to ensure it gives accurate readings.
While at it, also add additional thermal trip required for all
thermal zones.

Change-Id: If88e4dde6e714942036a6babdac03a1e1da522ce
This commit is contained in:
Jishnu Prakash
2022-04-22 15:16:03 +05:30
parent e08a859011
commit 60c582303d
2 changed files with 61 additions and 6 deletions

View File

@@ -38,12 +38,17 @@
qcom,pre-scaling = <1 1>;
};
/*
* This thermistor has 100k pullup already connected,
* modify config following HW recommendation, for all
* platforms other than SG.
*/
pm8150_wlan_therm {
reg = <ADC5_AMUX_THM2_100K_PU>;
reg = <ADC5_AMUX_THM2>;
label = "pm8150_wlan_temp";
qcom,hw-settle-time = <200>;
qcom,ratiometric;
qcom,pre-scaling = <1 1>;
qcom,scale-fn-type = <ADC_SCALE_HW_CALIB_THERM_100K_PULLUP>;
};
pm8150_xo_therm {
@@ -57,7 +62,7 @@
&pm8150_adc_tm {
io-channels = <&pm8150_vadc ADC5_AMUX_THM1_100K_PU>,
<&pm8150_vadc ADC5_AMUX_THM2_100K_PU>,
<&pm8150_vadc ADC5_AMUX_THM2>,
<&pm8150_vadc ADC5_XO_THERM_100K_PU>;
pm8150_skin_therm {
@@ -66,10 +71,14 @@
qcom,ratiometric;
};
/*
* This thermistor has 100k pullup already connected,
* modify config following HW recommendation, for all
* platforms other than SG.
*/
pm8150_wlan_therm {
reg = <ADC5_AMUX_THM2_100K_PU>;
reg = <ADC5_AMUX_THM2>;
qcom,hw-settle-time = <200>;
qcom,ratiometric;
};
pm8150_xo_therm {
@@ -90,19 +99,31 @@
hysteresis = <1000>;
type = "passive";
};
active-config1 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
sys-therm-1 {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pm8150_adc_tm ADC5_AMUX_THM2_100K_PU>;
thermal-sensors = <&pm8150_adc_tm ADC5_AMUX_THM2>;
trips {
active-config0 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
active-config1 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
@@ -116,6 +137,12 @@
hysteresis = <1000>;
type = "passive";
};
active-config1 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
};

View File

@@ -2,3 +2,31 @@
&soc {
};
&pm8150_vadc {
pm8150_wlan_therm {
reg = <ADC5_AMUX_THM2_100K_PU>;
label = "pm8150_wlan_temp";
qcom,hw-settle-time = <200>;
qcom,ratiometric;
qcom,pre-scaling = <1 1>;
};
};
&pm8150_adc_tm {
io-channels = <&pm8150_vadc ADC5_AMUX_THM1_100K_PU>,
<&pm8150_vadc ADC5_AMUX_THM2_100K_PU>,
<&pm8150_vadc ADC5_XO_THERM_100K_PU>;
pm8150_wlan_therm {
reg = <ADC5_AMUX_THM2_100K_PU>;
qcom,hw-settle-time = <200>;
qcom,ratiometric;
};
};
&thermal_zones {
sys-therm-1 {
thermal-sensors = <&pm8150_adc_tm ADC5_AMUX_THM2_100K_PU>;
};
};