From patchwork Wed Nov 27 08:28:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3246961 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 B5F8C9F3A0 for ; Wed, 27 Nov 2013 08:29:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93E2F20583 for ; Wed, 27 Nov 2013 08:29:19 +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 682BE203E6 for ; Wed, 27 Nov 2013 08:29:18 +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 1VlaTq-0000st-Ke; Wed, 27 Nov 2013 08:28:19 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VlaTY-0003d5-4e; Wed, 27 Nov 2013 08:28:00 +0000 Received: from mail-pb0-x22c.google.com ([2607:f8b0:400e:c01::22c]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VlaTH-0003Y5-1A for linux-arm-kernel@lists.infradead.org; Wed, 27 Nov 2013 08:27:43 +0000 Received: by mail-pb0-f44.google.com with SMTP id rq2so9936523pbb.3 for ; Wed, 27 Nov 2013 00:27:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=8Zw/V5henJgLHljaJ9RAeSknFQmJ8qEMHXG/itOJbSQ=; b=vj+QAxgarvBwd/kPRp/VaDUaYMtf9spvJNLP7lPQdo3aM+R8M02SVio1b8GI3dOBNi /YwHgxMRDSBzfO88psgTQQnS+NROKyXRUo8Vgps1r08yJXJgvpF/LUVfpR9V82n1R3CL HSFyD0FAzs1BLBSaWf3h78lSrUzC1Hr8B1O8JJhZTcCNkyeSRrotdNi57RvXgtLuD/lX C4LpT7FcLcOrwa657dvuUL/377DlljdPo1vuk3viPLoaUe7iCbrAilpsyGuKLcNdXqm8 mCZmrnPPZensb+KBVGgHXv+HizBr3G+EvvVh2No9WuhZVMYd260Qz/zO+s1SlpYWEI8c SrJg== X-Received: by 10.66.147.9 with SMTP id tg9mr40297052pab.5.1385540841217; Wed, 27 Nov 2013 00:27:21 -0800 (PST) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id yg3sm97588648pab.16.2013.11.27.00.27.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Nov 2013 00:27:20 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Wed, 27 Nov 2013 17:28:05 +0900 Message-Id: <20131127082805.20015.82680.sendpatchset@w520> In-Reply-To: <20131127082736.20015.21303.sendpatchset@w520> References: <20131127082736.20015.21303.sendpatchset@w520> Subject: [PATCH 03/04] ARM: shmobile: Genmai I2C-over-GPIO support X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131127_032743_192886_7545E2EB X-CRM114-Status: UNSURE ( 8.37 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: wsa@the-dreams.de, linus.walleij@linaro.org, Magnus Damm , horms@verge.net.au, laurent.pinchart@ideasonboard.com, linux-arm-kernel@lists.infradead.org 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=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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: Magnus Damm Add support for the Genmai I2C bus hooked up to P1_5 and P1_4 using the i2c-gpio driver. On the bus sits a 24c128 EEPRROM. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/r7s72100-genmai-reference.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) --- 0008/arch/arm/boot/dts/r7s72100-genmai-reference.dts +++ work/arch/arm/boot/dts/r7s72100-genmai-reference.dts 2013-11-27 15:51:31.000000000 +0900 @@ -39,4 +39,22 @@ gpios = <&port4 11 GPIO_ACTIVE_LOW>; }; }; + + i2c@0 { + compatible = "i2c-gpio"; + gpios = <&port1 5 GPIO_ACTIVE_HIGH /* sda */ + &port1 4 GPIO_ACTIVE_HIGH /* scl */ + >; + i2c-gpio,sda-open-drain; + i2c-gpio,scl-open-drain; + i2c-gpio,delay-us = <5>; /* ~100 kHz */ + #address-cells = <1>; + #size-cells = <0>; + + eeprom: 24c128@50 { + compatible = "at,24c128"; + reg = <0x50>; + }; + }; + };