mirror of
https://github.com/Evolution-X-Devices/kernel_xiaomi_sm8450-devicetrees
synced 2026-02-01 08:51:30 +00:00
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:
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user