netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Rama <john.rama01@gmail.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: netdev@vger.kernel.org
Subject: Re: dsa: how to set external PHY address of slave MDIO bus
Date: Fri, 21 Dec 2018 18:23:50 -0500	[thread overview]
Message-ID: <5C1D7606.60606@gmail.com> (raw)
In-Reply-To: <20181221095632.GC5023@lunn.ch>

Hi Andrew, 
 
>> Use a phy-handle in the port properties.
Thanks !!

John

On 2018/12/21 4:56, Andrew Lunn wrote:
> On Thu, Dec 20, 2018 at 08:26:56PM -0500, John Rama wrote:
>> Hi, Guys, 
>>
>> I have one question. I'm working following configuration, and implementing a device driver.
>> Basically, port 1-7 is working fine. I'm now having problem on port8.
>>
>> - System                                                       
>>   - i.MX6 and Marvel 88q5050 Switch(PHY addr is 0x10)          
>>   - port1-5 has integrated PHY
>>   - port7 is connected to Marvel 88e1510 PHY(PHY addr is 0x1)  
>>   - port8 is connected to Marvel 88e1510 PHY(PHY addr is 0x0), 
>>     but it's the slave of MDIO bus whose master is the switch. 
>>                                                                
>>                            0x10                                
>>     +------------+         +-----------------+                 
>>     |            |         | Marvel 88q5050  |                 
>>     |            | RGMII   |           port1 |                 
>>     |   IMX6     +---------+ port6           |                 
>>     |            |         |           port2 |                 
>>     |            | MDIO    |                 |                 
>>     |            +-+-------+           port3 |                 
>>     |            | |       |                 |                 
>>     +------------+ |       |           port4 |                 
>>                    |       |                 |                 
>>                  +-+-+     |           port5 |     +---+       
>>                  |   |SGMII|                 |RGMII|   |       
>>                  |PHY|-----| port7     port8 +-----+PHY+       
>>                  |   |     |                 |MDIO |   |       
>>                  +---+     |                 +-----+   |       
>>             Marvel 88e1510 +-----------------+     +---+       
>>                  0x1                           Marvel 88e1510  
>>                                                     0x0        
>>
>> - Question
>> In the system above, how should we tell DSA driver the PHY address of the PHY which is connected to port8 ?
> 
> Hi John
> 
> Use a phy-handle in the port properties.
> 
>     Andrew
> 

      reply	other threads:[~2018-12-21 23:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-21  1:26 dsa: how to set external PHY address of slave MDIO bus John Rama
2018-12-21  9:56 ` Andrew Lunn
2018-12-21 23:23   ` John Rama [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=5C1D7606.60606@gmail.com \
    --to=john.rama01@gmail.com \
    --cc=andrew@lunn.ch \
    --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).