Commit bdba5017 authored by Yangbo Lu's avatar Yangbo Lu Committed by Shawn Guo

ARM: dts: ls1021a: fix the value of TMR_FIPER1

The timer fixed interval period pulse generator register
is used to generate periodic pulses. The down count
register loads the value programmed in the fixed period
interval (FIPER). At every tick of the timer accumulator
overflow, the counter decrements by the value of
TMR_CTRL[TCLK_PERIOD]. It generates a pulse when the down
counter value reaches zero. It reloads the down counter
in the cycle following a pulse. To use the TMR_FIPER1
register to generate a 1 PPS event, the value
(10^9 nanoseconds) - TCLK_PERIOD should be programmed.
It should be 999999995 not 999999990 since TCLK_PERIOD
is 5.
Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 44eac6ef
...@@ -589,7 +589,7 @@ ptp_clock@2d10e00 { ...@@ -589,7 +589,7 @@ ptp_clock@2d10e00 {
fsl,tclk-period = <5>; fsl,tclk-period = <5>;
fsl,tmr-prsc = <2>; fsl,tmr-prsc = <2>;
fsl,tmr-add = <0xaaaaaaab>; fsl,tmr-add = <0xaaaaaaab>;
fsl,tmr-fiper1 = <999999990>; fsl,tmr-fiper1 = <999999995>;
fsl,tmr-fiper2 = <99990>; fsl,tmr-fiper2 = <99990>;
fsl,max-adj = <499999999>; fsl,max-adj = <499999999>;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment