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

Commit 71debd62 authored by Jishnu Prakash's avatar Jishnu Prakash Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add IDP and QRD support for sm6150-interposer-trinket



Add support for bat_therm, to ensure correct scaling function is
selected, for bat_therm on PMI632 for trinket interposer qrd platform
with sm6150 soc. Add rf_patherm_1 channel for trinket interposer IDP
platform alone.

Change-Id: Idac2ec6d5ca4f54c1fa3ccac261c5be4f57b25b4
Signed-off-by: default avatarJishnu Prakash <jprakash@codeaurora.org>
parent 208f9b46
Loading
Loading
Loading
Loading
+41 −1
Original line number Original line Diff line number Diff line
/*
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * it under the terms of the GNU General Public License version 2 and
@@ -14,6 +14,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/input/input.h>
#include "sm6150-sde-display.dtsi"
#include "sm6150-sde-display.dtsi"
#include <dt-bindings/iio/qcom,spmi-vadc.h>


&pm6125_gpios {
&pm6125_gpios {
	key_vol_up {
	key_vol_up {
@@ -27,6 +28,45 @@
	};
	};
};
};


&pm6125_vadc {
	rf_pa1_therm {
		reg = <ADC_GPIO4_PU2>;
		label = "rf_pa1_therm";
		qcom,ratiometric;
		qcom,hw-settle-time = <200>;
		qcom,pre-scaling = <1 1>;
	};
};

&pm6125_adc_tm {
	io-channels = <&pm6125_vadc ADC_AMUX_THM1_PU2>,
			<&pm6125_vadc ADC_AMUX_THM2_PU2>,
			<&pm6125_vadc ADC_XO_THERM_PU2>,
			<&pm6125_vadc ADC_GPIO4_PU2>;

	rf_pa1_therm {
		reg = <ADC_GPIO4_PU2>;
		qcom,ratiometric;
		qcom,hw-settle-time = <200>;
	};
};

&thermal_zones {
	rf-pa1-therm-adc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&pm6125_adc_tm ADC_GPIO4_PU2>;
		trips {
			active-config0 {
				temperature = <125000>;
				hysteresis = <1000>;
				type = "passive";
			};
		};
	};
};

&soc {
&soc {
	gpio_keys {
	gpio_keys {
		compatible = "gpio-keys";
		compatible = "gpio-keys";
+13 −0
Original line number Original line Diff line number Diff line
@@ -167,3 +167,16 @@
	};
	};
};
};


&pmi632_vadc {
	bat_therm {
		qcom,lut-index = <0>;
	};

	bat_therm_30k {
		qcom,lut-index = <0>;
	};

	bat_therm_400k {
		qcom,lut-index = <0>;
	};
};