From patchwork Tue Mar 18 18:19:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungho An X-Patchwork-Id: 26514 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6D29B202FA for ; Tue, 18 Mar 2014 18:20:02 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id bj1sf19099679pad.7 for ; Tue, 18 Mar 2014 11:20:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:thread-index:dlp-filter:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding:content-language; bh=hW7f7j4rMWIpbdwm9t2CXVCzRnOpGIMsetipG/f+Gv4=; b=DOqSrtjPY1TKKXGxvXrw+87Wuqg94kpi8abqQIpj1EQsPK2AEu4VKd1VIEAr7/O//m x69pug7VPgU+u8kNagDOUVHtZqqfY9NHED1btxMz4+ux2IzXvDyEvTxpVfH+Z3rvT7gb b4Sd3PGFozujqkLVR+Ly5hJ/q8BpuBuTOHlznm1BnaGo8OAHeGR5ojBSYj3xbqPtWFgt mJ0prRganVjfLxHnD0W8gqZkuD2R+aK+RmXkgEVYB0HE3X4MBdBqHfJ9iILYlwkcM+hV 3mbGwz7+OPUBukCAwTOrxUxIznkUmLVK3ISDi6/ZUN0JzXYnfPHiYyTUtsL5M9cLMPpV tJgw== X-Gm-Message-State: ALoCoQmeRPSHVIx3fj8c5X41/3+W/5gwiGvXj2PRI9ei1dvxN7VqXLUB6cdumsQhdNPxBaR2vcnY X-Received: by 10.66.144.228 with SMTP id sp4mr12355060pab.5.1395166802186; Tue, 18 Mar 2014 11:20:02 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.230 with SMTP id z93ls2189263qgz.93.gmail; Tue, 18 Mar 2014 11:20:02 -0700 (PDT) X-Received: by 10.221.55.133 with SMTP id vy5mr26047599vcb.17.1395166801978; Tue, 18 Mar 2014 11:20:01 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id e10si6757708vcq.2.2014.03.18.11.20.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Mar 2014 11:20:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so7359273veb.26 for ; Tue, 18 Mar 2014 11:20:01 -0700 (PDT) X-Received: by 10.220.83.4 with SMTP id d4mr111217vcl.39.1395166801870; Tue, 18 Mar 2014 11:20:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp234613vck; Tue, 18 Mar 2014 11:20:01 -0700 (PDT) X-Received: by 10.66.158.132 with SMTP id wu4mr35090282pab.66.1395166800956; Tue, 18 Mar 2014 11:20:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si2390495paa.157.2014.03.18.11.20.00; Tue, 18 Mar 2014 11:20:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757454AbaCRST5 (ORCPT + 8 others); Tue, 18 Mar 2014 14:19:57 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:29419 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757442AbaCRSTt (ORCPT ); Tue, 18 Mar 2014 14:19:49 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2N00LOS9L0BN80@mailout3.samsung.com>; Wed, 19 Mar 2014 03:19:48 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id C4.74.14803.44E88235; Wed, 19 Mar 2014 03:19:48 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-7a-53288e4405fe Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id DE.5F.29263.44E88235; Wed, 19 Mar 2014 03:19:48 +0900 (KST) Received: from VISITOR1LAB ([105.128.19.10]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2N003AS9K91FA0@mmp1.samsung.com>; Wed, 19 Mar 2014 03:19:48 +0900 (KST) From: Byungho An To: netdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: davem@davemloft.net, siva.kallam@samsung.com, ilho215.lee@samsung.com, ks.giri@samsung.com, vipul.pandya@samsung.com Subject: [PATCH V5 1/8] sxgbe: Add device-tree binding support document Date: Tue, 18 Mar 2014 11:19:25 -0700 Message-id: <002d01cf42d6$a3fd3a30$ebf7ae90$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9C1S62HWh+BVWQS/qmkc0INThkPQ== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsVy+t8zQ12XPo1gg5PLlSzmnG9hsZh/5Byr xdF/Cxkt5h/dwW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2UBsIYFFjBJ/Tkl0MXIB2X8YJbZPaWQHSbAJqEk0z7wMViQiEC2x 48hEIJuDg1mgSmLdG0+QsLCAu8T1S8eYQWwWAVWJZ3cnMYGU8ApYSlz7mgcS5hUQlPgx+R4L iM0soCWxfudxJghbXmLzmrfMEOcoSOw4+5oRYpOeRN+Wa2wQNeISkx48ZJ/AKDALyahZSEbN QjJqFpKWBYwsqxhFUwuSC4qT0nMN9YoTc4tL89L1kvNzNzGCo/uZ1A7GlQ0WhxgFOBiVeHgP RGkEC7EmlhVX5h5ilOBgVhLh/dYEFOJNSaysSi3Kjy8qzUktPsSYDPToRGYp0eR8YOLJK4k3 NDYxM7I0MrMwMjE3J01YSZz3QKt1oJBAemJJanZqakFqEcwWJg5OqQZG+2kRmlln18wJK53/ pezXHpH7q679OL5nyvf5Cxiq+7iTX8trcM7K2ek6526ilV8z8wKFqgtH9kzfkrrm70HD2l1T NO6UfxNbLr5pRwTD/4arW+6/2qCVd62q8NvpHd/CPlVclYz7YuX182PGx5nsJgr7YuaaWkq/ 0NMIieDNiXeer9r6a9OFV0osxRmJhlrMRcWJAFnOKWYyAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bh74.an@samsung.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Content-language: en-us From: Siva Reddy This patch adds binding document for SXGBE ethernet driver via device-tree. Signed-off-by: Siva Reddy Kallam Signed-off-by: Byungho An --- .../devicetree/bindings/net/samsung-sxgbe.txt | 52 ++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/samsung-sxgbe.txt diff --git a/Documentation/devicetree/bindings/net/samsung-sxgbe.txt b/Documentation/devicetree/bindings/net/samsung-sxgbe.txt new file mode 100644 index 0000000..340eff6 --- /dev/null +++ b/Documentation/devicetree/bindings/net/samsung-sxgbe.txt @@ -0,0 +1,52 @@ +* Samsung 10G Ethernet driver (SXGBE) + +Required properties: +- compatible: Should be "samsung,sxgbe-v2.0a" +- reg: Address and length of the register set for the device +- interrupt-parent: Should be the phandle for the interrupt controller + that services interrupts for this device +- interrupts: Should contain the SXGBE interrupts + These interrupts are ordered by fixed and follows variable + trasmit DMA interrupts, receive DMA interrupts and lpi interrupt. + index 0 - this is fixed common interrupt of SXGBE and it is always + available. + index 1 to 25 - 8 variable trasmit interrupts, variable 16 receive interrupts + and 1 optional lpi interrupt. +- phy-mode: String, operation mode of the PHY interface. + Supported values are: "xaui", "gmii". +- samsung,pbl: Integer, Programmable Burst Length. + Supported values are 1, 2, 4, 8, 16, or 32. +- samsung,burst-map: Integer, Program the possible bursts supported by sxgbe + This is an interger and represents allowable DMA bursts when fixed burst. + Allowable range is 0x00-0x3F. This field is valid only when fixed burst is + enabled, otherwise ignored. +- samsung,adv-addr-mode: Boolean, Program the DMA to use Enhanced address mode. +- samsung,force-thresh-dma-mode: Boolean, Force DMA to use the threshold mode + for both tx and rx +- samsung,force-sf-dma-mode: Boolean, Force DMA to use the Store and Forward + mode for both tx and rx. This flag is ignored if force-thresh-dma-mode is set. +- samsung,phy-addr: Integer, Address of the PHY attached with SXGBE. + +Optional properties: +- mac-address: 6 bytes, mac address + +Example: + + aliases { + ethernet0 = <&sxgbe0>; + }; + + sxgbe0: ethernet@1a040000 { + compatible = "samsung,sxgbe-v2.0a"; + reg = <0 0x1a040000 0 0x10000>; + interrupt-parent = <&gic>; + interrupts = <0 209 4>, <0 185 4>, <0 186 4>, <0 187 4>, + <0 188 4>, <0 189 4>, <0 190 4>, <0 191 4>, + <0 192 4>, <0 193 4>, <0 194 4>, <0 195 4>, + <0 196 4>, <0 197 4>, <0 198 4>, <0 199 4>, + <0 200 4>, <0 201 4>, <0 202 4>, <0 203 4>, + <0 204 4>, <0 205 4>, <0 206 4>, <0 207 4>, + <0 208 4>, <0 210 4>; + mac-address = [000000000000]; /* Filled in by U-Boot */ + phy-mode = "xaui"; + };