mpc85xx: Add PTP node for TL-WD4900 in device tree
authorFelix Fietkau <nbd@openwrt.org>
Sun, 17 Jan 2016 11:16:52 +0000 (11:16 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 17 Jan 2016 11:16:52 +0000 (11:16 +0000)
PTP requires at least one timer to be 1PPS so describe it.
For testing, load kernel module gianfar_ptp and use ptp4l
from linuxptp.

Copied from FSL P1010RDB reference design.

Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>
SVN-Revision: 48275

target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts

index 0d79dc0db22fa9240fa2bf8f0ed83221ba0c2ad8..2325006172a41592cda1ec3b4aaf06d3aad86b99 100644 (file)
                can1: can@1d000 {
                        status = "disabled";
                };
                can1: can@1d000 {
                        status = "disabled";
                };
+
+               ptp_clock@b0e00 {
+                       compatible = "fsl,etsec-ptp";
+                       reg = <0xb0e00 0xb0>;
+                       interrupts = <68 2 0 0 69 2 0 0 70 2 0 0>;
+                       fsl,cksel       = <1>;
+                       fsl,tclk-period = <5>;
+                       fsl,tmr-prsc    = <2>;
+                       fsl,tmr-add     = <0xcccccccd>;
+                       fsl,tmr-fiper1  = <0x3b9ac9fb>; /* 1PPS */
+                       fsl,tmr-fiper2  = <0x00018696>;
+                       fsl,max-adj     = <249999999>;
+               };
        };
 
        pci0: pcie@ffe09000 {
        };
 
        pci0: pcie@ffe09000 {