From patchwork Wed Jul 24 13:17:19 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: 2832721 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 356E69F4E2 for ; Wed, 24 Jul 2013 13:19:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 09F9620184 for ; Wed, 24 Jul 2013 13:19:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49B342018B for ; Wed, 24 Jul 2013 13:19:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752014Ab3GXNTa (ORCPT ); Wed, 24 Jul 2013 09:19:30 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:27636 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750902Ab3GXNTa (ORCPT ); Wed, 24 Jul 2013 09:19:30 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQF00G2BZO8HR30@mailout2.samsung.com>; Wed, 24 Jul 2013 22:19:29 +0900 (KST) X-AuditID: cbfee61b-b7efe6d000007b11-17-51efd4616dbc Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id C0.67.31505.164DFE15; Wed, 24 Jul 2013 22:19:29 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MQF004OOZLALE70@mmp1.samsung.com>; Wed, 24 Jul 2013 22:19:29 +0900 (KST) From: Sylwester Nawrocki To: kgene.kim@samsung.com Cc: kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jacek Anaszewski , Sylwester Nawrocki Subject: [PATCH v4 07/13] ARM: dts: Add AK8975 device node for Exynos4412 TRATS2 board Date: Wed, 24 Jul 2013 15:17:19 +0200 Message-id: <1374671845-30373-8-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1374671845-30373-1-git-send-email-s.nawrocki@samsung.com> References: <1374671845-30373-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjluLIzCtJLcpLzFFi42I5/e+xgG7ilfeBBifbeSzmHznHatF79Tmj Re+Cq2wWZ5vesFtsenyN1WLG+X1MFofftLM6sHtsXlLv0bdlFaPH501yAcxRXDYpqTmZZalF +nYJXBnXbz5jL5jKXbF7i1MDYwdnFyMnh4SAicScBzMYIWwxiQv31rN1MXJxCAksYpSYM+s9 K4TTwSTRtfw2WBWbgKFE79E+MFtEQFKiqeEPM0gRs8AjRokbJzezgiSEBSIkut9sZgGxWQRU JTZ8+gJm8wq4SVy8cweohgNonYLEnEk2ICangLvEzT2JIKYQUMWE+4kTGHkXMDKsYhRNLUgu KE5KzzXSK07MLS7NS9dLzs/dxAgOnWfSOxhXNVgcYhTgYFTi4S2Y9S5QiDWxrLgy9xCjBAez kgiv1fz3gUK8KYmVValF+fFFpTmpxYcYpTlYlMR5D7ZaBwoJpCeWpGanphakFsFkmTg4pRoY p3A9PPnALqmAx2aPj6Rgp/Fct+1mKnLK5ScfXyhNCxOKfhi9JrKld0adpqmf1I8ZRgbBPxXc 917ZkB15eXtYedrGP/EuOY6rGv5Elv3V3MJZqHKje+GW/U1cZy6cUJ75a2bEt8zg1aYfa94r LFQWllxUeHNDZYuoxeuw2yk8mlOffe132cehxFKckWioxVxUnAgALZkvWRkCAAA= 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, 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 Reviewed-by: Tomasz Figa --- Changes since v3: - s/i2c-gpio@0/i2c-gpio-0, changed compatible string to "ak,ak8975". --- arch/arm/boot/dts/exynos4412-trats2.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 056b835..cab4c0e 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 = "ak,ak8975"; + reg = <0x0c>; + gpios = <&gpj0 7 0>; + }; + }; };