From patchwork Fri Jun 10 18:35:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9170271 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 D1DE6607D9 for ; Fri, 10 Jun 2016 18:38:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C85F022A2A for ; Fri, 10 Jun 2016 18:38:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD0E42832C; Fri, 10 Jun 2016 18:38:19 +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 7BB2522A2A for ; Fri, 10 Jun 2016 18:38:19 +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 1bBRII-00057e-3S; Fri, 10 Jun 2016 18:36:34 +0000 Received: from mail-pa0-x243.google.com ([2607:f8b0:400e:c03::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bBRIE-00053l-Nj for linux-arm-kernel@lists.infradead.org; Fri, 10 Jun 2016 18:36:31 +0000 Received: by mail-pa0-x243.google.com with SMTP id fg1so5559822pad.3 for ; Fri, 10 Jun 2016 11:36:13 -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=MOk6FJMFohOUww+ltZykamsm1Na/zjTg/9yXwPr0V64=; b=j0elTXZoS1xuehQdhvjW2RF9K00nM2rylOQfkBTp59MTDRVd1LSy8HZBA1K9rExmoH pbxcTTcLZp5B08NpzMtnJrCaspuya+7m/UKWV7WHFnB9XQqN0vwk+Od9k6zgDLeOFAT2 JI6cYgi1rPVDqBBrpk7xCkLtVNdaaVXnu/V97Wg9gmOul4/NttvGuYoY2q004gDUgW0s z8YAg2Lemj/4om8cyzTw8VPf3+1uOrgnulgCdWQVzu+zL8PBPwQ6gWr38MU4/e/IVYNa ydQFz7qNC8RWUtyabThIJb/ZlHlpmMSfRCwBTcW+EWyfiDWIPvREtOFUElpFFUUXYU9M PVFw== 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=MOk6FJMFohOUww+ltZykamsm1Na/zjTg/9yXwPr0V64=; b=JibTPY9rt++rZHztPxnqhcbbLXE24hjALWzvsPdCQCjDRFjxCs05wWhMBl+dCi9zSX rvWBgD/pDl8RAoj6/bnDifwahNSu4/v0/YyymqYt5yqI2WKIu/1U3ZRB6bv5Ty3szDJT KCsuL3s9gjUztx6F7/eUAwOItqwVl5PBr7Jh9uby74cBuOFfyqMAiDEDwlC/WNKyYPIc nB60QD9EC9Sgfgyh0u4UyP+TGlGqodG39X/hR96gUqzLUlJr8t8PH+u0lemHEYoMv9XX n4YRMp386nu1Q+PSVAeT4HRY5uew99F1EqEp0EHEc1gp56kJdVhkjy9ykYulMSluTxq7 boew== X-Gm-Message-State: ALyK8tJUjo62egZHirJBd6cy+64R9qMyZnyB4+1JzP9IoIgb4qUCzovoe1Lqt3XEQ/CDTw== X-Received: by 10.66.127.47 with SMTP id nd15mr3751236pab.84.1465583773408; Fri, 10 Jun 2016 11:36:13 -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.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jun 2016 11:36:12 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] ARM: dts: BCM5310x: Enable switch ports on SmartRG SR400AC Date: Fri, 10 Jun 2016 11:35:56 -0700 Message-Id: <1465583756-26740-4-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_113630_815076_13EF933E X-CRM114-Status: UNSURE ( 9.28 ) X-CRM114-Notice: Please train this message. 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 Define the port mapping for the SmartRG SR400ACE device. Signed-off-by: Florian Fainelli Reviewed-by: Andrew Lunn --- arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts index 8b0c440b2e71..c219d33496cc 100644 --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts @@ -126,3 +126,43 @@ &spi_nor { status = "okay"; }; + +&srab { + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + switch0port0: port@0 { + reg = <0>; + label = "lan4"; + }; + + switch0port1: port@1 { + reg = <1>; + label = "lan3"; + }; + + switch0port2: port@2 { + reg = <2>; + label = "lan2"; + }; + + switch0port3: port@3 { + reg = <3>; + label = "lan1"; + }; + + switch0port4: port@4 { + reg = <4>; + label = "wan"; + }; + + switch0port5: port@5 { + reg = <5>; + label = "cpu"; + ethernet = <&gmac0>; + }; + }; +};