From patchwork Fri Oct 3 00:02:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 5020721 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 90EB9C11AB for ; Fri, 3 Oct 2014 00:06:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BBAAB201ED for ; Fri, 3 Oct 2014 00:06:41 +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 DE93A201F5 for ; Fri, 3 Oct 2014 00:06:40 +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 1XZqLk-00011q-JI; Fri, 03 Oct 2014 00:03:56 +0000 Received: from exprod5og112.obsmtp.com ([64.18.0.24]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XZqLV-0000ub-DC for linux-arm-kernel@lists.infradead.org; Fri, 03 Oct 2014 00:03:41 +0000 Received: from mail-pa0-f43.google.com ([209.85.220.43]) (using TLSv1) by exprod5ob112.postini.com ([64.18.4.12]) with SMTP ID DSNKVC3nyL89IviKcW8RON8S5GWF7jIMmLGG@postini.com; Thu, 02 Oct 2014 17:03:41 PDT Received: by mail-pa0-f43.google.com with SMTP id lf10so295428pab.30 for ; Thu, 02 Oct 2014 17:03:20 -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=ghauCGMOSVUeA25m9/eZ+diRqm2PKwP81TCKB3nvSic=; b=gvgPpbGPRw09CfJ0JzRIlpB6HpbIdFrW0+PgA/Ldl3dChEI/MqT8O82Iby+pYlsgYO 9v/5NmPwckqvae29RQ5Xmpalg4d4AIoY02UhpXpUkMufsOQDOoYt6ddqL9OpOHLCaZz6 5s2cCNmcfDyt/KimiW5xTwWBIh34s9zfBhStYOX0jq/zwu/CCA99s5KEmc7Xl2bTSfb9 P8DbuQfEEMSBXPWdcquHw1V28fOef1MHKYaP6lzgr5Arl0grnBCrNfFax/zJCtMoBOQv QleJuRmIxtoH4zRarF3DwCsK575tlgWQ2F947c1ZdxBob2UEl3OdiT3fzfCTcjt7eydh fSSQ== X-Gm-Message-State: ALoCoQnilEHwUKIyQK9i85n20WXDCHN3ularBDi7kG7KIQst/HmwCHsH0bAkBjv5orPmEM5VNLkrFxnPXO2QdtxAWog3mfH+r4TI/vpSbFzpuMtVcsvfvW5enmTpaIdzUkZYrQo3GEDJA3mcAPKS46T0DMgNUorcq7FeoAr+PsRPp5CNFT0C3tI= X-Received: by 10.68.76.35 with SMTP id h3mr3177146pbw.66.1412294600210; Thu, 02 Oct 2014 17:03:20 -0700 (PDT) X-Received: by 10.68.76.35 with SMTP id h3mr3177133pbw.66.1412294600091; Thu, 02 Oct 2014 17:03:20 -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 pp2sm4966591pbc.66.2014.10.02.17.03.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Oct 2014 17:03:19 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 3/6] dtb: Add 10GbE node to APM X-Gene SoC device tree Date: Thu, 2 Oct 2014 17:02:45 -0700 Message-Id: <1412294568-26747-4-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412294568-26747-1-git-send-email-isubramanian@apm.com> References: <1412294568-26747-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141002_170341_478585_B912768C X-CRM114-Status: UNSURE ( 9.01 ) 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 Added 10GbE interface and clock nodes. 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 b2f5622..2ae782b 100644 --- a/arch/arm64/boot/dts/apm-mustang.dts +++ b/arch/arm64/boot/dts/apm-mustang.dts @@ -32,3 +32,7 @@ &menet { status = "ok"; }; + +&xgenet { + status = "ok"; +}; diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index c0aceef..f69c983 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"; }; + xge0clk: xge0clk@1f61c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + reg = <0x0 0x1f61c000 0x0 0x1000>; + reg-names = "csr-reg"; + csr-mask = <0x3>; + clock-output-names = "xge0clk"; + }; + sataphy1clk: sataphy1clk@1f21c000 { compatible = "apm,xgene-device-clock"; #clock-cells = <1>; @@ -421,5 +431,19 @@ }; }; + + xgenet: ethernet@1f610000 { + compatible = "apm,xgene-enet"; + status = "disabled"; + reg = <0x0 0x1f610000 0x0 0xd100>, + <0x0 0x1f600000 0x0 0X400>, + <0x0 0x18000000 0x0 0X200>; + reg-names = "enet_csr", "ring_csr", "ring_cmd"; + interrupts = <0x0 0x60 0x4>; + dma-coherent; + clocks = <&xge0clk 0>; + local-mac-address = [00 01 73 00 00 04]; + phy-connection-type = "xgmii"; + }; }; };