From patchwork Sat Apr 12 03:06:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 3972561 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 38EE8BFF02 for ; Sat, 12 Apr 2014 03:11:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6310C202FE for ; Sat, 12 Apr 2014 03:11:42 +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 8001D202E9 for ; Sat, 12 Apr 2014 03:11:41 +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 1WYoHO-0000b6-M7; Sat, 12 Apr 2014 03:06:54 +0000 Received: from exprod5og117.obsmtp.com ([64.18.0.149]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYoHI-0000Yf-Ic for linux-arm-kernel@lists.infradead.org; Sat, 12 Apr 2014 03:06:48 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) (using TLSv1) by exprod5ob117.postini.com ([64.18.4.12]) with SMTP ID DSNKU0itspNJnRTIunGD+HBOtnA5C1td5dtj@postini.com; Fri, 11 Apr 2014 20:06:48 PDT Received: by mail-pd0-f179.google.com with SMTP id w10so6005886pde.38 for ; Fri, 11 Apr 2014 20:06:26 -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=zH/dsg577x/3YOvaBOxwRQaLCqz2l2OmAub3OlTDo7Q=; b=Gjx224+zITvqTXVDdtfvK6qlzBy/e2xum7msN0WDm2bDhxXljsMgBFqvVO56ZT6xSQ /2ewoE3jXJINmR1jqu8BbyW+qIddfJ0tkdYAOdBPT066PcFYgb7CQqn9A0HMNP79Mplt J1G/WwPLMILxnTPFs8pEFLhD2OExadE5s+wm9d5IQPFusoxWu9n8E2PMedxZmSVc2pMi Lr+72wXwkSVqdnhdc3FyEs6ZkXbEBP5Z23TWDrj6YIVPvq4y0hvslR7/4Jbt2rc/vW+Z rplAIIW1UGIA9IFLZh/oFEyc2LtdAl929wV9VmgFP8Iae3wVwmVv3r9p6Jb9CpNlA5Ao h3jQ== X-Gm-Message-State: ALoCoQmyDrqVUkmxQxsEq83a++6HMtjoSAb8KL1NLicY8f7WAMTFzcqfS13BCTCn6jKmpll1Z0NoYKz9uVtcomJ3jpL2uFFTWBI1a8uGoJbq3ym9Ku+AIBKGjnYe3OMOX+n46HL9GkGlwWrUdUjuRgAyDidS8gdP9w== X-Received: by 10.66.122.1 with SMTP id lo1mr31776241pab.118.1397271986196; Fri, 11 Apr 2014 20:06:26 -0700 (PDT) X-Received: by 10.66.122.1 with SMTP id lo1mr31776232pab.118.1397271986134; Fri, 11 Apr 2014 20:06:26 -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 my6sm18751750pbc.36.2014.04.11.20.06.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 20:06:25 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/4] Documentation: dts: Add bindings for APM X-Gene SoC ethernet driver Date: Fri, 11 Apr 2014 20:06:22 -0700 Message-Id: <1397271984-23405-3-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397271984-23405-1-git-send-email-isubramanian@apm.com> References: <1397271984-23405-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140411_200648_640827_A9443B50 X-CRM114-Status: GOOD ( 10.64 ) 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.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.3 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 | 46 ++++++++++++++++++++ 1 file changed, 46 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..0c983e8 --- /dev/null +++ b/Documentation/devicetree/bindings/net/apm-xgene-enet.txt @@ -0,0 +1,46 @@ +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 : First resource is the ethernet base register set + Second resource is the ring base register set + Third resource is the ring command register set +- interrupts : Ethernet main interrupt +- clocks : Reference to the clock entry. +- local-mac-address : Ethernet MAC address. +- phy-addr : Ethernet MII phy address. +- phy-mode : Ethernet MII mode. + +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>; + interrupts = <0x0 0x3c 0x4>; + clocks = <&menetclk 0>; + local-mac-address = [00 01 73 00 00 01]; + phy-addr = <3>; + phy-mode = "rgmii"; + }; + + +/* Board-specific peripheral configurations */ + +&menet { + status = "ok"; +};