From patchwork Tue Nov 13 08:53:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 1733071 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 0B7C5DF280 for ; Tue, 13 Nov 2012 09:38:39 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TYCv2-0004Hb-OT; Tue, 13 Nov 2012 09:36:32 +0000 Received: from co1ehsobe001.messaging.microsoft.com ([216.32.180.184] helo=co1outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TYCv0-0004H3-8N for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2012 09:36:31 +0000 Received: from mail210-co1-R.bigfish.com (10.243.78.234) by CO1EHSOBE005.bigfish.com (10.243.66.68) with Microsoft SMTP Server id 14.1.225.23; Tue, 13 Nov 2012 09:36:27 +0000 Received: from mail210-co1 (localhost [127.0.0.1]) by mail210-co1-R.bigfish.com (Postfix) with ESMTP id 45B2B300202; Tue, 13 Nov 2012 09:36:27 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 3 X-BigFish: VS3(zcb8kzzz1de0h1202h1d1ah1d2ahzz8275bhz2dh2a8h668h839he5bhf0ah107ah11b5h121eh1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h14afh1504h1537h1155h) Received: from mail210-co1 (localhost.localdomain [127.0.0.1]) by mail210-co1 (MessageSwitch) id 1352799384950475_17648; Tue, 13 Nov 2012 09:36:24 +0000 (UTC) Received: from CO1EHSMHS021.bigfish.com (unknown [10.243.78.236]) by mail210-co1.bigfish.com (Postfix) with ESMTP id E557D3C0049; Tue, 13 Nov 2012 09:36:24 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO1EHSMHS021.bigfish.com (10.243.66.31) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 13 Nov 2012 09:36:24 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-005.039d.mgd.msft.net (10.84.1.17) with Microsoft SMTP Server (TLS) id 14.2.318.3; Tue, 13 Nov 2012 09:36:23 +0000 Received: from shlinux1.ap.freescale.net (shlinux1.ap.freescale.net [10.192.225.216]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id qAD9aHPt029456; Tue, 13 Nov 2012 02:36:17 -0700 Received: by shlinux1.ap.freescale.net (Postfix, from userid 1013) id A9BCA1AE0C5; Tue, 13 Nov 2012 16:53:57 +0800 (CST) From: Frank Li To: , , , , , Subject: [PATCH 1/2] ARM: dts: imx6q-sabresd: add i2c1 device and mma8451 Date: Tue, 13 Nov 2012 16:53:56 +0800 Message-ID: <1352796836-24180-1-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-OriginatorOrg: freescale.net X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121113_043630_583490_A432DCA1 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [216.32.180.184 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Frank Li X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org add i2c1 device and mma8451 for sabresd board Signed-off-by: Frank Li --- arch/arm/boot/dts/imx6q-sabresd.dts | 24 ++++++++++++++++++++++++ arch/arm/boot/dts/imx6q.dtsi | 5 +++++ 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/imx6q-sabresd.dts b/arch/arm/boot/dts/imx6q-sabresd.dts index e596c28..aefdee4 100644 --- a/arch/arm/boot/dts/imx6q-sabresd.dts +++ b/arch/arm/boot/dts/imx6q-sabresd.dts @@ -42,6 +42,7 @@ 1410 0x80000000 /* MX6Q_PAD_NANDF_D1__GPIO_2_1 */ 1418 0x80000000 /* MX6Q_PAD_NANDF_D2__GPIO_2_2 */ 1426 0x80000000 /* MX6Q_PAD_NANDF_D3__GPIO_2_3 */ + 160 0x80000000 /* MX6Q_PAD_EIM_EB3__GPIO_2_31 */ >; }; }; @@ -71,6 +72,29 @@ wp-gpios = <&gpio2 1 0>; status = "okay"; }; + + i2c@021a0000 { /* I2C1 */ + status = "okay"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1_2>; + + mma8451@1c { + compatible = "fsl,mma8451"; + reg = <0x1c>; + vdd-supply = <&sensor>; + vddio-supply = <&sensor>; + }; + }; }; }; + sensor: fixedregulator@0 { + compatible = "regulator-fixed"; + regulator-name = "sensor-supply"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio2 31 1>; + startup-delay-us = <70000>; + enable-active-high; + }; }; diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi index f3990b0..b637c70 100644 --- a/arch/arm/boot/dts/imx6q.dtsi +++ b/arch/arm/boot/dts/imx6q.dtsi @@ -637,6 +637,11 @@ 196 0x4001b8b1 /* MX6Q_PAD_EIM_D28__I2C1_SDA */ >; }; + pinctrl_i2c1_2: i2c1grp-2 { + fsl,pins = < + 1125 0x4001b8b1 /* MX6Q_PAD_CSI0_DAT8__I2C1_SDA */ + 1133 0x4001b8b1 /* MX6Q_PAD_CSI0_DAT9__I2C1_SCL */ >; + }; }; uart1 {