From patchwork Thu Aug 7 22:14:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 378021 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 CA9EB14008B for ; Fri, 8 Aug 2014 08:15:37 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755739AbaHGWPT (ORCPT ); Thu, 7 Aug 2014 18:15:19 -0400 Received: from exprod5og125.obsmtp.com ([64.18.0.245]:49934 "HELO exprod5og125.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755461AbaHGWOW (ORCPT ); Thu, 7 Aug 2014 18:14:22 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]) (using TLSv1) by exprod5ob125.postini.com ([64.18.4.12]) with SMTP ID DSNKU+P6PQMbFObgV/o80G8sxN0YWdn90Uw5@postini.com; Thu, 07 Aug 2014 15:14:21 PDT Received: by mail-pd0-f176.google.com with SMTP id y10so5894609pdj.35 for ; Thu, 07 Aug 2014 15:14:19 -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=PKxH2rZ6cm25SHB15lq2juehJhA9c9o4yjMfBHLRSTA=; b=SJSWnvjxAOMd5j4ume10NZpkJhC4C/Q/1EK+idk/HkBgWgW0npw8g4r+1wOGQa/Wa6 Uiv/jjZ5H645Elw6e25JS127pLcGGYIgjFuw1FBXlWR0keN62pfurN93Fut7TT/4WTcE uxE16Y/h7cFjjAYwnV2YWfK+m1T/RYO6SFZijOA8+TjBrumfGbOe/7/Y8gDKr6ZCLj4M p/SUyw/wh5BFoAAZZSRrZjal7EtkkRnQQlMeKyMflBWb5cfiDIFqnpy9q5PypIqS+Qqh WwPn5efFdH9kWho35ZlOtuzTRCW5S1kR4QBHtMGO1YraZJshph6zpZtKpGYCZ0gI1vcl T2Gw== X-Gm-Message-State: ALoCoQnaxI517ncHS5Q9dZUgRFA6jxa5TrorjK6pvlxtLgyYZx/1XkxJroVoDNxdss0lCkOhUGpkyIFg9gr6H6i8UAWeFE9qjYO+iLDzIjjItPTKAnq10dK/TnPxrFJTPZKLqFt+L0Nz X-Received: by 10.66.66.166 with SMTP id g6mr20207249pat.108.1407449659710; Thu, 07 Aug 2014 15:14:19 -0700 (PDT) X-Received: by 10.66.66.166 with SMTP id g6mr20207241pat.108.1407449659564; Thu, 07 Aug 2014 15:14:19 -0700 (PDT) Received: from svdclab-13-11.amcc.com (67-207-112-226.static.wiline.com. [67.207.112.226]) by mx.google.com with ESMTPSA id rz4sm18531295pab.13.2014.08.07.15.14.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Aug 2014 15:14:18 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Cc: dnelson@redhat.com, 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 v10 2/4] Documentation: dts: Add bindings for APM X-Gene SoC ethernet driver Date: Thu, 7 Aug 2014 15:14:26 -0700 Message-Id: <1407449668-13520-3-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1407449668-13520-1-git-send-email-isubramanian@apm.com> References: <1407449668-13520-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 | 66 ++++++++++++++++++++++ 1 file changed, 66 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..ebcad25 --- /dev/null +++ b/Documentation/devicetree/bindings/net/apm-xgene-enet.txt @@ -0,0 +1,66 @@ +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"; +};