ARM: dts: ls1021a: output PPS signal on FIPER2
PATCH 1/1 ARM: dts: ls1021a: output PPS signal on FIPER2
Output PPS signal on FIPER2 (Fixed Period Interval Pulse) which is more desired by user.
--- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/ls1021a.dtsi +1 -1
@@ -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; };
Signature · 7 lines
2.7.4 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 13 lines · Yangbo Lu
Output PPS signal on FIPER2 (Fixed Period Interval Pulse) which is more desired by user.
Signed-off-by Yangbo Lu <[email protected]>--- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/ls1021a.dtsi +0
-0
arch/arm/boot/dts/ls1021a.dtsi line 775
Quoted 5 lines
arch/arm/boot/dts/ls1021a.dtsi +1
-1@@ -772,7 +772,7 @@ fsl,tmr-prsc = <2>; fsl,tmr-add = <0xaaaaaaab>; fsl,tmr-fiper1 = <999999995>; - fsl,tmr-fiper2 = <99990>; + fsl,tmr-fiper2 = <999999995>;
Not sure code change matches patch subject and commit log. The change is about changing fsl,tmr-fiper2 setting from one value to another.
Shawn
Quoted 6 lines
arch/arm/boot/dts/ls1021a.dtsi +0
-0fsl,max-adj = <499999999>; fsl,extts-fifo; };Signature · 1 line
2.7.4
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hi Shawn,
Quoted 17 lines
-----Original Message-----
From: Shawn Guo <[email protected]>
Sent: Wednesday, May 13, 2020 4:23 PM
To: Y.b. Lu <[email protected]>
Cc: [email protected]; Leo Li <[email protected]>; Richard Cochran <[email protected]>
Subject: Re: [PATCH] ARM: dts: ls1021a: output PPS signal on FIPER2Quoted 8 lines · Yangbo Lu
Output PPS signal on FIPER2 (Fixed Period Interval Pulse) which is more desired by user.
Signed-off-by Yangbo Lu <[email protected]>--- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines
arch/arm/boot/dts/ls1021a.dtsi line 775
Quoted 10 lines
arch/arm/boot/dts/ls1021a.dtsi +1
-1@@ -772,7 +772,7 @@ fsl,tmr-prsc = <2>; fsl,tmr-add = <0xaaaaaaab>; fsl,tmr-fiper1 = <999999995>; - fsl,tmr-fiper2 = <99990>; + fsl,tmr-fiper2 = <999999995>;Not sure code change matches patch subject and commit log. The change is about changing fsl,tmr-fiper2 setting from one value to another.
The calculation refers to Documentation/devicetree/bindings/ptp/ptp-qoriq.txt. It looks complicated. But to be simple, to get 1PPS signal (period is 1s) on FIPER2, the value should be set as, fiper2 = <desired period> - <tclk-period> = 1000000000ns - 5ns = 999999995.
Thanks.
Quoted 9 lines
Shawn
Quoted 6 lines
arch/arm/boot/dts/ls1021a.dtsi +0
-1fsl,max-adj = <499999999>; fsl,extts-fifo; }; --2.7.4
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 33 lines · Y.b. Lu
Hi Shawn,
Quoted 17 lines
-----Original Message-----
From: Shawn Guo <[email protected]>
Sent: Wednesday, May 13, 2020 4:23 PM
To: Y.b. Lu <[email protected]>
Cc: [email protected]; Leo Li <[email protected]>; Richard Cochran <[email protected]>
Subject: Re: [PATCH] ARM: dts: ls1021a: output PPS signal on FIPER2Quoted 8 lines · Yangbo Lu
Output PPS signal on FIPER2 (Fixed Period Interval Pulse) which is more desired by user.
Signed-off-by Yangbo Lu <[email protected]>--- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 13 lines
arch/arm/boot/dts/ls1021a.dtsi line 775
Quoted 10 lines
arch/arm/boot/dts/ls1021a.dtsi +1
-1@@ -772,7 +772,7 @@ fsl,tmr-prsc = <2>; fsl,tmr-add = <0xaaaaaaab>; fsl,tmr-fiper1 = <999999995>; - fsl,tmr-fiper2 = <99990>; + fsl,tmr-fiper2 = <999999995>;Not sure code change matches patch subject and commit log. The change is about changing fsl,tmr-fiper2 setting from one value to another.
Quoted 3 lines
The calculation refers to
Documentation/devicetree/bindings/ptp/ptp-qoriq.txt. It looks complicated. But to be simple, to get 1PPS signal (period is 1s) on FIPER2, the value should be set as, fiper2 = <desired period> - <tclk-period> = 1000000000ns - 5ns = 999999995.
Please update commit log to include how new value comes.
Shawn
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 43 lines
-----Original Message-----
From: Shawn Guo <[email protected]>
Sent: Sunday, May 17, 2020 9:54 PM
To: Y.b. Lu <[email protected]>
Cc: [email protected]; Leo Li <[email protected]>; Richard Cochran <[email protected]>
Subject: Re: [PATCH] ARM: dts: ls1021a: output PPS signal on FIPER2Quoted 14 lines · Y.b. Lu
Hi Shawn,
Quoted 12 lines
-----Original Message-----
From: Shawn Guo <[email protected]>
Sent: Wednesday, May 13, 2020 4:23 PM
To: Y.b. Lu <[email protected]>
Cc: [email protected]; Leo Li <[email protected]>; Richard Cochran <[email protected]>
Subject: Re: [PATCH] ARM: dts: ls1021a: output PPS signal on FIPER2Quoted 3 lines · Yangbo Lu
Output PPS signal on FIPER2 (Fixed Period Interval Pulse) which is more desired by user.
Quoted 6 lines
Quoted 6 lines
Review
Quoted 6 lines
Signed-off-by Yangbo Lu <[email protected]>--- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/arch/arm/boot/dts/ls1021a.dtsiQuoted 13 lines
Quoted 12 lines
arch/arm/boot/dts/ls1021a.dtsi line 775
Quoted 9 lines
index 760a68c..b2ff27a 100644
arch/arm/boot/dts/ls1021a.dtsi +1
-1@@ -772,7 +772,7 @@ fsl,tmr-prsc = <2>; fsl,tmr-add = <0xaaaaaaab>; fsl,tmr-fiper1 = <999999995>; - fsl,tmr-fiper2 = <99990>; + fsl,tmr-fiper2 = <999999995>;Not sure code change matches patch subject and commit log. The change is about changing fsl,tmr-fiper2 setting from one value to another.
Quoted 8 lines
Quoted 1 line
The calculation refers to
Documentation/devicetree/bindings/ptp/ptp-qoriq.txt. It looks complicated.Quoted 1 line
But to be simple, to get 1PPS signal (period is 1s) on FIPER2, the value should
be set as,
Quoted 1 line
fiper2 = <desired period> - <tclk-period> = 1000000000ns - 5ns =
999999995.
Please update commit log to include how new value comes.
Sent out v2. Thanks!
Quoted 2 lines
Shawn
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel