From patchwork Fri Oct 10 20:18:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 5067201 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 D5EF49F30B for ; Fri, 10 Oct 2014 20:22:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A33420254 for ; Fri, 10 Oct 2014 20:22:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 AE4102024F for ; Fri, 10 Oct 2014 20:22:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XcgeV-0005Fb-N6; Fri, 10 Oct 2014 20:19:03 +0000 Received: from exprod5og109.obsmtp.com ([64.18.0.188]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XcgeJ-0005BW-Ki for linux-arm-kernel@lists.infradead.org; Fri, 10 Oct 2014 20:18:52 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) (using TLSv1) by exprod5ob109.postini.com ([64.18.4.12]) with SMTP ID DSNKVDg/FgaGlbsv5aLPAEQL3LrkKxiCyU2g@postini.com; Fri, 10 Oct 2014 13:18:51 PDT Received: by mail-pa0-f41.google.com with SMTP id eu11so2368999pac.28 for ; Fri, 10 Oct 2014 13:18:30 -0700 (PDT) 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=d9ZW9cADs+uj/eXLJVohLtRJ2VuUZpnhRxZ2BbyRudQ=; b=m9+wHtOTBxLOR6/I9rv/ctNjtIhAIJInRU5iWQBUjm96naILUQUD0o7CCM9Ru6lq2r 2qe3/Yp7h9MsEMRTcjUvSmZ+Zpdj1ROqqBNdIMrOBkJsfyzmFN4UK1aPleH5lmRr1oru h0ldCaRsT+r3GLtg+jZnOkAhYC/beQFvQluNRlcExJ9q2DqncJMl2LV00rOkD4PdxURf XiwUTdJen6QleeXJGYSQHYXFXBsGGLJGn9FLjAWlqy48Rwsx1DTdzQCuOx9izulPptwV Wup7FzlNni04p/+v8WeFpSa+a8eSc//BE07i2POYAZXME2KfVLk3oz46J2DJWQdgBwhz 4VHQ== X-Gm-Message-State: ALoCoQkky1SWhZrclBB4vKM5RWJcoVSRZfbD729WiHkRfrYI5knPHizUIXeKlO8P5nbreOrbrWtyhw0YjZkJBeAFnYrX6vGceOclLLQK5iknHmoAIMkZPbMW+45dIxc26lKLR/HfxAb1ftFLiQytq5SP4WyTZ3M+iTfpq0Jouuz5Oy4FysxSgts= X-Received: by 10.66.250.227 with SMTP id zf3mr6590896pac.135.1412972310497; Fri, 10 Oct 2014 13:18:30 -0700 (PDT) X-Received: by 10.66.250.227 with SMTP id zf3mr6590884pac.135.1412972310428; Fri, 10 Oct 2014 13:18:30 -0700 (PDT) Received: from svdclab-13-11.amcc.com (67-207-112-226.static.wiline.com. [67.207.112.226]) by mx.google.com with ESMTPSA id d17sm4301841pdj.32.2014.10.10.13.18.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Oct 2014 13:18:29 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v1 1/3] dtb: Add SGMII based 1GbE node to APM X-Gene SoC device tree Date: Fri, 10 Oct 2014 13:18:34 -0700 Message-Id: <1412972316-16344-2-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412972316-16344-1-git-send-email-isubramanian@apm.com> References: <1412972316-16344-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141010_131851_764251_3A59CD0D X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) Cc: kchudgar@apm.com, patches@apm.com, linux-arm-kernel@lists.infradead.org, Iyappan Subramanian X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-2.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 Signed-off-by: Iyappan Subramanian Signed-off-by: Keyur Chudgar --- arch/arm64/boot/dts/apm-mustang.dts | 4 ++++ arch/arm64/boot/dts/apm-storm.dtsi | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/apm-mustang.dts b/arch/arm64/boot/dts/apm-mustang.dts index 2ae782b..71a1489 100644 --- a/arch/arm64/boot/dts/apm-mustang.dts +++ b/arch/arm64/boot/dts/apm-mustang.dts @@ -33,6 +33,10 @@ status = "ok"; }; +&sgenet0 { + status = "ok"; +}; + &xgenet { status = "ok"; }; diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index d16cc03..f45bbfe 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -176,6 +176,16 @@ clock-output-names = "menetclk"; }; + sge0clk: sge0clk@1f21c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + reg = <0x0 0x1f21c000 0x0 0x1000>; + reg-names = "csr-reg"; + csr-mask = <0x3>; + clock-output-names = "sge0clk"; + }; + xge0clk: xge0clk@1f61c000 { compatible = "apm,xgene-device-clock"; #clock-cells = <1>; @@ -446,6 +456,20 @@ }; }; + sgenet0: ethernet@1f210000 { + compatible = "apm,xgene-enet"; + status = "disabled"; + reg = <0x0 0x1f210000 0x0 0x10000>, + <0x0 0x1f200000 0x0 0X10000>, + <0x0 0x1B000000 0x0 0X20000>; + reg-names = "enet_csr", "ring_csr", "ring_cmd"; + interrupts = <0x0 0xA0 0x4>; + dma-coherent; + clocks = <&sge0clk 0>; + local-mac-address = [00 00 00 00 00 00]; + phy-connection-type = "sgmii"; + }; + xgenet: ethernet@1f610000 { compatible = "apm,xgene-enet"; status = "disabled";