From patchwork Fri Feb 8 01:25:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Eastwood X-Patchwork-Id: 2114741 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 DEFF4DFB7B for ; Fri, 8 Feb 2013 01:29:34 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U3ck0-0002rj-Jf; Fri, 08 Feb 2013 01:27:00 +0000 Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U3cjY-0002n4-Vz for linux-arm-kernel@lists.infradead.org; Fri, 08 Feb 2013 01:26:35 +0000 Received: by mail-la0-f50.google.com with SMTP id ec20so3282234lab.37 for ; Thu, 07 Feb 2013 17:26:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=FjVYxDyMGIeM7SqhQwSqu5CjjGKJDwCquyBok4qMpvo=; b=A/d2FAA9fhnTAhfab2Y4qyIh8sxdiRmNy6LSECy9bm8fK6FP/7hHwHHkx8XozEioYd XjE3JIepJpTjX9RxryPWKPsgR6tRio1Ji9/q5k7iqC040/TScDIdQcWdpN+w2Tg0R+as KQTxbKynUwMpTCYnBihd+CLsSph/3xDu+xnKx9TKpNN/EWfwbyiTmwpsLIYATnuhaYWb iQ0DQA3u5dfTd1Gc7D2hKvag2uKGU4yY70ZnBitGWsPZ+h0/86jGoXzLvpcNnel2zNh4 TrZrUh85WU6I44CFe1yok+ff0m6azVgWWjd4Y0tpvbaHCn3GYmG4ERkSqabHd3naP/ql vsmA== X-Received: by 10.112.8.129 with SMTP id r1mr1542750lba.127.1360286788550; Thu, 07 Feb 2013 17:26:28 -0800 (PST) Received: from localhost.localdomain (57.90-149-223.nextgentel.com. [90.149.223.57]) by mx.google.com with ESMTPS id gm20sm31840lab.7.2013.02.07.17.26.26 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Feb 2013 17:26:27 -0800 (PST) From: Joachim Eastwood To: nicolas.ferre@atmel.com, plagnioj@jcrosoft.com Subject: [PATCH 2/3] ARM: at91: add pinctrl nodes to i2c-gpio on RM92000 DT Date: Fri, 8 Feb 2013 02:25:55 +0100 Message-Id: <1360286756-29705-3-git-send-email-manabian@gmail.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1360286756-29705-1-git-send-email-manabian@gmail.com> References: <1360286756-29705-1-git-send-email-manabian@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130207_202633_928675_C855A43D X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (manabian[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Joachim Eastwood , ludovic.desroches@atmel.com, linux-arm-kernel@lists.infradead.org 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: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org GPIO pins used by i2c-gpio must be set to multi drive (open drain) to work properly. Signed-off-by: Joachim Eastwood --- arch/arm/boot/dts/at91rm9200.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/at91rm9200.dtsi b/arch/arm/boot/dts/at91rm9200.dtsi index a7031c6..5d3ed5a 100644 --- a/arch/arm/boot/dts/at91rm9200.dtsi +++ b/arch/arm/boot/dts/at91rm9200.dtsi @@ -383,6 +383,12 @@ <0 25 0x1 0x2 /* PA25 periph A with multi drive */ 0 26 0x1 0x2>; /* PA26 periph A with multi drive */ }; + + pinctrl_twi_gpio: twi_gpio-0 { + atmel,pins = + <0 25 0x0 0x2 /* PA25 GPIO with multi drive */ + 0 26 0x0 0x2>; /* PA26 GPIO with multi drive */ + }; }; pioA: gpio@fffff400 { @@ -520,6 +526,8 @@ i2c-gpio,sda-open-drain; i2c-gpio,scl-open-drain; i2c-gpio,delay-us = <2>; /* ~100 kHz */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_twi_gpio>; #address-cells = <1>; #size-cells = <0>; status = "disabled";