From patchwork Tue Jun 3 05:49:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 31319 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4A5A8203C2 for ; Tue, 3 Jun 2014 05:50:07 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id tp5sf32506374ieb.1 for ; Mon, 02 Jun 2014 22:50:06 -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=ClkbDVQNn0GesBj+jN9uC0yYsQrKlUcahwUY2JiEJGE=; b=VRBEOj3c8nraoGZvpMlMGM9ZZ1A1DoAf8qDrXv0KURp6SpF/cpurkfEmtHf/am8eat CBZkgsApQqpZ8aEK14hbnaZSp8Ky95OpTsGZjvj8ZVHYI+cU4df00gIWOGN0d1KAPgYs qOc086cpIkYM1rfy/aEuEl4riRhK4zw7uKXB77oOYeLQRKvuex/EqxOO/CcarzO4Sf/j cp/j8MnUDMu69TT1T7uZUB+C2XzipXhSflHryguz7Zj35eNTdSulhPPjaGwSo69xxjih Fzrl9/V+MyW3Co2Sx3vXYgdDhf6W13ufi7jKkmZB5AuW2rRiPuFeTBLLnn16QhETQm+0 KQWw== X-Gm-Message-State: ALoCoQmFFflh+p1T68sdb8eiScL8kjOy4+9N1yWWBGAynyvCGRaRtho7hpNcazeXaoMAO0pD4B6Z X-Received: by 10.182.109.231 with SMTP id hv7mr16847702obb.2.1401774606371; Mon, 02 Jun 2014 22:50:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.8 with SMTP id y8ls2433185qgy.11.gmail; Mon, 02 Jun 2014 22:50:06 -0700 (PDT) X-Received: by 10.221.5.1 with SMTP id oe1mr35120989vcb.10.1401774606261; Mon, 02 Jun 2014 22:50:06 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id s19si9385613vcp.1.2014.06.02.22.50.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Jun 2014 22:50:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hy4so3284263vcb.36 for ; Mon, 02 Jun 2014 22:50:06 -0700 (PDT) X-Received: by 10.220.253.132 with SMTP id na4mr5283357vcb.39.1401774606092; Mon, 02 Jun 2014 22:50:06 -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 ib8csp151251vcb; Mon, 2 Jun 2014 22:50:05 -0700 (PDT) X-Received: by 10.66.136.131 with SMTP id qa3mr45741501pab.77.1401774604973; Mon, 02 Jun 2014 22:50:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hl2si18961304pac.30.2014.06.02.22.50.04; Mon, 02 Jun 2014 22:50:04 -0700 (PDT) Received-SPF: none (google.com: netdev-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 S1753357AbaFCFt7 (ORCPT + 3 others); Tue, 3 Jun 2014 01:49:59 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:46965 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753277AbaFCFt6 (ORCPT ); Tue, 3 Jun 2014 01:49:58 -0400 Received: by mail-pd0-f172.google.com with SMTP id fp1so4203297pdb.17 for ; Mon, 02 Jun 2014 22:49:57 -0700 (PDT) X-Received: by 10.68.225.105 with SMTP id rj9mr47080771pbc.108.1401774597745; Mon, 02 Jun 2014 22:49:57 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by mx.google.com with ESMTPSA id zq5sm23600490pbb.37.2014.06.02.22.49.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Jun 2014 22:49:57 -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 v4 1/2] Documentation: add Device tree bindings for Hisilicon hix5hd2 ethernet Date: Tue, 3 Jun 2014 13:49:36 +0800 Message-Id: <1401774577-16683-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1401774577-16683-1-git-send-email-zhangfei.gao@linaro.org> References: <1401774577-16683-1-git-send-email-zhangfei.gao@linaro.org> Sender: netdev-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: netdev@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.177 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>; + }; + };