From patchwork Mon Jun 24 18:05:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 2772971 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 60875C0AB1 for ; Mon, 24 Jun 2013 18:34:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 856BF201B1 for ; Mon, 24 Jun 2013 18:34:06 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 27A4B2019F for ; Mon, 24 Jun 2013 18:34:05 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrBCx-0001d2-Q8; Mon, 24 Jun 2013 18:09:47 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrBBk-0000mi-Gt; Mon, 24 Jun 2013 18:08:28 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrBAk-0000hN-0g for linux-arm-kernel@lists.infradead.org; Mon, 24 Jun 2013 18:07:27 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MOW00HJ9SZMSW50@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 25 Jun 2013 03:07:03 +0900 (KST) X-AuditID: cbfee61b-b7f8e6d00000524c-19-51c88ac7dce2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 28.3C.21068.7CA88C15; Tue, 25 Jun 2013 03:07:03 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MOW005HYSXU1L40@mmp2.samsung.com>; Tue, 25 Jun 2013 03:07:03 +0900 (KST) From: Sylwester Nawrocki To: kgene.kim@samsung.com Subject: [PATCH v2 7/8] ARM: dts: Add AK8975 device node for Exynos4412 TRATS2 board Date: Mon, 24 Jun 2013 20:05:50 +0200 Message-id: <1372097151-18122-8-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1372097151-18122-1-git-send-email-s.nawrocki@samsung.com> References: <1372097151-18122-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOLMWRmVeSWpSXmKPExsVy+t9jQd3jXScCDR42mVscmP2Q1aL36nNG i94FV9kszja9YbfY9Pgaq8WM8/uYLNYeuctucbtxBZvF7ldLWS0Ov2lntVg/4zWLA7fH5iX1 HudnLGT0OPhuD5NH35ZVjB6fN8kFsEZx2aSk5mSWpRbp2yVwZczY2c9ecJ+r4tvbIywNjNc5 uhg5OSQETCQWPl/HBGGLSVy4t56ti5GLQ0hgOqPE22ermCCcDiaJVX9a2UCq2AQMJXqP9jGC 2CICkhJNDX+YQYqYBY4xSfxsvMEOkhAWCJNYdn8eC4jNIqAqsfPsA7BmXgE3ias3dwDVcACt U5CYM8kGJMwp4C5x+OFGsFYhoJK2NT0sExh5FzAyrGIUTS1ILihOSs810itOzC0uzUvXS87P 3cQIDr5n0jsYVzVYHGIU4GBU4uH9EHciUIg1say4MvcQowQHs5IIb6gIUIg3JbGyKrUoP76o NCe1+BCjNAeLkjjvwVbrQCGB9MSS1OzU1ILUIpgsEwenVAMjx9385R1TPkg/5G6Xu7Wtcsqq RHvfxY8Ubr2YtTPC+brx4aQ9pfpzHgRdazbRiLQR+paekKqeMI+p94ynmDTbRBmeX1+brIIe xggICm6ZeTo34OXJNy3OMendD9/oVnRa79uhXRF8nvFGO9/zm19d3F3YZzvoxFebrPPNb/mn E81XKHiCYZESS3FGoqEWc1FxIgCuezKmOgIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130624_140726_284847_66400DE3 X-CRM114-Status: UNSURE ( 8.58 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -8.0 (--------) Cc: phil.carmody@partner.samsung.com, devicetree-discuss@lists.ozlabs.org, t.figa@samsung.com, kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, myungjoo.ham@samsung.com, Sylwester Nawrocki , j.anaszewski@samsung.com, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 From: Jacek Anaszewski This patch adds AK8975 magnetometer node and corresponding i2c-gpio bus node for TRATS2 board. Signed-off-by: Jacek Anaszewski Signed-off-by: Kyungmin Park Signed-off-by: Sylwester Nawrocki --- Changes since v1: - added node alias for i2c-gpio@0 I2C controller node. --- arch/arm/boot/dts/exynos4412-trats2.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 1.7.9.5 diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 056b835..b9de3b5 100644 --- a/arch/arm/boot/dts/exynos4412-trats2.dts +++ b/arch/arm/boot/dts/exynos4412-trats2.dts @@ -19,6 +19,10 @@ model = "Samsung Trats 2 based on Exynos4412"; compatible = "samsung,trats2", "samsung,exynos4412"; + aliases { + i2c8 = &i2c_ak8975; + }; + memory { reg = <0x40000000 0x40000000>; }; @@ -453,4 +457,19 @@ serial@13830000 { status = "okay"; }; + + i2c_ak8975: i2c-gpio@0 { + compatible = "i2c-gpio"; + gpios = <&gpy2 4 0>, <&gpy2 5 0>; + i2c-gpio,delay-us = <2>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + ak8975@0c { + compatible = "asahi-kasei,ak8975"; + reg = <0x0c>; + gpios = <&gpj0 7 0>; + }; + }; };