From patchwork Fri Mar 21 18:06:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungho An X-Patchwork-Id: 26860 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f70.google.com (mail-qg0-f70.google.com [209.85.192.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A32C8203AB for ; Fri, 21 Mar 2014 18:07:25 +0000 (UTC) Received: by mail-qg0-f70.google.com with SMTP id z60sf6090664qgd.1 for ; Fri, 21 Mar 2014 11:07:25 -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=jV0hzhyYKYICm+TXr4tzoNTGGexT3MHu0IhlFgcd5VKu1h7Pdnk4Y+jzA/lsn+cGDC +LOlztj7VsMNPhd25MMe7hvWCvcYXuem3AECzOHsgOo2GOAY6mbDXFSfho1Ix6Ihj6HJ flzMYhXuDLtTR6AMotCNROwuWvt6OcIYL6hZLONawIIc10wA+aHZ7q75Dd30u2Wi88Kq gbFuUP0erCPMxrLVlNLaMj2PS1C7zS0Ru016mTpRgXA58K/faDPFGfGIw3qpqEwKBYjV EPefiKB0zD4n/W6TEmpC7AUeDsylW/53g7Ytn1RRftNn5HIWsMCHyKEor953hIPvmUm3 dU+w== X-Gm-Message-State: ALoCoQlbQcdPH3dKTk+tnh3Ofh2XDP9QzSLKo5s7h5o0xIAB9GSc2Em+b/QhU/yVkJcnLZwvwQ+U X-Received: by 10.236.92.15 with SMTP id i15mr4795733yhf.8.1395425245470; Fri, 21 Mar 2014 11:07:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.18.175 with SMTP id 44ls767294qgf.24.gmail; Fri, 21 Mar 2014 11:07:25 -0700 (PDT) X-Received: by 10.58.229.4 with SMTP id sm4mr38860641vec.10.1395425245002; Fri, 21 Mar 2014 11:07:25 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id or7si1279121vcb.61.2014.03.21.11.07.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 11:07:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.173 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.173; Received: by mail-ve0-f173.google.com with SMTP id oy12so2934120veb.4 for ; Fri, 21 Mar 2014 11:07:24 -0700 (PDT) X-Received: by 10.58.185.145 with SMTP id fc17mr38946151vec.14.1395425244885; Fri, 21 Mar 2014 11:07:24 -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 i9csp49460vck; Fri, 21 Mar 2014 11:07:24 -0700 (PDT) X-Received: by 10.68.139.2 with SMTP id qu2mr5699859pbb.164.1395425243848; Fri, 21 Mar 2014 11:07:23 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qj1si4126644pbb.299.2014.03.21.11.07.23; Fri, 21 Mar 2014 11:07:23 -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 S1750977AbaCUSHT (ORCPT + 9 others); Fri, 21 Mar 2014 14:07:19 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:58592 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbaCUSHG (ORCPT ); Fri, 21 Mar 2014 14:07:06 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2S003YASZL9490@mailout1.samsung.com>; Sat, 22 Mar 2014 03:06:57 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 51.85.10364.1CF7C235; Sat, 22 Mar 2014 03:06:57 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-1c-532c7fc1317a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C0.98.29263.1CF7C235; Sat, 22 Mar 2014 03:06:57 +0900 (KST) Received: from VISITOR1LAB ([105.128.34.229]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2S0004OSZCIZA0@mmp2.samsung.com>; Sat, 22 Mar 2014 03:06:57 +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 V10 1/7] sxgbe: Add device-tree binding support document Date: Fri, 21 Mar 2014 11:06:49 -0700 Message-id: <005c01cf4530$57f87080$07e95180$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9FMEGX2eXSox50R4u0Re7luwcCRw== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsVy+t8zfd2D9TrBBivnCFjMOd/CYjH/yDlW i6P/FjJazD+6g8lixvl9TBbHFohZrGjaymixbcEFZg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RCBa YseRiWAdzALXGCW2/X7MApIQFvCQWLf+BzOIzSKgKvFvwWswm1fAUuLh5l/sELagxI/J98Dq mQW0JNbvPM4EYctLbF7zlhniJAWJHWdfA53HAbRMT2J+myREibjEpAcP2ScwCsxCMmkWkkmz kEyahaRlASPLKkbR1ILkguKk9FxDveLE3OLSvHS95PzcTYzgGH8mtYNxZYPFIUYBDkYlHt4K Tu1gIdbEsuLK3EOMEhzMSiK8zbE6wUK8KYmVValF+fFFpTmpxYcYk4EencgsJZqcD0w/eSXx hsYmZkaWRmYWRibm5qQJK4nzHmi1DhQSSE8sSc1OTS1ILYLZwsTBKdXAWHEipUF0LZ+4SoXx hUKRb/++fuaewfZ4cdW/wyvdYgS2ZHmZHVSoVgj+GSZvxj5RvGBBU1DBi+o+n/0Lf9yvCRAr ulK21OZz7NwzPneXf9mUWdhsU3L62+Z2Cw93xR45Bf2Kl8lXNxerXlzM8ss2Xertu3lffJdO kbHM4l/Oms98q0th2f4QJZbijERDLeai4kQAo43RMDUDAAA= 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.173 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"; + };