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@xxxxxxxxxx> --- arch/arm64/boot/dts/microchip/sparx5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.37.1