From patchwork Sun Mar 23 20:46:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungho An X-Patchwork-Id: 26910 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C7C9120490 for ; Sun, 23 Mar 2014 20:46:48 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id pa12sf12319304veb.4 for ; Sun, 23 Mar 2014 13:46:48 -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=TT4jXgRbuz7PIQqjuAdJHuW6vIfUbsbpQ73RljqEinc=; b=mfMlDpmXK4KhZ2lQIi8PlV/4O73YxN93jkqTncpFFSirWuPWUCyJKe6Joc09ljr40a fx0FzMZN5wnSE1RZLXcLZX9T/7A8+EyITKzOHZrILby17+Th72U9bjvaELWzQSFVkoIZ WBBPjQytUSL7n8dCzwLLgxvVy2IHQM5qLUb4b80/7rJAraDIVVgpRqPN5gJknewJr24p cQI/HeM2q8u8C66J9fcwnBts9tvywJkZyyzv5ZH2NVm/xe+9wCpLJER5Z1ReCe9xOlbD iwGe9DVVSuZX9lJq/L91FNgp5LxkGpNg+ezA/AyVuAyU3NZaLdNxD30gNJt8Su4hCaUe uvXQ== X-Gm-Message-State: ALoCoQkyJ1X2ub7WvsgCserGsj1deceWtAPs6HpC9XoVI3yGhX2jS8fHCUJ7en8vf8n9Q9etwlIJ X-Received: by 10.58.7.134 with SMTP id j6mr15689476vea.29.1395607608537; Sun, 23 Mar 2014 13:46:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.120 with SMTP id y111ls1450555qgd.0.gmail; Sun, 23 Mar 2014 13:46:48 -0700 (PDT) X-Received: by 10.220.12.66 with SMTP id w2mr2276088vcw.15.1395607608388; Sun, 23 Mar 2014 13:46:48 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id l2si2561142vcf.151.2014.03.23.13.46.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Mar 2014 13:46:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.169 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.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so4840328veb.14 for ; Sun, 23 Mar 2014 13:46:48 -0700 (PDT) X-Received: by 10.59.7.228 with SMTP id df4mr4077512ved.11.1395607608286; Sun, 23 Mar 2014 13:46:48 -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 i9csp175540vck; Sun, 23 Mar 2014 13:46:47 -0700 (PDT) X-Received: by 10.66.123.5 with SMTP id lw5mr67134381pab.83.1395607607099; Sun, 23 Mar 2014 13:46:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iu9si7817807pac.412.2014.03.23.13.46.46; Sun, 23 Mar 2014 13:46:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 S1751450AbaCWUqp (ORCPT + 9 others); Sun, 23 Mar 2014 16:46:45 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:19317 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751414AbaCWUql (ORCPT ); Sun, 23 Mar 2014 16:46:41 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2W00J25PPSDO40@mailout1.samsung.com>; Mon, 24 Mar 2014 05:46:40 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 9D.10.09028.0384F235; Mon, 24 Mar 2014 05:46:40 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-81-532f48301475 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B1.D6.29263.0384F235; Mon, 24 Mar 2014 05:46:40 +0900 (KST) Received: from VISITOR1LAB ([105.128.34.229]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2W009EYPOUPX50@mmp1.samsung.com>; Mon, 24 Mar 2014 05:46:40 +0900 (KST) From: Byungho An To: netdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: 'David Miller' , 'GIRISH K S' , 'SIVAREDDY KALLAM' , 'Vipul Chandrakant' , 'Ilho Lee' Subject: [PATCH V13 1/7] sxgbe: Add device-tree binding support document Date: Sun, 23 Mar 2014 13:46:16 -0700 Message-id: <00a101cf46d8$fc7aa4d0$f56fee70$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9G2A/UQcuHW5LbTvegVe6NFhAT+w== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKIsWRmVeSWpSXmKPExsVy+t8zY10DD/1gg/3zpCzmnG9hsZh/5Byr xdF/Cxkt5h/dwWQx4/w+JotjC8QsVjRtZbTYtuACswO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QgWmLH kYlsIEXMAtcYJbb9fswCkhAW8JA4vKSJHcRmEVCV6Jz9EqyBV8BSYvmSo1C2oMSPyffA6pkF tCTW7zzOBGHLS2xe85YZ4iIFiR1nXzNCLNOT2LD+KztEjbjEpAcP2ScwCsxCMmoWklGzkIya haRlASPLKkbR1ILkguKk9FxDveLE3OLSvHS95PzcTYzgGH8mtYNxZYPFIUYBDkYlHt4Tn3SD hVgTy4orcw8xSnAwK4nwRrrqBwvxpiRWVqUW5ccXleakFh9iTAb6dCKzlGhyPjD95JXEGxqb mBlZGplZGJmYm5MmrCTOe6DVOlBIID2xJDU7NbUgtQhmCxMHp1QD40KvWV2CyoHS2WcvWbRf tZq47xcLk+iNx/H7N1auKEz+mvU4tK5yIavODVaHHxu+aPa8a0pnm8BTz75Y/aTBY/GoF0vX JrJwPe/1mLVoQotB5wVGz/mnV1pOSlAJEGMLSnvMN237n1UhmsXf9rKIia4uncC8esrcJc/3 ljlkfVm653XG+/lT1imxFGckGmoxFxUnAgAzoncKNQMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.169 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..989f6c9 --- /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: "sgmii", "xgmii". +- 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 0x01-0x3F. When this field is set fixed burst is enabled. + When fixed length is needed for burst mode, it can be set within allowable + range. + +Optional properties: +- mac-address: 6 bytes, mac address +- max-frame-size: Maximum Transfer Unit (IEEE defined MTU), rather + than the maximum frame size. + +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>; + samsung,pbl = <0x08> + samsung,burst-map = <0x20> + mac-address = [ 00 11 22 33 44 55 ]; /* Filled in by U-Boot */ + max-frame-size = <9000>; + phy-mode = "xgmii"; + };