Message ID | 20230914094550.1519097-2-robert.marko@sartura.hr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp543014vqi; Thu, 14 Sep 2023 11:29:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF082tePoN5rP7b6dNkfdrxCJaGmqk/etTn0qhAcDcw9qMB+4bWBA+PfvLQfC0emaub2/sY X-Received: by 2002:a05:6358:f14:b0:134:c407:681f with SMTP id b20-20020a0563580f1400b00134c407681fmr5297229rwj.1.1694716174323; Thu, 14 Sep 2023 11:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694716174; cv=none; d=google.com; s=arc-20160816; b=Odpv/u8IlGmsBrYD2OPFJjzU8fGGZC8m3QY2TLH4PieM+AWCiqaR7nAr6G6B7I7sp3 DcWVtimuLbzZuJqCJZyAkoPFx8G9KPM7hJmZzL0qg3PwyMwyX7Cleb3aDf1GCMBVGO96 gT62BKHe81YdQY3clelWRsKZE7yrlw9JqYdg2aqstFFhbmndNkO9m4mHinGN4V0Jyo/R GSVTJOB0FSyLELtw0jMd/ECFF4Xo08LOyY6gbeiiOO5QJFh+RjUr0by3pmxxMO/1aDt7 mqcfAibpfKREwf6sCeu1Z1XQPKFTj6Lb6vsUzCblwD8uutE5LV20B80508P1Q+8hSTYj hYzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ulj0sxL109s6WRduuI+x9sWJvUGugBDVjc0AW8V0tV0=; fh=YnRQc1ICs0S+oic8scsrTOLJ0X1gNKNskLLxr5ja8SY=; b=d/Sojr1hE8cajUN84shO8kUOYlXoOMBxi7ozv96vTovWu7m78lFMNRqfmRUtfcdk4L yjEEwdu6Q+TIvXcX9zASsdHQxu6N80Ln0BXF1RUE+NUYLXaqt72a4Q5YYatIA8EGC8H2 bbwrgS8ttKZG3xgJBw5O/PvYi6xYjg7R7ZvgyYe3BI7MHjDOunFTBk4rEy///8MlOhhq MZXCeDnCkvOIRyAvxJvOOk30ApFDYZVO7qrlLRGf5ISvQQHzOGJfk/82muSIm4vkoKsp whKKsqula3CNwY7/LS6b2sCZrNQzl5oo8qO9n7bMDZtCF4fqJ61otLtxFLmq9GiVLWS7 9r0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura.hr header.s=sartura header.b=uuk12mev; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=sartura.hr Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q65-20020a632a44000000b005740eeadb59si1901642pgq.518.2023.09.14.11.29.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 11:29:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@sartura.hr header.s=sartura header.b=uuk12mev; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=sartura.hr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 908018282A3B; Thu, 14 Sep 2023 02:46:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235324AbjINJqD (ORCPT <rfc822;chrisfriedt@gmail.com> + 35 others); Thu, 14 Sep 2023 05:46:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234376AbjINJqB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 14 Sep 2023 05:46:01 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BCACE3 for <linux-kernel@vger.kernel.org>; Thu, 14 Sep 2023 02:45:57 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-52889bc61b6so855350a12.0 for <linux-kernel@vger.kernel.org>; Thu, 14 Sep 2023 02:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura.hr; s=sartura; t=1694684755; x=1695289555; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ulj0sxL109s6WRduuI+x9sWJvUGugBDVjc0AW8V0tV0=; b=uuk12mev2HWLDJAhvfuqzmp1ltAEshLoPc1rBu7J257yD0YyMPyYDYfaBLyTADJaxu dqql4D2SxdAMpnuCcVOXFJJAxWXXtdNELkrFL8uOSmn7veBVGudmPTklc18BUst7bjOz dIWDEIfOBIAqQGSKE9AICVaEPBxAvShaticG5T89j72wkvQc9+tucPvb4KetRke3LK48 8wAgHTJ2kYoXi9Yy8XvbxA2ZNj4KcEACgsO17GmcNbaHYKrGwco06EXEbt00PvEEGws4 owHyckkfo1sXQWsxJsskDakeryKHQy8K0BJ1aSf3XNgZz795Uz3JEjtxUgcjpxk+8JdH 4mYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694684755; x=1695289555; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ulj0sxL109s6WRduuI+x9sWJvUGugBDVjc0AW8V0tV0=; b=TttErYL8CmI+h/jCg2n7xlp2wi4nKRfDkdSgZUXJOoiVQkmB7XVjF2YZKI+Gm94A6/ saVsyvjcl88JSDJbOWN4qn+cfUjB8r68BNhcKTg4A2IXoKg5jqOIfCqJzUhdMIlPZvHr bAwoilAH+Ih288VKYUuau7iMzkYPEMqLpYZGuu47m3+f5FJ83P79ylk6oygNGtSj86v1 hU7qRbKEU9T/ZZwGl0cZDMtQkrbiqaWQ96T1zmBWIoByiMhZexr3T4r7fNvpzZ3juxTX gviVxKjOc45XNOE9aFlw0NQHrRcAc8C5ExqTpgL60K5vdGKNcTR+sHU4QlaODPLz9vyr UDlw== X-Gm-Message-State: AOJu0YyMOKHDG8b7J0ot71HTneXUjcXnr4J0WrnYoH0AusBGcwu5gsba xtnipzazEf0Bk3FTIsc6C+keOQ== X-Received: by 2002:a05:6402:517b:b0:51d:d4c3:6858 with SMTP id d27-20020a056402517b00b0051dd4c36858mr4439955ede.12.1694684755560; Thu, 14 Sep 2023 02:45:55 -0700 (PDT) Received: from fedora.. (dh207-96-100.xnet.hr. [88.207.96.100]) by smtp.googlemail.com with ESMTPSA id e10-20020a50ec8a000000b0052565298bedsm690790edr.34.2023.09.14.02.45.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 02:45:55 -0700 (PDT) From: Robert Marko <robert.marko@sartura.hr> To: andrew@lunn.ch, gregory.clement@bootlin.com, 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 <robert.marko@sartura.hr> Subject: [PATCH 2/2] arm64: dts: marvell: eDPU: add support for version with external switch Date: Thu, 14 Sep 2023 11:45:01 +0200 Message-ID: <20230914094550.1519097-2-robert.marko@sartura.hr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230914094550.1519097-1-robert.marko@sartura.hr> References: <20230914094550.1519097-1-robert.marko@sartura.hr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Sep 2023 02:46:51 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777032486018202149 X-GMAIL-MSGID: 1777038706824737996 |
Series |
[1/2] arm64: dts: marvell: uDPU: rename the SFP GPIO properties
|
|
Commit Message
Robert Marko
Sept. 14, 2023, 9:45 a.m. UTC
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.
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
.../boot/dts/marvell/armada-3720-eDPU.dts | 47 +++++++++++++++++++
1 file changed, 47 insertions(+)
Comments
> +&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>; > + }; > + So ports 1 through 7 are completely unused? > + port@9 { > + reg = <9>; > + label = "downlink"; > + phy-mode = "2500base-x"; > + managed = "in-band-status"; > + }; Andrew
Robert Marko <robert.marko@sartura.hr> 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 <robert.marko@sartura.hr> > --- > .../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 >
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>; + }; + }; + }; +};