From: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
To: linux-samsung-soc@vger.kernel.org, linux-iio@vger.kernel.org
Cc: naveenkrishna.ch@gmail.com, kgene.kim@samsung.com,
linux-arm-kernel@lists.infradead.org, cpgs@samsung.com,
devicetree@vger.kernel.org, lars@metafoo.de,
Doug Anderson <dianders@chromium.org>
Subject: [PATCH 4/4 v2] ARM: DTS: Add NTC thermistor nodes to Exynos5420 based Peach_PIT
Date: Wed, 25 Jun 2014 11:59:33 +0530 [thread overview]
Message-ID: <1403677773-21141-5-git-send-email-ch.naveen@samsung.com> (raw)
In-Reply-To: <1403677773-21141-1-git-send-email-ch.naveen@samsung.com>
Exynos5420 based Peach PIT board has 4 NTC thermistors to measure
temperatures at various points on the board.
IIO based ADC becomes the parent and NTC thermistors are the childs,
via the HWMON interface.
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Cc: Doug Anderson <dianders@chromium.org>
---
Changes since v1:
1. Arranged the ADC node alphabetical
2. Added "status = "okay"" to the ADC node
This patch needs
1. MAX77802 PMIC device tree nodes (for ldo9)
https://www.mail-archive.com/devicetree@vger.kernel.org/msg31430.html
2. Uses the DT documentation for NTC thermistors updated with vendor-prefix
This patch set is tested
1. On Peach PIT board via sysfs entry exposed by hwmon
localhost ~ # cat /sys/class/hwmon/hwmon*/device/temp1_input
37436
36449
38560
38059
2. Backward compatibility is tested by replacing "murata" with "ntc"
in the dts nodes and running the above test.
arch/arm/boot/dts/exynos5420-peach-pit.dts | 34 ++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts
index b96a66a..19d733d 100644
--- a/arch/arm/boot/dts/exynos5420-peach-pit.dts
+++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts
@@ -101,6 +101,40 @@
};
};
+&adc {
+ status = "okay";
+ vdd-supply = <&ldo9_reg>;
+
+ 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>;
+ };
+};
+
&dp {
status = "okay";
pinctrl-names = "default";
--
1.7.9.5
next prev parent reply other threads:[~2014-06-25 6:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-25 6:29 [PATCH 0/4 v2] hwmon: ntc_thermistor: prepose vendor prefix change Naveen Krishna Chatradhi
2014-06-25 6:29 ` [PATCH 2/4 v2] hwmon: ntc_thermistor: Use the manufacturer name properly Naveen Krishna Chatradhi
[not found] ` <1403677773-21141-3-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-06-25 10:36 ` Javier Martinez Canillas
2014-06-25 10:42 ` Naveen Krishna Ch
2014-06-25 14:10 ` Guenter Roeck
[not found] ` <1403677773-21141-1-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-06-25 6:29 ` [PATCH 1/4 v2] devicetree: bindings: Document murata vendor prefix Naveen Krishna Chatradhi
[not found] ` <1403677773-21141-2-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-06-25 14:10 ` Guenter Roeck
2014-06-25 6:29 ` [PATCH 3/4 v2] ARM: DTS: use new compatible string for thermistors in trats2 Naveen Krishna Chatradhi
[not found] ` <1403677773-21141-4-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-06-25 6:35 ` Chanwoo Choi
2014-06-25 6:29 ` Naveen Krishna Chatradhi [this message]
[not found] ` <1403677773-21141-5-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-06-25 10:38 ` [PATCH 4/4 v2] ARM: DTS: Add NTC thermistor nodes to Exynos5420 based Peach_PIT Javier Martinez Canillas
2014-06-25 20:40 ` Doug Anderson
[not found] ` <CAD=FV=WeuFhGK=JNEm20CT73J=c1Zc_dZGQT6bKeob895M+kQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-26 6:16 ` Naveen Krishna Ch
[not found] ` <CAHfPSqBL9hH+r8Fy4GbbY1E_sJVCP-gpDHATDJgRHP4wKrFaiA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-26 8:45 ` Naveen Krishna Ch
2014-06-26 11:46 ` Naveen Krishna Ch
2014-06-25 10:57 ` [PATCH 0/4 v2] hwmon: ntc_thermistor: prepose vendor prefix change Kukjin Kim
2014-06-25 14:12 ` Guenter Roeck
[not found] ` <53AAD8C8.3080506-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2014-07-17 4:21 ` Naveen Krishna Ch
[not found] ` <CAHfPSqCGf2d6xXDGr974+4ipNsYx3-fOLT+u2OGN=c9FVPEkZg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-17 14:05 ` Javier Martinez Canillas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1403677773-21141-5-git-send-email-ch.naveen@samsung.com \
--to=ch.naveen@samsung.com \
--cc=cpgs@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=kgene.kim@samsung.com \
--cc=lars@metafoo.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=naveenkrishna.ch@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).