From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: dsa: how to set external PHY address of slave MDIO bus Date: Fri, 21 Dec 2018 10:56:32 +0100 Message-ID: <20181221095632.GC5023@lunn.ch> References: <5C1C4160.5080404@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org To: John Rama Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:55193 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731594AbeLUJ4d (ORCPT ); Fri, 21 Dec 2018 04:56:33 -0500 Content-Disposition: inline In-Reply-To: <5C1C4160.5080404@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: 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