From patchwork Thu Apr 4 10:27:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 233703 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 E57BD2C00AB for ; Thu, 4 Apr 2013 21:27:40 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759176Ab3DDK1g (ORCPT ); Thu, 4 Apr 2013 06:27:36 -0400 Received: from zmc.proxad.net ([212.27.53.206]:51607 "EHLO zmc.proxad.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759079Ab3DDK1e (ORCPT ); Thu, 4 Apr 2013 06:27:34 -0400 Received: from localhost (localhost [127.0.0.1]) by zmc.proxad.net (Postfix) with ESMTP id 2D86DC8371A; Thu, 4 Apr 2013 12:27:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at localhost Received: from zmc.proxad.net ([127.0.0.1]) by localhost (zmc.proxad.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UieyxQndmJGm; Thu, 4 Apr 2013 12:27:32 +0200 (CEST) Received: from flexo.iliad.local (freebox.vlq16.iliad.fr [213.36.7.13]) by zmc.proxad.net (Postfix) with ESMTPSA id 97A8CC83522; Thu, 4 Apr 2013 12:27:32 +0200 (CEST) From: Florian Fainelli To: davem@davemloft.net Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org, thomas.petazzoni@free-electrons.com, jm@lentin.co.uk, moinejf@free.fr, sebastian.hesselbarth@gmail.com, buytenh@wantstofly.org, andrew@lunn.ch, jason@lakedaemon.net, grant.likely@secretlab.ca, rob.herring@calxeda.com, jogo@openwrt.org, Florian Fainelli Subject: [PATCH 4/5 v2] ARM: orion5x: add gigabit ethernet device tree node Date: Thu, 4 Apr 2013 12:27:14 +0200 Message-Id: <1365071235-11611-5-git-send-email-florian@openwrt.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1365071235-11611-1-git-send-email-florian@openwrt.org> References: <1365071235-11611-1-git-send-email-florian@openwrt.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch adds the gigabit ethernet device tree node to orion5x.dtsi. This node is disabled by default and must be enabled on a per-board basis. For completeness and easier testing the MDIO node is also added and disabled by default. Signed-off-by: Florian Fainelli --- Changes since v1: - fixed off-by 0x2000 address of the ethernet-group node arch/arm/boot/dts/orion5x.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/orion5x.dtsi b/arch/arm/boot/dts/orion5x.dtsi index f7bec3b..c49503e 100644 --- a/arch/arm/boot/dts/orion5x.dtsi +++ b/arch/arm/boot/dts/orion5x.dtsi @@ -99,5 +99,28 @@ interrupts = <28>; status = "okay"; }; + + mdio@72004 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "marvell,orion-mdio"; + reg = <0x72004 0x84>; + status = "disabled"; + }; + + ethernet-group@72000 { + #address-cells = <1>. + #size-cells = <0>; + compatible = "marvell,mv643xx-eth-block"; + reg = <0x72000 0x4000>; + status = "disabled"; + + egiga0: ethernet@0 { + device_type = "network"; + compatible = "marvell,mv643xx-eth"; + reg = <0>; + interrupts = <21>; + }; + }; }; };