From patchwork Tue Mar 25 19:10:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungho An X-Patchwork-Id: 27078 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5DF8320062 for ; Tue, 25 Mar 2014 19:11:43 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id c41sf2299602yho.1 for ; Tue, 25 Mar 2014 12:11:43 -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=exskZSMwBoXIv0EGjn4ZWrDtpxhMQg3VWbwzxCNAO4zGPwSIzot3yOpGs129f8cfce /wtWuD13nVDDzVxLn7UrxtId4HWybVIhDl4ogbGJs6I+IZxIvW6eoXtbtRsdiuCBWIjy 2C4B32VXkgHW8KAuU80gccUr1dEnFtyEfbUgr5q4fnlGwcgTxbzyvC72DuKhoSVl1tDo m6y10TAqQH1PUHcUs0IahJ4TWgZEFCO/j6T1R1xz7vyRnZu3bBdKRiE8H1dTP+2nIorJ B58XLIVUgJQbX+4gDW0sWDTKB36KbUDy0oNs4fUhngvU4zjByI4pd7WnaZdzWQ7Wpp33 qq8w== X-Gm-Message-State: ALoCoQmEEGszDv6HwPdmEWqu+vUKdtRiap+2hAVWhDOWrFxWNS+C2iuQrpYOCTK/CIiZNiFAZ6Xb X-Received: by 10.58.59.104 with SMTP id y8mr18268920veq.18.1395774703133; Tue, 25 Mar 2014 12:11:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.90.80 with SMTP id w74ls368032qgd.95.gmail; Tue, 25 Mar 2014 12:11:43 -0700 (PDT) X-Received: by 10.58.229.167 with SMTP id sr7mr54870286vec.7.1395774703025; Tue, 25 Mar 2014 12:11:43 -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 b5si1783525vej.191.2014.03.25.12.11.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 12:11:43 -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 if17so1129709vcb.36 for ; Tue, 25 Mar 2014 12:11:42 -0700 (PDT) X-Received: by 10.52.147.238 with SMTP id tn14mr48118759vdb.23.1395774702933; Tue, 25 Mar 2014 12:11:42 -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 i9csp330974vck; Tue, 25 Mar 2014 12:11:42 -0700 (PDT) X-Received: by 10.68.234.2 with SMTP id ua2mr80682524pbc.81.1395774699613; Tue, 25 Mar 2014 12:11:39 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si12132733paa.239.2014.03.25.12.11.38; Tue, 25 Mar 2014 12:11:38 -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 S1750929AbaCYTLI (ORCPT + 9 others); Tue, 25 Mar 2014 15:11:08 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:47631 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754320AbaCYTK5 (ORCPT ); Tue, 25 Mar 2014 15:10:57 -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 <0N3000G2WAM9YR80@mailout4.samsung.com>; Wed, 26 Mar 2014 04:10:57 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 28.D6.09028.0C4D1335; Wed, 26 Mar 2014 04:10:56 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-2f-5331d4c09bfe Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 40.0D.28157.0C4D1335; Wed, 26 Mar 2014 04:10:56 +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 <0N3000IHDAM3S700@mmp2.samsung.com>; Wed, 26 Mar 2014 04:10:56 +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 V14 1/7] sxgbe: Add device-tree binding support document Date: Tue, 25 Mar 2014 12:10:51 -0700 Message-id: <01ad01cf485d$f1894fa0$d49beee0$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9IXO26kYW9vIj7S3uL443F1eFmXA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKIsWRmVeSWpSXmKPExsVy+t8zY90DVwyDDRa02FjMOd/CYjH/yDlW i6P/FjJazD+6g8lixvl9TBbHFohZrGjaymixbc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IQ LbHjyESwBmaBa4wS234/ZgFJCAt4SNxfOJEVxGYRUJWYsHwL2CBeAUuJ64sWskHYghI/Jt8D q2cW0JJYv/M4E4QtL7F5zVtmiIsUJHacfc0IsUxPYu7/46wQNeISkx48ZJ/AKDALyahZSEbN QjJqFpKWBYwsqxhFUwuSC4qT0nON9IoTc4tL89L1kvNzNzGCY/yZ9A7GVQ0WhxgFOBiVeHgt +gyDhVgTy4orcw8xSnAwK4nw/j0JFOJNSaysSi3Kjy8qzUktPsSYDPTpRGYp0eR8YPrJK4k3 NDYxM7I0MrMwMjE3J01YSZz3YKt1oJBAemJJanZqakFqEcwWJg5OqQbGRUJeqaXdp07c5FrN 7PjT1TXOd2950kQmrpB7N51Tft2zN7m2lPmjxpKdbj5CzadWhHMZeDluCg+UY7/svyuhw3qW Rr6GHfuECfclRJQ9PI5K5Uw66bWt1t3S4nOs7xPmLS+kTir5t5g0fphxounF58K1ybbLdz7g n8u0a9nTvtZvZwJXe71VYinOSDTUYi4qTgQAFRRotTUDAAA= 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 | 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"; + };