aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc85xx
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-17 11:16:52 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-17 11:16:52 +0000
commit21c7a06d5c18b618e3026fc854c339125c010463 (patch)
tree0e7f18f141646b46824ae050a80724ed36ad1adf /target/linux/mpc85xx
parent5be54630899a7b21b5a53979e8a5eaf13bb6d906 (diff)
downloadmaster-187ad058-21c7a06d5c18b618e3026fc854c339125c010463.tar.gz
master-187ad058-21c7a06d5c18b618e3026fc854c339125c010463.tar.bz2
master-187ad058-21c7a06d5c18b618e3026fc854c339125c010463.zip
mpc85xx: Add PTP node for TL-WD4900 in device tree
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48275 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mpc85xx')
-rw-r--r--target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
index 0d79dc0db2..2325006172 100644
--- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
+++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
@@ -145,6 +145,19 @@
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 {