From patchwork Wed Mar 19 05:32:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungho An X-Patchwork-Id: 26537 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 23A00203C3 for ; Wed, 19 Mar 2014 05:33:53 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id wp18sf30239300obc.4 for ; Tue, 18 Mar 2014 22:33:52 -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=ZGmOD3+T2+HWTk0tuWY2WSAjhZlHiN8NL/eNkYr35sM=; b=SwulcF4/kAaAAZ7DKCsYvri9ScGn3x4pVa404Sj9tHwC70UcjP1K2KZ8w42iL2rIe0 r4On3Bxfs3XopaB0ijZO/aptJZU5hj8F86/LeEGjZdFm4b/5vDwJksBSdn3PO6wwRrIC xgqbd2hFlOOokQOFByUMuTAOinNocFwIE+LMLAmhl2vibKiuaoKxmzAgXCscq6PgbE4j lRL/FOBmikrlymFZEaFvnHhM8Rsfgs6ozKFRCLcrxdAHJL9BGkUEpdE7mb2As31JCAhk +MhpgbTv/tTlaHlQz4sN2K31w+2/mhTLDS/oAYal5Sx6JVumBObEWNMJ9283AmazP1uO 2Rhw== X-Gm-Message-State: ALoCoQmrb41lC+gxngRzneWdO4BJTpnfBgA/F9ktZ/QBu2Y6FvHkcYbRLPlbjGN2XrfwYrd8psKF X-Received: by 10.182.104.200 with SMTP id gg8mr179872obb.45.1395207232568; Tue, 18 Mar 2014 22:33:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.138 with SMTP id c10ls2332575qga.63.gmail; Tue, 18 Mar 2014 22:33:52 -0700 (PDT) X-Received: by 10.58.229.167 with SMTP id sr7mr27381859vec.7.1395207232344; Tue, 18 Mar 2014 22:33:52 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id fn10si2510475vdc.81.2014.03.18.22.33.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Mar 2014 22:33:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.172 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.172; Received: by mail-ve0-f172.google.com with SMTP id jx11so8306087veb.31 for ; Tue, 18 Mar 2014 22:33:52 -0700 (PDT) X-Received: by 10.52.165.105 with SMTP id yx9mr24072365vdb.22.1395207232230; Tue, 18 Mar 2014 22:33:52 -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 i9csp270840vck; Tue, 18 Mar 2014 22:33:51 -0700 (PDT) X-Received: by 10.66.122.36 with SMTP id lp4mr38076414pab.82.1395207230701; Tue, 18 Mar 2014 22:33:50 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si20244843pbn.226.2014.03.18.22.33.50; Tue, 18 Mar 2014 22:33:50 -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 S1750812AbaCSFdm (ORCPT + 8 others); Wed, 19 Mar 2014 01:33:42 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:55698 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753099AbaCSFdG (ORCPT ); Wed, 19 Mar 2014 01:33:06 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2O00BY34R5PD70@mailout4.samsung.com>; Wed, 19 Mar 2014 14:33:05 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id AF.7E.09028.11C29235; Wed, 19 Mar 2014 14:33:05 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-33-53292c116e01 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4F.2E.28157.11C29235; Wed, 19 Mar 2014 14:33:05 +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 <0N2O00EQR4QBA710@mmp1.samsung.com>; Wed, 19 Mar 2014 14:33:05 +0900 (KST) From: Byungho An To: 'netdev' , linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: 'David Miller' , "'ks.giri'" , "'siva.kallam'" , "'vipul.pandya'" , "'ilho215.lee'" Subject: [PATCH V6 1/8] sxgbe: Add device-tree binding support document Date: Tue, 18 Mar 2014 22:32:40 -0700 Message-id: <006901cf4334$b261fbc0$1725f340$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9DM5BwGc03M6i9ThykYSBkNxlIYA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKIsWRmVeSWpSXmKPExsVy+t8zI11BHc1gg43d5hZzzrewWMw/co7V 4ui/hYwW84/uYLKYcX4fk8WxBWIWK5q2MlpsW3CB2YHDY8vKm0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QEZpCEsIC7xOeDTUwgNouAqsS8W1vAbF4BS4nDC1cwQ9iCEj8m32MBsZkF tCTW7zzOBGHLS2xe85YZ4iQFiR1nXzN2MXIALdOT+PHDA6JEXGLSg4fsExgFZiGZNAvJpFlI Js1C0rKAkWUVo2hqQXJBcVJ6rpFecWJucWleul5yfu4mRnCMP5PewbiqweIQowAHoxIP74Eo jWAh1sSy4srcQ4wSHMxKIrzCd4FCvCmJlVWpRfnxRaU5qcWHGJOBHp3ILCWanA9MP3kl8YbG JmZGlkZmFkYm5uakCSuJ8x5stQ4UEkhPLEnNTk0tSC2C2cLEwSnVwJgXEGi6cofGq3pZ3SW7 Pyq9qDrrzV76R/Coza+CFdWdZnc3K7y46dtT7/zv83GutvnHM3efWJp7yVJs06W4HSaLRDLt Xyr8UTonG7j0ZdDDK7nsrQulr7+0rDz7yFPQ+oDv5gOeXWxfo/jXXXLYNdeJM6h62e81D1j/ 3Gld/GvaxA//zt7wT56nxFKckWioxVxUnAgAzk3W5TUDAAA= 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.172 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 | 58 ++++++++++++++++++++ 1 file changed, 58 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..4fc05ab --- /dev/null +++ b/Documentation/devicetree/bindings/net/samsung-sxgbe.txt @@ -0,0 +1,58 @@ +* 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 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. + +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"; + };