From patchwork Thu Mar 20 02:26: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: 26624 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 51E96203C3 for ; Thu, 20 Mar 2014 02:27:01 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id r5sf558204qcx.1 for ; Wed, 19 Mar 2014 19:27:00 -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=+8fstPPRBRke83G2GZeeOjqMqcIlLVUrzycyEQcBWWI=; b=RYtl4qxyVVrr+HOVqASHSCpuVF/ypgLsrCZPu5LOhNRrv4IAC9C3ZHmdBHCY45fAB/ sspmjQxVfKwWM0zAKbi08m6b4U9pvt5EWwSWWnuf+aor/KOFMUJ9DKt2z8vNB2kH/NR3 MP4QPfdWKng5E44PLHleaBMDLMocAcE3j+fy8fIKgtSWuG3wqrpoqTpzE6hMJyvDQPPw GIVLsv5Q1i5YAbhw3Hwx3ODck5rtO/0i7onFsXarmSOyXihj9VrBJKRoLDqPRjWFP+jd 4pjaIoPg3DTz+MgDxn/ceL0ZV95IxNdXL+dyKiesC6IrO8+/6k6ojxMC0RHOizu8Rdut hbcA== X-Gm-Message-State: ALoCoQm/5gMsdzVGBkac4g816wWCxkrR/jQVQrQWO+zF7/SJqVNV+Rq0E0/oUlwFnh0w63KM5YJR X-Received: by 10.58.253.72 with SMTP id zy8mr6391369vec.10.1395282420863; Wed, 19 Mar 2014 19:27:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.21.213 with SMTP id 79ls49679qgl.35.gmail; Wed, 19 Mar 2014 19:27:00 -0700 (PDT) X-Received: by 10.221.27.8 with SMTP id ro8mr3011736vcb.30.1395282420781; Wed, 19 Mar 2014 19:27:00 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id sj4si119843vdc.48.2014.03.19.19.27.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Mar 2014 19:27:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id if17so222532vcb.8 for ; Wed, 19 Mar 2014 19:27:00 -0700 (PDT) X-Received: by 10.52.104.33 with SMTP id gb1mr1970260vdb.45.1395282420689; Wed, 19 Mar 2014 19:27:00 -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 i9csp352408vck; Wed, 19 Mar 2014 19:26:59 -0700 (PDT) X-Received: by 10.66.139.169 with SMTP id qz9mr43996600pab.16.1395282417724; Wed, 19 Mar 2014 19:26:57 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tm7si264623pac.475.2014.03.19.19.26.57; Wed, 19 Mar 2014 19:26:57 -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 S1753402AbaCTC0g (ORCPT + 9 others); Wed, 19 Mar 2014 22:26:36 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:50373 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbaCTC00 (ORCPT ); Wed, 19 Mar 2014 22:26:26 -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 <0N2P009QMQS1IP30@mailout1.samsung.com>; Thu, 20 Mar 2014 11:26:25 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 21.44.10364.1D15A235; Thu, 20 Mar 2014 11:26:25 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-13-532a51d1ffd4 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id A3.76.28157.1D15A235; Thu, 20 Mar 2014 11:26:25 +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 <0N2P00IKXQRSJKK0@mmp1.samsung.com>; Thu, 20 Mar 2014 11:26:25 +0900 (KST) From: Byungho An To: netdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: davem@davemloft.net, 'GIRISH K S' , 'SIVAREDDY KALLAM' , 'Vipul Chandrakant' , 'Ilho Lee' Subject: [PATCH V7 1/7] sxgbe: Add device-tree binding support document Date: Wed, 19 Mar 2014 19:26:16 -0700 Message-id: <00ee01cf43e3$c8d2a940$5a77fbc0$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9D4qV70ZeKrKBqSM+8TK2fafODrw== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKIsWRmVeSWpSXmKPExsVy+t8zQ92LgVrBBvfui1rMOd/CYjH/yDlW i6P/FjJazD+6g8lixvl9TBbHF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Shy/08IKUsUmoCbRPPMyG4gtIhAt sePIRLAOZoGjjBITVxxhB0kIC7hL7NndCtTNwcEioCrR9rUEJMwrYClxcMpfJghbUOLH5Hss IDazgJbE+p3HmSBseYnNa94yQ1ykILHj7GtGiF16Ehdef4WqF5eY9OAh+wRGgVlIRs1CMmoW klGzkLQsYGRZxSiaWpBcUJyUnmukV5yYW1yal66XnJ+7iREc48+kdzCuarA4xCjAwajEw7ti j2awEGtiWXFl7iFGCQ5mJRFea3etYCHelMTKqtSi/Pii0pzU4kOMyUCPTmSWEk3OB6afvJJ4 Q2MTMyNLIzMLIxNzc9KElcR5D7ZaBwoJpCeWpGanphakFsFsYeLglGpgDNdtvvzviOnb+6tc XY2r18U2dS2O9Lqbk3/y3u/k+if/FvOlfWe85rq89s16s2zvnd/XbGR61zH/zPY+9htejvK8 bvtSigNiNb8Y7Gn8Llp9dqX9v6mK02KnHZt554RFfVLSI5eKbT2/FDarJxlzrbJuqhS3YvWu YRfiCtktaa0dseTSdKFvSizFGYmGWsxFxYkALCYV4zUDAAA= 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.220.177 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 | 60 ++++++++++++++++++++ 1 file changed, 60 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..231acf8 --- /dev/null +++ b/Documentation/devicetree/bindings/net/samsung-sxgbe.txt @@ -0,0 +1,60 @@ +* 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. +- samsung,adv-addr-mode: Boolean, Program the DMA to use Enhanced address mode. + When enhanced address mode is needed, it can be set. +- 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. + +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> + samsung,adv-addr-mode = "true" + samsung,force-sf-dma-mode = "true" + mac-address = [ 00 11 22 33 44 55 ]; /* Filled in by U-Boot */ + max-frame-size = <9000>; + phy-mode = "xgmii"; + };