From patchwork Sat Aug 30 04:15:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 36318 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CEFBE2054D for ; Sat, 30 Aug 2014 04:16:00 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wn1sf19131047obc.2 for ; Fri, 29 Aug 2014 21:16:00 -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=FP/7gNlnAyXK55dzfeBlPP6ah1oiC+9ROHzE6QLDEOg=; b=inooCqCnd7pY3cUs0sngC7ylPSUVepiUrM5dc4Fs+sGjhzAFeSYA6rKT/iXYyYZypw hL7lUMt9Am4zClY80eAiMtqJZWJmwknDI4sfXqFgYFqaAhMZq/bdT4IDHO4eNqzfoe79 aFXdY6PSP6qUBP6l/tgo69eGJ8BoBNXCYSYem348xbLnx+XIsXHaDTB1JbOf2hbX5efn 12nyVj50Ht/D31OspvImTuTrOV9WRRrELu7sU9D/3ojH4FxXSqQqTunQAhC15M2i4lt6 hhHHXZqtcrBu1HH1rV9BXzLGgvCrRer10JJyNxh0wRusX3zFBApD9Viow3R9RU2mN4Gz p7SA== X-Gm-Message-State: ALoCoQmNyTY7Aps+n4V+hFzXjjwsdJxSxdAHCz3KVKzUcnuMjTRLy/GJVGtxpb35udMRmj/1M59G X-Received: by 10.182.60.135 with SMTP id h7mr8733193obr.18.1409372160454; Fri, 29 Aug 2014 21:16:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.245 with SMTP id d108ls514969qgd.68.gmail; Fri, 29 Aug 2014 21:16:00 -0700 (PDT) X-Received: by 10.52.137.2 with SMTP id qe2mr11486856vdb.11.1409372160371; Fri, 29 Aug 2014 21:16:00 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id t10si1597529vcf.39.2014.08.29.21.16.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Aug 2014 21:16:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id ij19so3455302vcb.12 for ; Fri, 29 Aug 2014 21:16:00 -0700 (PDT) X-Received: by 10.220.81.132 with SMTP id x4mr13842647vck.0.1409372160255; Fri, 29 Aug 2014 21:16:00 -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.221.45.67 with SMTP id uj3csp106407vcb; Fri, 29 Aug 2014 21:15:59 -0700 (PDT) X-Received: by 10.68.65.9 with SMTP id t9mr20943489pbs.77.1409372159289; Fri, 29 Aug 2014 21:15:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mr4si3121270pdb.160.2014.08.29.21.15.58 for ; Fri, 29 Aug 2014 21:15:59 -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 S1751006AbaH3EP6 (ORCPT + 5 others); Sat, 30 Aug 2014 00:15:58 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:50227 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750983AbaH3EP5 (ORCPT ); Sat, 30 Aug 2014 00:15:57 -0400 Received: by mail-pd0-f177.google.com with SMTP id r10so1720957pdi.22 for ; Fri, 29 Aug 2014 21:15:57 -0700 (PDT) X-Received: by 10.66.161.169 with SMTP id xt9mr21099939pab.102.1409372157358; Fri, 29 Aug 2014 21:15:57 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by mx.google.com with ESMTPSA id y4sm2335601pdm.1.2014.08.29.21.15.53 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Aug 2014 21:15:56 -0700 (PDT) From: Zhangfei Gao To: mark.rutland@arm.com, dinh.linux@gmail.com, haojian.zhuang@linaro.org, haifeng.yan@linaro.org, jchxue@gmail.com, xuwei5@hisilicon.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Zhangfei Gao Subject: [PATCH v3 1/6] ARM: dts: hix5hd2: add gmac node Date: Sat, 30 Aug 2014 12:15:37 +0800 Message-Id: <1409372142-5960-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409372142-5960-1-git-send-email-zhangfei.gao@linaro.org> References: <1409372142-5960-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.181 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 --- arch/arm/boot/dts/hisi-x5hd2-dkb.dts | 28 ++++++++++++++++++++++++++++ arch/arm/boot/dts/hisi-x5hd2.dtsi | 16 ++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts index 05b44c2..0da3f3b 100644 --- a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts +++ b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts @@ -51,3 +51,31 @@ &uart0 { status = "okay"; }; + +&gmac0 { + #address-cells = <1>; + #size-cells = <0>; + phy-handle = <&phy2>; + phy-mode = "mii"; + /* Placeholder, overwritten by bootloader */ + mac-address = [00 00 00 00 00 00]; + status = "okay"; + + phy2: ethernet-phy@2 { + reg = <2>; + }; +}; + +&gmac1 { + #address-cells = <1>; + #size-cells = <0>; + phy-handle = <&phy1>; + phy-mode = "rgmii"; + /* Placeholder, overwritten by bootloader */ + mac-address = [00 00 00 00 00 00]; + status = "okay"; + + phy1: ethernet-phy@1 { + reg = <1>; + }; +}; diff --git a/arch/arm/boot/dts/hisi-x5hd2.dtsi b/arch/arm/boot/dts/hisi-x5hd2.dtsi index f85ba29..012525c 100644 --- a/arch/arm/boot/dts/hisi-x5hd2.dtsi +++ b/arch/arm/boot/dts/hisi-x5hd2.dtsi @@ -166,5 +166,21 @@ #clock-cells = <1>; }; }; + + gmac0: ethernet@1840000 { + compatible = "hisilicon,hix5hd2-gmac"; + reg = <0x1840000 0x1000>,<0x184300c 0x4>; + interrupts = <0 71 4>; + clocks = <&clock HIX5HD2_MAC0_CLK>; + status = "disabled"; + }; + + gmac1: ethernet@1841000 { + compatible = "hisilicon,hix5hd2-gmac"; + reg = <0x1841000 0x1000>,<0x1843010 0x4>; + interrupts = <0 72 4>; + clocks = <&clock HIX5HD2_MAC1_CLK>; + status = "disabled"; + }; }; };