From patchwork Wed May 27 20:00:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthoine Bourgeois X-Patchwork-Id: 6493841 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DB2089F399 for ; Wed, 27 May 2015 20:00:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 002B9206F6 for ; Wed, 27 May 2015 20:00:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 18ADA2069E for ; Wed, 27 May 2015 20:00:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753440AbbE0UAp (ORCPT ); Wed, 27 May 2015 16:00:45 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:33668 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753300AbbE0UAo (ORCPT ); Wed, 27 May 2015 16:00:44 -0400 Received: by wicmx19 with SMTP id mx19so104196304wic.0 for ; Wed, 27 May 2015 13:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=q15etShGN23PyZE1TTgsileO5DQLhIVCYuXrsp6DuiA=; b=0OmPB4T7kqkxsrgmNLmcEjenEmylXS4zP1rF2z2UAtt419eIUCJiIf2jDwsZcNuWZ1 IBlk7ibAw6br4EKTQK4uyUT7JSQkZK3FY7ZenyleA/yEKXryGMwz0UH8u8CCaTa5gxZm XG7IaSRfZtdjusnfwZMj+CNXiOmPtUWeg4tPraI9x44fLU9XXXUV6GmurZm6KZqcs2IU wAmLtfm5YcmAI6LdZFURjLsN/P35ft1RDysEtYbuljXq1wUQaemqV5FZ104jxTpov8N+ iv9SsxToinBzFyzn6EmSJltHIUk/K9Ubj6hFBZvNnozrJuXGblhwYEIzzTZM/FWSzbxX XD2Q== X-Received: by 10.180.92.162 with SMTP id cn2mr9277375wib.26.1432756843895; Wed, 27 May 2015 13:00:43 -0700 (PDT) Received: from localhost.localdomain (cvl92-3-82-247-219-120.fbx.proxad.net. [82.247.219.120]) by mx.google.com with ESMTPSA id 12sm14693wjw.17.2015.05.27.13.00.43 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 27 May 2015 13:00:43 -0700 (PDT) From: Anthoine Bourgeois To: linux-omap@vger.kernel.org Cc: Tony Lindgren , Anthoine Bourgeois Subject: [PATCH v2 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Date: Wed, 27 May 2015 22:00:13 +0200 Message-Id: <1432756814-2078-1-git-send-email-anthoine.bourgeois@gmail.com> X-Mailer: git-send-email 2.0.5 In-Reply-To: <1432237937-16691-1-git-send-email-anthoine.bourgeois@gmail.com> References: <1432237937-16691-1-git-send-email-anthoine.bourgeois@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_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 Support dm9000 network interface in the device tree of devkit8000 board. Signed-off-by: Anthoine Bourgeois --- Changes since v1: * Fix io-mapping size * Fix comments arch/arm/boot/dts/omap3-devkit8000.dts | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts index 283db1d..2af54cb 100644 --- a/arch/arm/boot/dts/omap3-devkit8000.dts +++ b/arch/arm/boot/dts/omap3-devkit8000.dts @@ -158,3 +158,44 @@ }; }; }; + +&gpmc { + ranges = <6 0 0x2c000000 0x1000000>; /* CS6: 16MB for DM9000 */ + + ethernet@0,0 { + compatible = "davicom,dm9000"; + reg = <6 0x000 2 + 6 0x400 2>; /* CS6, offset 0 and 0x400, IO size 2 */ + bank-width = <2>; + interrupt-parent = <&gpio1>; + interrupts = <25 IRQ_TYPE_LEVEL_LOW>; + davicom,no-eeprom; + + gpmc,mux-add-data = <0>; + gpmc,device-width = <1>; + gpmc,wait-pin = <0>; + gpmc,cycle2cycle-samecsen = <1>; + gpmc,cycle2cycle-diffcsen = <1>; + + gpmc,cs-on-ns = <6>; + gpmc,cs-rd-off-ns = <180>; + gpmc,cs-wr-off-ns = <180>; + gpmc,adv-on-ns = <0>; + gpmc,adv-rd-off-ns = <18>; + gpmc,adv-wr-off-ns = <48>; + gpmc,oe-on-ns = <54>; + gpmc,oe-off-ns = <168>; + gpmc,we-on-ns = <54>; + gpmc,we-off-ns = <168>; + gpmc,rd-cycle-ns = <186>; + gpmc,wr-cycle-ns = <186>; + gpmc,access-ns = <144>; + gpmc,page-burst-access-ns = <24>; + gpmc,bus-turnaround-ns = <90>; + gpmc,cycle2cycle-delay-ns = <90>; + gpmc,wait-monitoring-ns = <0>; + gpmc,clk-activation-ns = <0>; + gpmc,wr-data-mux-bus-ns = <0>; + gpmc,wr-access-ns = <0>; + }; +};