diff mbox series

[2/2] arm64: dts: microchip: sparx5: use correct clock for tmon

Message ID 20220809112209.241045-2-robert.marko@sartura.hr (mailing list archive)
State New, archived
Headers show
Series [1/2] dt-bindings: hwmon: sparx5: use correct clock | expand

Commit Message

Robert Marko Aug. 9, 2022, 11:22 a.m. UTC
SparX-5 temperature sensor uses system reference clock and not the AHB bus
clock as indicated by the register information [1].

Configured number of system clock cycles in one 1us is now almost spot on
to the default register value.

[1] https://microchip-ung.github.io/sparx-5_reginfo/reginfo_sparx-5.html?select=hsiowrap,temp_sensor,temp_sensor_cfg,clk_cycles_1us

Fixes: d14f6a1ae07f ("arm64: dts: sparx5: Add hwmon temperature sensor")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
 arch/arm64/boot/dts/microchip/sparx5.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/microchip/sparx5.dtsi b/arch/arm64/boot/dts/microchip/sparx5.dtsi
index 6f6aab48516e..c9367127670b 100644
--- a/arch/arm64/boot/dts/microchip/sparx5.dtsi
+++ b/arch/arm64/boot/dts/microchip/sparx5.dtsi
@@ -421,7 +421,7 @@  tmon0: tmon@610508110 {
 			compatible = "microchip,sparx5-temp";
 			reg = <0x6 0x10508110 0xc>;
 			#thermal-sensor-cells = <0>;
-			clocks = <&ahb_clk>;
+			clocks = <&sys_clk>;
 		};
 
 		mdio0: mdio@6110102b0 {