Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2020 17:09:31 -0400
From:      Greg Huckriede <ghuckriede@blackberry.com>
To:        freebsd-net@freebsd.org
Subject:   How do 'miibus' PHY devices handle target HW differences?
Message-ID:  <44fe4819-9005-2b1b-c9c4-37550370feb8@blackberry.com>

next in thread | raw e-mail | index | archive | help
I'm using the 'ffec' driver (in 12.1-RELEASE) but the target has the
following Flattened Device Tree (FDT) setting for the 'ethernet' device.

phy-mode = "rgmii-txid";

This indicates that the PHY 'athphy' needs to provide the tx clock delay
on the RGMII. This is configurable in the 'atphy' device. The 'atphy'
device could get this setting from the FDT (like the 'vscphy' driver does).

How is this supposed to work?

It seems the FDT could be read during attach for all PHYs, and populate
the settings if present. Also how do non-FDT targets deal with HW
differences like this?

Regards,
Greg Huckriede



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44fe4819-9005-2b1b-c9c4-37550370feb8>