From patchwork Sat Dec 21 03:42:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 3393061 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 29E5B9F344 for ; Sat, 21 Dec 2013 03:45:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6451320715 for ; Sat, 21 Dec 2013 03:45:26 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4FE5220711 for ; Sat, 21 Dec 2013 03:45:25 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VuDUM-0005dg-LX; Sat, 21 Dec 2013 03:44:31 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VuDU6-0005cE-JW; Sat, 21 Dec 2013 03:44:14 +0000 Received: from exprod5og104.obsmtp.com ([64.18.0.178]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VuDTV-0005Zj-Tv for linux-arm-kernel@lists.infradead.org; Sat, 21 Dec 2013 03:43:39 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) (using TLSv1) by exprod5ob104.postini.com ([64.18.4.12]) with SMTP ID DSNKUrUOUodPxSsXizHIxbms1uSIH9d6rFWe@postini.com; Fri, 20 Dec 2013 19:43:37 PST Received: by mail-pb0-f49.google.com with SMTP id jt11so3332256pbb.8 for ; Fri, 20 Dec 2013 19:43:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Gf/jzqTsYD2DffCmalhq2q3WDTwKBHeq1oImNSJnZFc=; b=gg/yH1rD1IVrub8Eh0pI74TnSTSWmHQT+BxBHLoja91wlSuN6FWXgD+LR1OHPNnnfN uFy3o9srVkpz8dcjt0lG7HAzrDR3qOJOJ1B8/CsiyZkoOQIpLUxI9KDUHgczX4ABvflw XvdrA8wFjdIGP2dj+zhhhexiNDtrnOjo+znGNPHt4rE8+gLQpGi6gFT+5Ry/lo6NDO+M 5W7pCuBKsCs83CX80XCJqyL2FhwdtbtD2jl/4PVmL9MRXU+jiK3cjt1u3PWeMLJOtGXX E55QFeFgkqDLqO9RaB/rFJmnDZjy0aXLae7FQbTj9H7vmiQTPlrSAeTc5lQqFAxHViG6 9OqQ== X-Gm-Message-State: ALoCoQmb9Ki6cIvklGcOoe/L/IhXHQARSqEXUYn6ODWIzrG5OgqJznrfR6Iq2C4oUVbyFvgR/FlnTxv1ModWfB9JN6Uiuhuoc7mui1KSHDYnqDMlh3Tzf1f3oi7veKqYt6aZbFchZ2WfUkzNRA5eJlB39u5Xw1DS5yacApsroUmgF0R298TqFKnBzvzURZJGQgMAShw75y5f X-Received: by 10.66.118.71 with SMTP id kk7mr12706497pab.14.1387597394320; Fri, 20 Dec 2013 19:43:14 -0800 (PST) X-Received: by 10.66.118.71 with SMTP id kk7mr12706488pab.14.1387597394252; Fri, 20 Dec 2013 19:43:14 -0800 (PST) Received: from amcclab-Precision-WorkStation-T3400.amcc.com (63-147-59-2.dia.static.qwest.net. [63.147.59.2]) by mx.google.com with ESMTPSA id oj6sm23327817pab.9.2013.12.20.19.43.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Dec 2013 19:43:13 -0800 (PST) From: Iyappan Subramanian To: davem@davemloft.net Subject: [PATCH 2/5] arm64: dts: APM X-Gene SoC Ethernet device tree nodes Date: Fri, 20 Dec 2013 19:42:53 -0800 Message-Id: <1387597376-29303-3-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1387597376-29303-1-git-send-email-isubramanian@apm.com> References: <1387597376-29303-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131220_224338_221535_0CD26A5E X-CRM114-Status: UNSURE ( 7.79 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, Iyappan Subramanian , patches@apm.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, jcm@redhat.com, Keyur Chudgar , linux-arm-kernel@lists.infradead.org, Ravi Patel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Device tree files for APM X-Gene SoC Ethernet. Signed-off-by: Iyappan Subramanian Signed-off-by: Ravi Patel Signed-off-by: Keyur Chudgar --- arch/arm64/boot/dts/apm-mustang.dts | 8 ++++++++ arch/arm64/boot/dts/apm-storm.dtsi | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/apm-mustang.dts b/arch/arm64/boot/dts/apm-mustang.dts index 1247ca1..ccb2771 100644 --- a/arch/arm64/boot/dts/apm-mustang.dts +++ b/arch/arm64/boot/dts/apm-mustang.dts @@ -17,6 +17,10 @@ model = "APM X-Gene Mustang board"; compatible = "apm,mustang", "apm,xgene-storm"; + aliases { + ethernet0 = &menet; + }; + chosen { }; memory { @@ -24,3 +28,7 @@ reg = < 0x1 0x00000000 0x0 0x80000000 >; /* Updated by bootloader */ }; }; + +&menet { + status = "ok"; +}; diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index f64f946..9c7b8cd 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -204,5 +204,24 @@ #clock-cells = <1>; clocks = <&qmlclk 0>; }; + + menet: ethernet@17020000 { + compatible = "apm,xgene-enet"; + status = "disabled"; + reg = <0x0 0x17020000 0x0 0x30>, + <0x0 0x17020000 0x0 0x10000>, + <0x0 0x17020000 0x0 0x20>; + slave-name = "RGMII"; + interrupts = <0x0 0x38 0x4>, + <0x0 0x39 0x4>, + <0x0 0x3a 0x4>; + #clock-cells = <1>; + clocks = <ð8clk 0>; + local-mac-address = <0x0 0x11 0x3a 0x8a 0x5a 0x78>; + max-frame-size = <0x233a>; + devid = <8>; + phyid = <3>; + phy-mode = "rgmii"; + }; }; };