1 From 8d7b606ab2e74344a6ad252eb40f5e8ac9517fc4 Mon Sep 17 00:00:00 2001
2 From: Emil Renner Berthing <kernel@esmil.dk>
3 Date: Tue, 21 Mar 2023 10:26:43 +0800
4 Subject: [PATCH 120/129] dt-bindings: hwmon: Add starfive,jh71x0-temp
6 Add bindings for the temperature sensor on the StarFive JH7100 and
9 Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
10 Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
11 Reviewed-by: Rob Herring <robh@kernel.org>
13 .../bindings/hwmon/starfive,jh71x0-temp.yaml | 70 +++++++++++++++++++
14 1 file changed, 70 insertions(+)
15 create mode 100644 Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml
17 diff --git a/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml b/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml
19 index 000000000..f5b345289
21 +++ b/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml
23 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
26 +$id: http://devicetree.org/schemas/hwmon/starfive,jh71x0-temp.yaml#
27 +$schema: http://devicetree.org/meta-schemas/core.yaml#
29 +title: StarFive JH71x0 Temperature Sensor
32 + - Emil Renner Berthing <kernel@esmil.dk>
35 + StarFive Technology Co. JH71x0 embedded temperature sensor
40 + - starfive,jh7100-temp
41 + - starfive,jh7110-temp
55 + '#thermal-sensor-cells':
75 +additionalProperties: false
79 + #include <dt-bindings/clock/starfive-jh7100.h>
80 + #include <dt-bindings/reset/starfive-jh7100.h>
82 + temperature-sensor@124a0000 {
83 + compatible = "starfive,jh7100-temp";
84 + reg = <0x124a0000 0x10000>;
85 + clocks = <&clkgen JH7100_CLK_TEMP_SENSE>,
86 + <&clkgen JH7100_CLK_TEMP_APB>;
87 + clock-names = "sense", "bus";
88 + #thermal-sensor-cells = <0>;
89 + resets = <&rstgen JH7100_RSTN_TEMP_SENSE>,
90 + <&rstgen JH7100_RSTN_TEMP_APB>;
91 + reset-names = "sense", "bus";