From patchwork Tue Dec 17 05:03:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3359021 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 929B29F314 for ; Tue, 17 Dec 2013 05:05:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B901F20157 for ; Tue, 17 Dec 2013 05:05:10 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 CE28920127 for ; Tue, 17 Dec 2013 05:05:09 +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 1Vsmoe-0004bz-QZ; Tue, 17 Dec 2013 05:03:33 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsmoA-0000Qf-L1; Tue, 17 Dec 2013 05:03:02 +0000 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vsmo3-0000OX-3h for linux-arm-kernel@lists.infradead.org; Tue, 17 Dec 2013 05:02:56 +0000 Received: by mail-pa0-f49.google.com with SMTP id kx10so3932512pab.22 for ; Mon, 16 Dec 2013 21:02:33 -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=JoKBxxL/yUb/Ch5PEb920l7QLDfS38ZDypVGn17kCCg=; b=IVioj7ha+pmJUeBPBQkjWkbtIvHsMoKfUQiy5OjIGwDbdFpDwus1vMS7Ds7x6UbIFY hmPNUZPuCva31VYOJxJIdoIUQu65xO1n7fAexk6UEuRjai6mPLGOvEVX19660zA8hHQW Vtpbr+Oo1sCIaGCZu/MZ2mz8ZG+u7IjiVzQ7YquW6x6HMeLCPoNGj8tcHyqAS0UGx+86 T/Qqi/UKwU5q5BzBd4EBxsywHZGi4yDYxsehA0ajPBCiJ6rNvT7cK/cfox0si94xyyme ZsbrqU54jFENMiFdiuc2YjWUlm+z+LLBNc/V5fkA5LsETjn3fUO6srGO78m9rNS5BVpM oDUA== X-Received: by 10.69.31.1 with SMTP id ki1mr24724922pbd.124.1387256553572; Mon, 16 Dec 2013 21:02:33 -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 dq3sm30571939pbc.35.2013.12.16.21.02.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Dec 2013 21:02:31 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Tue, 17 Dec 2013 14:03:24 +0900 Message-Id: <20131217050324.727.61701.sendpatchset@w520> In-Reply-To: <20131217050232.727.9552.sendpatchset@w520> References: <20131217050232.727.9552.sendpatchset@w520> Subject: [PATCH 04/04 v2] ARM: shmobile: Genmai I2C-over-GPIO support X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131217_000255_279145_3D445DFB X-CRM114-Status: UNSURE ( 8.73 ) 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.6 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=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: 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 Acked-by: Wolfram Sang --- Changes since V1: - Use compatible string "renesas,12c128" and set pagesize, thanks Wolfram! - Use "flash@50", thanks Sergei! arch/arm/boot/dts/r7s72100-genmai-reference.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) --- 0011/arch/arm/boot/dts/r7s72100-genmai-reference.dts +++ work/arch/arm/boot/dts/r7s72100-genmai-reference.dts 2013-12-16 20:08:48.000000000 +0900 @@ -39,6 +39,24 @@ 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>; + + flash@50 { + compatible = "renesas,24c128"; + reg = <0x50>; + pagesize = <64>; + }; + }; }; &pfc {