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