ARM: dts: msm: Add ADC channel for IPD potentiometer output on anorak

Add an ADC channel to measure IPD_POT potentiometer resistance
on anorak for XR functionality.

Change-Id: Idc627635a5d9f1acc6dcecbab17257c37beeb773
This commit is contained in:
Jishnu Prakash
2023-02-09 12:45:49 +05:30
parent 619ca39963
commit 05fe4e3672

View File

@@ -2,6 +2,7 @@
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/iio/qcom,spmi-adc5-gen3-smb139x.h>
#include <dt-bindings/iio/qcom,spmi-adc5-gen3-pmxr2230.h>
#include <dt-bindings/iio/qcom,spmi-vadc.h>
#include "pmxr2230.dtsi"
#include "pm8550b.dtsi"
@@ -257,6 +258,15 @@
qcom,adc-tm-type = <1>;
};
pmxr2230_pot_res {
reg = <PMXR2230_ADC5_GEN3_AMUX_THM5_100K_PU>;
label = "pmxr2230_pot_res";
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,pre-scaling = <1 1>;
qcom,scale-fn-type = <ADC_SCALE_HW_CALIB_RESISTANCE_100K_PU_PM7>;
};
pmxr2230_sd_card_therm {
reg = <PMXR2230_ADC5_GEN3_AMUX1_GPIO3_100K_PU>;
label = "pmxr2230_sd_card_therm";