From patchwork Fri May 30 09:02:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 31156 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 4919220068 for ; Fri, 30 May 2014 09:02:39 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id z6sf7767827yhz.5 for ; Fri, 30 May 2014 02:02:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=FM0Zv1jGjxZg36ODjZhu8FK695VINQAwllJxcb+/Ysg=; b=CDgHfzVk4i9W9PsHogIq6ib9sqbNamoR5LjWeIIdhs7mufTgcpBLv8CCvpAjO3yx8v Zmrq829rLXNyXmJL5dplgFNe9rPzDOdDCTh7luG9TlGHVdR9l3K9gZ0GsbGRcjwhavSz 8BXvIyoE4wrLhuXUnf280OVYt5Tkk7HQX+rZyf+V2PE1fV8BdtzZ3TxeA/UZFkP5nanT QippIuCGpG9R3jKIlHRN+hhpsIvavtbncZqpBj4VK/WzRN0q/dA31AEz8X0DUlhlmLHf 48oFu4g8DuvxwSwRLQrrPjR2GynYxqqXfH/CRSl6RVfmZEMHyHSh0nH5/ECJeN7BTzEL xp3A== X-Gm-Message-State: ALoCoQkpPAcbQ3y4H3O5bq4zTABrVscP+WLgVJvTjSl2mXj+Yf28ObW94j+6b7yMeOawN7sH+dkQ X-Received: by 10.224.61.203 with SMTP id u11mr5082030qah.6.1401440559721; Fri, 30 May 2014 02:02:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.133 with SMTP id t5ls896613qgt.43.gmail; Fri, 30 May 2014 02:02:39 -0700 (PDT) X-Received: by 10.58.207.74 with SMTP id lu10mr12067592vec.15.1401440559547; Fri, 30 May 2014 02:02:39 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id em3si2546434veb.76.2014.05.30.02.02.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 May 2014 02:02:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id id10so1732551vcb.41 for ; Fri, 30 May 2014 02:02:39 -0700 (PDT) X-Received: by 10.58.29.234 with SMTP id n10mr12634722veh.16.1401440559239; Fri, 30 May 2014 02:02:39 -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.221.72 with SMTP id ib8csp95230vcb; Fri, 30 May 2014 02:02:38 -0700 (PDT) X-Received: by 10.68.178.194 with SMTP id da2mr16233566pbc.151.1401440558003; Fri, 30 May 2014 02:02:38 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sx5si4643250pab.126.2014.05.30.02.02.37; Fri, 30 May 2014 02:02:37 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932068AbaE3JCg (ORCPT + 8 others); Fri, 30 May 2014 05:02:36 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:39202 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752272AbaE3JCe (ORCPT ); Fri, 30 May 2014 05:02:34 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz1so1503698pad.2 for ; Fri, 30 May 2014 02:02:34 -0700 (PDT) X-Received: by 10.68.138.227 with SMTP id qt3mr16850063pbb.6.1401440554154; Fri, 30 May 2014 02:02:34 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by mx.google.com with ESMTPSA id or4sm5278667pbb.17.2014.05.30.02.02.28 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 May 2014 02:02:33 -0700 (PDT) From: Zhangfei Gao To: davem@davemloft.net, arnd@arndb.de, f.fainelli@gmail.com, sergei.shtylyov@cogentembedded.com, mark.rutland@arm.com, David.Laight@ACULAB.COM, eric.dumazet@gmail.com, haifeng.yan@linaro.org, jchxue@gmail.com Cc: linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, Zhangfei Gao Subject: [PATCH v3 1/2] Documentation: add Device tree bindings for Hisilicon hix5hd2 ethernet Date: Fri, 30 May 2014 17:02:07 +0800 Message-Id: <1401440528-7804-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1401440528-7804-1-git-send-email-zhangfei.gao@linaro.org> References: <1401440528-7804-1-git-send-email-zhangfei.gao@linaro.org> 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: zhangfei.gao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) 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: , Signed-off-by: Zhangfei Gao --- .../bindings/net/hisilicon-hix5hd2-gmac.txt | 36 ++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/hisilicon-hix5hd2-gmac.txt diff --git a/Documentation/devicetree/bindings/net/hisilicon-hix5hd2-gmac.txt b/Documentation/devicetree/bindings/net/hisilicon-hix5hd2-gmac.txt new file mode 100644 index 0000000..75d398b --- /dev/null +++ b/Documentation/devicetree/bindings/net/hisilicon-hix5hd2-gmac.txt @@ -0,0 +1,36 @@ +Hisilicon hix5hd2 gmac controller + +Required properties: +- compatible: should be "hisilicon,hix5hd2-gmac". +- reg: specifies base physical address(s) and size of the device registers. + The first region is the MAC register base and size. + The second region is external interface control register. +- interrupts: should contain the MAC interrupt. +- #address-cells: must be <1>. +- #size-cells: must be <0>. +- phy-mode: see ethernet.txt [1]. +- phy-handle: see ethernet.txt [1]. +- mac-address: see ethernet.txt [1]. +- clocks: clock phandle and specifier pair. + +- PHY subnode: inherits from phy binding [2] + +[1] Documentation/devicetree/bindings/net/ethernet.txt +[2] Documentation/devicetree/bindings/net/phy.txt + +Example: + gmac0: ethernet@f9840000 { + compatible = "hisilicon,hix5hd2-gmac"; + reg = <0xf9840000 0x1000>,<0xf984300c 0x4>; + interrupts = <0 71 4>; + #address-cells = <1>; + #size-cells = <0>; + phy-mode = "mii"; + phy-handle = <&phy2>; + mac-address = [00 00 00 00 00 00]; + clocks = <&clock HIX5HD2_MAC0_CLK>; + + phy2: ethernet-phy@2 { + reg = <2>; + }; + };