From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06EF7CE79AD for ; Wed, 20 Sep 2023 09:58:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PfBME6Dq0ZkXwBR/vL9FuF9Ecw3wxnuhdRGTHovby9g=; b=oyv/xY/mn/QoPp at84/Uuo0nTMeN1azQtEFZ2wkOzLXtLsQExfv5K1HsMaSQC13NObuNgJ8wIb5RIuHppIgXH8E5AxJ gYyXGLHNbgE35CJZWhaiyg6kTjETY3zfmGZR68x/KiFKmqQoxFB3BhmObwX7so1QRtZHRufYMLNWT +/pjiiVBM6r8Oj+Ihv+bseJq7dHR+n+fVfqPOuWvBaA+14tGP9UM4mayM5LxV7egHLhM9mQY7rbKI flNWd6N8fbB8p/GFYzVz4iDXezvwhcycDwzL9oxq8hgc6Lcxw+kjWRQff6D0MXI7hJKd/HZ8nDiZw 2nQwD/JEGnpPWkEhnxzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qitxy-002WiG-1f; Wed, 20 Sep 2023 09:57:54 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qitxv-002WgF-1O for linux-arm-kernel@lists.infradead.org; Wed, 20 Sep 2023 09:57:53 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id A9E36240004; Wed, 20 Sep 2023 09:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695203866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uQfat50UKXUla6URYtqZR/m0tQpWjLWXwPATJcJZz7Q=; b=dV4SlmlbwCXkPWzfBh1N58yEwC6SmTYkjS4g3rAlzx2Z7DJrXF/ySpmM+WgHE9qnUQpGJy DLwe60+hXP7yG28gcODqWaEzo0cFTeHK1YqtPMkYtsPqREIgIwXGIdLpv4/2uqvy18uNpd 03kJrFVWrZxL2nViaLasgHy2zlOAc09iv2nZvTYzhCEk8um+4dbRl4tLgoxe+6RwOA7/qE qmNswhs+aU3OTIPfQWCHfjmLHUYOJ2K/bQ18nrMh56K047n+VVaNft1yOQZnQ2VRfpR0jv WCgwL9ZiOnoiQ8YG4hJk4wn+ckvpF/wXoeb9FWhjcLgGCyYs69TKgkQ8w625HA== From: Gregory CLEMENT To: Robert Marko , andrew@lunn.ch, sebastian.hesselbarth@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: luka.perkov@sartura.hr, Robert Marko Subject: Re: [PATCH 2/2] arm64: dts: marvell: eDPU: add support for version with external switch In-Reply-To: <20230914094550.1519097-2-robert.marko@sartura.hr> References: <20230914094550.1519097-1-robert.marko@sartura.hr> <20230914094550.1519097-2-robert.marko@sartura.hr> Date: Wed, 20 Sep 2023 11:57:45 +0200 Message-ID: <875y45f9pi.fsf@BL-laptop> MIME-Version: 1.0 X-GND-Sasl: gregory.clement@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230920_025751_606973_E84F76A8 X-CRM114-Status: GOOD ( 15.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Robert Marko writes: > New revision of eDPU uses an Marvell MV88E6361 switch to connect the SFP > cage and G.hn IC instead of connecting them directly to the ethernet > controllers. > > U-Boot will enable the switch node and disable the unused ethernet > controller. > Applied on mvebu/dt64 Thanks, Gregory > Signed-off-by: Robert Marko > --- > .../boot/dts/marvell/armada-3720-eDPU.dts | 47 +++++++++++++++++++ > 1 file changed, 47 insertions(+) > > diff --git a/arch/arm64/boot/dts/marvell/armada-3720-eDPU.dts b/arch/arm64/boot/dts/marvell/armada-3720-eDPU.dts > index 57fc698e55d0..d6d37a1f6f38 100644 > --- a/arch/arm64/boot/dts/marvell/armada-3720-eDPU.dts > +++ b/arch/arm64/boot/dts/marvell/armada-3720-eDPU.dts > @@ -12,3 +12,50 @@ / { > ð0 { > phy-mode = "2500base-x"; > }; > + > +/* > + * External MV88E6361 switch is only available on v2 of the board. > + * U-Boot will enable the MDIO bus and switch nodes. > + */ > +&mdio { > + status = "disabled"; > + pinctrl-names = "default"; > + pinctrl-0 = <&smi_pins>; > + > + /* Actual device is MV88E6361 */ > + switch: switch@0 { > + compatible = "marvell,mv88e6190"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0>; > + status = "disabled"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + label = "cpu"; > + phy-mode = "2500base-x"; > + managed = "in-band-status"; > + ethernet = <ð0>; > + }; > + > + port@9 { > + reg = <9>; > + label = "downlink"; > + phy-mode = "2500base-x"; > + managed = "in-band-status"; > + }; > + > + port@a { > + reg = <10>; > + label = "uplink"; > + phy-mode = "2500base-x"; > + managed = "in-band-status"; > + sfp = <&sfp_eth1>; > + }; > + }; > + }; > +}; > -- > 2.41.0 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel