From patchwork Wed Nov 2 17:08:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9409585 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 E2ED76022E for ; Wed, 2 Nov 2016 17:12:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE17D2A4A2 for ; Wed, 2 Nov 2016 17:12:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C12B02A4A5; Wed, 2 Nov 2016 17:12:56 +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 5BCAF2A4A2 for ; Wed, 2 Nov 2016 17:12:56 +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 1c1z4O-00033o-Ij; Wed, 02 Nov 2016 17:11:24 +0000 Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c1z2V-0000KI-7d for linux-arm-kernel@lists.infradead.org; Wed, 02 Nov 2016 17:09:28 +0000 Received: by mail-pf0-x22e.google.com with SMTP id n85so15093715pfi.1 for ; Wed, 02 Nov 2016 10:09:06 -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=YuoWa0E/HXBbGGqhhNoKOQirxlH+xbPCH6vsvqQDpZ3AlkDgbqwg0IG5n1gqad9tLn LbB3KTWd5ZmGc+TVSoChWCb9JuKEb3YzI802srIEDHPs/6GUEr038jtWir8XsF+ygN5s fvuaORH0BB6YEgMxVcbZ3k6qS3K0uNhxLiAxE= 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=PJjVv9rlWM2H3brMMm7mij0hG9544N1SVZRTV9us4qsSCuqV6IsJETFQy1PjlUo7Rm AEJ4t/zpVKmbMy9XeDqH+F5uoNcBJhKrkfSS18RP9blqthqdgcsNHjgwstudxhLsCpZs uVKYeN3KQmzejLIYknpYiqzLKXkVkSuYLTb03o79MbN38Z7Mw+2tOM6Qy4F6BCi/hpFY FofKIRLCcsGf+lsNdTBgrAOSVVxavbXdtH3uyNFEkOktmmoJOYv6/MD0vBXicjNiiV6P VY2EEsPqp35HfcYWYOw5Vo8ar9FOWfRZxL8pirYRROG5D/YKVxS5S3fqqn9hl2/LFVuW L5Xw== X-Gm-Message-State: ABUngvctGfS4MS3lJTsK7Ag4YWu8QB6KQAWUgzEFH9xhWivWxAq52CjtnS08niw7DdIyWY8Y X-Received: by 10.98.21.148 with SMTP id 142mr8663580pfv.38.1478106546189; Wed, 02 Nov 2016 10:09:06 -0700 (PDT) Received: from venom.rtp.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id 4sm6090726pfg.66.2016.11.02.10.09.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Nov 2016 10:09:05 -0700 (PDT) From: Jon Mason To: David Miller , Rob Herring , Mark Rutland , Florian Fainelli Subject: [PATCH v5 7/7] arm64: dts: NS2: add AMAC ethernet support Date: Wed, 2 Nov 2016 13:08:08 -0400 Message-Id: <1478106488-11779-8-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478106488-11779-1-git-send-email-jon.mason@broadcom.com> References: <1478106488-11779-1-git-send-email-jon.mason@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161102_100927_406001_688B9B8A X-CRM114-Status: GOOD ( 11.78 ) 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>;