From patchwork Tue Nov 1 17:51:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9407785 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 D000E60234 for ; Tue, 1 Nov 2016 17:55:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C686429A69 for ; Tue, 1 Nov 2016 17:55:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9F0229902; Tue, 1 Nov 2016 17:55:24 +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 4F73729902 for ; Tue, 1 Nov 2016 17:55:24 +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 1c1dG1-0002vp-Cf; Tue, 01 Nov 2016 17:53:57 +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 1c1dEU-0001x7-2U for linux-arm-kernel@lists.infradead.org; Tue, 01 Nov 2016 17:52:23 +0000 Received: by mail-pf0-x22f.google.com with SMTP id d2so23775829pfd.0 for ; Tue, 01 Nov 2016 10:52:03 -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=GE51sPJ8CjnA0NPSbDZ/fy5d9rFh7Cpj87m3QnVAjZU=; b=YObUOv+dp9+FO0+jHdIvXm3vF73N5nqrppwoFVzuXT5qtu5RjKzgkTnqNEty5rm8Un MRBtW1B97rMX9Vcs1YAdKa7uGD9hyLmE4EFDD8qVqhVIi3aqz2J2GR1k77X/I07TDSh0 aMCKWvbYEO+X0pstKMlCkfXCEZDJhYJdnucpA= 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=GE51sPJ8CjnA0NPSbDZ/fy5d9rFh7Cpj87m3QnVAjZU=; b=QRRj/lor5YJKTkmndqGmmmy58nDthHlL5AHG70e7ZZSCNTLv0iZYssq/KWMCoos7Wp 3BqiWSfFhvgpxS42L79qZfTh4Q3BrlbSxZSHHkoyjbhAAThREMre5UXSYryPHMeAqVzd 6RfATHS+X0VvUPTr9v5kJIWpspIzWGexex5ZYPuKTrhetGITotlRDuzIA9ffBRNiLs6Z NxPAUKWv1tUpE+hLUW3R/+6tMQ1RR06ryqKDPN0TyQT4vGuD56Ktb8aLhcuS5eu3K/XJ 87wMCBSBrZQ7qEtKuq6U3J5AJOOqmAq4aHpW2E4OMSiTqBmRGKt1AAHc1TilRER0khyO nBDw== X-Gm-Message-State: ABUngvfd/38g3fJuoc6Pmzs2HOkztY+hFMja+FvtF1Wnz8zZW+n58O7ZYa9o7rK4JxppeuW0 X-Received: by 10.99.19.71 with SMTP id 7mr41522967pgt.38.1478022722938; Tue, 01 Nov 2016 10:52:02 -0700 (PDT) Received: from venom.rtp.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id k7sm43768072pan.8.2016.11.01.10.52.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Nov 2016 10:52:02 -0700 (PDT) From: Jon Mason To: David Miller , Rob Herring , Mark Rutland , Florian Fainelli Subject: [PATCH v3 6/6] arm64: dts: NS2: add AMAC ethernet support Date: Tue, 1 Nov 2016 13:51:34 -0400 Message-Id: <1478022694-25308-7-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478022694-25308-1-git-send-email-jon.mason@broadcom.com> References: <1478022694-25308-1-git-send-email-jon.mason@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161101_105222_306254_529C9F75 X-CRM114-Status: GOOD ( 11.45 ) 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..2e4d90d 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 { + 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>;