From patchwork Mon Jul 14 22:18:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 4549951 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 52BE3C0514 for ; Mon, 14 Jul 2014 22:20:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 733002012F for ; Mon, 14 Jul 2014 22:20:45 +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 8F46A2012B for ; Mon, 14 Jul 2014 22:20:44 +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 1X6oZl-0004LG-SC; Mon, 14 Jul 2014 22:18:25 +0000 Received: from exprod5og123.obsmtp.com ([64.18.0.198]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X6oZa-0004E5-8r for linux-arm-kernel@lists.infradead.org; Mon, 14 Jul 2014 22:18:14 +0000 Received: from mail-pa0-f53.google.com ([209.85.220.53]) (using TLSv1) by exprod5ob123.postini.com ([64.18.4.12]) with SMTP ID DSNKU8RXEQyx7m/Yd9vS2L1BQ4pdQHeVR1tt@postini.com; Mon, 14 Jul 2014 15:18:14 PDT Received: by mail-pa0-f53.google.com with SMTP id kq14so3216930pab.12 for ; Mon, 14 Jul 2014 15:17:53 -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=dezx5H7nDfyiBdanisHhYatyKu+7RSo2JMsKX/uylYE=; b=mS6WGmXw+Z3cgSm7p7MhWJq4uhHi118mNnCNqGWXXZf7c5/boIcyeoThMj7ZP1wGm1 BdPQRTdcM+LG99NPYf4aykd/XtCzMtQWapJCLFNiYWSbEO0jjaNecXo9E+30Zkx9yLk2 tHcLXJzJYUSGGMnYFzyKBu7j4ZXFstRek2/M2gcHxRs3ElrZM6KPBmcNdOGmI5QYHAsK zSyqPR3YIAdg+kV76L5L/vE99rwk7hqOvHCb9E5jLgnhrXyFCqX0TjljeVad+bsLFAHR 86A/LmAlD7rjCRNj+Rll3OMsi9khS/SHWhXp+JFycyw7dPjfWXmOQ11oB9BNUO2smcut f8Ow== X-Gm-Message-State: ALoCoQmSxSEWPcX04TavJEW1hc35NkcndMgmKhd1CWMvTo2Qh62RsXNneh14AtSdSGkH+OuRCDllAt+YudVcT+OeNNhlE5yRf1Tlr/PWBae5r8cJg7RYKMqbnKYEHtq0fPBaobS/j2Z7y+3QcfXr7qzd5WQI6Bd+eA== X-Received: by 10.66.154.164 with SMTP id vp4mr19216480pab.4.1405376273075; Mon, 14 Jul 2014 15:17:53 -0700 (PDT) X-Received: by 10.66.154.164 with SMTP id vp4mr19216455pab.4.1405376272910; Mon, 14 Jul 2014 15:17:52 -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 y1sm11854115pbw.87.2014.07.14.15.17.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Jul 2014 15:17:51 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v9 2/4] Documentation: dts: Add bindings for APM X-Gene SoC ethernet driver Date: Mon, 14 Jul 2014 15:18:03 -0700 Message-Id: <1405376285-23008-3-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405376285-23008-1-git-send-email-isubramanian@apm.com> References: <1405376285-23008-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140714_151814_386588_C425D211 X-CRM114-Status: GOOD ( 12.36 ) 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,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 documentation for APM X-Gene SoC ethernet DTS binding. Signed-off-by: Iyappan Subramanian Signed-off-by: Ravi Patel Signed-off-by: Keyur Chudgar --- .../devicetree/bindings/net/apm-xgene-enet.txt | 72 ++++++++++++++++++++++ 1 file changed, 72 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..3e2a295 --- /dev/null +++ b/Documentation/devicetree/bindings/net/apm-xgene-enet.txt @@ -0,0 +1,72 @@ +APM X-Gene SoC Ethernet nodes + +Ethernet nodes are defined to describe on-chip ethernet interfaces in +APM X-Gene SoC. + +Required properties: +- compatible: Should be "apm,xgene-enet" +- reg: Address and length of the register set for the device. It contains the + information of registers in the same order as described by reg-names +- reg-names: Should contain the register set names + "enet_csr": Ethernet control and status register address space + "ring_csr": Descriptor ring control and status register address space + "ring_cmd": Descriptor ring command register address space +- interrupts: Ethernet main interrupt +- clocks: Reference to the clock entry. +- local-mac-address: MAC address assigned to this device +- phy-connection-type: Interface type between ethernet device and PHY device +- phy-handle: Reference to a PHY node connected to this device + +- mdio: Device tree subnode with the following required + properties: + + - compatible: Must be "apm,xgene-mdio". + - #address-cells: Must be <1>. + - #size-cells: Must be <0>. + + For the phy on the mdio bus, there must be a node with the following + fields: + + - compatible: PHY identifier. Please refer ./phy.txt for the format. + - reg: The ID number for the phy. + +Optional properties: +- status : Should be "ok" or "disabled" for enabled/disabled. + Default is "ok". + + +Example: + menetclk: menetclk { + compatible = "apm,xgene-device-clock"; + clock-output-names = "menetclk"; + status = "ok"; + }; + + 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>; + 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>; + }; + + }; + }; + +/* Board-specific peripheral configurations */ +&menet { + status = "ok"; +};