ARM: dts: msm: Modify adc_tm nodes for Khaje to suit spmi adc tm5 driver

Modify adc_tm nodes in Khaje and variants to suit qcom-spmi-adc-tm5
driver in msm-5.15.

Change-Id: Iabe3133fe95ee0166d9b7b3fb92e7bda9217393c
This commit is contained in:
Archana Sriram
2022-10-03 21:28:24 +05:30
parent 52a738f3f2
commit 8757421778
8 changed files with 37 additions and 46 deletions

View File

@@ -823,7 +823,7 @@
xo-therm {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pm6125_adc_tm ADC5_XO_THERM_100K_PU>;
thermal-sensors = <&pm6125_adc_tm 2>;
trips {
active-config0 {
temperature = <125000>;
@@ -842,7 +842,7 @@
pa-therm0 {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>;
thermal-sensors = <&pm6125_adc_tm 0>;
trips {
active-config0 {
temperature = <125000>;
@@ -855,7 +855,7 @@
quiet-therm {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>;
thermal-sensors = <&pm6125_adc_tm 1>;
status = "disabled";
trips {
active-config0 {

View File

@@ -115,15 +115,13 @@
};
&pm6125_adc_tm {
io-channels = <&pm6125_vadc ADC5_AMUX_THM1_100K_PU>,
<&pm6125_vadc ADC5_AMUX_THM2_100K_PU>,
<&pm6125_vadc ADC5_XO_THERM_100K_PU>,
<&pm6125_vadc ADC5_GPIO4_100K_PU>;
status = "ok";
rf_pa1_therm {
reg = <ADC5_GPIO4_100K_PU>;
reg = <3>;
io-channels = <&pm6125_vadc ADC5_GPIO4_100K_PU>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,hw-settle-time-us = <200>;
};
};
@@ -132,7 +130,7 @@
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>;
thermal-sensors = <&pm6125_adc_tm 3>;
wake-capable-sensor;
trips {
active-config0 {

View File

@@ -20,15 +20,13 @@
};
&pm6125_adc_tm {
io-channels = <&pm6125_vadc ADC5_AMUX_THM1_100K_PU>,
<&pm6125_vadc ADC5_AMUX_THM2_100K_PU>,
<&pm6125_vadc ADC5_XO_THERM_100K_PU>,
<&pm6125_vadc ADC5_GPIO4_100K_PU>;
status = "ok";
rf_pa1_therm {
reg = <ADC5_GPIO4_100K_PU>;
reg = <3>;
io-channels = <&pm6125_vadc ADC5_GPIO4_100K_PU>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,hw-settle-time-us = <200>;
};
};
@@ -37,7 +35,7 @@
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>;
thermal-sensors = <&pm6125_adc_tm 3>;
wake-capable-sensor;
trips {
active-config0 {

View File

@@ -25,20 +25,21 @@
};
&pm7250b_adc_tm {
io-channels = <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>,
<&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>;
status = "ok";
/* Channel nodes */
charger_skin_therm@4d {
reg = <ADC5_AMUX_THM1_100K_PU>;
reg = <0>;
io-channels = <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,hw-settle-time-us = <200>;
};
conn_therm@4f {
reg = <ADC5_AMUX_THM3_100K_PU>;
reg = <1>;
io-channels = <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,hw-settle-time-us = <200>;
};
};
@@ -47,7 +48,7 @@
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>;
thermal-sensors = <&pm7250b_adc_tm 0>;
wake-capable-sensor;
trips {
active-config0 {
@@ -62,7 +63,7 @@
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>;
thermal-sensors = <&pm7250b_adc_tm 1>;
wake-capable-sensor;
trips {
active-config0 {

View File

@@ -210,7 +210,7 @@
quiet-therm {
polling-delay-passive = <2000>;
polling-delay = <0>;
thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>;
thermal-sensors = <&pm6125_adc_tm 1>;
trips {
quiet_batt_trip0: batt-trip0 {
@@ -318,7 +318,7 @@
pa-therm0 {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>;
thermal-sensors = <&pm6125_adc_tm 0>;
trips {
pa_therm0_trip0: pa-therm0-trip0 {

View File

@@ -4177,27 +4177,27 @@ tpdm_turing_llm: tpdm@8861000 {
&pm6125_adc_tm {
#address-cells = <1>;
#size-cells = <0>;
io-channels = <&pm6125_vadc ADC5_AMUX_THM1_100K_PU>,
<&pm6125_vadc ADC5_AMUX_THM2_100K_PU>,
<&pm6125_vadc ADC5_XO_THERM_100K_PU>;
/* Channel nodes */
pa_therm0 {
reg = <ADC5_AMUX_THM1_100K_PU>;
reg = <0>;
io-channels = <&pm6125_vadc ADC5_AMUX_THM1_100K_PU>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,hw-settle-time-us = <200>;
};
quiet_therm {
reg = <ADC5_AMUX_THM2_100K_PU>;
reg = <1>;
io-channels = <&pm6125_vadc ADC5_AMUX_THM2_100K_PU>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,hw-settle-time-us = <200>;
};
xo_therm {
reg = <ADC5_XO_THERM_100K_PU>;
reg = <2>;
io-channels = <&pm6125_vadc ADC5_XO_THERM_100K_PU>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,hw-settle-time-us = <200>;
};
};

View File

@@ -69,12 +69,6 @@
qcom,pre-scaling = <1 3>;
};
vcoin {
reg = <ADC5_VCOIN>;
label = "vcoin";
qcom,pre-scaling = <1 3>;
};
xo_therm {
reg = <ADC5_XO_THERM_100K_PU>;
label = "xo_therm";
@@ -85,10 +79,10 @@
};
pm6125_adc_tm: adc_tm@3500 {
compatible = "qcom,adc-tm5";
compatible = "qcom,spmi-adc-tm5";
reg = <0x3500>;
interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "thr-int-en";
interrupt-names = "pm-adc-tm5";
#address-cells = <1>;
#size-cells = <0>;
#thermal-sensor-cells = <1>;

View File

@@ -382,10 +382,10 @@
};
pm7250b_adc_tm: adc_tm@3500 {
compatible = "qcom,adc-tm5";
compatible = "qcom,spmi-adc-tm5";
reg = <0x3500>;
interrupts = <0x2 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "thr-int-en";
interrupt-names = "pm-adc-tm5";
#address-cells = <1>;
#size-cells = <0>;
#thermal-sensor-cells = <1>;