Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: hwmon: sparx5: use correct clock

SparX-5 temperature sensor uses system reference clock and not the AHB bus
clock as indicated by the register information [1].

So, correct the clock description as well the included example.

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

Fixes: f5520753c16f ("dt-bindings: hwmon: Add Sparx5 temperature sensor")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220809112209.241045-1-robert.marko@sartura.hr
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Robert Marko and committed by
Guenter Roeck
5e901cec 7f62cf78

+2 -2
+2 -2
Documentation/devicetree/bindings/hwmon/microchip,sparx5-temp.yaml
··· 22 22 23 23 clocks: 24 24 items: 25 - - description: AHB reference clock 25 + - description: System reference clock 26 26 27 27 '#thermal-sensor-cells': 28 28 const: 0 ··· 40 40 compatible = "microchip,sparx5-temp"; 41 41 reg = <0x10508110 0xc>; 42 42 #thermal-sensor-cells = <0>; 43 - clocks = <&ahb_clk>; 43 + clocks = <&sys_clk>; 44 44 };