mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 09:05:12 +07:00
arm64: dts: qcom: pms405: calibrate the VADC correctly
Set the qcom,ratiometric property to make the VADC use the VDD reference
(1.875V) and GND for channel calibration of the temperature channels
instead of 1.25V. Allow a 200us delay between the AMUX configuration and
ADC starting conversion using qcom,hw-settle-time as described in
documentation.
Fixes: 041b9a7b9f
("arm64: dts: pms405: Export PMIC temperature to thermal framework")
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <agross@kernel.org>
This commit is contained in:
parent
14d27be152
commit
7c2d4811d1
@ -110,16 +110,22 @@ die_temp {
|
|||||||
|
|
||||||
xo_therm_100k_pu {
|
xo_therm_100k_pu {
|
||||||
reg = <ADC5_XO_THERM_100K_PU>;
|
reg = <ADC5_XO_THERM_100K_PU>;
|
||||||
|
qcom,ratiometric;
|
||||||
|
qcom,hw-settle-time = <200>;
|
||||||
qcom,pre-scaling = <1 1>;
|
qcom,pre-scaling = <1 1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
amux_thm1_100k_pu {
|
amux_thm1_100k_pu {
|
||||||
reg = <ADC5_AMUX_THM1_100K_PU>;
|
reg = <ADC5_AMUX_THM1_100K_PU>;
|
||||||
|
qcom,ratiometric;
|
||||||
|
qcom,hw-settle-time = <200>;
|
||||||
qcom,pre-scaling = <1 1>;
|
qcom,pre-scaling = <1 1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
amux_thm3_100k_pu {
|
amux_thm3_100k_pu {
|
||||||
reg = <ADC5_AMUX_THM3_100K_PU>;
|
reg = <ADC5_AMUX_THM3_100K_PU>;
|
||||||
|
qcom,ratiometric;
|
||||||
|
qcom,hw-settle-time = <200>;
|
||||||
qcom,pre-scaling = <1 1>;
|
qcom,pre-scaling = <1 1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user