From patchwork Tue May 27 12:44:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 30975 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0D01B203C3 for ; Tue, 27 May 2014 12:44:51 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id va2sf46453091obc.1 for ; Tue, 27 May 2014 05:44:51 -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=86DNZItEtTJQf/G0jaX/lyBLwRipYWr8iCHwWdzAab8=; b=io7hzwDoYOQAGdHrcR7iegyiNyylGTGCiSSHcjLYH48IGFM7/wL7L8L2IQ1HAdFU+P ibynysqdt46hZDtnaUO8xBOwBpdXKN5/vpBv4Sh8TBk8wTT1XHRdGghYwC373JENrMPJ mCE+sg09R41ArU1CReAqLxHc5DGgQASL2DC1pMHA5Vvd6mFdM4k4ICAbHvTKhkrUJFea Um2/y4ZZS+OmN1V5Z1Ba2mYIJ34kGQ0o8uRKZR2hqUWh5Pf2EIuwvFo+leff20/Jf8O9 YXErTHdkHYSLC8mEIiVFPoaanGsleUAlvYLL9pWd5zpdPkMD20Jt94ibDTCRER683Ocg fH5g== X-Gm-Message-State: ALoCoQm0FQ/9zVXFo40Ay1W+uh+82aaX3qbHFbsN+wSlkPPfWpNtYambW6xDpfNTZ1VTqyj6xPR9 X-Received: by 10.182.153.68 with SMTP id ve4mr13398311obb.39.1401194691075; Tue, 27 May 2014 05:44:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.90.48 with SMTP id w45ls1406918qgd.73.gmail; Tue, 27 May 2014 05:44:51 -0700 (PDT) X-Received: by 10.52.165.37 with SMTP id yv5mr695072vdb.58.1401194690965; Tue, 27 May 2014 05:44:50 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id tg3si8030235vcb.24.2014.05.27.05.44.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 May 2014 05:44:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.169 as permitted sender) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id jx11so10551385veb.14 for ; Tue, 27 May 2014 05:44:50 -0700 (PDT) X-Received: by 10.220.7.131 with SMTP id d3mr467715vcd.45.1401194690868; Tue, 27 May 2014 05:44:50 -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 ib8csp116078vcb; Tue, 27 May 2014 05:44:50 -0700 (PDT) X-Received: by 10.68.178.194 with SMTP id da2mr35994017pbc.151.1401194690046; Tue, 27 May 2014 05:44:50 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xp2si18614134pbc.57.2014.05.27.05.44.49; Tue, 27 May 2014 05:44:49 -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 S1752087AbaE0Moq (ORCPT + 3 others); Tue, 27 May 2014 08:44:46 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:61211 "EHLO mail-pb0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751831AbaE0Moo (ORCPT ); Tue, 27 May 2014 08:44:44 -0400 Received: by mail-pb0-f42.google.com with SMTP id md12so9254329pbc.29 for ; Tue, 27 May 2014 05:44:44 -0700 (PDT) X-Received: by 10.68.218.231 with SMTP id pj7mr35948201pbc.95.1401194684427; Tue, 27 May 2014 05:44:44 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by mx.google.com with ESMTPSA id ix7sm23230721pbd.36.2014.05.27.05.44.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 May 2014 05:44:43 -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 v2 1/2] Documentation: add Device tree bindings for Hisilicon hix5hd2 ethernet Date: Tue, 27 May 2014 20:44:26 +0800 Message-Id: <1401194667-14445-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1401194667-14445-1-git-send-email-zhangfei.gao@linaro.org> References: <1401194667-14445-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.128.169 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..5fe3835 --- /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 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-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>; + }; + };