netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Benjamin Beckmeyer <beb@eks-engel.de>
Cc: netdev@vger.kernel.org
Subject: Re: DSA setup IMX6ULL and Marvell 88E6390 with 2 Ethernet Phys - CPU Port is not working
Date: Wed, 22 May 2019 18:32:55 +0200	[thread overview]
Message-ID: <20190522163255.GA25130@lunn.ch> (raw)
In-Reply-To: <944bfcc1-b118-3b4a-9bd7-53e1ca85be0a@eks-engel.de>

On Wed, May 22, 2019 at 10:33:29AM +0200, Benjamin Beckmeyer wrote:
> Hi all,
> 
> I'm currently working on a custom board with the imx6ull processor and the 6390 
> switching chip. This is our hardware setup. 
> 
> ------------     ---------         ---------    MAC     ------------
> |   i.MX   | MAC |  PHY  |   PHY   |  PHY  |------------|  88E6390 |
> |   6ULL   |-----|KSZ8081|---------|LAN8742|	MDIO	|P0        |
> |          |     |ID 0x1 |         | ID0x0 |------------|          |
> |          |     ---------         ---------            |          |
> |          |	     |                                  |MULTI CHIP|
> |          |	     |MDIO                              |ADDR MODE |
> |          |	     |                                  |          |
> |          |--------------------------------------------|   PHY ID |
> |          |                    MDIO                    |     0x2  |
> ------------						------------

Hi Benjamin

KSZ8081 is a 10/100 PHY, i think.
LAN8742 is also a 10/100 PHY.

However, DSA will configure the CPU port MAC to its maximum speed. So
port 0 will be doing 1G. I don't know if specifying phy-mode = "rmii"
is enough. You should take a look at the port status and configuration
registers, see if the MAC is being forced to 1G, or 100M.

You could add a fixed-phy to port 0 with speed 100. That will at least
get the MAC part configured correctly.

Is the LAN8742 strapped so that on power on it will auto-neg? I've
seen a few board with this back-to-back PHY setup, and they just rely
on the PHYs doing the right thing on power up, no software involved.

   Andrew

  reply	other threads:[~2019-05-22 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-22  8:33 DSA setup IMX6ULL and Marvell 88E6390 with 2 Ethernet Phys - CPU Port is not working Benjamin Beckmeyer
2019-05-22 16:32 ` Andrew Lunn [this message]
     [not found] ` <20190523050909.B87FB134148@control02-haj2.antispameurope.com>
2019-05-23  5:52   ` Benjamin Beckmeyer
2019-05-23 12:43     ` Andrew Lunn
2019-06-13  5:40       ` Benjamin Beckmeyer

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=20190522163255.GA25130@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=beb@eks-engel.de \
    --cc=netdev@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).