* [v2] ARM: dts: ls1021a: output PPS signal on FIPER2
@ 2020-05-19 2:53 Yangbo Lu
2020-05-19 16:15 ` Richard Cochran
0 siblings, 1 reply; 3+ messages in thread
From: Yangbo Lu @ 2020-05-19 2:53 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: Richard Cochran, Li Yang, Shawn Guo, Yangbo Lu
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_FIPER
register to generate a 1 PPS event, the value
(10^9 nanoseconds) - TCLK_PERIOD should be programmed.
It should be 999999995 since TCLK_PERIOD is 5.
This patch is to output PPS signal on FIPER2 which is more
desired by user.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
---
Changes for v2:
- Added more discription in commit message.
---
arch/arm/boot/dts/ls1021a.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi
index 760a68c..b2ff27a 100644
--- a/arch/arm/boot/dts/ls1021a.dtsi
+++ b/arch/arm/boot/dts/ls1021a.dtsi
@@ -772,7 +772,7 @@
fsl,tmr-prsc = <2>;
fsl,tmr-add = <0xaaaaaaab>;
fsl,tmr-fiper1 = <999999995>;
- fsl,tmr-fiper2 = <99990>;
+ fsl,tmr-fiper2 = <999999995>;
fsl,max-adj = <499999999>;
fsl,extts-fifo;
};
--
2.7.4
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [v2] ARM: dts: ls1021a: output PPS signal on FIPER2
2020-05-19 2:53 [v2] ARM: dts: ls1021a: output PPS signal on FIPER2 Yangbo Lu
@ 2020-05-19 16:15 ` Richard Cochran
2020-05-22 1:37 ` Y.b. Lu
0 siblings, 1 reply; 3+ messages in thread
From: Richard Cochran @ 2020-05-19 16:15 UTC (permalink / raw)
To: Yangbo Lu; +Cc: Shawn Guo, linux-arm-kernel, Li Yang
On Tue, May 19, 2020 at 10:53:07AM +0800, Yangbo Lu wrote:
> 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_FIPER
> register to generate a 1 PPS event, the value
> (10^9 nanoseconds) - TCLK_PERIOD should be programmed.
> It should be 999999995 since TCLK_PERIOD is 5.
>
> This patch is to output PPS signal on FIPER2 which is more
> desired by user.
I think it wouldn't hurt to spell out the effect of this change:
Before, the period of FIPER2 was 100 microseconds.
Now, the period of FIPER2 is one second.
Thanks,
Richard
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [v2] ARM: dts: ls1021a: output PPS signal on FIPER2
2020-05-19 16:15 ` Richard Cochran
@ 2020-05-22 1:37 ` Y.b. Lu
0 siblings, 0 replies; 3+ messages in thread
From: Y.b. Lu @ 2020-05-22 1:37 UTC (permalink / raw)
To: Richard Cochran; +Cc: Shawn Guo, linux-arm-kernel@lists.infradead.org, Leo Li
> -----Original Message-----
> From: Richard Cochran <richardcochran@gmail.com>
> Sent: Wednesday, May 20, 2020 12:15 AM
> To: Y.b. Lu <yangbo.lu@nxp.com>
> Cc: linux-arm-kernel@lists.infradead.org; Shawn Guo <shawnguo@kernel.org>;
> Leo Li <leoyang.li@nxp.com>
> Subject: Re: [v2] ARM: dts: ls1021a: output PPS signal on FIPER2
>
> On Tue, May 19, 2020 at 10:53:07AM +0800, Yangbo Lu wrote:
> > 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_FIPER
> > register to generate a 1 PPS event, the value
> > (10^9 nanoseconds) - TCLK_PERIOD should be programmed.
> > It should be 999999995 since TCLK_PERIOD is 5.
> >
> > This patch is to output PPS signal on FIPER2 which is more
> > desired by user.
>
> I think it wouldn't hurt to spell out the effect of this change:
> Before, the period of FIPER2 was 100 microseconds.
> Now, the period of FIPER2 is one second.
Yes. I sent out the v3 to mentioned the effect of the change.
Thanks!
>
> Thanks,
> Richard
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-22 1:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-19 2:53 [v2] ARM: dts: ls1021a: output PPS signal on FIPER2 Yangbo Lu
2020-05-19 16:15 ` Richard Cochran
2020-05-22 1:37 ` Y.b. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).