1 From a0f2b48b5433d2fbcf87e4edf52e5cc26d0c29c8 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 109/122] 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
18 +++ b/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml
20 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
23 +$id: http://devicetree.org/schemas/hwmon/starfive,jh71x0-temp.yaml#
24 +$schema: http://devicetree.org/meta-schemas/core.yaml#
26 +title: StarFive JH71x0 Temperature Sensor
29 + - Emil Renner Berthing <kernel@esmil.dk>
32 + StarFive Technology Co. JH71x0 embedded temperature sensor
37 + - starfive,jh7100-temp
38 + - starfive,jh7110-temp
52 + '#thermal-sensor-cells':
72 +additionalProperties: false
76 + #include <dt-bindings/clock/starfive-jh7100.h>
77 + #include <dt-bindings/reset/starfive-jh7100.h>
79 + temperature-sensor@124a0000 {
80 + compatible = "starfive,jh7100-temp";
81 + reg = <0x124a0000 0x10000>;
82 + clocks = <&clkgen JH7100_CLK_TEMP_SENSE>,
83 + <&clkgen JH7100_CLK_TEMP_APB>;
84 + clock-names = "sense", "bus";
85 + #thermal-sensor-cells = <0>;
86 + resets = <&rstgen JH7100_RSTN_TEMP_SENSE>,
87 + <&rstgen JH7100_RSTN_TEMP_APB>;
88 + reset-names = "sense", "bus";