From patchwork Fri Jun 20 23:18:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 4393181 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 7F602BEEAA for ; Fri, 20 Jun 2014 23:22:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AE503203C4 for ; Fri, 20 Jun 2014 23:22:05 +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 DCC72203AA for ; Fri, 20 Jun 2014 23:22:04 +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 1Wy861-0003WM-BO; Fri, 20 Jun 2014 23:19:49 +0000 Received: from exprod5og104.obsmtp.com ([64.18.0.178]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wy84p-0002Uq-H3 for linux-arm-kernel@lists.infradead.org; Fri, 20 Jun 2014 23:18:36 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) (using TLSv1) by exprod5ob104.postini.com ([64.18.4.12]) with SMTP ID DSNKU6TBNHY9DhZW4zHevytToVXig2mMjX83@postini.com; Fri, 20 Jun 2014 16:18:35 PDT Received: by mail-pd0-f179.google.com with SMTP id w10so3449376pde.24 for ; Fri, 20 Jun 2014 16:18:12 -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=hOx1a4gQFKXYqv6nY3NwANPO0/6WwBF9HHlzEGJXsq4=; b=R5ghgrhH10QouJARLsd2cU5Xys25QphHpCcPT/cb4L7WNn+76YE9elCOUMGVYkUmp+ gkB3+sPJuBup+kGssf5jdzx3vJz1ckree4wuNIE/vMg00g0wTmEDg3QxiISpKnNxLLGR Lfyw+fr7GfbfkvCcbPpC0PErUVJ0AC66zA4ugoelcE0OgKpS9tksgiQvDdP+lZQIRklk f5OsV4FFoSs57w0aUjSeJ702hxX6j8OkOG2GocRIu6/CGK+JWvzO08MeTRlRssvsZRtI QaCiytFw7pLOqBtndcvSP8M1tewd4bXAW5/oN6VeA6LoANLIH+Y/N3PXTarpqNx0wtWT AUsA== X-Gm-Message-State: ALoCoQkcmdq93d2EQRlSQhw10wVl2BlTvLSC2H5CyRDV2mIZiJHuTLiCB1M5kPjjj0b+M/xANvtMCcU4fvYU3gLXStQ8FDH5/xmQHF5U6cvcj7A7dldHDYeFsD3+luTS4x5G/iknV789BYuF9+zUZgQq6T/CFsM4yQ== X-Received: by 10.66.188.5 with SMTP id fw5mr8457731pac.63.1403306292443; Fri, 20 Jun 2014 16:18:12 -0700 (PDT) X-Received: by 10.66.188.5 with SMTP id fw5mr8457727pac.63.1403306292385; Fri, 20 Jun 2014 16:18:12 -0700 (PDT) Received: from svdclab-13-11.amcc.com (63-147-59-2.dia.static.qwest.net. [63.147.59.2]) by mx.google.com with ESMTPSA id tf10sm15194688pbc.70.2014.06.20.16.18.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Jun 2014 16:18:11 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v8 3/4] dts: Add bindings for APM X-Gene SoC ethernet driver Date: Fri, 20 Jun 2014 16:18:15 -0700 Message-Id: <1403306296-26198-4-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1403306296-26198-1-git-send-email-isubramanian@apm.com> References: <1403306296-26198-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140620_161835_640495_52FBFB08 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) Cc: jcm@redhat.com, gregkh@linuxfoundation.org, patches@apm.com, linux-kernel@vger.kernel.org, Iyappan Subramanian , 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=-1.9 required=5.0 tests=BAYES_00, T_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 1247ca1..e2fb1ef 100644 --- a/arch/arm64/boot/dts/apm-mustang.dts +++ b/arch/arm64/boot/dts/apm-mustang.dts @@ -24,3 +24,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 c5f0a47..bd7a614 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 { @@ -363,5 +362,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>; + }; + + }; + }; }; };