Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58794725 authored by Jishnu Prakash's avatar Jishnu Prakash
Browse files

ARM: dts: msm: Add VADC nodes for QCS405



Clients of VADC include reading voltage phone power,
system thermistors for thermal mitigation such as
pa_therm and xo_therm. Add the supported VADC
channels for the QCS405 platforms.

Change-Id: I6476286b055f6e8fd1477ce0322cbecda3a0aa6b
Signed-off-by: default avatarJishnu Prakash <jprakash@codeaurora.org>
parent 84932aaa
Loading
Loading
Loading
Loading
+59 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@

#include <dt-bindings/spmi/spmi.h>
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/iio/qcom,spmi-vadc.h>

&spmi_bus {
	qcom,pms405@0 {
@@ -25,6 +26,64 @@
			reg = <0x100 0x100>;
		};

		pms405_vadc: vadc@3100 {
			compatible = "qcom,spmi-adc-rev2";
			reg = <0x3100 0x100>;
			#address-cells = <1>;
			#size-cells = <0>;
			interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
			interrupt-names = "eoc-int-en-set";
			qcom,adc-vdd-reference = <1875>;

			ref_gnd {
				label = "ref_gnd";
				reg = <ADC_REF_GND>;
				qcom,pre-scaling = <1 1>;
			};

			vref_1p25 {
				label = "vref_1p25";
				reg = <ADC_1P25VREF>;
				qcom,pre-scaling = <1 1>;
			};

			die_temp {
				label = "die_temp";
				reg = <ADC_DIE_TEMP>;
				qcom,pre-scaling = <1 1>;
			};

			vph_pwr {
				label = "vph_pwr";
				reg = <ADC_VPH_PWR>;
				qcom,pre-scaling = <1 3>;
			};

			xo_therm {
				label = "xo_therm";
				reg = <ADC_XO_THERM_PU2>;
				qcom,ratiometric;
				qcom,hw-settle-time = <200>;
				qcom,pre-scaling = <1 1>;
			};

			pa_therm1 {
				label = "pa_therm1";
				reg = <ADC_AMUX_THM1_PU2>;
				qcom,ratiometric;
				qcom,hw-settle-time = <200>;
				qcom,pre-scaling = <1 1>;
			};

			pa_therm3 {
				label = "pa_therm3";
				reg = <ADC_AMUX_THM3_PU2>;
				qcom,ratiometric;
				qcom,hw-settle-time = <200>;
				qcom,pre-scaling = <1 1>;
			};
		};

		pms405_pon: qcom,power-on@800 {
			compatible = "qcom,qpnp-power-on";
			reg = <0x800 0x100>;