From patchwork Thu Jun 26 12:19:08 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: 4427561 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 281199F333 for ; Thu, 26 Jun 2014 12:23:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 34EEE20381 for ; Thu, 26 Jun 2014 12:23:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96F9E20351 for ; Thu, 26 Jun 2014 12:23:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757876AbaFZMX0 (ORCPT ); Thu, 26 Jun 2014 08:23:26 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:49454 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757415AbaFZMXY (ORCPT ); Thu, 26 Jun 2014 08:23:24 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7R00JPPZQYL770@mailout4.samsung.com>; Thu, 26 Jun 2014 21:23:22 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 65.29.19452.9B01CA35; Thu, 26 Jun 2014 21:23:21 +0900 (KST) X-AuditID: cbfee68e-b7fb96d000004bfc-18-53ac10b9a5a1 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 3F.CD.05196.9B01CA35; Thu, 26 Jun 2014 21:23:21 +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:21 +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 3/3] ARM: DTS: Add common dts file for Peach PIT and PI along with ADC nodes Date: Thu, 26 Jun 2014 17:49:08 +0530 Message-id: <1403785148-20792-4-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+NgFvrOLMWRmVeSWpSXmKPExsWyRsSkRneXwJpgg1UcFi8PaVrMP3KO1eLs soNsFs2L17NZzDvyjsXi8q45bBYzzu9jsli07T+zA4fH7IaLLB47Z91l99g/dw27R9+WVYwe nzfJBbBGcdmkpOZklqUW6dslcGV8u76ZueC0bMXxbQfYGxiXSHQxcnBICJhIvDzq18XICWSK SVy4t56ti5GLQ0hgKaPEw2VXWCASJhIXlkxjB7GFBKYzSsz8VA9R1M8kcfjJSbAiNgEziYOL VoMViQg4SuyY848JpIhZYAGjROuu1UwgCWGBOIlPLzaBFbEIqEr8+7UQrJlXwFXi4tUZbBAX KUjMmWQDEuYUcJNo+XCABSQsBFRy7aI8yEgJgWXsEv9mnGeFGCMg8W3yIRaIVlmJTQeYIW6W lDi44gbLBEbhBYwMqxhFUwuSC4qT0ouM9IoTc4tL89L1kvNzNzECA/30v2d9OxhvHrA+xJ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JNwwxoL9iV1CzZPrXTnfrur JnX7x/ATMzT+pPO+OlgbuqTc8r/WrrUX57f0l4lwTvlnXXZspkHG5TAlluKMREMt5qLiRACu CIXGuwIAAA== 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 DTS files exynos5420-peach-pit.dts and exynos5800-peach-pi.dts have lots of device tree nodes in common. This patch creates a cros-exynos-peach.dts file, which can carry the device tree nodes common across exynos5420-peach-pit.dts and exynos5800-peach-pi.dts. Starting with ADC based Thermistor nodes. Also, enables ADC based thermistors for peach_pi and peach_pit. Signed-off-by: Naveen Krishna Chatradhi --- This patchset needs "[PATCH v4 00/14] Add Maxim 77802 PMIC support" by "Javier Martinez Canillas" Posted https://lkml.org/lkml/2014/6/25/668 Intention is to slowly move the common DT nodes across exynos5420-peach-pit.dts and exynos5800-peach-pi.dts into cros-exynos-peach.dts I'm unsure of the naming conventions for dts files Named it "cros-exynos-peach.dts" as below. used for "cros" + based on "exynos" + boards named "peach" in common. cat sysfs entries exported by hwmon for 4 thermistors and verified the values on peach pit. arch/arm/boot/dts/cros-exynos-peach.dtsi | 41 ++++++++++++++++++++++++++++ arch/arm/boot/dts/exynos5420-peach-pit.dts | 6 ++++ arch/arm/boot/dts/exynos5800-peach-pi.dts | 6 ++++ 3 files changed, 53 insertions(+) create mode 100644 arch/arm/boot/dts/cros-exynos-peach.dtsi diff --git a/arch/arm/boot/dts/cros-exynos-peach.dtsi b/arch/arm/boot/dts/cros-exynos-peach.dtsi new file mode 100644 index 0000000..86135bd --- /dev/null +++ b/arch/arm/boot/dts/cros-exynos-peach.dtsi @@ -0,0 +1,41 @@ +/* + * Common device tree include for 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>; + }; +}; diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index d124394..682b9c2 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -12,6 +12,7 @@ #include #include #include "exynos5420.dtsi" +#include "cros-exynos-peach.dtsi" / { model = "Google Peach Pit Rev 6+"; @@ -101,6 +102,11 @@ }; }; +&adc { + status = "okay"; + vdd-supply = <&ldo9_reg>; +}; + &dp { status = "okay"; pinctrl-names = "default"; diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index c36c9ce..7552173 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -12,6 +12,7 @@ #include #include #include "exynos5800.dtsi" +#include "cros-exynos-peach.dtsi" / { model = "Google Peach Pi Rev 10+"; @@ -99,6 +100,11 @@ }; }; +&adc { + status = "okay"; + vdd-supply = <&ldo9_reg>; +}; + &dp { status = "okay"; pinctrl-names = "default";