From patchwork Thu Apr 17 02:39: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: 4005361 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 93551BFF02 for ; Thu, 17 Apr 2014 02:42:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C992E20303 for ; Thu, 17 Apr 2014 02:42:54 +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 EB2A2201C7 for ; Thu, 17 Apr 2014 02:42:53 +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 1WacF3-0004WV-2h; Thu, 17 Apr 2014 02:39:57 +0000 Received: from exprod5og119.obsmtp.com ([64.18.0.189]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WacEq-0004T7-3j for linux-arm-kernel@lists.infradead.org; Thu, 17 Apr 2014 02:39:44 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) (using TLSv1) by exprod5ob119.postini.com ([64.18.4.12]) with SMTP ID DSNKU08+23by6cPnub5GCfkPW34o7rn+9P2G@postini.com; Wed, 16 Apr 2014 19:39:44 PDT Received: by mail-pa0-f49.google.com with SMTP id lj1so11485041pab.8 for ; Wed, 16 Apr 2014 19:39: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=0Aj2pFJWTDdxdJ7m4S8w/7txPBPqXjR+DP4WFSU8z1U=; b=M7DaT0TkZQa2JcPfo3W79dvgudCaxKLG/gBb256UD9b3R9weAvB9pLgHphRiwVxNA7 Agoe10WVx2RfnWZB8IPGPnlYmIQFlSfBrIzzVKutq0bAEHy9/DkEP6j9kOSuAnAPJK+z 5UhaTV3lsO9+IGvFFw8YyDVRYDEY+YahWZYOCcw6fm7DstMi01Ollhb7cfEX2oev6RFA 188k/1tnQ91Jcfc5kBMIfVHI6oKxoNNW5XFTBxteC/txoI50AqJA7MqZvqoO7fPwFN5L yKdeJB6pWpNhucQNLYqzYH+DEjilCHX+oeiZWxGE77CR2PEk4sh0jyWNIPwe6kSGqBXf 9G/g== X-Gm-Message-State: ALoCoQmf7wkShaZhbu30oH7HaPsQOp9tR69fhwuFWHXfs9C5Gaes2BWsNWv88qPfY2M8z505Mf7SvsyK91nErR8DMDhbS/GSUAR4siairgzAo6pcpYNZpYFAa6mLSfi2tGPlTOGoBfgiJBK0CNPTBBk83FGaqO2qcw== X-Received: by 10.66.139.38 with SMTP id qv6mr12381990pab.123.1397702362684; Wed, 16 Apr 2014 19:39:22 -0700 (PDT) X-Received: by 10.66.139.38 with SMTP id qv6mr12381976pab.123.1397702362620; Wed, 16 Apr 2014 19:39:22 -0700 (PDT) Received: from amcclab-ThinkStation-E30.amcc.com (63-147-59-2.dia.static.qwest.net. [63.147.59.2]) by mx.google.com with ESMTPSA id ha11sm50058152pbd.17.2014.04.16.19.39.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Apr 2014 19:39:21 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 3/4] dts: Add bindings for APM X-Gene SoC ethernet driver Date: Wed, 16 Apr 2014 19:39:27 -0700 Message-Id: <1397702368-4846-4-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397702368-4846-1-git-send-email-isubramanian@apm.com> References: <1397702368-4846-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140416_193944_177521_BC0EEA05 X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) 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.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 | 27 ++++++++++++++++++++++++--- 2 files changed, 28 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 93f4b2d..e1e3d5d 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 { @@ -339,5 +338,27 @@ 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>; + interrupts = <0x0 0x3c 0x4>; + 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 { + reg = <0x3>; + }; + + }; + }; }; };