From patchwork Sun Mar 23 04:04:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungho An X-Patchwork-Id: 26901 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 BA46C20143 for ; Sun, 23 Mar 2014 04:06:20 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id wp18sf16485830obc.0 for ; Sat, 22 Mar 2014 21:06:20 -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=XmvNxeSkR5ABBXt4SswuzE657MArAr8e2Oj3PAgYZu4=; b=nESOg0jBd1aTjEVZ9NYKEZ+8DhQzxmBqVT7v/j5BM2wzeiRc/+Ro4i+PGGnGqr+bb1 S6TF8KPFIXHGRlIFkmhLQNsPQHAkiLq/G7DGwbRhmaHG2W7GKiRtHs/xgWK7dW+5Wsf0 Ysn61R9rmPBlcmPYgKEqjpDngl4ocVPx1G0AcQRqSUpTbWtENsU9lSJD09fvy5cypxDc FsSKIL2ylSw0JeN5QrXCOOQaQeQX2ra1+UHaw3s98qZjzDhNnvgObWZa17WIJogx25K8 ElHxdOPDoaAyikXq0Gl9a4mnuRQZuqGLAow0KftayG7Z71+xTt8TICBIb+z/zQ14DZ2N X6dQ== X-Gm-Message-State: ALoCoQlgBx97FvP4jl9bJZ7LSNYV5H7SOhmfjYxh7emEWONeOmioh5cRhJzAXqKMh7xrtc5uRrSw X-Received: by 10.42.53.135 with SMTP id n7mr21761680icg.11.1395547579923; Sat, 22 Mar 2014 21:06:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.81 with SMTP id r75ls1224791qga.71.gmail; Sat, 22 Mar 2014 21:06:19 -0700 (PDT) X-Received: by 10.52.241.106 with SMTP id wh10mr37790683vdc.16.1395547579799; Sat, 22 Mar 2014 21:06:19 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id fx7si2206359vcb.45.2014.03.22.21.06.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 22 Mar 2014 21:06:19 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.169 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.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so4398790veb.0 for ; Sat, 22 Mar 2014 21:06:19 -0700 (PDT) X-Received: by 10.58.188.52 with SMTP id fx20mr144062vec.28.1395547579710; Sat, 22 Mar 2014 21:06:19 -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 i9csp128889vck; Sat, 22 Mar 2014 21:06:18 -0700 (PDT) X-Received: by 10.66.141.144 with SMTP id ro16mr619347pab.131.1395547575565; Sat, 22 Mar 2014 21:06:15 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yj1si6626345pac.320.2014.03.22.21.05.49; Sat, 22 Mar 2014 21:05:49 -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 S1751238AbaCWEFq (ORCPT + 8 others); Sun, 23 Mar 2014 00:05:46 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:48791 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750900AbaCWEFG (ORCPT ); Sun, 23 Mar 2014 00:05:06 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2V0090DFCGC320@mailout1.samsung.com>; Sun, 23 Mar 2014 13:05:04 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 42.4B.14803.07D5E235; Sun, 23 Mar 2014 13:05:04 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-5e-532e5d703b46 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 02.28.29263.07D5E235; Sun, 23 Mar 2014 13:05:04 +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 <0N2V00G3DFBY4650@mmp2.samsung.com>; Sun, 23 Mar 2014 13:05:04 +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 V12 1/7] sxgbe: Add device-tree binding support document Date: Sat, 22 Mar 2014 21:04:50 -0700 Message-id: <009401cf464d$10bbe850$3233b8f0$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9GTCu2LAGB7nd9QISA2LiYDvIpTg== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKIsWRmVeSWpSXmKPExsVy+t8zI92CWL1gg/MNxhZzzrewWMw/co7V 4ui/hYwW84/uYLKYcX4fk8WxBWI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xkl9pzfxATh/GWU6P/ayQpSxSagJtE88zIbiC0i EC2x48hEsA5mgWuMEtt+P2YBSQgLeEgsvNgKZrMIqEpMnLmAGcTmFbCUONR7kxHCFpT4Mfke WA2zgJbE+p3HmSBseYnNa94yQ5ykILHj7GtGiGV6ErvPXWSGqBGXmPTgIfsERoFZSEbNQjJq FpJRs5C0LGBkWcUomlqQXFCclJ5rqFecmFtcmpeul5yfu4kRHOPPpHYwrmywOMQowMGoxMN7 4pNusBBrYllxZe4hRgkOZiURXgZdvWAh3pTEyqrUovz4otKc1OJDjMlAn05klhJNzgemn7yS eENjEzMjSyMzCyMTc3PShJXEeQ+0WgcKCaQnlqRmp6YWpBbBbGHi4JRqYOwOe1a88FqDy40L h/4a7eqPPZw/ZUE5+5S34v2vZy3V/21/y0hw/+kI083zp0quvqWlWprSsk5+Kecu9Y85AVwF s+XjfravM1hgoLn0+HPNHTdSfU9UvlvCNS0osUPQUac6XsL31K59HkWmVZtqPE2tfG59djmd zOlQ8yKgX9awZhlHa09FjhJLcUaioRZzUXEiAHSdaTg1AwAA 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.169 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"; + };