ARM: dts: Add thermistor dts fragment used by exynos based Peach boards
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>
Sat, 13 Sep 2014 15:46:56 +0000 (00:46 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Sat, 13 Sep 2014 15:46:56 +0000 (00:46 +0900)
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>
arch/arm/boot/dts/cros-adc-thermistors.dtsi [new file with mode: 0644]
arch/arm/boot/dts/exynos5420-peach-pit.dts
arch/arm/boot/dts/exynos5800-peach-pi.dts

diff --git a/arch/arm/boot/dts/cros-adc-thermistors.dtsi b/arch/arm/boot/dts/cros-adc-thermistors.dtsi
new file mode 100644 (file)
index 0000000..acd4fe1
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Thermistor dts fragment for devices that use Thermistors as
+ * children of the IIO based ADC.
+ *
+ * Currently, used by Exynos5420 based Peach PIT and
+ * Exynos5800 based Peach PI.
+ *
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+*/
+
+&adc {
+       ncp15wb473@3 {
+               compatible = "murata,ncp15wb473";
+               pullup-uv = <1800000>;
+               pullup-ohm = <47000>;
+               pulldown-ohm = <0>;
+               io-channels = <&adc 3>;
+       };
+       ncp15wb473@4 {
+               compatible = "murata,ncp15wb473";
+               pullup-uv = <1800000>;
+               pullup-ohm = <47000>;
+               pulldown-ohm = <0>;
+               io-channels = <&adc 4>;
+       };
+       ncp15wb473@5 {
+               compatible = "murata,ncp15wb473";
+               pullup-uv = <1800000>;
+               pullup-ohm = <47000>;
+               pulldown-ohm = <0>;
+               io-channels = <&adc 5>;
+       };
+       ncp15wb473@6 {
+               compatible = "murata,ncp15wb473";
+               pullup-uv = <1800000>;
+               pullup-ohm = <47000>;
+               pulldown-ohm = <0>;
+               io-channels = <&adc 6>;
+       };
+};
index 88f16205b43cdca7ea741961088e32c949db2dec..07115b7b6ba503f7bf433fbe80ac3ca467c93c5c 100644 (file)
        };
 };
 
+&adc {
+       status = "okay";
+       vdd-supply = <&ldo9_reg>;
+};
+
 &dp {
        status = "okay";
        pinctrl-names = "default";
 };
 
 #include "cros-ec-keyboard.dtsi"
+#include "cros-adc-thermistors.dtsi"
index 7c2095bbcf68ba530b1bf32ac596a29e17c2ea3a..1c128e173b8994cff6160795ed1508cae1691d8e 100644 (file)
        };
 };
 
+&adc {
+       status = "okay";
+       vdd-supply = <&ldo9_reg>;
+};
+
 &dp {
        status = "okay";
        pinctrl-names = "default";
 };
 
 #include "cros-ec-keyboard.dtsi"
+#include "cros-adc-thermistors.dtsi"
This page took 0.028366 seconds and 5 git commands to generate.