netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Supporting C45 PHY without ID registers
@ 2016-06-27 23:36 Moritz Fischer
  2016-06-28  0:56 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Moritz Fischer @ 2016-06-27 23:36 UTC (permalink / raw)
  To: netdev

Hi all,

I have a 10GigE PHY that I'm working with that has most of it's
functionality availabile via MDIO
in a clause 45 compliant fashion, however the usual probe method fails
since the id registers
are not implemented.

I hacked up drivers/of/of_mdio.c to include something similar to of_get_phy_id()
for c45 phys but I was wondering if someone else has a better idea
than this in my dt:

ethernet_phy1: ethernet-phy@4 {
    compatible = "ethernet-phy-id0000.0000",
                        "ethernet-phy-id4242.4242",
                        "ethernet-phy-id0000.0000",
                        "ethernet-phy-id4343.4343",
                        "ethernet-phy-ieee802.3-c45";
    reg = <4>;
};

Where I made up 42424242 and 43434343 as ids for my PCS / PMA. Ideas?

Cheers,

Moritz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Supporting C45 PHY without ID registers
  2016-06-27 23:36 Supporting C45 PHY without ID registers Moritz Fischer
@ 2016-06-28  0:56 ` Andrew Lunn
  2016-06-28  1:50   ` Moritz Fischer
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2016-06-28  0:56 UTC (permalink / raw)
  To: Moritz Fischer; +Cc: netdev

On Mon, Jun 27, 2016 at 04:36:20PM -0700, Moritz Fischer wrote:
> Hi all,
> 
> I have a 10GigE PHY that I'm working with that has most of it's
> functionality availabile via MDIO
> in a clause 45 compliant fashion, however the usual probe method fails
> since the id registers
> are not implemented.

Hi Moritz

Does it have any ID registers at all?

     Andrew

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Supporting C45 PHY without ID registers
  2016-06-28  0:56 ` Andrew Lunn
@ 2016-06-28  1:50   ` Moritz Fischer
  0 siblings, 0 replies; 3+ messages in thread
From: Moritz Fischer @ 2016-06-28  1:50 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: netdev

Hi Andrew,

On Mon, Jun 27, 2016 at 5:56 PM, Andrew Lunn <andrew@lunn.ch> wrote:

> Does it have any ID registers at all?

There is a vendor specific (to my knowledge) register at device 1
register 65535 ([1]) that could be read back. I haven't seen anyone
else do that.

Thanks,

Moritz

[1] http://www.xilinx.com/support/documentation/ip_documentation/ten_gig_eth_pcs_pma/v6_0/pg068-ten-gig-eth-pcs-pma.pdf

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-28  1:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-27 23:36 Supporting C45 PHY without ID registers Moritz Fischer
2016-06-28  0:56 ` Andrew Lunn
2016-06-28  1:50   ` Moritz Fischer

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).