From patchwork Mon May 19 12:57:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 30384 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6C0CB202FE for ; Mon, 19 May 2014 12:58:24 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id m1sf30384395oag.6 for ; Mon, 19 May 2014 05:58:24 -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=4b765+8DQO9rIT41fxujvZzuXXoL3/UoXP+JDD+uX4A=; b=jLU3vYgyi0JjLtFrscl3JH0VpqmNf/Eo9ftNz4xNabnmVvzJAgXVZHq4WN46XbkSUT WPYIoPzAAAJODNUoLgjqhvKW45PCXmtvbknlU6pWbHQTjSySyWAU9Y4Bzh5Fbj0nds3Q x751mKgEIjuhvDBGfuZBojXAVgC6ME49o1juX9pw4S2t8QSgjS8/A2llXrpvr71Ha4y+ yrGsd6wqjPJQE22XRRS6sPrrSQzI5G2Owa8CxWMRwm3R2mI27xGtp/AKEvi9s8dFLmW1 k6VkIFBLJJwINi9TqOV7pJfrLRNY+BBt3G8DC6xbxu6a9rO4pUgU//b+AWrWa+cnxrL5 JpXA== X-Gm-Message-State: ALoCoQkGK7cQ+zNGcqwtKqtY/jPV2mcn/Wr6Gs4jS8Ioa3UU6D1/yoLx3aYw0BB/WXCEo5/ANfrS X-Received: by 10.42.209.18 with SMTP id ge18mr14293547icb.7.1400504304027; Mon, 19 May 2014 05:58:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.166 with SMTP id z35ls1657966qgz.93.gmail; Mon, 19 May 2014 05:58:23 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr14529795vch.22.1400504303897; Mon, 19 May 2014 05:58:23 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id jl10si3894207veb.15.2014.05.19.05.58.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 May 2014 05:58:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.178 as permitted sender) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id sa20so6347503veb.37 for ; Mon, 19 May 2014 05:58:23 -0700 (PDT) X-Received: by 10.53.13.133 with SMTP id ey5mr12263888vdd.8.1400504303802; Mon, 19 May 2014 05:58:23 -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 ib8csp234412vcb; Mon, 19 May 2014 05:58:23 -0700 (PDT) X-Received: by 10.68.203.39 with SMTP id kn7mr42730116pbc.141.1400504302925; Mon, 19 May 2014 05:58:22 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hb5si7880840pac.125.2014.05.19.05.58.22; Mon, 19 May 2014 05:58:22 -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 S932118AbaESM6V (ORCPT + 8 others); Mon, 19 May 2014 08:58:21 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:37351 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932110AbaESM6U (ORCPT ); Mon, 19 May 2014 08:58:20 -0400 Received: by mail-pb0-f45.google.com with SMTP id um1so5864106pbc.18 for ; Mon, 19 May 2014 05:58:20 -0700 (PDT) X-Received: by 10.68.132.68 with SMTP id os4mr42742269pbb.129.1400504300014; Mon, 19 May 2014 05:58:20 -0700 (PDT) Received: from localhost.localdomain ([60.166.210.245]) by mx.google.com with ESMTPSA id xc1sm75435773pab.39.2014.05.19.05.58.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 May 2014 05:58:18 -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 2/3] Documentation: add Device tree bindings for Hisilicon hix5hd2 ethernet Date: Mon, 19 May 2014 20:57:06 +0800 Message-Id: <1400504227-12047-3-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1400504227-12047-1-git-send-email-zhangfei.gao@linaro.org> References: <1400504227-12047-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.128.178 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-net.txt | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/hisilicon-hix5hd2-net.txt diff --git a/Documentation/devicetree/bindings/net/hisilicon-hix5hd2-net.txt b/Documentation/devicetree/bindings/net/hisilicon-hix5hd2-net.txt new file mode 100644 index 0000000..16b1f0e --- /dev/null +++ b/Documentation/devicetree/bindings/net/hisilicon-hix5hd2-net.txt @@ -0,0 +1,37 @@ +Hisilicon hix5hd2 Ethernet Controller + +Required properties: +- compatible: should be "hisilicon,hix5hd2-mac". +- 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 interrupts +- #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-mac"; + reg = <0xf9840000 0x1000>,<0xf984300c 0x4>; + #address-cells = <1>; + #size-cells = <0>; + phy-handle = <&phy0>; + phy-mode = "mii"; + mac-address = [00 00 00 00 00 00]; + interrupts = <0 71 4>; + clocks = <&clock HIX5HD2_MAC0_CLK>; + + phy0: ethernet-phy@2 { + reg = <2>; + compatible = "ethernet-phy-ieee802.3-c22"; + }; + };