From patchwork Tue Jun 24 12:19:16 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: 4408451 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 6A85C9F26E for ; Tue, 24 Jun 2014 12:25:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 937802034B for ; Tue, 24 Jun 2014 12:25:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D64F420304 for ; Tue, 24 Jun 2014 12:25:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753668AbaFXMZR (ORCPT ); Tue, 24 Jun 2014 08:25:17 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:16630 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752283AbaFXMZP (ORCPT ); Tue, 24 Jun 2014 08:25:15 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7O00A0PAI187C0@mailout2.samsung.com>; Tue, 24 Jun 2014 21:25:13 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id A8.D1.24374.92E69A35; Tue, 24 Jun 2014 21:25:13 +0900 (KST) X-AuditID: cbfee68d-b7fd46d000005f36-d3-53a96e290e6a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id CA.8B.04943.92E69A35; Tue, 24 Jun 2014 21:25:13 +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 <0N7O00290ACZEN10@mmp1.samsung.com>; Tue, 24 Jun 2014 21:25:13 +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] ARM: DTS: Add NTC thermistor nodes as child nodes to ADC Date: Tue, 24 Jun 2014 17:49:16 +0530 Message-id: <1403612356-23685-5-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1403612356-23685-1-git-send-email-ch.naveen@samsung.com> References: <1403612356-23685-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmkeLIzCtJLcpLzFFi42JZI2JSpauZtzLYYPkqPYuXhzQt5h85x2px dtlBNoveBVfZLJZMns9qsenxNVaLeUfesVjMOL+PyWLRtv/MDpwesxsusnjsnHWX3WPzknqP JW8OsXr0bVnF6PF5k1wAWxSXTUpqTmZZapG+XQJXRu+7E+wFZ3grjnw+z9LAOIG7i5GTQ0LA ROLu/4+MELaYxIV769m6GLk4hASWMkosfHWAFaZo3ZQ9rBCJRYwSX+atYYZw+pkk1j9oBWtn EzCTOLhoNXsXIweHiICDxJKtBiA1zALHGSXOzXrLAlIjLOArcXBqA1g9i4CqxK9/u8FsXgFX iV17djKB9EoIKEjMmWQDEuYUcJM4vHQ2WKsQUMmLxqlMIDMlBDaxS/y4dJQdYo6AxLfJh1gg emUlNh1ghjhaUuLgihssExiFFzAyrGIUTS1ILihOSi8y1CtOzC0uzUvXS87P3cQIjIDT/571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Y9s+JlbZoaIbfygb7o6+zk/LglF0w2nDSsXvRjySsmj037 usTO+lziazm7fv3q/fEPk/dcbhXVvxZ3sXVuLaM8+6aVmToL/8z2NFxVUzE7jufHys/mSizF GYmGWsxFxYkAy6GsUcUCAAA= 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 and Exynos5800 based PI boards have 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 --- 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 arch/arm/boot/dts/exynos5420-peach-pit.dts | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index b96a66a..852a220 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -751,4 +751,36 @@ timeout-sec = <32>; }; +&adc { + 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>; + }; +}; + #include "cros-ec-keyboard.dtsi"