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

Commit 86e9c871 authored by Jishnu Prakash's avatar Jishnu Prakash
Browse files

ARM:dts:msm Add ADC_TM node, channels and thermal zones on QCS405



Add ADC_TM node and channels and corresponding user thermal zone
entries on PMS405 on QCS405.
In addition, add iio labels to VADC node.

Change-Id: Iffa5e78882d10eefc754f6c576c0bfa5e6aa2ce8
Signed-off-by: default avatarJishnu Prakash <jprakash@codeaurora.org>
parent 4dd6175f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -11,7 +11,8 @@ ADC_TM node
- compatible:
    Usage: required
    Value type: <string>
    Definition: Should contain "qcom,adc-tm5" for PMIC5 ADC TM driver.
    Definition: Should contain "qcom,adc-tm5" or "qcom,adc-tm5-iio"
                for PMIC5 ADC TM driver.

- reg:
    Usage: required
+29 −0
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@
			interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
			interrupt-names = "eoc-int-en-set";
			qcom,adc-vdd-reference = <1875>;
			#io-channel-cells = <1>;
			io-channel-ranges;

			ref_gnd {
				label = "ref_gnd";
@@ -84,6 +86,33 @@
			};
		};

		pms405_adc_tm_iio: adc_tm@3500 {
			compatible = "qcom,adc-tm5-iio";
			reg = <0x3500 0x100>;
			#thermal-sensor-cells = <1>;
			io-channels = <&pms405_vadc ADC_XO_THERM_PU2>,
					<&pms405_vadc ADC_AMUX_THM1_PU2>,
					<&pms405_vadc ADC_AMUX_THM3_PU2>;

			xo_therm {
				reg = <ADC_XO_THERM_PU2>;
				qcom,ratiometric;
				qcom,hw-settle-time = <200>;
			};

			pa_therm1 {
				reg = <ADC_AMUX_THM1_PU2>;
				qcom,ratiometric;
				qcom,hw-settle-time = <200>;
			};

			pa_therm3 {
				reg = <ADC_AMUX_THM3_PU2>;
				qcom,ratiometric;
				qcom,hw-settle-time = <200>;
			};
		};

		pms405_pon: qcom,power-on@800 {
			compatible = "qcom,qpnp-power-on";
			reg = <0x800 0x100>;
+3 −0
Original line number Diff line number Diff line
@@ -88,6 +88,9 @@

&thermal_zones {
	/delete-node/ aoss-lowf;
	/delete-node/ xo-therm-usr;
	/delete-node/ pa-therm1-usr;
	/delete-node/ pa-therm3-usr;
};

#include "qcs405-stub-regulator.dtsi"
+21 −0
Original line number Diff line number Diff line
@@ -365,4 +365,25 @@
			};
		};
	};

	xo-therm-usr {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&pms405_adc_tm_iio ADC_XO_THERM_PU2>;
	};

	pa-therm1-usr {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&pms405_adc_tm_iio ADC_AMUX_THM1_PU2>;
	};

	pa-therm3-usr {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&pms405_adc_tm_iio ADC_AMUX_THM3_PU2>;
	};
};