Back to home page

OSCL-LXR

 
 

    


0001 Time stamps from MII bus snooping devices
0002 
0003 This binding supports non-PHY devices that snoop the MII bus and
0004 provide time stamps.  In contrast to PHY time stamping drivers (which
0005 can simply attach their interface directly to the PHY instance), stand
0006 alone MII time stamping drivers use this binding to specify the
0007 connection between the snooping device and a given network interface.
0008 
0009 Non-PHY MII time stamping drivers typically talk to the control
0010 interface over another bus like I2C, SPI, UART, or via a memory mapped
0011 peripheral.  This controller device is associated with one or more
0012 time stamping channels, each of which snoops on a MII bus.
0013 
0014 The "timestamper" property lives in a phy node and links a time
0015 stamping channel from the controller device to that phy's MII bus.
0016 
0017 Example:
0018 
0019         tstamper: timestamper@10000000 {
0020                 compatible = "ines,ptp-ctrl";
0021                 reg = <0x10000000 0x80>;
0022         };
0023 
0024         ethernet@20000000 {
0025                 mdio {
0026                         ethernet-phy@1 {
0027                                 timestamper = <&tstamper 0>;
0028                         };
0029                 };
0030         };
0031 
0032         ethernet@30000000 {
0033                 mdio {
0034                         ethernet-phy@2 {
0035                                 timestamper = <&tstamper 1>;
0036                         };
0037                 };
0038         };
0039 
0040 In this example, time stamps from the MII bus attached to phy@1 will
0041 appear on time stamp channel 0 (zero), and those from phy@2 appear on
0042 channel 1.