From patchwork Sat Dec 21 03:42:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 3393051 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 A5779C0D4A for ; Sat, 21 Dec 2013 03:44:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C7A5220715 for ; Sat, 21 Dec 2013 03:44:01 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 8BD9720711 for ; Sat, 21 Dec 2013 03:44:00 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VuDTZ-0005Fr-RH; Sat, 21 Dec 2013 03:43:41 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VuDTX-0005aK-3T; Sat, 21 Dec 2013 03:43:39 +0000 Received: from exprod5og106.obsmtp.com ([64.18.0.182]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VuDTT-0005Zi-1t for linux-arm-kernel@lists.infradead.org; Sat, 21 Dec 2013 03:43:35 +0000 Received: from mail-pb0-f43.google.com ([209.85.160.43]) (using TLSv1) by exprod5ob106.postini.com ([64.18.4.12]) with SMTP ID DSNKUrUOUNTEH2txionr1U4OFauboe0wNCa0@postini.com; Fri, 20 Dec 2013 19:43:34 PST Received: by mail-pb0-f43.google.com with SMTP id rq2so3370655pbb.30 for ; Fri, 20 Dec 2013 19:43:12 -0800 (PST) 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=rMyJDpDUEtWmKim6lNM9qEaxFsVBAaCFUf0ERD6y+cs=; b=PMluzaZLvFsGvdR9YgFDNj9fv+x4aNokwIkh/Prs1mWhM1//AdcDg2CbzgOceISQXj FmsebXOjtnfCrLTuy6AzRhCB3aui1c+Yudyx0a9IaUbJXeVpZeR4pwuGhqBBPQCNvY12 9MYOPbo+pyRATAH6i3unf4oYdQgsZxDl7P9FOy3jmTic2/FSjkKxI5VYxWgnUKGJi4ej YGjkP5lCJT5ZO6zZJ+XyBJqOe9aBldg3ZCJj7HEQSUOAbTr09et7FnKheCtdvfNxBEVF YJOKjPPiuaR9p60aPWZRuoLgV31NFJN5nlloaD+Ogvaw0GPHzLv+spKCp/75aroglgMa q7Vg== X-Gm-Message-State: ALoCoQmGNmnXz2DtuoZK/wHEJ4ekBdkm4rrRxgZrpQKazIY0jiSlD8IuP12AWF7pYiTEC5ctDKp3zxTdf2S6HVbKXREedPtDpbYxt6RHg1zt7bWrBnV98ZGTQeHo0you88MRlY9f4CDaLNNm9eScGaAmUf/3s0j+dhg0iEguq9F36RQZ/UChTfirnpJHule2Ab1v5U2y7qSC X-Received: by 10.67.22.38 with SMTP id hp6mr12693250pad.53.1387597392146; Fri, 20 Dec 2013 19:43:12 -0800 (PST) X-Received: by 10.67.22.38 with SMTP id hp6mr12693236pad.53.1387597391928; Fri, 20 Dec 2013 19:43:11 -0800 (PST) Received: from amcclab-Precision-WorkStation-T3400.amcc.com (63-147-59-2.dia.static.qwest.net. [63.147.59.2]) by mx.google.com with ESMTPSA id oj6sm23327817pab.9.2013.12.20.19.43.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Dec 2013 19:43:11 -0800 (PST) From: Iyappan Subramanian To: davem@davemloft.net Subject: [PATCH 1/5] Documentation: APM X-Gene SoC Ethernet DTS binding documentation Date: Fri, 20 Dec 2013 19:42:52 -0800 Message-Id: <1387597376-29303-2-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1387597376-29303-1-git-send-email-isubramanian@apm.com> References: <1387597376-29303-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131220_224335_319950_D87B6B1A X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, Iyappan Subramanian , patches@apm.com, linux-kernel@vger.kernel.org, netdev@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.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=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Documentation explaining dts nodes. Signed-off-by: Iyappan Subramanian Signed-off-by: Ravi Patel Signed-off-by: Keyur Chudgar --- .../devicetree/bindings/net/apm-xgene-enet.txt | 67 ++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/apm-xgene-enet.txt diff --git a/Documentation/devicetree/bindings/net/apm-xgene-enet.txt b/Documentation/devicetree/bindings/net/apm-xgene-enet.txt new file mode 100644 index 0000000..8b88b74 --- /dev/null +++ b/Documentation/devicetree/bindings/net/apm-xgene-enet.txt @@ -0,0 +1,67 @@ +APM X-Gene SoC Ethernet nodes + +Ethernet nodes are defined to describe on-chip ethernet interfaces in +APM X-Gene SoC. Ethernet subsystem communicates with a central Queue Manager +(QMTM) using messages for transmit, receive and allocating data buffers. +There are multiple ethernet interfaces in APM X-Gene SoC. Each ethernet +interface has its own node. Its corresponding clock nodes are shown below. + +Required properties: +- compatible : Shall be "apm,xgene-enet" +- reg : First memory resource shall be the Ethernet CSR + memory resource for indirect MAC access. + Second memory resource shall be the Ethernet CSR + memory resource. + Third memory resource shall be the Ethernet CSR + memory resource for indirect MII access. +- slave-name : Shall be QMTM slave name. +- interrupts : First interrupt resource shall be the Ethernet global + Error interrupt. + : Second interrupt resource shall be the Ethernet MAC + Error interrupt. + : Third interrupt resource shall be the Ethernet QM + interface interrupt. +- clocks : Reference to the clock entry. +- local-mac-address : Shall be ethernet mac address. +- max-frame-size : Shall be maximum ethernet frame size. +- devid : Shall be ethernet interface number. +- phyid : Shall be ethernet MII phy address. +- phy-mode : Shall be ethernet MII mode. + +Optional properties: +- status : Shall be "ok" if enabled or "disabled" if disabled. + Default is "ok". + +Example: + eth8clk: eth8clk { + compatible = "apm,xgene-device-clock"; + clock-names = "eth8clk"; + status = "ok"; + }; + + menet: ethernet@17020000 { + compatible = "apm,xgene-enet"; + status = "disabled"; + reg = <0x0 0x17020000 0x0 0x30>, + <0x0 0x17020000 0x0 0x10000>, + <0x0 0x17020000 0x0 0x20>; + slave-name = "RGMII"; + interrupts = <0x0 0x38 0x4>, + <0x0 0x39 0x4>, + <0x0 0x3a 0x4>; + clocks = <ð8clk 0>; + local-mac-address = <0x0 0x11 0x3a 0x8a 0x5a 0x78>; + max-frame-size = <0x233a>; + devid = <8>; + phyid = <3>; + phy-mode = "rgmii"; + }; + +/* Board-specific peripheral configurations */ +aliases { + ethernet0 = &menet; +}; + +&menet { + status = "ok"; +};