From patchwork Thu Jun 19 01:17:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 361778 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 68253140084 for ; Thu, 19 Jun 2014 11:17:27 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756903AbaFSBRT (ORCPT ); Wed, 18 Jun 2014 21:17:19 -0400 Received: from exprod5og117.obsmtp.com ([64.18.0.149]:37655 "HELO exprod5og117.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756891AbaFSBRQ (ORCPT ); Wed, 18 Jun 2014 21:17:16 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]) (using TLSv1) by exprod5ob117.postini.com ([64.18.4.12]) with SMTP ID DSNKU6I6GyX0DNFKlmfGHVPjoiB8Hw7xb/Pm@postini.com; Wed, 18 Jun 2014 18:17:16 PDT Received: by mail-pd0-f181.google.com with SMTP id v10so1250063pde.12 for ; Wed, 18 Jun 2014 18:17:15 -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=MMReq1Cx6d8PPvOKW0d0QgUgazKw7HB2i2EN5BQ7qSaxRLy2unEpEOeZwaU4s25zpT HePbMZ7Av7JoTFpMvrGRylB8IncX3uWf7Tbq8i50bnR91X2HG6qBiC7KG7F0aP+cw9Ls W9StGuJ/CR4qayZMUvRIr8oFdyq0Rpzzu1uYUyqwT4c7FkkZ1+1flZGAKZb9ngzl6Fg0 841Hf6vc02NP+/lLvOlEJhz81mlx7fuTP4Av4jqVe1BY3Pp6YAxX7013+vxZnQCCPGpm VDvGfLXXshpi5yTrwqIelzjc7XmczR5HpZuBSIc3fajhJ7eAAGjPFAlkLudMHJI26cxa kD1Q== X-Gm-Message-State: ALoCoQmZSHTktbcZRbCHW8w/t58yT1wQb5HZViuQfHVMBhS34EuGLynNIk38G9gfKSsCS9s2vIUkoOaCX9dBp8swGPn5JibpgKQa/uqLWnk9GvHaAt6u+aEoXmP2/aD6reD+H2gal283 X-Received: by 10.66.190.167 with SMTP id gr7mr1558313pac.75.1403140635605; Wed, 18 Jun 2014 18:17:15 -0700 (PDT) X-Received: by 10.66.190.167 with SMTP id gr7mr1558301pac.75.1403140635551; Wed, 18 Jun 2014 18:17:15 -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 ys1sm18259390pab.7.2014.06.18.18.17.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jun 2014 18:17:14 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jcm@redhat.com, patches@apm.com, Iyappan Subramanian , Ravi Patel , Keyur Chudgar Subject: [PATCH v7 2/4] Documentation: dts: Add bindings for APM X-Gene SoC ethernet driver Date: Wed, 18 Jun 2014 18:17:12 -0700 Message-Id: <1403140634-27104-3-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1403140634-27104-1-git-send-email-isubramanian@apm.com> References: <1403140634-27104-1-git-send-email-isubramanian@apm.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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"; +};