From patchwork Tue Nov 1 20:04:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9408011 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 7350C60234 for ; Tue, 1 Nov 2016 20:08:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6617729A7C for ; Tue, 1 Nov 2016 20:08:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58C5729A8A; Tue, 1 Nov 2016 20:08:46 +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 E7FD029A7C for ; Tue, 1 Nov 2016 20:08:45 +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 1c1fL5-0000Qq-An; Tue, 01 Nov 2016 20:07:19 +0000 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c1fJH-0006d8-OI for linux-arm-kernel@lists.infradead.org; Tue, 01 Nov 2016 20:05:29 +0000 Received: by mail-pf0-x22d.google.com with SMTP id 189so46865132pfz.3 for ; Tue, 01 Nov 2016 13:05:09 -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=ayxs4t0viSPW8xAa44poue9DZ0AfTzlFqK/Z+3/jhQjL7Tp7UK2D2RqQfC2B6yWDk0 L30OheyLK4/zISc3ThihEjGlHTBBKIxytNDPXJ5ph7uTXOetObKDOE8hACzd3Opq5E4T /TH3CzKCBro4/fYlAQUzy6hkuTiDvy9kyh2t4= 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=TyDw935WDApiuEhWrLhD5IZPYJk8yoVF6vkpB3MpR+wD6aDMU2ZwB0y8AU0Z1ipinb Dm1plP1Z3QIvkUe2cfL8y8WT/lfyaqjGTHcdvnHFvRkc+nmDkVryqSCy/ccOdtf7KTsf RTu1fb4S8pYc6RHDKSMMUESJ1UdSU8Jj0/wdwgk0GUZyFGuRj4M6LjlYRSF0SqVa1/NR /20zXmC3R2ttd5I9yH3kms/Z4lNce4QXn04Di49eqpmRWAw0eySupKVx1ctTqNJFTSE3 HXgECJJqXz1c9eO/L1P4scdyV6YNPgDiljlvLlafGEZgbinzFETwlNGSp2Ieqrw+a/kp fwkQ== X-Gm-Message-State: ABUngveK3cUrpnkWigNwzrJfh8AzN/XGh7aNY+41DDK6deB7vKxygT/SqOrIGKeb62IbFGcJ X-Received: by 10.99.181.86 with SMTP id u22mr40475396pgo.24.1478030708834; Tue, 01 Nov 2016 13:05:08 -0700 (PDT) Received: from venom.rtp.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id wc6sm44113821pab.47.2016.11.01.13.05.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Nov 2016 13:05:08 -0700 (PDT) From: Jon Mason To: David Miller , Rob Herring , Mark Rutland , Florian Fainelli Subject: [PATCH v4 7/7] arm64: dts: NS2: add AMAC ethernet support Date: Tue, 1 Nov 2016 16:04:42 -0400 Message-Id: <1478030682-27012-8-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478030682-27012-1-git-send-email-jon.mason@broadcom.com> References: <1478030682-27012-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_130527_909938_1F9168A2 X-CRM114-Status: GOOD ( 11.35 ) 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>;