From patchwork Tue Nov 4 11:22:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhuvanchandra DV X-Patchwork-Id: 5225761 Return-Path: X-Original-To: patchwork-linux-arm@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 DDFD79F430 for ; Tue, 4 Nov 2014 11:24:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA41E201E4 for ; Tue, 4 Nov 2014 11:24:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CE310200F0 for ; Tue, 4 Nov 2014 11:24:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XlcCb-0002Jw-U0; Tue, 04 Nov 2014 11:23:09 +0000 Received: from mail-am1on0142.outbound.protection.outlook.com ([157.56.112.142] helo=emea01-am1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XlcCR-0002Af-Ko for linux-arm-kernel@lists.infradead.org; Tue, 04 Nov 2014 11:23:00 +0000 Received: from trdx.toradex.int (115.115.225.206) by AM3PR05MB259.eurprd05.prod.outlook.com (10.242.249.26) with Microsoft SMTP Server (TLS) id 15.1.11.14; Tue, 4 Nov 2014 11:22:34 +0000 From: Bhuvanchandra DV To: Subject: [PATCH 1/2] ARM: dts: vf-colibri: Add I2C support Date: Tue, 4 Nov 2014 16:52:09 +0530 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [115.115.225.206] X-ClientProxiedBy: DM2PR04CA052.namprd04.prod.outlook.com (10.141.154.170) To AM3PR05MB259.eurprd05.prod.outlook.com (10.242.249.26) X-MS-Exchange-Transport-FromEntityHeader: Hosted X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:AM3PR05MB259; X-Exchange-Antispam-Report-Test: UriScan:; X-Forefront-PRVS: 03853D523D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(102836001)(48376002)(42186005)(21056001)(104166001)(92726001)(118296001)(89996001)(33646002)(92566001)(87286001)(87976001)(101416001)(50466002)(97736003)(36756003)(19580395003)(19580405001)(4396001)(2371004)(50226001)(69596002)(93916002)(88136002)(31966008)(107046002)(106356001)(229853001)(66066001)(40100003)(53416004)(50986999)(122386002)(77096003)(76176999)(62966003)(110136001)(105586002)(120916001)(46102003)(47776003)(77156002)(575784001)(86362001)(64706001)(20776003)(2351001)(99396003)(95666004)(7059028); DIR:OUT; SFP:1102; SCL:1; SRVR:AM3PR05MB259; H:trdx.toradex.int; FPR:; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-OriginatorOrg: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141104_032259_844729_2FB4C1D8 X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: Bhuvanchandra DV , linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, stefan@agner.ch, linux-kernel@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 Signed-off-by: Bhuvanchandra DV Acked-by: Stefan Agner --- arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | 7 ++++++- arch/arm/boot/dts/vf-colibri.dtsi | 13 +++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi index 80e8fbc..0251e6c 100644 --- a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi @@ -33,6 +33,11 @@ status = "okay"; }; +&i2c0 { + clock-frequency = <400000>; + status = "okay"; +}; + &pwm0 { status = "okay"; }; @@ -51,4 +56,4 @@ &uart2 { status = "okay"; -}; \ No newline at end of file +}; diff --git a/arch/arm/boot/dts/vf-colibri.dtsi b/arch/arm/boot/dts/vf-colibri.dtsi index ab40367..471eec0 100644 --- a/arch/arm/boot/dts/vf-colibri.dtsi +++ b/arch/arm/boot/dts/vf-colibri.dtsi @@ -39,6 +39,12 @@ pinctrl-0 = <&pinctrl_fec1>; }; +&i2c0 { + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c0>; +}; + &pwm0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm0>; @@ -102,6 +108,13 @@ >; }; + pinctrl_i2c0: i2c0grp { + fsl,pins = < + VF610_PAD_PTB14__I2C0_SCL 0x37ff + VF610_PAD_PTB15__I2C0_SDA 0x37ff + >; + }; + pinctrl_pwm0: pwm0grp { fsl,pins = < VF610_PAD_PTB0__FTM0_CH0 0x1182