dt-bindings: hwmon: sparx5: use correct clock
Subsystems (4)
PATCH 1/2 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.
--- .../devicetree/bindings/hwmon/microchip,sparx5-temp.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/hwmon/microchip,sparx5-temp.yaml +2 -2
@@ -22,7 +22,7 @@ properties: clocks: items: - - description: AHB reference clock + - description: System reference clock '#thermal-sensor-cells': const: 0
@@ -40,5 +40,5 @@ examples: compatible = "microchip,sparx5-temp"; reg = <0x10508110 0xc>; #thermal-sensor-cells = <0>; - clocks = <&ahb_clk>; + clocks = <&sys_clk>; };
Signature · 1 line
2.37.1
PATCH 2/2 arm64: dts: microchip: sparx5: use correct clock for tmon
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.
--- arch/arm64/boot/dts/microchip/sparx5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/microchip/sparx5.dtsi +1 -1
@@ -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 {
Signature · 1 line
2.37.1
Quoted 7 lines · Robert Marko
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.
Best regards,
Krzysztof
Quoted 10 lines · Robert Marko
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.
Fixes f5520753c16f ("dt-bindings: hwmon: Add Sparx5 temperature sensor")Signed-off-by Robert Marko <[email protected]>
Applied.
Thanks,
Guenter
Quoted 24 lines
--- .../devicetree/bindings/hwmon/microchip,sparx5-temp.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/hwmon/microchip,sparx5-temp.yaml +2
-2@@ -22,7 +22,7 @@ properties: clocks: items: - - description: AHB reference clock + - description: System reference clock '#thermal-sensor-cells': const: 0@@ -40,5 +40,5 @@ examples: compatible = "microchip,sparx5-temp"; reg = <0x10508110 0xc>; #thermal-sensor-cells = <0>; - clocks = <&ahb_clk>; + clocks = <&sys_clk>; };