From patchwork Fri Apr 10 07:16:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fathi Boudra X-Patchwork-Id: 6192311 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C2CA99F2E9 for ; Fri, 10 Apr 2015 07:19:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EECEA203B5 for ; Fri, 10 Apr 2015 07:19:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E5C8F2037A for ; Fri, 10 Apr 2015 07:19:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YgTBw-0003aY-NU; Fri, 10 Apr 2015 07:17:28 +0000 Received: from mail-la0-f50.google.com ([209.85.215.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YgTBd-0003Id-4L for linux-arm-kernel@lists.infradead.org; Fri, 10 Apr 2015 07:17:10 +0000 Received: by labbd9 with SMTP id bd9so6946444lab.2 for ; Fri, 10 Apr 2015 00:16:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EXCOtug8cCNaOX2NN3K53RuaibiDGhS3z7cI/G+FS3U=; b=hFVXsiSx3p9LiuuJlDascdT895YZrnR1kD+ZHlok9wsTuO/lw4RT6eioWfYmv3FO1Y voW4qVtzWe/Y2sSdomHlw1xdYk/OjfS97iUTQ1PLmf7rmKQCWy44PsjM4chbMdIq0y88 gHErnx8Ifit2CGanpb8Ek4pSHSRWjJth2jVp/ocGlgKQZa/pI4S6iYL7/QuODsX39RY4 1K/cU9UIumljKm8DfFd1itBv9k38mva8AaDhSAUxz5pCxG/5p0mDl0idOzzAAMhA07Ng Kg0UCwMmJWkTOmsKrhGTy3cGh40TeGmx+YufZWaKKhHSNDmPPmAZALqjZ2XMMS53Vqm0 4MSA== X-Gm-Message-State: ALoCoQkGdxknL/QfUv19R3GoiBpxjGKhc0h2qelSDOztQnly8DbBaeX5+gZdnVdRjxSNGP7idU7M X-Received: by 10.152.121.72 with SMTP id li8mr156869lab.11.1428650206518; Fri, 10 Apr 2015 00:16:46 -0700 (PDT) Received: from localhost.localdomain (a91-152-81-141.elisa-laajakaista.fi. [91.152.81.141]) by mx.google.com with ESMTPSA id ds8sm258425lbb.18.2015.04.10.00.16.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Apr 2015 00:16:45 -0700 (PDT) From: Fathi Boudra To: linux-arm-kernel@lists.infradead.org, Olof Johansson , Arnd Bergmann Subject: [PATCH 1/2] ARM: dts: add HiSilicon hip04 ethernet controller resource Date: Fri, 10 Apr 2015 10:16:19 +0300 Message-Id: <1428650180-9746-2-git-send-email-fathi.boudra@linaro.org> X-Mailer: git-send-email 2.3.5 In-Reply-To: <1428650180-9746-1-git-send-email-fathi.boudra@linaro.org> References: <1428650180-9746-1-git-send-email-fathi.boudra@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150410_001709_408243_81986369 X-CRM114-Status: UNSURE ( 8.77 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: mathieu.poirier@linaro.org, Ding Tianhong , Wei Xu , haojian.zhuang@linaro.org, Fathi Boudra , zhangfei.gao@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add the device tree binding for the HiSilicon hip04 ethernet controller based on Documentation/devicetree/bindings/net/hisilicon-hip04-net.txt Signed-off-by: Zhangfei Gao Signed-off-by: Fathi Boudra --- arch/arm/boot/dts/hip04.dtsi | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/hip04.dtsi b/arch/arm/boot/dts/hip04.dtsi index 2388145..fc68753 100644 --- a/arch/arm/boot/dts/hip04.dtsi +++ b/arch/arm/boot/dts/hip04.dtsi @@ -269,6 +269,55 @@ interrupts = <0 372 4>; }; + mdio { + compatible = "hisilicon,hip04-mdio"; + reg = <0x28f1000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + + phy0: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + marvell,reg-init = <18 0x14 0 0x8001>; + }; + + phy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + marvell,reg-init = <18 0x14 0 0x8001>; + }; + }; + + ppe: ppe@28c0000 { + compatible = "hisilicon,hip04-ppe", "syscon"; + reg = <0x28c0000 0x10000>; + }; + + fe: ethernet@28b0000 { + compatible = "hisilicon,hip04-mac"; + reg = <0x28b0000 0x10000>; + interrupts = <0 413 4>; + phy-mode = "mii"; + port-handle = <&ppe 31 0>; + }; + + ge0: ethernet@2800000 { + compatible = "hisilicon,hip04-mac"; + reg = <0x2800000 0x10000>; + interrupts = <0 402 4>; + phy-mode = "sgmii"; + port-handle = <&ppe 0 1>; + phy-handle = <&phy0>; + }; + + ge8: ethernet@2880000 { + compatible = "hisilicon,hip04-mac"; + reg = <0x2880000 0x10000>; + interrupts = <0 410 4>; + phy-mode = "sgmii"; + port-handle = <&ppe 8 2>; + phy-handle = <&phy1>; + }; }; etb@0,e3c42000 {