Back to home page

OSCL-LXR

 
 

    


0001 ZHAW InES PTP time stamping IP core
0002 
0003 The IP core needs two different kinds of nodes.  The control node
0004 lives somewhere in the memory map and specifies the address of the
0005 control registers.  There can be up to three port handles placed as
0006 attributes of PHY nodes.  These associate a particular MII bus with a
0007 port index within the IP core.
0008 
0009 Required properties of the control node:
0010 
0011 - compatible:           "ines,ptp-ctrl"
0012 - reg:                  physical address and size of the register bank
0013 
0014 Required format of the port handle within the PHY node:
0015 
0016 - timestamper:          provides control node reference and
0017                         the port channel within the IP core
0018 
0019 Example:
0020 
0021         tstamper: timestamper@60000000 {
0022                 compatible = "ines,ptp-ctrl";
0023                 reg = <0x60000000 0x80>;
0024         };
0025 
0026         ethernet@80000000 {
0027                 ...
0028                 mdio {
0029                         ...
0030                         ethernet-phy@3 {
0031                                 ...
0032                                 timestamper = <&tstamper 0>;
0033                         };
0034                 };
0035         };