162306a36Sopenharmony_ciTime stamps from MII bus snooping devices 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciThis binding supports non-PHY devices that snoop the MII bus and 462306a36Sopenharmony_ciprovide time stamps. In contrast to PHY time stamping drivers (which 562306a36Sopenharmony_cican simply attach their interface directly to the PHY instance), stand 662306a36Sopenharmony_cialone MII time stamping drivers use this binding to specify the 762306a36Sopenharmony_ciconnection between the snooping device and a given network interface. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciNon-PHY MII time stamping drivers typically talk to the control 1062306a36Sopenharmony_ciinterface over another bus like I2C, SPI, UART, or via a memory mapped 1162306a36Sopenharmony_ciperipheral. This controller device is associated with one or more 1262306a36Sopenharmony_citime stamping channels, each of which snoops on a MII bus. 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ciThe "timestamper" property lives in a phy node and links a time 1562306a36Sopenharmony_cistamping channel from the controller device to that phy's MII bus. 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ciExample: 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci tstamper: timestamper@10000000 { 2062306a36Sopenharmony_ci compatible = "ines,ptp-ctrl"; 2162306a36Sopenharmony_ci reg = <0x10000000 0x80>; 2262306a36Sopenharmony_ci }; 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci ethernet@20000000 { 2562306a36Sopenharmony_ci mdio { 2662306a36Sopenharmony_ci ethernet-phy@1 { 2762306a36Sopenharmony_ci timestamper = <&tstamper 0>; 2862306a36Sopenharmony_ci }; 2962306a36Sopenharmony_ci }; 3062306a36Sopenharmony_ci }; 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci ethernet@30000000 { 3362306a36Sopenharmony_ci mdio { 3462306a36Sopenharmony_ci ethernet-phy@2 { 3562306a36Sopenharmony_ci timestamper = <&tstamper 1>; 3662306a36Sopenharmony_ci }; 3762306a36Sopenharmony_ci }; 3862306a36Sopenharmony_ci }; 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ciIn this example, time stamps from the MII bus attached to phy@1 will 4162306a36Sopenharmony_ciappear on time stamp channel 0 (zero), and those from phy@2 appear on 4262306a36Sopenharmony_cichannel 1. 43