From patchwork Fri Jun 10 18:35:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9170273 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 BEEDA607D9 for ; Fri, 10 Jun 2016 18:40:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2AA92824F for ; Fri, 10 Jun 2016 18:40:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A42D62832C; Fri, 10 Jun 2016 18:40: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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 596342824F for ; Fri, 10 Jun 2016 18:40:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bBRIX-0005DK-Qa; Fri, 10 Jun 2016 18:36:49 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bBRIF-00053C-N4 for linux-arm-kernel@lists.infradead.org; Fri, 10 Jun 2016 18:36:32 +0000 Received: by mail-pf0-x241.google.com with SMTP id 62so5549017pfd.3 for ; Fri, 10 Jun 2016 11:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=O24Dz2uyTztuJNtWu60b8wW/fhjSDGfIKm3l1TbBmlI=; b=0RDinw7vXWzeik38yHYugiiF2x5e7LzmANwzAQ25lb+kdqmxCWKLUCt/vynHI1Whnw IADhXWKwYNdinvoJYK+4fT4bAc6sGUF4DNHktFw0VBmN9I9nX5wqNo/98yRhVeqnKyPP dzMW4I9UaXZle4shLV7eBdzF8oaIJAZvM6Qsadfkr4pTWdwKQ1eEMQkaU7k5o0uQFEHf XvzQ1Ao3KtiRDLLz7BseLc9X6M6CN6k9140XjZFV0IzGnwUGnMpa08TddtxB4tNkjy3m gL4gLhnW4fK6HOXEehgAFJ8btGubxJNKNnASDIKRhFOOzIiGyv122Pc1daYa4golhd39 NrTA== 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=O24Dz2uyTztuJNtWu60b8wW/fhjSDGfIKm3l1TbBmlI=; b=hB7Hjzao5GkF5szp1c9UcLOG+c2Km+nDYt96fIml7W63+W1mMDI5A9jKT2zq1Vz/Wf JkUWryYz+dFAWdEZCKaZNLBfxaaswMCMc7dwgl9Ziw50X0iQZXDkpp9wdw8wdVq/D5BU GeQMPQlZJWeEfyYgMvcoCJPpUn6EwnpDW7WftYSYpewSetBgOd/3CHRKwNGYlanF6uvy cNwW5ELnX+fKC2aNk2f+GMF/DdYmIV028fz0IghrPUK9ojBdBXXbd6IeZ/I+NaIHFBRv w4G0/VMqSyeFO3z7cl1X9S7iI1bfHll9qyP97Ai2v+fiMnFZuddSyhdqqPPGfS6WbXWe BraA== X-Gm-Message-State: ALyK8tLiQCbffY8VGEGl7g8KdRm94cqIexera+iKRYpve54lWfMdFfidV59h2HhHphRRdA== X-Received: by 10.98.80.69 with SMTP id e66mr3615787pfb.139.1465583770952; Fri, 10 Jun 2016 11:36:10 -0700 (PDT) Received: from fainelli-desktop.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by smtp.gmail.com with ESMTPSA id d69sm13974997pfj.31.2016.06.10.11.36.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jun 2016 11:36:10 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] ARM: dts: Enable SRAB switch and GMACs on 5301x DTS Date: Fri, 10 Jun 2016 11:35:54 -0700 Message-Id: <1465583756-26740-2-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1465583756-26740-1-git-send-email-f.fainelli@gmail.com> References: <1465583756-26740-1-git-send-email-f.fainelli@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160610_113631_786541_5DCC12E8 X-CRM114-Status: GOOD ( 10.88 ) 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, Florian Fainelli , hauke@hauke-m.de, zajec5@gmail.com, bcm-kernel-feedback-list@broadcom.com, nbd@nbd.name 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 the Switch Register Access Block which is a special piece of hardware allowing us to perform indirect read/writes towards the integrated BCM5301X Ethernet switch. We also add the 4 Gigabit MAC Device Tree nodes within the brcm,bus-axi bus node to get proper binding between the BCMA instantiated core and the Device Tree nodes. We will need that to be able to reference Ethernet Device Tree nodes in a future patch adding the switch ports layout. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/bcm5301x.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi index 7d4d29bf0ed3..9fb565841004 100644 --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -239,6 +239,22 @@ status = "disabled"; }; }; + + gmac0: ethernet@24000 { + reg = <0x24000 0x800>; + }; + + gmac1: ethernet@25000 { + reg = <0x25000 0x800>; + }; + + gmac2: ethernet@26000 { + reg = <0x26000 0x800>; + }; + + gmac3: ethernet@27000 { + reg = <0x27000 0x800>; + }; }; lcpll0: lcpll0@1800c100 { @@ -260,6 +276,17 @@ "sata2"; }; + srab: srab@18007000 { + compatible = "brcm,bcm5301x-srab"; + reg = <0x18007000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + + /* ports are defined in board DTS */ + }; + nand: nand@18028000 { compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand"; reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;