diff options
author | Naveen Krishna Chatradhi <ch.naveen@samsung.com> | 2014-09-13 11:46:56 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-09-13 11:46:56 -0400 |
commit | 7b4880389053266c12e00e4a8fd5916c86161960 (patch) | |
tree | 3cab020ecafc90470ac54e0f9369389293124df6 | |
parent | e634a15242b99217189d43624b57de3fe73d47a5 (diff) |
ARM: dts: Add thermistor dts fragment used by exynos based Peach boards
This patch creates a thermistor fragment carrying the NTC
Thermistor nodes as children of the IIO based ADC.
This fragment is included in exynos5420-peach-pit.dts and
exynos5800-peach-pi.dts.
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/boot/dts/cros-adc-thermistors.dtsi | 44 | ||||
-rw-r--r-- | arch/arm/boot/dts/exynos5420-peach-pit.dts | 6 | ||||
-rw-r--r-- | arch/arm/boot/dts/exynos5800-peach-pi.dts | 6 |
3 files changed, 56 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/cros-adc-thermistors.dtsi b/arch/arm/boot/dts/cros-adc-thermistors.dtsi new file mode 100644 index 000000000000..acd4fe1833f2 --- /dev/null +++ b/arch/arm/boot/dts/cros-adc-thermistors.dtsi | |||
@@ -0,0 +1,44 @@ | |||
1 | /* | ||
2 | * Thermistor dts fragment for devices that use Thermistors as | ||
3 | * children of the IIO based ADC. | ||
4 | * | ||
5 | * Currently, used by Exynos5420 based Peach PIT and | ||
6 | * Exynos5800 based Peach PI. | ||
7 | * | ||
8 | * Copyright (c) 2014 Samsung Electronics Co., Ltd. | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | |||
15 | &adc { | ||
16 | ncp15wb473@3 { | ||
17 | compatible = "murata,ncp15wb473"; | ||
18 | pullup-uv = <1800000>; | ||
19 | pullup-ohm = <47000>; | ||
20 | pulldown-ohm = <0>; | ||
21 | io-channels = <&adc 3>; | ||
22 | }; | ||
23 | ncp15wb473@4 { | ||
24 | compatible = "murata,ncp15wb473"; | ||
25 | pullup-uv = <1800000>; | ||
26 | pullup-ohm = <47000>; | ||
27 | pulldown-ohm = <0>; | ||
28 | io-channels = <&adc 4>; | ||
29 | }; | ||
30 | ncp15wb473@5 { | ||
31 | compatible = "murata,ncp15wb473"; | ||
32 | pullup-uv = <1800000>; | ||
33 | pullup-ohm = <47000>; | ||
34 | pulldown-ohm = <0>; | ||
35 | io-channels = <&adc 5>; | ||
36 | }; | ||
37 | ncp15wb473@6 { | ||
38 | compatible = "murata,ncp15wb473"; | ||
39 | pullup-uv = <1800000>; | ||
40 | pullup-ohm = <47000>; | ||
41 | pulldown-ohm = <0>; | ||
42 | io-channels = <&adc 6>; | ||
43 | }; | ||
44 | }; | ||
diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index 88f16205b43c..07115b7b6ba5 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts | |||
@@ -103,6 +103,11 @@ | |||
103 | }; | 103 | }; |
104 | }; | 104 | }; |
105 | 105 | ||
106 | &adc { | ||
107 | status = "okay"; | ||
108 | vdd-supply = <&ldo9_reg>; | ||
109 | }; | ||
110 | |||
106 | &dp { | 111 | &dp { |
107 | status = "okay"; | 112 | status = "okay"; |
108 | pinctrl-names = "default"; | 113 | pinctrl-names = "default"; |
@@ -813,3 +818,4 @@ | |||
813 | }; | 818 | }; |
814 | 819 | ||
815 | #include "cros-ec-keyboard.dtsi" | 820 | #include "cros-ec-keyboard.dtsi" |
821 | #include "cros-adc-thermistors.dtsi" | ||
diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 7c2095bbcf68..1c128e173b89 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts | |||
@@ -101,6 +101,11 @@ | |||
101 | }; | 101 | }; |
102 | }; | 102 | }; |
103 | 103 | ||
104 | &adc { | ||
105 | status = "okay"; | ||
106 | vdd-supply = <&ldo9_reg>; | ||
107 | }; | ||
108 | |||
104 | &dp { | 109 | &dp { |
105 | status = "okay"; | 110 | status = "okay"; |
106 | pinctrl-names = "default"; | 111 | pinctrl-names = "default"; |
@@ -811,3 +816,4 @@ | |||
811 | }; | 816 | }; |
812 | 817 | ||
813 | #include "cros-ec-keyboard.dtsi" | 818 | #include "cros-ec-keyboard.dtsi" |
819 | #include "cros-adc-thermistors.dtsi" | ||