From patchwork Sat Mar 22 06:23:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungho An X-Patchwork-Id: 26891 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5D69C203AB for ; Sat, 22 Mar 2014 06:24:59 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id lh14sf7899549vcb.10 for ; Fri, 21 Mar 2014 23:24:59 -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=jSFye8QiQBGy7d07RhJ2ngHDykpzQXGUqfmOGnmDWZeG86AvacSvHR2PuxqWSC0CAl h/wS5jcD0ZNciZe6+rOTLqiqYzQkxNA4KJT0x5WPfDkKRJdOQEZkFSvrEXDQKo83WMoG 7bTp2VKc5JZSHjLE8x2xyDbykhfM0ie6pZX4+1+GBlRoMts2QVDja0o6eSPLWy4QXtbj DdvEKu5h+58vY2AVIG9YForcSsuylqojTdsCjmkx3cZNJK91ikeHa93p1MyU2E5jsoNs qBaH4GXXbsX6ofE5mQlXTeVkdRvSSTaIvLdFvr/boNlxObZDoXShm2kFU5EzQ+KDGHFC YOSw== X-Gm-Message-State: ALoCoQkZkF8boBhgtj1pjiTbdPPNjcgzAPXQb4O8Ht/GB3HmqZLumFYf/l1Ydciuzpz8wt6Dfnmm X-Received: by 10.224.6.198 with SMTP id a6mr2363963qaa.6.1395469499137; Fri, 21 Mar 2014 23:24:59 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.76 with SMTP id b70ls427068qgd.97.gmail; Fri, 21 Mar 2014 23:24:59 -0700 (PDT) X-Received: by 10.220.249.6 with SMTP id mi6mr184229vcb.33.1395469499061; Fri, 21 Mar 2014 23:24:59 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id rx10si1699406vdc.132.2014.03.21.23.24.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 23:24:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 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.176; Received: by mail-vc0-f176.google.com with SMTP id lc6so3560496vcb.21 for ; Fri, 21 Mar 2014 23:24:59 -0700 (PDT) X-Received: by 10.220.81.194 with SMTP id y2mr179282vck.29.1395469498981; Fri, 21 Mar 2014 23:24:58 -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 i9csp80763vck; Fri, 21 Mar 2014 23:24:58 -0700 (PDT) X-Received: by 10.68.44.71 with SMTP id c7mr58712893pbm.24.1395469497893; Fri, 21 Mar 2014 23:24:57 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id se7si5016879pbb.10.2014.03.21.23.24.57; Fri, 21 Mar 2014 23:24: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 S1751322AbaCVGYz (ORCPT + 9 others); Sat, 22 Mar 2014 02:24:55 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:26744 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448AbaCVGYc (ORCPT ); Sat, 22 Mar 2014 02:24:32 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2T00H0DR470TB0@mailout3.samsung.com>; Sat, 22 Mar 2014 15:24:07 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 14.D5.14803.78C2D235; Sat, 22 Mar 2014 15:24:07 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-fe-532d2c871a9e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 58.A4.28157.78C2D235; Sat, 22 Mar 2014 15:24:07 +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 <0N2T00LCIR3N9330@mmp1.samsung.com>; Sat, 22 Mar 2014 15:24:07 +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 V11 1/7] sxgbe: Add device-tree binding support document Date: Fri, 21 Mar 2014 23:23:48 -0700 Message-id: <008001cf4597$531fe090$f95fa1b0$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9Flfl5cDU5S5UbRvOpp2Ahk3jILw== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGIsWRmVeSWpSXmKPExsVy+t8zfd12Hd1gg2M/pCzmnG9hsZh/5Byr xdF/Cxkt5h/dwWQx4/w+JotjC8Q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zSBWbgJpE88zLbCC2iEC0 xI4jE8E6mAWuMUps+/2YBSQhLOAhsWjSP7CxLAKqEu/fXwRr4BWwlLjc9YURwhaU+DH5Hlg9 s4CWxPqdx5kgbHmJzWveMkOcpCCx4+xrRohlehLXtj5hhKgRl5j04CH7BEaBWUhGzUIyahaS UbOQtCxgZFnFKJpakFxQnJSea6RXnJhbXJqXrpecn7uJERzlz6R3MK5qsDjEKMDBqMTDe0Ne N1iINbGsuDL3EKMEB7OSCO8JBaAQb0piZVVqUX58UWlOavEhxmSgTycyS4km5wMTUF5JvKGx iZmRpZGZhZGJuTlpwkrivAdbrQOFBNITS1KzU1MLUotgtjBxcEo1MC6LcwhYKrBFTKVpguFO pRojpaDn70+dins2733zg7bf51p/chx8W9PkukVpU3jmrJK9Ahmd/U0CBRyVJ1ut7D/+eu8z b9eeOC3BcMllmcYztcUaZAIeXJG/O8lB2k3Ke3HX6jPigTOcVxnLtT6f/es8p8XETbzKp5OU N68VXcv8YseXluXFi5VYijMSDbWYi4oTAfiUD2k2AwAA 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.176 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"; + };