18c2ecf20Sopenharmony_ciZHAW InES PTP time stamping IP core
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe IP core needs two different kinds of nodes.  The control node
48c2ecf20Sopenharmony_cilives somewhere in the memory map and specifies the address of the
58c2ecf20Sopenharmony_cicontrol registers.  There can be up to three port handles placed as
68c2ecf20Sopenharmony_ciattributes of PHY nodes.  These associate a particular MII bus with a
78c2ecf20Sopenharmony_ciport index within the IP core.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciRequired properties of the control node:
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci- compatible:		"ines,ptp-ctrl"
128c2ecf20Sopenharmony_ci- reg:			physical address and size of the register bank
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciRequired format of the port handle within the PHY node:
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci- timestamper:		provides control node reference and
178c2ecf20Sopenharmony_ci			the port channel within the IP core
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciExample:
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci	tstamper: timestamper@60000000 {
228c2ecf20Sopenharmony_ci		compatible = "ines,ptp-ctrl";
238c2ecf20Sopenharmony_ci		reg = <0x60000000 0x80>;
248c2ecf20Sopenharmony_ci	};
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci	ethernet@80000000 {
278c2ecf20Sopenharmony_ci		...
288c2ecf20Sopenharmony_ci		mdio {
298c2ecf20Sopenharmony_ci			...
308c2ecf20Sopenharmony_ci			ethernet-phy@3 {
318c2ecf20Sopenharmony_ci				...
328c2ecf20Sopenharmony_ci				timestamper = <&tstamper 0>;
338c2ecf20Sopenharmony_ci			};
348c2ecf20Sopenharmony_ci		};
358c2ecf20Sopenharmony_ci	};
36