125d12e1dSRichard CochranTime stamps from MII bus snooping devices 225d12e1dSRichard Cochran 325d12e1dSRichard CochranThis binding supports non-PHY devices that snoop the MII bus and 425d12e1dSRichard Cochranprovide time stamps. In contrast to PHY time stamping drivers (which 525d12e1dSRichard Cochrancan simply attach their interface directly to the PHY instance), stand 625d12e1dSRichard Cochranalone MII time stamping drivers use this binding to specify the 725d12e1dSRichard Cochranconnection between the snooping device and a given network interface. 825d12e1dSRichard Cochran 925d12e1dSRichard CochranNon-PHY MII time stamping drivers typically talk to the control 1025d12e1dSRichard Cochraninterface over another bus like I2C, SPI, UART, or via a memory mapped 1125d12e1dSRichard Cochranperipheral. This controller device is associated with one or more 1225d12e1dSRichard Cochrantime stamping channels, each of which snoops on a MII bus. 1325d12e1dSRichard Cochran 1425d12e1dSRichard CochranThe "timestamper" property lives in a phy node and links a time 1525d12e1dSRichard Cochranstamping channel from the controller device to that phy's MII bus. 1625d12e1dSRichard Cochran 1725d12e1dSRichard CochranExample: 1825d12e1dSRichard Cochran 1925d12e1dSRichard Cochran tstamper: timestamper@10000000 { 2025d12e1dSRichard Cochran compatible = "ines,ptp-ctrl"; 2125d12e1dSRichard Cochran reg = <0x10000000 0x80>; 2225d12e1dSRichard Cochran }; 2325d12e1dSRichard Cochran 2425d12e1dSRichard Cochran ethernet@20000000 { 2525d12e1dSRichard Cochran mdio { 2625d12e1dSRichard Cochran ethernet-phy@1 { 2725d12e1dSRichard Cochran timestamper = <&tstamper 0>; 2825d12e1dSRichard Cochran }; 2925d12e1dSRichard Cochran }; 3025d12e1dSRichard Cochran }; 3125d12e1dSRichard Cochran 3225d12e1dSRichard Cochran ethernet@30000000 { 3325d12e1dSRichard Cochran mdio { 3425d12e1dSRichard Cochran ethernet-phy@2 { 3525d12e1dSRichard Cochran timestamper = <&tstamper 1>; 3625d12e1dSRichard Cochran }; 3725d12e1dSRichard Cochran }; 3825d12e1dSRichard Cochran }; 3925d12e1dSRichard Cochran 4025d12e1dSRichard CochranIn this example, time stamps from the MII bus attached to phy@1 will 4125d12e1dSRichard Cochranappear on time stamp channel 0 (zero), and those from phy@2 appear on 4225d12e1dSRichard Cochranchannel 1. 43