diff mbox series

[v3] ARM: dts: qcom: ipq4019: fix high resolution timer

Message ID 20190620161308.15936-1-chunkeey@gmail.com (mailing list archive)
State New, archived
Headers show
Series [v3] ARM: dts: qcom: ipq4019: fix high resolution timer | expand

Commit Message

Christian Lamparter June 20, 2019, 4:13 p.m. UTC
From: Abhishek Sahu <absahu@codeaurora.org>

The kernel is not switching the timer to the high resolution
mode and clock source keeps operating in with a just a lousy
10ms resolution.

The always-on property needs to be given for xo clock source
(which is the sole external oscillator) in the device tree
node to get to the 1ns high resolution mode.

Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
---

v3: fixed empty line, removed changeid reference and fluff,
    reworded message.

v2: fixed subject [Abhishek Sahu is bouncing]
---
 arch/arm/boot/dts/qcom-ipq4019.dtsi | 1 +
 1 file changed, 1 insertion(+)

Comments

Sricharan Ramabadhran June 24, 2019, 12:09 p.m. UTC | #1
Hi Christian,

On 6/20/2019 9:43 PM, Christian Lamparter wrote:
> From: Abhishek Sahu <absahu@codeaurora.org>
> 
> The kernel is not switching the timer to the high resolution
> mode and clock source keeps operating in with a just a lousy
> 10ms resolution.
> 
> The always-on property needs to be given for xo clock source
> (which is the sole external oscillator) in the device tree
> node to get to the 1ns high resolution mode.
> 
> Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
> Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
> ---
> 
> v3: fixed empty line, removed changeid reference and fluff,
>     reworded message.
> 
> v2: fixed subject [Abhishek Sahu is bouncing]
> ---
>  arch/arm/boot/dts/qcom-ipq4019.dtsi | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi
> index bbcb7db810f7..0e3e79442c50 100644
> --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
> +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
> @@ -169,6 +169,7 @@
>  			     <1 4 0xf08>,
>  			     <1 1 0xf08>;
>  		clock-frequency = <48000000>;
> +		always-on;

Acked-by: Sricharan R <sricharan@codeaurora.org>

Regards,
 Sricharan
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi
index bbcb7db810f7..0e3e79442c50 100644
--- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
+++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
@@ -169,6 +169,7 @@ 
 			     <1 4 0xf08>,
 			     <1 1 0xf08>;
 		clock-frequency = <48000000>;
+		always-on;
 	};
 
 	soc {