dts:usb conn thermal ntc init

Enable usb connector thermal
ntc at guam na

Change-Id: I87de0fc4dc15a72a0e36ca5d7e4b187777e02acb
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1555092
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
xuwei9 authored and Carlos Pinho committed 2023-05-31 17:01:00 -03:00
1 parent 505d8c03ab
commit 442c6743ad
2 files changed
+141 -1

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@
#include "bengal-guam-touchscreen-overlay.dtsi" #include "bengal-guam-touchscreen-overlay.dtsi"
#include "camera/bengal-camera-sensor-mot-guamna-overlay.dtsi" #include "camera/bengal-camera-sensor-mot-guamna-overlay.dtsi"
#include "bengal-guam-fps.dtsi" #include "bengal-guam-fps.dtsi"
#include "bengal-guam-moto-thermal.dtsi" #include "bengal-guamna-moto-thermal.dtsi"
#define GUAMNA_RADIO_GWLC 2 #define GUAMNA_RADIO_GWLC 2
+140
View File
@@ -0,0 +1,140 @@
#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_adc_tm {
/delete-property/ io-channels;
io-channels = <&pmi632_vadc ADC_GPIO1_PU2>,
<&pmi632_vadc ADC_GPIO2_PU2>;
conn_therm {
reg = <ADC_GPIO1_PU2>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
};
};
&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 = <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";
};
};
};
conn_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>;
};