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

Commit 4f423788 authored by Chanwoo Choi's avatar Chanwoo Choi Committed by Kukjin Kim
Browse files

ARM: dts: Add ADC and themistor nodes for exynos4412-trats2



This patch use ADC to get the temperature of SoC/battery by using NTC thermistor
driver in hwmon. NTC thermistor driver covnvert ADC's raw data to temperature
by using following variables:

Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: default avatarTomasz Figa <t.figa@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 8bdfa203
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -106,6 +106,11 @@
		};
	};

	adc: adc@126C0000 {
		vdd-supply = <&ldo3_reg>;
		status = "okay";
	};

	i2c@13890000 {
		samsung,i2c-sda-delay = <100>;
		samsung,i2c-slave-addr = <0x10>;
@@ -589,4 +594,20 @@
			};
		};
	};

	thermistor-ap@0 {
		compatible = "ntc,ncp15wb473";
		pullup-uv = <1800000>;	 /* VCC_1.8V_AP */
		pullup-ohm = <100000>;	 /* 100K */
		pulldown-ohm = <100000>; /* 100K */
		io-channels = <&adc 1>;  /* AP temperature */
	};

	thermistor-battery@1 {
		compatible = "ntc,ncp15wb473";
		pullup-uv = <1800000>;	 /* VCC_1.8V_AP */
		pullup-ohm = <100000>;	 /* 100K */
		pulldown-ohm = <100000>; /* 100K */
		io-channels = <&adc 2>;  /* Battery temperature */
	};
};