From patchwork Tue Dec 17 21:44:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 3366121 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 21005C0D4A for ; Tue, 17 Dec 2013 21:44:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 208F420260 for ; Tue, 17 Dec 2013 21:44:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 44ECE202C8 for ; Tue, 17 Dec 2013 21:44:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753731Ab3LQVoz (ORCPT ); Tue, 17 Dec 2013 16:44:55 -0500 Received: from sauhun.de ([89.238.76.85]:42156 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753633Ab3LQVoz (ORCPT ); Tue, 17 Dec 2013 16:44:55 -0500 Received: from p4fe24b4c.dip0.t-ipconnect.de ([79.226.75.76]:44332 helo=localhost) by pokefinder.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1Vt2Ri-0002mt-Ia; Tue, 17 Dec 2013 22:44:54 +0100 From: Wolfram Sang To: linux-sh@vger.kernel.org Cc: linux-i2c@vger.kernel.org, Magnus Damm , Laurent Pinchart , Simon Horman , linux-arm-kernel@lists.infradead.org, Wolfram Sang Subject: [PATCH 4/5] arm: shmobile: genmai: adapt dts to use native i2c driver Date: Tue, 17 Dec 2013 22:44:37 +0100 Message-Id: <1387316678-10174-5-git-send-email-wsa@the-dreams.de> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1387316678-10174-1-git-send-email-wsa@the-dreams.de> References: <1387316678-10174-1-git-send-email-wsa@the-dreams.de> 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.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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: 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 --- 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..739448a 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: 24c128@50 { + compatible = "renesas,24c128"; + reg = <0x50>; + pagesize = <64>; + }; +};