From patchwork Mon Jul 17 20:25:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Lunn X-Patchwork-Id: 9846077 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 2001B60386 for ; Mon, 17 Jul 2017 20:27:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4438F28429 for ; Mon, 17 Jul 2017 20:27:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 391F628503; Mon, 17 Jul 2017 20:27:47 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 67D6F28429 for ; Mon, 17 Jul 2017 20:27:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=I59Lxuy/f0uvTSIRMfpfr8RQ310AHB/HIq4fI2H3hSk=; b=omsSR4ol6mnqaG9B5jjXbHRqyg ztRGkt+4gAaYRTGwdK9+Mbyb/tt0i7pHUbsYN3w7BY+LZZnkOt2Qv2k5azMFqcvHofC9k8ogKyZfn GyjbbGVRQ2pPBr8ls7SgRrjnkBhAVARKgY0HC5zoCIgrMNLs1TBIk63YCFKjMMOjn2fMbj0m6dBnD 4Z3vLjnG13povQN49ooldD5U/h7aHFL3Q1RXyIBaAb9rggnwQ7AaVlneqR73if6qnMsJXA7hPr5Oz baGd5h3+L5PZkf20jhn5pOK6BTes1NZmEfcRLPQqJFKk5e6napWGYVBDTPuI1ncvuxIpWmifR6cQ1 iyZQrrbQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dXCcJ-0006AD-4N; Mon, 17 Jul 2017 20:27:43 +0000 Received: from vps0.lunn.ch ([178.209.37.122]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXCbu-0005kO-H2 for linux-arm-kernel@lists.infradead.org; Mon, 17 Jul 2017 20:27:40 +0000 Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1dXCa2-00031Y-BM; Mon, 17 Jul 2017 22:25:22 +0200 From: Andrew Lunn To: shawnguo@kernel.org Subject: [PATCH 2/5] ARM: dts: imx6: RDU2: Add DSA support for the Marvell 88E6352 Date: Mon, 17 Jul 2017 22:25:01 +0200 Message-Id: <1500323104-11583-3-git-send-email-andrew@lunn.ch> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1500323104-11583-1-git-send-email-andrew@lunn.ch> References: <1500323104-11583-1-git-send-email-andrew@lunn.ch> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170717_132719_382362_AD746493 X-CRM114-Status: UNSURE ( 6.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nikita.yoush@cogentembedded.com, Andrew Lunn , cphealy@gmail.com, p.zabel@pengutronix.de, linux ARM , l.stach@pengutronix.de 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 The RDU2 has a Marvell 88E6352 switch. Both the FEC and the i210 Ethernet interfaces are connected to the switch. Make the FEC the DSA "CPU" port, and the i210 as a regular port on the switch. Signed-off-by: Andrew Lunn --- arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi index d7328e9166e9..add53277379d 100644 --- a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +++ b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi @@ -624,6 +624,56 @@ phy-reset-duration = <100>; phy-supply = <®_3p3v>; status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + switch@0 { + compatible = "marvell,mv88e6085"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + dsa,member = <0 0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "gigabit_proc"; + }; + + port@1 { + reg = <1>; + label = "netaux"; + }; + + port@2 { + reg = <2>; + label = "cpu"; + ethernet = <&fec>; + + fixed-link { + speed = <100>; + full-duplex; + }; + }; + + port@3 { + reg = <3>; + label = "netright"; + }; + + port@4 { + reg = <4>; + label = "netleft"; + }; + }; + }; + }; }; &usbh1 {