From patchwork Thu Aug 7 22:14:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 4692851 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 C473B9F402 for ; Thu, 7 Aug 2014 22:16:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BFEEF201BA for ; Thu, 7 Aug 2014 22:16:39 +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 CBBB92017A for ; Thu, 7 Aug 2014 22:16:38 +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 1XFVxc-0002Ol-Bh; Thu, 07 Aug 2014 22:15:00 +0000 Received: from exprod5og108.obsmtp.com ([64.18.0.186]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XFVxL-00028h-BA for linux-arm-kernel@lists.infradead.org; Thu, 07 Aug 2014 22:14:44 +0000 Received: from mail-pa0-f46.google.com ([209.85.220.46]) (using TLSv1) by exprod5ob108.postini.com ([64.18.4.12]) with SMTP ID DSNKU+P6Prrvyh3i2GscyHChyeLycGAeM2GH@postini.com; Thu, 07 Aug 2014 15:14:43 PDT Received: by mail-pa0-f46.google.com with SMTP id lj1so6050906pab.19 for ; Thu, 07 Aug 2014 15:14:22 -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=bvlaijshY7SiCPi9NoG7pQ7xvo18E5GUp3FHiY5k0Ns=; b=BQWs7vqfvci3cYmz7HWeStrpA8vNtYetI+0Xh9AqoDyo4BiRihClmwDiJnNNhb6x2q XqwPnNj2cC6An/mOWNnqUM4mhE4i2anHFVAIYktvVtafm3PVAr4qUxgSjeQyPiZ80DXz kV2wJ+Y+8CLrnVrLK0lABknm1ulj3jcbimXYI+naQo2YczAx3m0TA5EY7ox38hRCibn6 yQvvHynvBe8x69eAiBGdU4b0Qhp6Oy8JZ6xPKzGt3RlMBFjyMa7ItP6vqoLID9oRGnzS lObVuKB1+tpW+0aVrhumlubwtHPqNH/Jr2gx9CrAiVwl8LhMWyHSlvz92uhTeEX01poq 5hlw== X-Gm-Message-State: ALoCoQmyUE/sIqJypaSFG/sdOuPT/7IEjc+8qRWhXdScWBOq/bLikLM5hNwCeCm+tFtipIQ6ZWR8HbEib0Toi5Wnut/dUORcLDqqYd2De0QeL0WNyHQyDSx6QYwK2pwlA14w8M9cDD0uUdq+f05TrrophhtzzwbxYA== X-Received: by 10.68.131.200 with SMTP id oo8mr19889730pbb.75.1407449662080; Thu, 07 Aug 2014 15:14:22 -0700 (PDT) X-Received: by 10.68.131.200 with SMTP id oo8mr19889714pbb.75.1407449662010; Thu, 07 Aug 2014 15:14:22 -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 rz4sm18531295pab.13.2014.08.07.15.14.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Aug 2014 15:14:20 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v10 3/4] dts: Add bindings for APM X-Gene SoC ethernet driver Date: Thu, 7 Aug 2014 15:14:27 -0700 Message-Id: <1407449668-13520-4-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1407449668-13520-1-git-send-email-isubramanian@apm.com> References: <1407449668-13520-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140807_151443_463397_E066A20A X-CRM114-Status: GOOD ( 10.41 ) X-Spam-Score: -2.3 (--) Cc: gregkh@linuxfoundation.org, dnelson@redhat.com, Iyappan Subramanian , patches@apm.com, linux-kernel@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.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.6 required=5.0 tests=BAYES_00,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 This patch adds bindings for APM X-Gene SoC ethernet driver. Signed-off-by: Iyappan Subramanian Signed-off-by: Ravi Patel Signed-off-by: Keyur Chudgar --- arch/arm64/boot/dts/apm-mustang.dts | 4 ++++ arch/arm64/boot/dts/apm-storm.dtsi | 30 +++++++++++++++++++++++++++--- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/apm-mustang.dts b/arch/arm64/boot/dts/apm-mustang.dts index 6541962..b2f5622 100644 --- a/arch/arm64/boot/dts/apm-mustang.dts +++ b/arch/arm64/boot/dts/apm-mustang.dts @@ -28,3 +28,7 @@ &serial0 { status = "ok"; }; + +&menet { + status = "ok"; +}; diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index 40aa96c..c0aceef 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -167,14 +167,13 @@ clock-output-names = "ethclk"; }; - eth8clk: eth8clk { + menetclk: menetclk { compatible = "apm,xgene-device-clock"; #clock-cells = <1>; clocks = <ðclk 0>; - clock-names = "eth8clk"; reg = <0x0 0x1702C000 0x0 0x1000>; reg-names = "csr-reg"; - clock-output-names = "eth8clk"; + clock-output-names = "menetclk"; }; sataphy1clk: sataphy1clk@1f21c000 { @@ -397,5 +396,30 @@ #clock-cells = <1>; clocks = <&rtcclk 0>; }; + + menet: ethernet@17020000 { + compatible = "apm,xgene-enet"; + status = "disabled"; + reg = <0x0 0x17020000 0x0 0xd100>, + <0x0 0X17030000 0x0 0X400>, + <0x0 0X10000000 0x0 0X200>; + reg-names = "enet_csr", "ring_csr", "ring_cmd"; + interrupts = <0x0 0x3c 0x4>; + dma-coherent; + clocks = <&menetclk 0>; + local-mac-address = [00 01 73 00 00 01]; + phy-connection-type = "rgmii"; + phy-handle = <&menetphy>; + mdio { + compatible = "apm,xgene-mdio"; + #address-cells = <1>; + #size-cells = <0>; + menetphy: menetphy@3 { + compatible = "ethernet-phy-id001c.c915"; + reg = <0x3>; + }; + + }; + }; }; };