From patchwork Thu Mar 20 22:23:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungho An X-Patchwork-Id: 26777 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 419C0202E0 for ; Thu, 20 Mar 2014 22:26:29 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id i17sf3599959qcy.11 for ; Thu, 20 Mar 2014 15:26:28 -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=ykXzoUtIv/HyhB+eybOrxQxntHTyB1wDfyHggT4H8Qw=; b=mz3wOh5bU5OCi06X7Q0W3Qm82qm9kC9iCiIe1+GZO11GxXU74GrDgscDKOvE8J/YVv Ky0NTpQNw0n7DRjqf5BDjbgVFv+KslbOjfFJFuAiMvhrNO9xeGj4NGEtdULIu/+FuvFT gJ8CSa/m7gngJD07pRhQuWcshdbJREKdvSrn07vF1wMvPMc/rjWeFeZpVMPFtzkRSV8R jksCzXbmCT/nSBQjcB0xdnQBZLOQV+BVkZqBLtmqgNLCOHDYMyjcSJBB01Igr7QgKT21 2g8YEpwobp4bvRHqPobtm4SbEP4/9y60mhV0zMjZz1N4+8x+8FRpWHUVCrg2Am+a6Ett FQcA== X-Gm-Message-State: ALoCoQn2EFIcGniZJShUvl8kKtbc6uOjmD8R8goKkaVj4PVfhjdn9YbYlYaTIYXWWaAM5Ad3YvoM X-Received: by 10.236.188.133 with SMTP id a5mr12921736yhn.24.1395354388662; Thu, 20 Mar 2014 15:26:28 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.203 with SMTP id t69ls428320qgd.87.gmail; Thu, 20 Mar 2014 15:26:28 -0700 (PDT) X-Received: by 10.52.104.33 with SMTP id gb1mr1751951vdb.45.1395354388527; Thu, 20 Mar 2014 15:26:28 -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 xs6si726144vec.110.2014.03.20.15.26.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Mar 2014 15:26:28 -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 oy12so1693408veb.26 for ; Thu, 20 Mar 2014 15:26:28 -0700 (PDT) X-Received: by 10.58.45.100 with SMTP id l4mr7240vem.48.1395354388428; Thu, 20 Mar 2014 15:26:28 -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 i9csp423176vck; Thu, 20 Mar 2014 15:26:27 -0700 (PDT) X-Received: by 10.68.131.202 with SMTP id oo10mr50334752pbb.35.1395354386885; Thu, 20 Mar 2014 15:26:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bp1si2285380pbb.479.2014.03.20.15.26.26; Thu, 20 Mar 2014 15:26:26 -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 S1760012AbaCTWYu (ORCPT + 8 others); Thu, 20 Mar 2014 18:24:50 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:40429 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758484AbaCTWXr (ORCPT ); Thu, 20 Mar 2014 18:23:47 -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 <0N2R00I9AA7M6010@mailout1.samsung.com>; Fri, 21 Mar 2014 07:23:46 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id F2.9E.10364.27A6B235; Fri, 21 Mar 2014 07:23:46 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-84-532b6a7261f6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id EA.3C.28157.27A6B235; Fri, 21 Mar 2014 07:23:46 +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 <0N2R0047WA7H8B90@mmp1.samsung.com>; Fri, 21 Mar 2014 07:23:46 +0900 (KST) From: Byungho An To: netdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: 'David Miller' , ks.giri@samsung.com, siva.kallam@samsung.com, vipul.pandya@samsung.com, ilho215.lee@samsung.com Subject: [PATCH V9 1/7] sxgbe: Add device-tree binding support document Date: Thu, 20 Mar 2014 15:23:42 -0700 Message-id: <000201cf448b$0e25b990$2a712cb0$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9EiWx+vBUY3UCyQ6mYuLjgYzs8NQ== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKIsWRmVeSWpSXmKPExsVy+t8zA92iLO1gg6m7eC3mnG9hsZh/5Byr xdF/Cxkt5h/dwWQx4/w+Jot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NrZxA5SxSagJtE88zIbiC0iEC2x 48hEsCJmgW5GiU8r9oMlhAXcJV5daGMGsVkEVCWWHPsN1swrYClx8WUbG4QtKPFj8j0WEJtZ QEti/c7jTBC2vMTmNW+ZIU5SkNhx9jUjxDI9ifePnkPVi0tMevCQfQKjwCwko2YhGTULyahZ SFoWMLKsYhRNLUguKE5KzzXSK07MLS7NS9dLzs/dxAiO8mfSOxhXNVgcYhTgYFTi4a3g1A4W Yk0sK67MPcQowcGsJMJ7PhYoxJuSWFmVWpQfX1Sak1p8iDEZ6NOJzFKiyfnABJRXEm9obGJm ZGlkZmFkYm5OmrCSOO/BVutAIYH0xJLU7NTUgtQimC1MHJxSDYxMcxcu3rH7gIFImPyhhZJf vdMvLv3lsvjI50Q3v2h+BbugugifC/tCJiz2ZbzHNFvuRdPPn8v7E1bE3BXatnHpZk057wNr XM57pV0u56uZrpty3UPB9/qtk+6rrCfUlsfqsnteW6u3+bVlXFKIkYi1wGVx1pCX9zdOEro4 RZu969+9B7kVnxqUWIozEg21mIuKEwHmIHMLNgMAAA== 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 | 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"; + };