1 ZHAW InES PTP time stamping IP core 1 ZHAW InES PTP time stamping IP core 2 2 3 The IP core needs two different kinds of nodes 3 The IP core needs two different kinds of nodes. The control node 4 lives somewhere in the memory map and specifie 4 lives somewhere in the memory map and specifies the address of the 5 control registers. There can be up to three p 5 control registers. There can be up to three port handles placed as 6 attributes of PHY nodes. These associate a pa 6 attributes of PHY nodes. These associate a particular MII bus with a 7 port index within the IP core. 7 port index within the IP core. 8 8 9 Required properties of the control node: 9 Required properties of the control node: 10 10 11 - compatible: "ines,ptp-ctrl" 11 - compatible: "ines,ptp-ctrl" 12 - reg: physical address and s 12 - reg: physical address and size of the register bank 13 13 14 Required format of the port handle within the 14 Required format of the port handle within the PHY node: 15 15 16 - timestamper: provides control node 16 - timestamper: provides control node reference and 17 the port channel withi 17 the port channel within the IP core 18 18 19 Example: 19 Example: 20 20 21 tstamper: timestamper@60000000 { 21 tstamper: timestamper@60000000 { 22 compatible = "ines,ptp-ctrl"; 22 compatible = "ines,ptp-ctrl"; 23 reg = <0x60000000 0x80>; 23 reg = <0x60000000 0x80>; 24 }; 24 }; 25 25 26 ethernet@80000000 { 26 ethernet@80000000 { 27 ... 27 ... 28 mdio { 28 mdio { 29 ... 29 ... 30 ethernet-phy@3 { 30 ethernet-phy@3 { 31 ... 31 ... 32 timestamper = 32 timestamper = <&tstamper 0>; 33 }; 33 }; 34 }; 34 }; 35 }; 35 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.