From patchwork Wed Aug 27 12:38:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 36086 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f197.google.com (mail-yk0-f197.google.com [209.85.160.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7A1A52054F for ; Wed, 27 Aug 2014 12:39:51 +0000 (UTC) Received: by mail-yk0-f197.google.com with SMTP id 142sf446521ykq.0 for ; Wed, 27 Aug 2014 05:39: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=X+jdJdy4juZ0AQ7nI3flVwoMIdzQqR3TQim+o/6YPVE=; b=liFSHIpe4qi1Ko1hRUnoXvrcHNFVGISKPgsS8pNrG0nO8CRfkXJYL1Dffe3+qFXuN/ HyXgxIbPaKDgjF2mhijuvM3fa6wdHOe/D0wV82gupmQ50PSCWGnyMJlFcRhyIuLwNEF9 OxEFNa+Qkjv69AqQAPrJ7/jWc/VgRj5HZGz1jvQbIIBMKNIZ5tpBT2AOW26VP/0T5DDR H4GvHMRll3qSkTVY+Bzekr6nmjXp+TVaJW0/0aOJ6cZxdmLqoy0m1NNI3DyIIUWyngM2 OsuoKx2nVORb7Bn3X9cbGr/kR5SWxFawowDBKmKN0M8aYm6wDS3NLOf69tKpxEbeBiMx u+/w== X-Gm-Message-State: ALoCoQnqMHDhRIO7CrEUEcuTzTwshSyqiDmc8SBuasoqV0MUjJJOfNTsUHyuwZ7JL9WD2p5HOxZp X-Received: by 10.236.61.36 with SMTP id v24mr22072664yhc.24.1409143191338; Wed, 27 Aug 2014 05:39:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.47 with SMTP id k44ls77486qgd.73.gmail; Wed, 27 Aug 2014 05:39:51 -0700 (PDT) X-Received: by 10.220.1.5 with SMTP id 5mr100638vcd.74.1409143191240; Wed, 27 Aug 2014 05:39:51 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id ts8si152554vdc.34.2014.08.27.05.39.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Aug 2014 05:39:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id hy4so8933vcb.41 for ; Wed, 27 Aug 2014 05:39:51 -0700 (PDT) X-Received: by 10.52.234.228 with SMTP id uh4mr751819vdc.34.1409143191133; Wed, 27 Aug 2014 05:39:51 -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 uj3csp75148vcb; Wed, 27 Aug 2014 05:39:50 -0700 (PDT) X-Received: by 10.70.90.48 with SMTP id bt16mr45323928pdb.72.1409143190166; Wed, 27 Aug 2014 05:39:50 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jg1si542619pbb.40.2014.08.27.05.39.47 for ; Wed, 27 Aug 2014 05:39:48 -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 S933427AbaH0Mjb (ORCPT + 6 others); Wed, 27 Aug 2014 08:39:31 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:36440 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933368AbaH0Mja (ORCPT ); Wed, 27 Aug 2014 08:39:30 -0400 Received: by mail-pd0-f169.google.com with SMTP id y10so189090pdj.14 for ; Wed, 27 Aug 2014 05:39:27 -0700 (PDT) X-Received: by 10.66.156.72 with SMTP id wc8mr45047355pab.23.1409143167630; Wed, 27 Aug 2014 05:39:27 -0700 (PDT) Received: from localhost.localdomain ([223.240.29.170]) by mx.google.com with ESMTPSA id y1sm364458pdl.75.2014.08.27.05.39.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Aug 2014 05:39:26 -0700 (PDT) From: Zhangfei Gao To: 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 1/6] ARM: dts: hix5hd2: add gmac node Date: Wed, 27 Aug 2014 20:38:29 +0800 Message-Id: <1409143114-23311-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409143114-23311-1-git-send-email-zhangfei.gao@linaro.org> References: <1409143114-23311-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.182 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 | 26 ++++++++++++++++++++++++++ arch/arm/boot/dts/hisi-x5hd2.dtsi | 16 ++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts index 05b44c2..0344de0 100644 --- a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts +++ b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts @@ -51,3 +51,29 @@ &uart0 { status = "okay"; }; + +&gmac0 { + #address-cells = <1>; + #size-cells = <0>; + phy-handle = <&phy2>; + phy-mode = "mii"; + 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"; + 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"; + }; }; };