thermal/NTC config NTC for bornr NA product Change-Id: I89077cbaed0c5dfcca57e161a2f654e86e5fd836 Signed-off-by: chailu1 <chailu1@lenovo.com> Reviewed-on: https://gerrit.mot.com/1604372 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yiwen Liu <liuyw2@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
190 lines
4.5 KiB
Devicetree
190 lines
4.5 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"
|
|
};
|
|
};
|
|
|
|
&pmi632_vadc {
|
|
skin_therm {
|
|
reg = <ADC_GPIO1_PU2>;
|
|
label = "conn_therm";
|
|
qcom,ratiometric;
|
|
qcom,hw-settle-time = <200>;
|
|
qcom,pre-scaling = <1 1>;
|
|
};
|
|
|
|
conn_therm {
|
|
reg = <ADC_GPIO2_PU2>;
|
|
label = "skin_therm";
|
|
qcom,ratiometric;
|
|
qcom,hw-settle-time = <200>;
|
|
qcom,pre-scaling = <1 1>;
|
|
};
|
|
};
|
|
|
|
&pmi632_adc_tm {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
io-channels = <&pmi632_vadc ADC_GPIO1_PU2>,
|
|
<&pmi632_vadc ADC_GPIO2_PU2>;
|
|
|
|
/* Channel nodes */
|
|
skin_therm {
|
|
reg = <ADC_GPIO1_PU2>;
|
|
qcom,ratiometric;
|
|
qcom,hw-settle-time = <200>;
|
|
};
|
|
|
|
conn_therm {
|
|
reg = <ADC_GPIO2_PU2>;
|
|
qcom,ratiometric;
|
|
qcom,hw-settle-time = <200>;
|
|
};
|
|
};
|
|
|
|
|
|
&pm6125_vadc {
|
|
msm_therm {
|
|
reg = <ADC_GPIO2_PU2>;
|
|
label = "msm_therm";
|
|
qcom,ratiometric;
|
|
qcom,hw-settle-time = <200>;
|
|
qcom,pre-scaling = <1 1>;
|
|
};
|
|
};
|
|
|
|
&pm6125_adc_tm_iio {
|
|
msm_therm {
|
|
reg = <ADC_GPIO2_PU2>;
|
|
qcom,ratiometric;
|
|
qcom,hw-settle-time = <200>;
|
|
};
|
|
};
|
|
|
|
&thermal_zones {
|
|
camera-therm-usr {
|
|
status = "disabled";
|
|
};
|
|
|
|
emmc-ufs-therm-usr {
|
|
status = "disabled";
|
|
};
|
|
|
|
pa_therm0 {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&pm6125_adc_tm_iio ADC_GPIO2_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";
|
|
};
|
|
|
|
msm_therm {
|
|
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";
|
|
};
|
|
|
|
quiet_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";
|
|
};
|
|
|
|
camera_therm {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&pmi632_adc_tm ADC_GPIO2_PU2>;
|
|
wake-capable-sensor;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
chg_therm {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "user_space";
|
|
thermal-sensors = <&pmi632_adc_tm ADC_GPIO1_PU2>;
|
|
wake-capable-sensor;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&mdss_mdp {
|
|
#cooling-cells = <2>;
|
|
};
|