From: Andrew Lunn <andrew@lunn.ch>
To: michael alayev <mic.al.linux@gmail.com>
Cc: vivien.didelot@gmail.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, adror@iai.co.il
Subject: Re: Dts for eth network based on marvell's mv88e6390x crashes Xilinx's linux-kernel v5.4
Date: Mon, 19 Oct 2020 16:26:15 +0200 [thread overview]
Message-ID: <20201019142615.GS139700@lunn.ch> (raw)
In-Reply-To: <CANBsoPm1Ln=59cGKbaA5OKdjA5dwEFA0pcg2tPUa5i2Db747Fw@mail.gmail.com>
On Mon, Oct 19, 2020 at 05:05:08PM +0300, michael alayev wrote:
> Hello Andrew,
>
>
> > Please fix your email client and
>
>
> > post the DT file for review. I will
>
> > then point out some of the errors.
>
>
>
> &gem0 {
> status = "okay";
> phy-mode = "rgmii-id";
> phy-handle = <&phy0>;
The diagram you showed had gem0 connected directly to the switch. So
this phy-handle is wrong. Or the diagram is wrong.
>
> mdio {
> #address-cells = <1>;
> #size-cells = <0>;
>
> phy0: ethernet-phy@0 {
> compatible = "marvell";
> reg = <0>;
> device_type = "ethernet-phy";
> fixed-link {
> speed = <1000>;
> full-duplex;
> };
> };
>
> debug_phy: ethernet-phy@1 {
> compatible = "marvell";
> reg = <1>;
> device_type = "ethernet-phy";
> label = "debug-phy";
> };
indentation is all wrong here.
> switch0: switch@2 {
> compatible = "marvell,mv88e6190";
> #address-cells = <1>;
> #size-cells = <0>;
> reg = <2>;
>
> dsa,member = <0 0>;
>
> ports {
> #address-cells = <1>;
> #size-cells = <0>;
>
> switch0phy1: port@0 {
> reg = <0>;
> label = "uid208-cpu";
> ethernet = <&gem0>;
> phy-mode = "rgmii-id";
You have gem0 using gphy-mode = "rgmii-id" as well. Both doing delays
will not work. You should drop the one in gem0.
> fixed-link {
> speed = <1000>;
> full-duplex;
> };
> };
>
>
> port@1 {
> reg = <1>;
> label = "uid201-1A";
> };
>
> port@2 {
> reg = <2>;
> label = "uid202-2A-p9-1A";
> phy-mode = "1000base-x";
> fixed-link {
> speed = <1000>;
> full-duplex;
> };
Why both 1000base-x and fixed link? Do you have an SFP connected? If
so, describe the SFP in DT.
> };
>
> switch0port10: port@10 {
> reg = <10>;
> label = "dsa";
> link = <&switch1port10>;
> phy-mode = "1000base-x";
> fixed-link {
> speed = <1000>;
> full-duplex;
> };
> };
This is a 6390X right? Why limit it to 1000base-X when it could be
doing 10G?
Andrew
prev parent reply other threads:[~2020-10-19 14:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CANBsoPmgct2UTq=Cuf1rXJRitiF1mWhWwdtH2=73yyZiJbT0rg@mail.gmail.com>
2020-10-16 3:31 ` Andrew Lunn
[not found] ` <CANBsoPkCEZadmBaeZ=8EAOP6Ctw5deLen7yKQk__1-ZVoJE6yA@mail.gmail.com>
2020-10-18 15:58 ` Andrew Lunn
[not found] ` <CANBsoPm1Ln=59cGKbaA5OKdjA5dwEFA0pcg2tPUa5i2Db747Fw@mail.gmail.com>
2020-10-19 14:26 ` Andrew Lunn [this message]
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=20201019142615.GS139700@lunn.ch \
--to=andrew@lunn.ch \
--cc=adror@iai.co.il \
--cc=linux-kernel@vger.kernel.org \
--cc=mic.al.linux@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=vivien.didelot@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome