From patchwork Thu May 21 19:52:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthoine Bourgeois X-Patchwork-Id: 6458851 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 3F0B49F1CC for ; Thu, 21 May 2015 19:54:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6A08E204FF for ; Thu, 21 May 2015 19:54:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77A0420513 for ; Thu, 21 May 2015 19:54:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422810AbbEUTxk (ORCPT ); Thu, 21 May 2015 15:53:40 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:33723 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422671AbbEUTwv (ORCPT ); Thu, 21 May 2015 15:52:51 -0400 Received: by wgez8 with SMTP id z8so6269468wge.0 for ; Thu, 21 May 2015 12:52:49 -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; bh=hJMfi22BM7WHzGyfa2JwONWp20pLE9J9Chfns8p1we8=; b=tWCkKvOfAAEEH0B6HDwzvmomax3/dU/+0h9PAxs5xidblW1Be0+LIh0Wj6fT5yG8fp JWI+Ty+miXP/ifWpDxiF+cK4sgOJ73lH5DaRFehahwjCb2qHxsCm2EZ6O0++mjGJVkJs Ju5L9t7udiK29kLBwE5Wuit7ICmJNjqla0DxDN8Ri2cWPFy0v2YY8jLStbaESV3HR7lQ 0EFD62mkXcuDlwwk/2hOTLaK01NBw9SdBwoSj5fqcohAW/1hDnOoNfo9Jjxej7xzWdYz 7IvbcYEq16AMdQrjR6RNBqmBwQ/i0pn/nLffNU32aDEaXnFR7jNDI9WE8kj6IlCBz1EO ZjFQ== X-Received: by 10.180.207.67 with SMTP id lu3mr758977wic.10.1432237969125; Thu, 21 May 2015 12:52:49 -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 pd7sm24829269wjb.27.2015.05.21.12.52.47 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 21 May 2015 12:52:47 -0700 (PDT) From: Anthoine Bourgeois To: linux-omap@vger.kernel.org Cc: Anthoine Bourgeois Subject: [PATCH 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Date: Thu, 21 May 2015 21:52:16 +0200 Message-Id: <1432237937-16691-1-git-send-email-anthoine.bourgeois@gmail.com> X-Mailer: git-send-email 2.0.5 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=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 Support dm9000 network interface in the device tree of devkit8000 board. Signed-off-by: Anthoine Bourgeois --- 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..b32eeda 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 3 + 6 0x400 3>; + bank-width = <2>; + interrupt-parent = <&gpio1>; /* CS6 -> DM9000 */ + 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>; + }; +};