From patchwork Wed Jun 26 10:02:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 254684 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id DE2062C0090 for ; Wed, 26 Jun 2013 20:02:52 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752118Ab3FZKCg (ORCPT ); Wed, 26 Jun 2013 06:02:36 -0400 Received: from us02smtp1.synopsys.com ([198.182.60.75]:38871 "EHLO vaxjo.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751506Ab3FZKCe (ORCPT ); Wed, 26 Jun 2013 06:02:34 -0400 Received: from mailhost.synopsys.com (unknown [10.9.202.240]) by vaxjo.synopsys.com (Postfix) with ESMTP id 9641EDB73; Wed, 26 Jun 2013 03:02:33 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 75700424; Wed, 26 Jun 2013 03:02:33 -0700 (PDT) Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2.internal.synopsys.com [10.12.239.237]) by mailhost.synopsys.com (Postfix) with ESMTP id 2CFFA421; Wed, 26 Jun 2013 03:02:33 -0700 (PDT) Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.27) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.2.298.4; Wed, 26 Jun 2013 03:02:32 -0700 Received: from abrodkin-8560l.internal.synopsys.com (10.121.8.30) by DE02WEHTCA.internal.synopsys.com (10.225.19.80) with Microsoft SMTP Server (TLS) id 14.2.298.4; Wed, 26 Jun 2013 12:02:26 +0200 From: Alexey Brodkin To: CC: Alexey Brodkin , Andy Shevchenko , Francois Romieu , "Joe Perches" , Vineet Gupta , Mischa Jonker , Arnd Bergmann , Grant Likely , Rob Herring , "Paul Gortmaker" , "David S. Miller" , , , Florian Fainelli Subject: [PATCH v2] arch/arc: angel4.dts - add description for "arc_emac" Date: Wed, 26 Jun 2013 14:02:18 +0400 Message-ID: <1372240938-28733-1-git-send-email-abrodkin@synopsys.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-Originating-IP: [10.121.8.30] Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org With this patch we introduce DT "arc_emac" description for ARCangel4. Description is based on info/example in "Documentation/devicetree/bindings/net/arc_emac.txt". Signed-off-by: Alexey Brodkin Cc: Andy Shevchenko Cc: Francois Romieu Cc: Joe Perches Cc: Vineet Gupta Cc: Mischa Jonker Cc: Arnd Bergmann Cc: Grant Likely Cc: Rob Herring Cc: Paul Gortmaker Cc: "David S. Miller" Cc: linux-kernel@vger.kernel.org Cc: devicetree-discuss@lists.ozlabs.org Cc: Florian Fainelli --- This re-spin also removes obsolete mentions of IRQ number and base-address of arc_emac from "plat_arcfpga". --- arch/arc/boot/dts/angel4.dts | 16 ++++++++++++++++ arch/arc/plat-arcfpga/include/plat/irq.h | 2 -- arch/arc/plat-arcfpga/include/plat/memmap.h | 2 -- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/arch/arc/boot/dts/angel4.dts b/arch/arc/boot/dts/angel4.dts index bae4f93..4fb2d6f 100644 --- a/arch/arc/boot/dts/angel4.dts +++ b/arch/arc/boot/dts/angel4.dts @@ -51,5 +51,21 @@ current-speed = <115200>; status = "okay"; }; + + ethernet@c0fc2000 { + compatible = "snps,arc-emac"; + reg = <0xc0fc2000 0x3c>; + interrupts = <6>; + mac-address = [ 00 11 22 33 44 55 ]; + clock-frequency = <80000000>; + max-speed = <100>; + phy = <&phy0>; + + #address-cells = <1>; + #size-cells = <0>; + phy0: ethernet-phy@0 { + reg = <1>; + }; + }; }; }; diff --git a/arch/arc/plat-arcfpga/include/plat/irq.h b/arch/arc/plat-arcfpga/include/plat/irq.h index 41e3356..6adbc53 100644 --- a/arch/arc/plat-arcfpga/include/plat/irq.h +++ b/arch/arc/plat-arcfpga/include/plat/irq.h @@ -16,8 +16,6 @@ #define UART1_IRQ 10 #define UART2_IRQ 11 -#define VMAC_IRQ 6 - #define IDE_IRQ 13 #define PCI_IRQ 14 #define PS2_IRQ 15 diff --git a/arch/arc/plat-arcfpga/include/plat/memmap.h b/arch/arc/plat-arcfpga/include/plat/memmap.h index 1663f33..5c78e61 100644 --- a/arch/arc/plat-arcfpga/include/plat/memmap.h +++ b/arch/arc/plat-arcfpga/include/plat/memmap.h @@ -15,8 +15,6 @@ #define UART0_BASE 0xC0FC1000 #define UART1_BASE 0xC0FC1100 -#define VMAC_REG_BASEADDR 0xC0FC2000 - #define IDE_CONTROLLER_BASE 0xC0FC9000 #define AHB_PCI_HOST_BRG_BASE 0xC0FD0000