Hi :
When I was running PTP4l in lx2160ardb_rev2, I found that when I restarted the ptp server, the phase of 1PPS output by ptp4l would jump sharply. I expect him to stay in phase and then change slowly.
Thanks
Tianyi
The dts file which you modified is for DPAA1 platform, for LX2160A(DPAA2) you need to modify the following device node in arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
ptp-timer@8b95000 {
compatible = "fsl,dpaa2-ptp";
reg = <0x0 0x8b95000 0x0 0x100>;
clocks = <&clockgen 4 1>;
little-endian;
fsl,extts-fifo;
};
Modify the device node similar as the following:
ptp-timer@8b95000 {
compatible = "fsl,dpaa2-ptp";
reg = <0x0 0x8b95000 0x0 0x100>;
fsl,cksel = <1>;
fsl,tclk-period = <10>;
fsl,tmr-prsc = <10000>;
fsl,tmr-add = <0xccccccccd>;
fsl,tmr-fiper1 = <9999990>;
fsl,tmr-fiper2 = <999990>;
fsl,tmr-fiper3 = <9999990>;
fsl,max-adj = <249999999>;
little-endian;
fsl,extts-fifo;
};
For these parameters configuration, please refer to Documentation/devicetree/bindings/ptp/ptp-qoriq.txt
Please configure dts file as the following
ptp-timer@8b95000 {
compatible = "fsl,dpaa2-ptp";
reg = <0x0 0x8b95000 0x0 0x100>;
fsl,cksel = <1>;
fsl,tclk-period = <10>;
fsl,tmr-prsc = <10000>;
fsl,tmr-add = <0xccccccccd>;
fsl,tmr-fiper1 = <9999990>;
fsl,tmr-fiper2 = <999990>;
fsl,tmr-fiper3 = <9999990>;
fsl,max-adj = <249999999>;
little-endian;
fsl,extts-fifo;
};
You need to adjust parameters according to the description in Documentation/devicetree/bindings/ptp/ptp-qoriq.txt