On 02/20/2013 08:15 PM, Gabor Juhos wrote:
2013.02.20. 9:14 keltezéssel, Wojciech Dubowik írta:
PTP for gianfar can be built as a module.
This part is applied with minor changes.

Add device tree entry to P1010RDB to enable ptp as pps clock.
However I have skipped this part.

Clock timings are not tested.
Please resend it as a spearate patch once you have verified that it is working
correctly. More comments below.

Signed-off-by: Wojciech Dubowik <wojciech.dubo...@neratec.com>
<...>

diff --git a/target/linux/mpc85xx/patches-3.7/140-p1010rdb-dts-ptp-timer.patch 
b/target/linux/mpc85xx/patches-3.7/140-p1010rdb-dts-ptp-timer.patch
new file mode 100644
index 0000000..3076b35
--- /dev/null
+++ b/target/linux/mpc85xx/patches-3.7/140-p1010rdb-dts-ptp-timer.patch
@@ -0,0 +1,17 @@
+--- a/arch/powerpc/boot/dts/p1010rdb.dtsi      2012-11-21 12:21:21.320508226 
+0100
++++ b/arch/powerpc/boot/dts/p1010rdb.dtsi      2012-11-21 12:41:53.688342303 
+0100
+@@ -256,4 +293,13 @@
+               tbi-handle = <&tbi1>;
+               phy-connection-type = "sgmii";
+       };
++
++      ptp_timer: ptimer@b0e00 {
++              compatible = "fsl,gianfar-ptp-timer";
Which driver uses this compatible property? The gianfar_ptp module (in kernel
3.7.9) does not handle this.
I have copied this snippet from wrong patch... Sorry for that.
The one I have used in testing was:
--- a/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi
@@ -165,6 +165,18 @@
         sdhci,auto-cmd12;
     };

+        ptp_clock@b0e00 {
+        compatible = "fsl,etsec-ptp";
+        reg = <0xb0e00 0xb0>;
+        interrupts = <68 2 0 0 69 2 0 0 70 2 0 0>;
+        fsl,tclk-period = <10>;
+        fsl,tmr-prsc    = <0x2>;
+        fsl,tmr-add     = <0x999999A4>;
+        fsl,tmr-fiper1  = <0x3B9AC9F6>;
+        fsl,tmr-fiper2  = <0x00018696>;
+        fsl,max-adj     = <659999998>;
+        };
+
 /include/ "pq3-sec4.4-0.dtsi"
 /include/ "pq3-mpic.dtsi"
 /include/ "pq3-mpic-timer-B.dtsi"

It's still not verified but I don't have time for that now so maybe you
can skip it anyway.

Wojtek
-Gabor

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to