From patchwork Wed Jun 25 06:29:33 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: 4416461 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 303729F26E for ; Wed, 25 Jun 2014 06:32:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 73CA92037E for ; Wed, 25 Jun 2014 06:32:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 69DFB20381 for ; Wed, 25 Jun 2014 06:32:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752912AbaFYGct (ORCPT ); Wed, 25 Jun 2014 02:32:49 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:63544 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751949AbaFYGcr (ORCPT ); Wed, 25 Jun 2014 02:32:47 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7P00LAWOUKUU60@mailout4.samsung.com>; Wed, 25 Jun 2014 15:32:44 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.125]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 90.C9.24374.B0D6AA35; Wed, 25 Jun 2014 15:32:43 +0900 (KST) X-AuditID: cbfee68d-b7fd46d000005f36-1a-53aa6d0b5b1e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 72.C3.05196.B0D6AA35; Wed, 25 Jun 2014 15:32:43 +0900 (KST) Received: from chnaveen-ubuntu.sisodomain.com ([107.108.83.161]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N7P00M2SOU6QRK0@mmp1.samsung.com>; Wed, 25 Jun 2014 15:32:43 +0900 (KST) From: Naveen Krishna Chatradhi 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 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 Message-id: <1403677773-21141-5-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1403677773-21141-1-git-send-email-ch.naveen@samsung.com> References: <1403677773-21141-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkkeLIzCtJLcpLzFFi42JZI2JSq8uduyrYYNotTYuXhzQt5h85x2px dtlBNoveBVfZLJZMns9qsenxNVaLeUfesVjMOL+PyWLRtv/MDpwesxsusnjsnHWX3WPzknqP JW8OsXr0bVnF6PF5k1wAWxSXTUpqTmZZapG+XQJXRsPOLpaC54IVX56LNDAe4u1i5OSQEDCR OHZ6MSOELSZx4d56ti5GLg4hgaWMEituXWWDKbq+Zy4LRGIRo8SHI9OhqvqZJOYd/8QCUsUm YCZxcNFq9i5GDg4RAQeJJVsNQGqYBY4zSpyb9RasRlggSuJlaw8rSA2LgKrEx19cIGFeAVeJ 34dvMoGEJQQUJOZMsgEJcwq4SXw+O4MJxBYCKtk89QbYWgmBdewSH+8uAUuwCAhIfJt8iAWi V1Zi0wFmiJslJQ6uuMEygVF4ASPDKkbR1ILkguKk9CJDve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ccoytSDJnyp9guuJZp3LMSOnH4Z+Trk/4fta4W+5Vk9B7hZq1j /Hzkh0rgubvmF1WtL2/2DZd1cbzflOa9QCCA+4qD0Ok/Z9jLdNtaWuY8FdL92/37uxJLcUai oRZzUXEiABAP5b3DAgAA 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 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 Cc: Doug Anderson Tested-by: Javier Martinez Canillas Reviewed-by: Doug Anderson Tested-by: Doug Anderson --- 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";