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: 3358981 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5791CC0D4A for ; Tue, 17 Dec 2013 05:02:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 905EA20157 for ; Tue, 17 Dec 2013 05:02:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 875BB20127 for ; Tue, 17 Dec 2013 05:02:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750949Ab3LQFCe (ORCPT ); Tue, 17 Dec 2013 00:02:34 -0500 Received: from mail-pd0-f182.google.com ([209.85.192.182]:43141 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905Ab3LQFCd (ORCPT ); Tue, 17 Dec 2013 00:02:33 -0500 Received: by mail-pd0-f182.google.com with SMTP id v10so6265078pde.41 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 Cc: wsa@the-dreams.de, linus.walleij@linaro.org, horms@verge.net.au, laurent.pinchart@ideasonboard.com, Magnus Damm , linux-arm-kernel@lists.infradead.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 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 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(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 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 {