aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2014-03-17 17:25:59 -0400
committerKukjin Kim <kgene.kim@samsung.com>2014-03-17 17:25:59 -0400
commit4f423788910c726104cd47f044f520792cc045e4 (patch)
treee49e6c86b45fcca93bbb0a14192da0171d775f6c
parent8bdfa203c5827da811ed01dd19ba452135d21bee (diff)
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: Chanwoo Choi <cw00.choi@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r--arch/arm/boot/dts/exynos4412-trats2.dts21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts
index 4f851ccf40eb..322850640f43 100644
--- a/arch/arm/boot/dts/exynos4412-trats2.dts
+++ b/arch/arm/boot/dts/exynos4412-trats2.dts
@@ -106,6 +106,11 @@
106 }; 106 };
107 }; 107 };
108 108
109 adc: adc@126C0000 {
110 vdd-supply = <&ldo3_reg>;
111 status = "okay";
112 };
113
109 i2c@13890000 { 114 i2c@13890000 {
110 samsung,i2c-sda-delay = <100>; 115 samsung,i2c-sda-delay = <100>;
111 samsung,i2c-slave-addr = <0x10>; 116 samsung,i2c-slave-addr = <0x10>;
@@ -589,4 +594,20 @@
589 }; 594 };
590 }; 595 };
591 }; 596 };
597
598 thermistor-ap@0 {
599 compatible = "ntc,ncp15wb473";
600 pullup-uv = <1800000>; /* VCC_1.8V_AP */
601 pullup-ohm = <100000>; /* 100K */
602 pulldown-ohm = <100000>; /* 100K */
603 io-channels = <&adc 1>; /* AP temperature */
604 };
605
606 thermistor-battery@1 {
607 compatible = "ntc,ncp15wb473";
608 pullup-uv = <1800000>; /* VCC_1.8V_AP */
609 pullup-ohm = <100000>; /* 100K */
610 pulldown-ohm = <100000>; /* 100K */
611 io-channels = <&adc 2>; /* Battery temperature */
612 };
592}; 613};