From patchwork Wed Oct 26 19:36:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9398117 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 D22FA600BA for ; Wed, 26 Oct 2016 19:39:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C48E29D37 for ; Wed, 26 Oct 2016 19:39:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90CE329D3B; Wed, 26 Oct 2016 19:39:21 +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 21E3129D37 for ; Wed, 26 Oct 2016 19:39:21 +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 1bzU1S-00052X-6E; Wed, 26 Oct 2016 19:38:02 +0000 Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bzU0E-0004R7-P0 for linux-arm-kernel@lists.infradead.org; Wed, 26 Oct 2016 19:36:48 +0000 Received: by mail-pf0-x230.google.com with SMTP id n85so2045206pfi.1 for ; Wed, 26 Oct 2016 12:36:26 -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=OCRkPaTvnjoQLuixucsbCY0q2rePTBxMeOFceTxnxdU=; b=J1fBv6ZwN8FwxUuzrbTMvzXjMyS/2v+irkiLuFN89Vxr+E2pvjy6CabLCWbupyfyLK OmDNXUuOarUZ8tavX6Jl+wFIMkgN6tGts5nKTE+okerLoEdGdJ8ok1vDJQnJGrRpVr4W sdt5uufrAINQHiuFNApc2PuGPpohLRYHh5Juc= 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=OCRkPaTvnjoQLuixucsbCY0q2rePTBxMeOFceTxnxdU=; b=L+BgqBg0loH84NEDl+IkYqPait7LKil6V+HLsMQ4FiLSDewRdyouMizLJKo1qpDTW6 KFJ8ouXmO6gUMV6ilzcpPH8CDI+1J3oKwe3J8aJffSssHnrXiuHqrn+R3safcrAbU9ag 0kAGCdMoTzuRZE8GpbGv5fCg8rQeszNoUN0y4j6jqVZpFp7nn7C1UCDNNsNIYKH7AILA NYMXX+3KFQfhIuXN8+p6FdCiGD+N7WAkehkHvzglS8ADX4LdglOdJBTU9qSqFXf1nYfZ ABL2FRfy8pNJPjmzZo8z7yXGReC3hMbucJAc1zecI2jk5m2QcBBJl9+VDwYr9wg9MPLz MM2Q== X-Gm-Message-State: ABUngvcx4lwW/SAOa10DhjtPK0udPZofUURm/x6mV2HjtpskQ0WhZneE+7Lobv7Ka1+ZY/m8 X-Received: by 10.99.167.75 with SMTP id w11mr5915845pgo.16.1477510585615; Wed, 26 Oct 2016 12:36:25 -0700 (PDT) Received: from venom.rtp.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id u28sm903553pfk.25.2016.10.26.12.36.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Oct 2016 12:36:25 -0700 (PDT) From: Jon Mason To: David Miller , Rob Herring , Mark Rutland , Florian Fainelli Subject: [PATCH 5/5] arm64: dts: NS2: add AMAC ethernet support Date: Wed, 26 Oct 2016 15:36:01 -0400 Message-Id: <1477510561-17035-6-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477510561-17035-1-git-send-email-jon.mason@broadcom.com> References: <1477510561-17035-1-git-send-email-jon.mason@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161026_123646_957253_B4CA185F X-CRM114-Status: GOOD ( 11.60 ) 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..362db7e 100644 --- a/arch/arm64/boot/dts/broadcom/ns2-svk.dts +++ b/arch/arm64/boot/dts/broadcom/ns2-svk.dts @@ -56,6 +56,11 @@ }; }; +&enet { + brcm,enet-phy-lane-swap; + status = "ok"; +}; + &pci_phy0 { status = "ok"; }; 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>;