xref: /linux/Documentation/devicetree/bindings/ptp/ptp-ines.txt (revision 8dd06ef34b6e2f41b29fbf5fc1663780f2524285)
1*25d12e1dSRichard CochranZHAW InES PTP time stamping IP core
2*25d12e1dSRichard Cochran
3*25d12e1dSRichard CochranThe IP core needs two different kinds of nodes.  The control node
4*25d12e1dSRichard Cochranlives somewhere in the memory map and specifies the address of the
5*25d12e1dSRichard Cochrancontrol registers.  There can be up to three port handles placed as
6*25d12e1dSRichard Cochranattributes of PHY nodes.  These associate a particular MII bus with a
7*25d12e1dSRichard Cochranport index within the IP core.
8*25d12e1dSRichard Cochran
9*25d12e1dSRichard CochranRequired properties of the control node:
10*25d12e1dSRichard Cochran
11*25d12e1dSRichard Cochran- compatible:		"ines,ptp-ctrl"
12*25d12e1dSRichard Cochran- reg:			physical address and size of the register bank
13*25d12e1dSRichard Cochran
14*25d12e1dSRichard CochranRequired format of the port handle within the PHY node:
15*25d12e1dSRichard Cochran
16*25d12e1dSRichard Cochran- timestamper:		provides control node reference and
17*25d12e1dSRichard Cochran			the port channel within the IP core
18*25d12e1dSRichard Cochran
19*25d12e1dSRichard CochranExample:
20*25d12e1dSRichard Cochran
21*25d12e1dSRichard Cochran	tstamper: timestamper@60000000 {
22*25d12e1dSRichard Cochran		compatible = "ines,ptp-ctrl";
23*25d12e1dSRichard Cochran		reg = <0x60000000 0x80>;
24*25d12e1dSRichard Cochran	};
25*25d12e1dSRichard Cochran
26*25d12e1dSRichard Cochran	ethernet@80000000 {
27*25d12e1dSRichard Cochran		...
28*25d12e1dSRichard Cochran		mdio {
29*25d12e1dSRichard Cochran			...
30*25d12e1dSRichard Cochran			ethernet-phy@3 {
31*25d12e1dSRichard Cochran				...
32*25d12e1dSRichard Cochran				timestamper = <&tstamper 0>;
33*25d12e1dSRichard Cochran			};
34*25d12e1dSRichard Cochran		};
35*25d12e1dSRichard Cochran	};
36