PROPAGATED_from (CR) Change chg therm uevent reporting from interrupt to polling mode to enhance the chg therm temperature updat Porting from (CR) of XieQiong2@lenovo.com Change-Id: I6b8d35fd672d49419e3d838e6f6d1d995d38d958 Signed-off-by: xuwei9 <xuwei9@lenovo.com> SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key Signed-off-by: Robert Cabral <robertc@motorola.com> Reviewed-on: https://gerrit.mot.com/1859264
111 lines
3.2 KiB
Devicetree
111 lines
3.2 KiB
Devicetree
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/iio/qcom,spmi-vadc.h>
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
&soc {
|
|
sys_temp_support {
|
|
compatible = "mmi,sys-temp";
|
|
mmi,temperature-names = "front_temp",
|
|
"back_temp";
|
|
status = "ok"
|
|
};
|
|
};
|
|
|
|
&thermal_zones {
|
|
camera-therm-usr {
|
|
status = "disabled";
|
|
};
|
|
|
|
camera_therm {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&pm6125_adc_tm_iio ADC_GPIO1_PU2>;
|
|
wake-capable-sensor;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
xo-therm-usr {
|
|
status = "disabled";
|
|
};
|
|
|
|
xo_therm {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&pm6125_adc_tm ADC_XO_THERM_PU2>;
|
|
wake-capable-sensor;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
pa-therm0-usr {
|
|
status = "disabled";
|
|
};
|
|
|
|
pa_therm0 {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&pm6125_adc_tm ADC_AMUX_THM1_PU2>;
|
|
wake-capable-sensor;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
quiet-therm-usr {
|
|
status = "disabled";
|
|
};
|
|
|
|
msm_therm {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&pm6125_adc_tm ADC_AMUX_THM2_PU2>;
|
|
wake-capable-sensor;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
chg-skin-therm-usr {
|
|
status = "disabled";
|
|
};
|
|
|
|
chg_therm {
|
|
polling-delay-passive = <5000>;
|
|
polling-delay = <20000>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&pmi632_adc_tm ADC_GPIO2_PU2>;
|
|
wake-capable-sensor;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|