From patchwork Thu Aug 28 05:34:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 36143 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 8894F2054F for ; Thu, 28 Aug 2014 05:35:14 +0000 (UTC) Received: by mail-yk0-f197.google.com with SMTP id 142sf3687417ykq.4 for ; Wed, 27 Aug 2014 22:35:14 -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=EMZq6NJm39Jay0srPGL6cgC6EKAHP0CxVwqPXfk39Gh1BiH79CyXvIpYGhGwKwC+rp 2QH6hny0AVAfT8CTOX2R2j1VQe89gYdjmzkRyF8ONU8bRQYmXFE+/BxZthzR87itjWIs DCa1VkeINJ+3dBqKn0ZxKtsCAo62scyH6T6zCBZbMkGpGwg0ibDUNCmUKWSrQvl32SlK 47sVuW5ieJ9Vj8jPqFePOBhh3J/mflaf7A8CXEDGzxtuk0RUHTLCPVDWqBQMyoys42uE ZIoOzphkMzzRQI8s2qFRaHe63ayQ1vu4Hyq9y8wPl9GygfxHQ5nbLeGI9LPUv2D0iOFE VSpQ== X-Gm-Message-State: ALoCoQmPY7UnbUvqld3yCfla+V5Qtr4NNdTvHKRRSm1NFS0JaklITfjkwpe9pEgfKYz7Y4hbpVuf X-Received: by 10.236.83.171 with SMTP id q31mr11915367yhe.13.1409204114341; Wed, 27 Aug 2014 22:35:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.176 with SMTP id l45ls428546qgd.81.gmail; Wed, 27 Aug 2014 22:35:14 -0700 (PDT) X-Received: by 10.52.245.101 with SMTP id xn5mr104450vdc.32.1409204114276; Wed, 27 Aug 2014 22:35:14 -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 op9si2796202vcb.43.2014.08.27.22.35.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Aug 2014 22:35:14 -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 im17so294375vcb.13 for ; Wed, 27 Aug 2014 22:35:14 -0700 (PDT) X-Received: by 10.52.146.194 with SMTP id te2mr1204585vdb.4.1409204114193; Wed, 27 Aug 2014 22:35:14 -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 uj3csp182969vcb; Wed, 27 Aug 2014 22:35:13 -0700 (PDT) X-Received: by 10.68.245.135 with SMTP id xo7mr2083311pbc.161.1409204112741; Wed, 27 Aug 2014 22:35:12 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qj8si4115515pac.189.2014.08.27.22.35.12 for ; Wed, 27 Aug 2014 22:35:12 -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 S934095AbaH1FfL (ORCPT + 6 others); Thu, 28 Aug 2014 01:35:11 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:60752 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932473AbaH1FfK (ORCPT ); Thu, 28 Aug 2014 01:35:10 -0400 Received: by mail-pa0-f53.google.com with SMTP id fa1so1058087pad.26 for ; Wed, 27 Aug 2014 22:35:10 -0700 (PDT) X-Received: by 10.66.119.174 with SMTP id kv14mr2384262pab.52.1409204110211; Wed, 27 Aug 2014 22:35:10 -0700 (PDT) Received: from localhost.localdomain ([60.168.113.194]) by mx.google.com with ESMTPSA id m1sm3651003pdh.18.2014.08.27.22.35.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Aug 2014 22:35:09 -0700 (PDT) From: Zhangfei Gao To: mark.rutland@arm.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 v2 1/6] ARM: dts: hix5hd2: add gmac node Date: Thu, 28 Aug 2014 13:34:15 +0800 Message-Id: <1409204060-9223-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409204060-9223-1-git-send-email-zhangfei.gao@linaro.org> References: <1409204060-9223-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 | 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"; + }; }; };