From patchwork Tue Mar 18 06:47:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungho An X-Patchwork-Id: 26452 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 DEBEB203C3 for ; Tue, 18 Mar 2014 06:47:36 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id wp18sf25963638obc.0 for ; Mon, 17 Mar 2014 23:47:36 -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=iEK3KdAGabEgCLJ96XvYpRb3lkrGaHUGY7/DLU35290=; b=XmIr7tqEWFh4iX/dfevGeZ09kgT0ODswYFJpvgz8qEt6b7mSi8cKaRVhTK9lSJ7+8Y Zx5ngSWzexkYjt/CSQGuiT8Do0Fll50+mtr1rbpqa+z7G7KC07fONcZsYza3NWVsN1oS 67Y7cROwGTfwyE1oWfx4v+bphm7AVZAQ3pOiSPh9AWUuGKY3IfbQHAXhE95y5aLFFVPW xSNdA8yH0woRcGUQkpojStFdpIT2sWYcKVYCYwHWL9jc0t53QBGgy4luMt8VD9g7v/eP lmGoPSOJAErH03Tayk+4Z6JrwELVnnyp/UQGlXIWpx7JKqC5kNi371A2NK7lKhqdKXC1 UYoQ== X-Gm-Message-State: ALoCoQkSz+xx6b43uv3IAEOf0ZLgGdtUcX3jlqM5IWKiCAOGfyitkxWqbdAupGj/umssf9J+l/xI X-Received: by 10.42.123.66 with SMTP id q2mr9128863icr.16.1395125256420; Mon, 17 Mar 2014 23:47:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.138 with SMTP id 10ls856240qgx.52.gmail; Mon, 17 Mar 2014 23:47:36 -0700 (PDT) X-Received: by 10.58.57.67 with SMTP id g3mr22993783veq.3.1395125256302; Mon, 17 Mar 2014 23:47:36 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id d20si3394062veu.97.2014.03.17.23.47.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Mar 2014 23:47:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id il7so6686624vcb.18 for ; Mon, 17 Mar 2014 23:47:36 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr1269578vcb.32.1395125256196; Mon, 17 Mar 2014 23:47:36 -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 i9csp181763vck; Mon, 17 Mar 2014 23:47:35 -0700 (PDT) X-Received: by 10.68.130.202 with SMTP id og10mr8960360pbb.133.1395125255306; Mon, 17 Mar 2014 23:47:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tu7si11722853pac.101.2014.03.17.23.47.34; Mon, 17 Mar 2014 23:47:34 -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 S1753300AbaCRGr2 (ORCPT + 9 others); Tue, 18 Mar 2014 02:47:28 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:57071 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753232AbaCRGrY (ORCPT ); Tue, 18 Mar 2014 02:47:24 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2M000VPDIZS2B0@mailout2.samsung.com>; Tue, 18 Mar 2014 15:47:23 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 9C.84.10092.AFBE7235; Tue, 18 Mar 2014 15:47:22 +0900 (KST) X-AuditID: cbfee68f-b7f156d00000276c-77-5327ebfa8213 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4A.ED.28157.AFBE7235; Tue, 18 Mar 2014 15:47:22 +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 <0N2M005LDDIQUQ90@mmp2.samsung.com>; Tue, 18 Mar 2014 15:47:22 +0900 (KST) From: Byungho An To: netdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: davem@davemloft.net, ilho215.lee@samsung.com, siva.kallam@samsung.com, vipul.pandya@samsung.com, ks.giri@samsung.com Subject: [PATCH V4 1/8] sxgbe: Add device-tree binding support document Date: Mon, 17 Mar 2014 23:47:13 -0700 Message-id: <00f801cf4275$e7e2a1b0$b7a7e510$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9CdHzqxjF2VWc+SryAt07h2tvWlw== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKIsWRmVeSWpSXmKPExsVy+t8zY91fr9WDDW5sMraYc76FxWL+kXOs Fkf/LWS0mH90B5PFjPP7mCyOLRCz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AmoSzTMvs4HYIgLR EjuOTASzmQWqJPpfbAKrERZwl7i6YzsLiM0ioCqxseceK4jNK2ApsX9LLxOELSjxY/I9Fohe LYn1O48zQdjyEpvXvGWGuEhBYsfZ14wQu/Qknu/6xg5RIy4x6cFD9gmMArOQjJqFZNQsJKNm IWlZwMiyilE0tSC5oDgpPddIrzgxt7g0L10vOT93EyM4xp9J72Bc1WBxiFGAg1GJh/cFm3qw EGtiWXFl7iFGCQ5mJRHepZOBQrwpiZVVqUX58UWlOanFhxiTgT6dyCwlmpwPTD95JfGGxiZm RpZGZhZGJubmpAkrifMebLUOFBJITyxJzU5NLUgtgtnCxMEp1cAYVPz44E+dN/2H1XRj3330 Vz10/Hl07ufT/h/b5s/r+impICEnpPXf8OqOBwxnZaYqZ0V0NHotsHvtHsHoG3AidnLz3lCZ U+zxtrMDfz40+TYrRXED/8wZG7/1L3m9vOXG97jnLrkOnrMq++/FMS79cDLsO3t/yqVwi1Wz W2dobVrHNOHTpp/vlFiKMxINtZiLihMBoYO2RjUDAAA= 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.173 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 + mac-address = [000000000000]; /* Filled in by U-Boot */ + phy-mode = "xaui"; + }; 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>;