From patchwork Mon Mar 17 20:43:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungho An X-Patchwork-Id: 26404 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 531E920143 for ; Mon, 17 Mar 2014 20:43:57 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id n16sf25005554oag.5 for ; Mon, 17 Mar 2014 13:43:56 -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=iJLWgWVQS0oVIN0PL3kmQYxyhm3P9teHeKh75EmFAfY=; b=iHEi+w2BS4OxXQ/hOHqSxC9s3fSixT/wR02xC9vhxJk8SIlxpDUSP+mu6jy0sB7oBJ OVVlU9X1eoNe2h7bIM6oDAH7kHPT2ZJPtgpr/ZDOjhlx1dnC/E2ark6+L5yV+IvlVcG1 rxzbCZ95bnIunVZXa8gJ+Ne6XQ+xIuNiLYwAYn0itNYgKGgRQCTXB3Y3kVOqdkAwO5Uj rbo9gv2uh9abg/E9ybwCg9qd3uNwXdbMo9LzWQeZypnG35TKqW2e5caJi5h4G4FtpdU3 XruFgvTN37cXrPEoCVUT4s4e17rfl/PUIomSi5hxh2FMI/JAti4OuLx9nzrbwjQZY0WQ E9rA== X-Gm-Message-State: ALoCoQlPlunURz1jJe4SFDU2U06kZU83vVVjbK1IAbvDpb+4lGO8n0TYum1p7UB1YPN1X+u4OmSx X-Received: by 10.43.14.137 with SMTP id pq9mr8916156icb.12.1395089036325; Mon, 17 Mar 2014 13:43:56 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.107.7 with SMTP id g7ls1880887qgf.53.gmail; Mon, 17 Mar 2014 13:43:56 -0700 (PDT) X-Received: by 10.58.34.67 with SMTP id x3mr74221vei.37.1395089036130; Mon, 17 Mar 2014 13:43:56 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id or7si5694610vcb.136.2014.03.17.13.43.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Mar 2014 13:43:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.171 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.171; Received: by mail-ve0-f171.google.com with SMTP id cz12so6261108veb.30 for ; Mon, 17 Mar 2014 13:43:56 -0700 (PDT) X-Received: by 10.52.241.106 with SMTP id wh10mr18092323vdc.16.1395089036028; Mon, 17 Mar 2014 13:43:56 -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 i9csp155257vck; Mon, 17 Mar 2014 13:43:55 -0700 (PDT) X-Received: by 10.66.180.200 with SMTP id dq8mr28272215pac.104.1395089033767; Mon, 17 Mar 2014 13:43:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qe9si7852953pbb.342.2014.03.17.13.43.53; Mon, 17 Mar 2014 13:43:53 -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 S1751238AbaCQUnw (ORCPT + 8 others); Mon, 17 Mar 2014 16:43:52 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:58218 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbaCQUnu (ORCPT ); Mon, 17 Mar 2014 16:43:50 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2L00I1DLL13E50@mailout2.samsung.com>; Tue, 18 Mar 2014 05:43:49 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 43.BC.09028.58E57235; Tue, 18 Mar 2014 05:43:49 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-e6-53275e851119 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 88.3B.28157.48E57235; Tue, 18 Mar 2014 05:43:49 +0900 (KST) Received: from VISITOR1LAB ([105.128.19.10]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2L00EJWLKRKR00@mmp2.samsung.com>; Tue, 18 Mar 2014 05:43:48 +0900 (KST) From: Byungho An To: netdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: davem@davemloft.net, siva.kallam@samsung.com, vipul.pandya@samsung.com, ks.giri@samsung.com, ilho215.lee@samsung.com Subject: [PATCH V3 1/8] sxgbe: Add device-tree binding support document Date: Mon, 17 Mar 2014 13:43:37 -0700 Message-id: <00c001cf4221$96e667f0$c4b337d0$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9CHtLpNOzvXsBgT76oaCfDU7TQ3A== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsVy+t8zY93WOPVgg0Ov2C3mnG9hsZh/5Byr xdF/Cxkt5h/dwWQx4/w+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9bU+ZQarYBNQkmmdeBusQEYiW2HFk IpjNLFAl8eX7ZCYQW1jAXeLIny4wm0VAVeLbp/vsXYwcHLwClhJXe1xAwrwCghI/Jt9jgWjV kli/8zgThC0vsXnNW2aIgxQkdpx9zQixSk9iw7zbzBA14hKTHjxkn8AoMAvJqFlIRs1CMmoW kpYFjCyrGEVTC5ILipPSc430ihNzi0vz0vWS83M3MYIj/Jn0DsZVDRaHGAU4GJV4eF+wqQcL sSaWFVfmHmKU4GBWEuGVMAEK8aYkVlalFuXHF5XmpBYfYkwGenQis5Rocj4w+eSVxBsam5gZ WRqZWRiZmJuTJqwkznuw1TpQSCA9sSQ1OzW1ILUIZgsTB6dUA6Pt/6tsy5bbPTK58K+s8fDr 5Yf7zzrpTRYsX6b0O1EswpRBiN3oQMPjs57/siId1y0JeGd9bRJ/+Ot5syceXMLH1lw71WpC SJf7vUdiTQfmubstunrn4lr7J5aux07uD3wdPbNQ063zhdqf1FnKCptuL2DjS/7Oynsw9XzZ Ws6uuoDti+Yzc+5WYinOSDTUYi4qTgQAT1YWgDQDAAA= 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.171 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 | 53 ++++++++++++++++++++ 1 file changed, 53 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..ca27947 --- /dev/null +++ b/Documentation/devicetree/bindings/net/samsung-sxgbe.txt @@ -0,0 +1,53 @@ +* 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: "xaui", "gmii". +- samsung,pbl: Integer, Programmable Burst Length. + Supported values are 1, 2, 4, 8, 16, or 32. +- samsung,fixed-burst: Boolean, Program the DMA to use the fixed burst mode +- 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. +- samsung,phy-addr: Integer, Address of the PHY attached with SXGBE. + +Optional properties: +- mac-address: 6 bytes, mac address + +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>; + mac-address = [000000000000]; /* Filled in by U-Boot */ + phy-mode = "xaui"; + };