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

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

ARM: dts: msm: Add GPIO configurations for ADC channels on trinket



Add pinctrl configurations for ADC channels using GPIOs on
trinket. In addition, remove xo_therm channel on PMI632 for
trinket as it is not used.

Change-Id: I39558e313fc0387c29d89e980279ac76d75fb53c
Signed-off-by: default avatarJishnu Prakash <jprakash@codeaurora.org>
parent 9f512d30
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
@@ -1982,6 +1982,9 @@
#include "trinket-pm.dtsi"

&pm6125_vadc {
	pinctrl-names = "default";
	pinctrl-0 = <&camera_therm_default &emmc_therm_default>;

	rf_pa0_therm {
		reg = <ADC_AMUX_THM1_PU2>;
		label = "rf_pa0_therm";
@@ -2024,6 +2027,23 @@

};

&pm6125_gpios {
	camera_therm {
		camera_therm_default: camera_therm_default {
			pins = "gpio3";
			bias-high-impedance;
		};
	};

	emmc_therm {
		emmc_therm_default: emmc_therm_default {
			pins = "gpio6";
			bias-high-impedance;
		};
	};

};

&spmi_bus {
	qcom,pm6125@0 {
		pm6125_adc_tm_iio: adc_tm@3400 {
@@ -2081,6 +2101,13 @@
};

&pmi632_vadc {
	pinctrl-names = "default";
	pinctrl-0 = <&conn_therm_default &skin_therm_default>;

	xo_therm {
		status = "disabled";
	};

	bat_therm {
		qcom,lut-index = <1>;
	};
@@ -2110,6 +2137,23 @@
	};
};

&pmi632_gpios {
	conn_therm {
		conn_therm_default: conn_therm_default {
			pins = "gpio1";
			bias-high-impedance;
		};
	};

	skin_therm {
		skin_therm_default: skin_therm_default {
			pins = "gpio3";
			bias-high-impedance;
		};
	};

};

&pmi632_adc_tm {
	io-channels = <&pmi632_vadc ADC_GPIO1_PU2>,
			<&pmi632_vadc ADC_GPIO2_PU2>;