arm/dts: miami introduce NTC for battery temperature

this NTC connect to pmk8003.
fuel-gauge get this NTC temp and report to power_suppory

Change-Id: Ia1f8582eab48a37777df8be3798c35e893ef488e
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2252137
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
liuyc20 2022-04-25 16:58:39 +08:00 • committed by panyq6
commit ee97704510
2 changed files with 5 additions and 3 deletions

View file

@ -327,9 +327,9 @@
};
&pmk8350_vadc {
pmk8350_qtm_n_therm {
pmk8350_batt_therm {
reg = <PMK8350_ADC7_AMUX_THM2_100K_PU>;
label = "pmk8350_qtm_n_therm";
label = "pmk8350_batt_therm";
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,pre-scaling = <1 1>;
@ -348,7 +348,7 @@
<&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>,
<&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>;
qtm_n__therm {
batt_therm {
reg = <PMK8350_ADC7_AMUX_THM2_100K_PU>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;

View file

@ -114,6 +114,8 @@
compatible = "mitsumi,mm8013c10";
reg = <0x55>;
status = "okay";
io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>;
io-channel-names = "batt_therm";
};
};