From patchwork Wed Dec 18 21:32:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 3372791 Return-Path: X-Original-To: patchwork-linux-arm@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 7209DC0D4A for ; Wed, 18 Dec 2013 21:34:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5734205DF for ; Wed, 18 Dec 2013 21:34:04 +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 8CC502024D for ; Wed, 18 Dec 2013 21:34:03 +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 1VtOkE-0003cX-Rj; Wed, 18 Dec 2013 21:33:31 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VtOk8-00046r-47; Wed, 18 Dec 2013 21:33:24 +0000 Received: from sauhun.de ([89.238.76.85] helo=pokefinder.org) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VtOju-00044N-6h for linux-arm-kernel@lists.infradead.org; Wed, 18 Dec 2013 21:33:11 +0000 Received: from p4fe2514a.dip0.t-ipconnect.de ([79.226.81.74]:50749 helo=localhost) by pokefinder.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1VtOjc-0002Cz-3E; Wed, 18 Dec 2013 22:32:52 +0100 From: Wolfram Sang To: linux-sh@vger.kernel.org Subject: [PATCH V2 4/5] arm: shmobile: genmai: adapt dts to use native i2c driver Date: Wed, 18 Dec 2013 22:32:00 +0100 Message-Id: <1387402321-21866-5-git-send-email-wsa@the-dreams.de> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1387402321-21866-1-git-send-email-wsa@the-dreams.de> References: <1387402321-21866-1-git-send-email-wsa@the-dreams.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131218_163310_438466_49E249F4 X-CRM114-Status: UNSURE ( 8.27 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) Cc: Wolfram Sang , Magnus Damm , Simon Horman , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Laurent Pinchart 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.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 From: Wolfram Sang Switch from the gpio-driver to the shiny new native driver. Tested by accessing the eeprom on the genmai board. Signed-off-by: Wolfram Sang Acked-by: Magnus Damm --- V2: fixed the eeprom label arch/arm/boot/dts/r7s72100-genmai-reference.dts | 29 ++++++++++--------------- 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/arch/arm/boot/dts/r7s72100-genmai-reference.dts b/arch/arm/boot/dts/r7s72100-genmai-reference.dts index ce5da0b..5e9f41d 100644 --- a/arch/arm/boot/dts/r7s72100-genmai-reference.dts +++ b/arch/arm/boot/dts/r7s72100-genmai-reference.dts @@ -39,24 +39,6 @@ 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 { @@ -68,3 +50,14 @@ renesas,function = "scif2"; }; }; + +&i2c2 { + status = "okay"; + clock-frequency = <400000>; + + eeprom@50 { + compatible = "renesas,24c128"; + reg = <0x50>; + pagesize = <64>; + }; +};