From patchwork Thu Jun 26 12:19:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 4427551 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3D5839F333 for ; Thu, 26 Jun 2014 12:23:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7754920351 for ; Thu, 26 Jun 2014 12:23:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 840D620304 for ; Thu, 26 Jun 2014 12:23:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757836AbaFZMXH (ORCPT ); Thu, 26 Jun 2014 08:23:07 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:20186 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757844AbaFZMXF (ORCPT ); Thu, 26 Jun 2014 08:23:05 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7R002PGZQFVB80@mailout3.samsung.com>; Thu, 26 Jun 2014 21:23:03 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id D7.19.13369.7A01CA35; Thu, 26 Jun 2014 21:23:03 +0900 (KST) X-AuditID: cbfee690-b7fb56d000003439-fd-53ac10a77999 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 95.65.04943.7A01CA35; Thu, 26 Jun 2014 21:23:03 +0900 (KST) Received: from chnaveen-ubuntu.sisodomain.com ([107.108.83.161]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N7R00C7QZOT7L30@mmp2.samsung.com>; Thu, 26 Jun 2014 21:23:03 +0900 (KST) From: Naveen Krishna Chatradhi To: linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, dianders@chromium.org, gregkh@linuxfoundation.org, naveenkrishna.ch@gmail.com, cpgs@samsung.com Subject: [PATCH 2/3] ARM: DTS: Add NTC thermistor nodes to Exynos5250 based Snow Date: Thu, 26 Jun 2014 17:49:07 +0530 Message-id: <1403785148-20792-3-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1403785148-20792-1-git-send-email-ch.naveen@samsung.com> References: <1403785148-20792-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsWyRsSkTne5wJpgg5kbVCxeHtK0mH/kHKvF 2WUH2SyaF69ns5h35B2LxeVdc9gsZpzfx2SxaNt/ZgcOj9kNF1k8ds66y+6xf+4ado++LasY PT5vkgtgjeKySUnNySxLLdK3S+DK2HjqAlvBSr6KBUc6mRsY13B3MXJySAiYSNzumsgCYYtJ XLi3nq2LkYtDSGApo8Trr2fYYIpmPv/ODpGYzihx5cVnoAQHkNPPJDFDEaSGTcBM4uCi1ewg toiAo8SOOf+YQOqZBRYwSrTuWs0EkhAWCJDYf+Ur2DYWAVWJmd9bwWxeAVeJxV19zCAzJQQU JOZMsgEJcwq4SbR8OMACscpV4tpFeZCREgKL2CXezF/NDDFGQOLb5EMsEK2yEpsOMEOcLClx cMUNlgmMwgsYGVYxiqYWJBcUJ6UXmegVJ+YWl+al6yXn525iBIb66X/PJuxgvHfA+hBjMtC4 ic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cJ+esf+B7/8vqYMaf81vSxFeJ pda9nGV7y1d2QtNq+5L0q1Pe5YpvLW8Os3nx9t7blZKmAYohqryS6UosxRmJhlrMRcWJAA42 aOq6AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Exynos5250 based Snow 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 --- Posted earlier by Doug Anderson @ https://lkml.org/lkml/2013/3/27/453 This patch depends on (1/4 and 2/4 patches of) patchset posted http://www.spinics.net/lists/linux-iio/msg13486.html Which were applied on to Guenter Roeck's tree. cat sysfs entries exported by hwmon for 4 thermistors and verified the values on Snow. arch/arm/boot/dts/exynos5250-snow.dts | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts index 7bd2df1..0fa7067 100644 --- a/arch/arm/boot/dts/exynos5250-snow.dts +++ b/arch/arm/boot/dts/exynos5250-snow.dts @@ -20,6 +20,40 @@ i2c104 = &i2c_104; }; + adc@12D10000 { + status = "okay"; + vdd-supply = <&buck5_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>; + }; + }; + rtc@101E0000 { status = "okay"; };