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: 4202121 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8F8D8BEEAB for ; Mon, 19 May 2014 13:00:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EDB23201EF for ; Mon, 19 May 2014 13:00:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3DB7D202F0 for ; Mon, 19 May 2014 13:00:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WmN9Q-0004mv-6r; Mon, 19 May 2014 12:58:44 +0000 Received: from mail-pb0-f43.google.com ([209.85.160.43]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WmN9N-0004ga-0U for linux-arm-kernel@lists.infradead.org; Mon, 19 May 2014 12:58:41 +0000 Received: by mail-pb0-f43.google.com with SMTP id up15so5873374pbc.30 for ; Mon, 19 May 2014 05:58: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:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Jc0QdOaKv1qu5HpdJjRYJ2e2zo1TpkJgGGpj75ipMgk=; b=MvM6z+A9+SvuC8xduTLXfQpwHWLpUh5Mqhhv4/Z8+YpX8m4YKaRKoWjruoB/n9FFbp RT+GHHB75Xshnkgmre34qSrflIXPBCanW7PaL69vTRlBcuVhiMvNzvCaGTRog60hfNoC 6gjnHTSPUHXrLdIoGF6uFKNdsdR3pcR/yhrGgD/tirVnGBVPhgF1owCXGoWZdGFPOUqM sdOVyOWEfQ65/MvwzXOcs3oLnk8zPwXXvRif0FuoN9zU/YgKV9EAayj4/mZZi1vVrrcd gz3Sz2r0qFKAP2P9VoqrfeYz++7X3WUB4BW91JCCkKf33k41Qk+lb6swR8w+5XscGBpR T25g== X-Gm-Message-State: ALoCoQlWU/Jx84K1+2D2QUXrSc9IFbiDQQ5mBiw/mr1WJmYBwlFCCd9tYnBzRG8ykDO0ZIULRXKs 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140519_055841_073973_93AA9F04 X-CRM114-Status: GOOD ( 10.84 ) X-Spam-Score: -0.7 (/) Cc: netdev@vger.kernel.org, Zhangfei Gao , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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"; + }; + };