From patchwork Fri Oct 28 20:56:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9402689 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C69B3601C0 for ; Fri, 28 Oct 2016 21:00:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B72D82A8BE for ; Fri, 28 Oct 2016 21:00:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA9E12A8C5; Fri, 28 Oct 2016 21:00:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 47DA62A8BE for ; Fri, 28 Oct 2016 21:00:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c0EF9-00077x-FQ; Fri, 28 Oct 2016 20:59:15 +0000 Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c0EDb-0006C1-0H for linux-arm-kernel@lists.infradead.org; Fri, 28 Oct 2016 20:57:42 +0000 Received: by mail-pf0-x22f.google.com with SMTP id s8so42831571pfj.2 for ; Fri, 28 Oct 2016 13:57:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XGU50tvg3p8gsQ5p4X2ab3ZxVe6obNVfehU+RuMNpQo=; b=bK+D/32bU3MR0vubLy4UVF1mgdsj+1w+CBSplhH6mSMWcYmzErglo6eX4uWdqhw0dV JtOOGtPLrpYh/6CI9pCjwyrPiWJWEpzzFE21Xm84ophM+vSGS6IqeD6t5FVX91+j0L0F X+Opos68VXiLfiXjnEOMcwUlllGNls9G1OxAM= 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=XGU50tvg3p8gsQ5p4X2ab3ZxVe6obNVfehU+RuMNpQo=; b=g2+CBDbq/ddMrFoujGO6TAObEOJwd2A+vfdzNtieYkmv/hYkKjablVgVaKk2+Q8ZbH DeT+rVu3NC/86yDktz8jrTxmCHwu9a9s6txc/dRS8O+62y5WkAWlTqRvzFBCmSjby6iN SPO2rAmq9+vWR3mv7GbnahsS+EwZOd99n+3V8wYKncfNCKGRMEluwBKbISXYAfhtY+ln 4p3kToLdt+Fy/l+wJXJTuLSbGVIs3HMrBxzmeOGM1G9yd/v7z3cLaetk/3CJmw2Ev4yR h3Wb25dtCSChHXcCavd19w4IENx0bBBPIURL9cck15j2swUhWRDNZsBAz5+44b7Oc7Eg ra/Q== X-Gm-Message-State: ABUngve0b3WIex0+hXjWFXZAgjXuT41szSl80vXhIBfDgtMVGclsd6CiwTt+FMQ/jRSFVz29 X-Received: by 10.99.147.75 with SMTP id w11mr23515415pgm.25.1477688241631; Fri, 28 Oct 2016 13:57:21 -0700 (PDT) Received: from venom.rtp.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id e90sm20932803pfd.5.2016.10.28.13.57.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Oct 2016 13:57:21 -0700 (PDT) From: Jon Mason To: David Miller , Rob Herring , Mark Rutland , Florian Fainelli Subject: [PATCH v2 6/6] arm64: dts: NS2: add AMAC ethernet support Date: Fri, 28 Oct 2016 16:56:59 -0400 Message-Id: <1477688219-3871-7-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477688219-3871-1-git-send-email-jon.mason@broadcom.com> References: <1477688219-3871-1-git-send-email-jon.mason@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161028_135739_316475_358BFEF2 X-CRM114-Status: GOOD ( 11.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, rafal@milecki.pl, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for the AMAC ethernet to the Broadcom Northstar2 SoC device tree Signed-off-by: Jon Mason --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 5 +++++ arch/arm64/boot/dts/broadcom/ns2.dtsi | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/ns2-svk.dts b/arch/arm64/boot/dts/broadcom/ns2-svk.dts index 2d7872a..9e5c3c9 100644 --- a/arch/arm64/boot/dts/broadcom/ns2-svk.dts +++ b/arch/arm64/boot/dts/broadcom/ns2-svk.dts @@ -56,6 +56,10 @@ }; }; +&enet { + status = "ok"; +}; + &pci_phy0 { status = "ok"; }; @@ -172,6 +176,7 @@ &mdio_mux_iproc { mdio@10 { gphy0: eth-phy@10 { + brcm,enet-phy-lane-swap; reg = <0x10>; }; }; diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dts/broadcom/ns2.dtsi index d95dc40..773ed59 100644 --- a/arch/arm64/boot/dts/broadcom/ns2.dtsi +++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi @@ -191,6 +191,18 @@ #include "ns2-clock.dtsi" + enet: ethernet@61000000 { + compatible = "brcm,ns2-amac"; + reg = <0x61000000 0x1000>, + <0x61090000 0x1000>, + <0x61030000 0x100>; + reg-names = "amac_base", "idm_base", "nicpm_base"; + interrupts = ; + phy-handle = <&gphy0>; + phy-mode = "rgmii"; + status = "disabled"; + }; + dma0: dma@61360000 { compatible = "arm,pl330", "arm,primecell"; reg = <0x61360000 0x1000>;