Skip to contentSkip to conversation

ARM: dts: qcom: ipq4019: fix high resolution timer

PATCH In review Christian Lamparter 2 participants 2 messages Jun 20, 2019 – Jun 24, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 ARM: dts: qcom: ipq4019: fix high resolution timer

From: Abhishek Sahu <[email protected]>

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.

---

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(+)
arch/arm/boot/dts/qcom-ipq4019.dtsi +1 -0
index bbcb7db810f7..0e3e79442c50 100644
@@ -169,6 +169,7 @@
 			     <1 4 0xf08>,
 			     <1 1 0xf08>;
 		clock-frequency = <48000000>;
+		always-on;
 	};
 
 	soc {
Signature · 1 line
2.20.1
Acked-by on v3 1/1
#1 lore raw

Hi Christian,

Quoted 28 lines · Christian Lamparter

From: Abhishek Sahu <[email protected]>

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.

---

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(+)
arch/arm/boot/dts/qcom-ipq4019.dtsi +0 -0
index bbcb7db810f7..0e3e79442c50 100644

arch/arm/boot/dts/qcom-ipq4019.dtsi line 172

Quoted 4 lines
arch/arm/boot/dts/qcom-ipq4019.dtsi +1 -0
@@ -169,6 +169,7 @@
 			     <1 4 0xf08>,
 			     <1 1 0xf08>;
 		clock-frequency = <48000000>;
+		always-on;

Regards,
Sricharan

Signature · 1 line
"QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation