ARM: dts: ls1021a: fix the value of TMR_FIPER1
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 29 Nov 2017 06:54:58 +0000 (14:54 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 26 Dec 2017 08:15:44 +0000 (16:15 +0800)
commitbdba5017d149ef3cfcd47adf98837da7680817c7
tree088c2234099676e8417b2b790f26de9bb677bcb2
parent44eac6ef3779f8c1eaa223892fe25ae62f263965
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: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/ls1021a.dtsi