All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: Robert Marko <robert.marko@sartura.hr>,
	u-boot@lists.denx.de, pali@kernel.org, marek.behun@nic.cz
Subject: Re: [PATCH v3 3/4] arm: mvebu: dts: uDPU: fix non-working networking
Date: Thu, 21 Apr 2022 16:05:35 +0200	[thread overview]
Message-ID: <7379afe4-1bfe-373b-62fc-b908c09855a2@denx.de> (raw)
In-Reply-To: <20220324095739.1162965-3-robert.marko@sartura.hr>

On 3/24/22 10:57, Robert Marko wrote:
> uDPU is a bit of a specific device in that it does not have any copper
> ports nor any ethernet PHY-s but 2 SFP ports.
> 
> This is an issue since MVNETA requires a PHY phandle or a fixed-link to
> be defined under its node.
> Since U-boot has no SFP support this is reasonable in order to know how
> to configure the MAC.
> 
> However this also means that networking does not work on uDPU at all
> currently, and fails with:
> 
> uDPU>> dhcp
> Could not get PHY for neta@30000: addr 0
> phy_connect failed
> Could not get PHY for neta@40000: addr 1
> phy_connect failed
> 
> So, to provide working networking using only SFP-s let add the fixed-link
> at 1G which is much more common than 2.5G SFP-s as well as disable the
> TX_DISABLE pins like done on Armada 7040 and 8040 platforms.
> 
> Since uDPU is not using any of the GPIO-s on the SB controller for any
> purpose other than GPIO, a call to the pinctrl must be made in order for
> it to get probed and thus register the SB GPIO bank, otherwise SB GPIO-s
> are not registered at all.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>

Applied to u-boot-marvell/master

Thanks,
Stefan

> ---
> Changes in v2:
> * Drop the custom SFP TX GPIO properties as they are parsed from the SFP
> nodes now
> 
>   arch/arm/dts/armada-3720-uDPU-u-boot.dtsi | 24 +++++++++++++++++++++++
>   1 file changed, 24 insertions(+)
> 
> diff --git a/arch/arm/dts/armada-3720-uDPU-u-boot.dtsi b/arch/arm/dts/armada-3720-uDPU-u-boot.dtsi
> index cf8ae4412b..47d87d4bd8 100644
> --- a/arch/arm/dts/armada-3720-uDPU-u-boot.dtsi
> +++ b/arch/arm/dts/armada-3720-uDPU-u-boot.dtsi
> @@ -31,3 +31,27 @@
>   &sdhci0 {
>   	u-boot,dm-pre-reloc;
>   };
> +
> +&pinctrl_sb {
> +	sfp_pin: sfp-pin {
> +		groups = "pcie1_clkreq";
> +		function = "gpio";
> +	};
> +};
> +
> +&eth0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&sfp_pin>;
> +
> +	fixed-link {
> +		speed = <1000>;
> +		full-duplex;
> +	};
> +};
> +
> +&eth1 {
> +	fixed-link {
> +		speed = <1000>;
> +		full-duplex;
> +	};
> +};

Viele Grüße,
Stefan Roese

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de

  parent reply	other threads:[~2022-04-21 14:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-24  9:57 [PATCH v3 1/4] arm: mvebu: dts: uDPU: update DTS Robert Marko
2022-03-24  9:57 ` [PATCH v3 2/4] net: mvneta: add SFP TX disable handling Robert Marko
2022-03-24 10:12   ` Marek Behún
2022-03-24 10:59     ` Robert Marko
2022-04-01 15:34   ` Ramon Fried
2022-04-07  6:58   ` Stefan Roese
2022-04-21 14:05   ` Stefan Roese
2022-03-24  9:57 ` [PATCH v3 3/4] arm: mvebu: dts: uDPU: fix non-working networking Robert Marko
2022-04-07  6:58   ` Stefan Roese
2022-04-21 14:05   ` Stefan Roese [this message]
2022-03-24  9:57 ` [PATCH v3 4/4] mvebu: uDPU: update defconfig Robert Marko
2022-04-07  6:59   ` Stefan Roese
2022-04-21 14:05   ` Stefan Roese
2022-04-07  6:57 ` [PATCH v3 1/4] arm: mvebu: dts: uDPU: update DTS Stefan Roese
2022-04-21 14:04 ` Stefan Roese

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7379afe4-1bfe-373b-62fc-b908c09855a2@denx.de \
    --to=sr@denx.de \
    --cc=marek.behun@nic.cz \
    --cc=pali@kernel.org \
    --cc=robert.marko@sartura.hr \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.