From patchwork Mon Jun 2 19:39:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 4283761 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 44B489F1D6 for ; Mon, 2 Jun 2014 19:41:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F51A20254 for ; Mon, 2 Jun 2014 19:41:42 +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 8EA632017E for ; Mon, 2 Jun 2014 19:41:41 +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 1WrY50-0004xn-LD; Mon, 02 Jun 2014 19:39:34 +0000 Received: from exprod5og115.obsmtp.com ([64.18.0.246]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WrY4q-0004r9-Vn for linux-arm-kernel@lists.infradead.org; Mon, 02 Jun 2014 19:39:25 +0000 Received: from mail-pb0-f51.google.com ([209.85.160.51]) (using TLSv1) by exprod5ob115.postini.com ([64.18.4.12]) with SMTP ID DSNKU4zS2Cl4VuGr3XhmnMbbcXyKD0vTaCbC@postini.com; Mon, 02 Jun 2014 12:39:24 PDT Received: by mail-pb0-f51.google.com with SMTP id ma3so4542033pbc.38 for ; Mon, 02 Jun 2014 12:39:03 -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=IY13O/BL8T1Ic0OGhlmlIWDR71B1zudIRR/RP+VDbhc=; b=GW9nZcqqS6OS4sv0MDINi2yKy0X7gl/3f/dCmi09F2bkyVquhCvSty4wnD6/ABojze T8AJ52VuR2nIFXh0CI7D2BGQ8L1skLf4aRyjVhYae5JybjA//1osyjaW76LWnTh8SECv RiusA4XfWX4Sm4ZHETIQJS76EXBdbK+D//yn3CZcVImYh8qFzEpoSuia85KZohGdUDy7 9f2jZ4r7KdUj3jptCdzJWMbyXOWQPVlI0tPIwpIRb8qV8xZMOmgKlWIWM+gegxv2ZVbr eQLCACIJ7MinJ8pLLE0rh1mHDKJr9RXzlse1ywU/0Sr08YZIC/4Y/HzsHgNqyK5KerAZ VHdw== X-Gm-Message-State: ALoCoQn4Cc+dQz1l4Ufg16DM/inwFnqGzQnl6sUhGTIwgqF19+ON8oZgu9ZI0bcp6MWYeuGidG+Zi3agP9XxK6Xw8qMBiliHgIGUUF7MFrm5WNeJQBFh7L2oAvYTQpZm2tJbuCiTNQxWHTzRh1EZk5Osbc4QYlXidQ== X-Received: by 10.68.193.193 with SMTP id hq1mr42871450pbc.107.1401737943841; Mon, 02 Jun 2014 12:39:03 -0700 (PDT) X-Received: by 10.68.193.193 with SMTP id hq1mr42871441pbc.107.1401737943787; Mon, 02 Jun 2014 12:39:03 -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 wn7sm68078689pab.18.2014.06.02.12.39.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Jun 2014 12:39:02 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 3/4] dts: Add bindings for APM X-Gene SoC ethernet driver Date: Mon, 2 Jun 2014 12:39:13 -0700 Message-Id: <1401737954-26152-4-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1401737954-26152-1-git-send-email-isubramanian@apm.com> References: <1401737954-26152-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140602_123925_059888_9067A6BB X-CRM114-Status: GOOD ( 10.83 ) 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.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=-2.5 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 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 f8c40a6..bb58ecb 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 { @@ -342,5 +341,30 @@ phys = <&phy3 0>; phy-names = "sata-phy"; }; + + 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>; + }; + + }; + }; }; };