Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1462128rdb; Wed, 20 Sep 2023 09:42:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFse2UU8HfbSksGlpn9j78BHEvav7f4MJhiLvFk/SqsH3vgaSVTsBSP41GZpiwwUNgoWdjN X-Received: by 2002:a05:6358:708:b0:139:d4f2:b03e with SMTP id e8-20020a056358070800b00139d4f2b03emr2982083rwj.6.1695228133220; Wed, 20 Sep 2023 09:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695228133; cv=none; d=google.com; s=arc-20160816; b=wvHbNrMBrB+6RAmvR2+/OO3wDRMfdRE5qoGVtTms9BUehS4cCjV3ag+tj5pHZt35gj KirGVeemGpCH1V8ABXpQ/rd7TajG+w30wFpXN2P+ZujiT4kYRVCNpuIMYuxp6cqsmwLU YiWz2/sROe7owUeAdfZz6i+7gyfGxliqMg4TUyodbB1ssD3t4ScNgBG+SxKDvFPAYXf6 o3vZS66a1y/awTMtrmCpnprVuzZEiz8qDf+K9pMzBMSCXRC9lZ80Xt0ieLwjRxnKxEAn Ki6kSHBOHsE35HQmr7Gmqqd3AXHJDgxAJMiIvjPszGMwihcsZ+sBUykzoSguRFr0KyCo qOWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=uQfat50UKXUla6URYtqZR/m0tQpWjLWXwPATJcJZz7Q=; fh=f8kSGdn6wOQWwhbETPJmpfIIzwD1m/m4akld7SwJww4=; b=tLj54/G3Y/PJ4ri4hEiWmHD/7ZLlkd3OMpOkkbxF/i8iungnr4g6lqdrhODs6BJNeU 2NVadSGOysqbAEB1jkmbsiFS+TkQ9a0uEI+vLmTZ5kL1JC4HbIN9GVSM3xcsQMoC3R6t 0/OZoBU7kQJxUS0enuVHGvz1E0nLhl8S1OUfwFuadlnGaFhzw6gLIQpnAqVuhxD90JMF HOq1aXkSHuVcuiSLlJrhG+9pK9dVJhnYhT6eRnyynbHbNS/3dE7iMouFB1xZiAZIMZwD x59qHh6HiYTJXKbfPT6VC0APqG2y2HmTJ/YSWnEAIue1VpzeNktnIEpuCiOXX08znxLX +vig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dV4Slmlb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id s196-20020a632ccd000000b00573ffd25b44si12049395pgs.182.2023.09.20.09.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 09:42:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dV4Slmlb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C83648135638; Wed, 20 Sep 2023 02:57:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234283AbjITJ54 (ORCPT + 99 others); Wed, 20 Sep 2023 05:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234287AbjITJ5z (ORCPT ); Wed, 20 Sep 2023 05:57:55 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A592A3; Wed, 20 Sep 2023 02:57:47 -0700 (PDT) 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 Content-Type: text/plain X-GND-Sasl: gregory.clement@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 20 Sep 2023 02:57:56 -0700 (PDT) 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