jh71x0: update patches and config
[openwrt/staging/wigyori.git] / target / linux / jh71x0 / patches-6.1 / 0120-dt-bindings-hwmon-Add-starfive-jh71x0-temp.patch
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
5
6 Add bindings for the temperature sensor on the StarFive JH7100 and
7 JH7110 SoCs.
8
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>
12 ---
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
16
17 diff --git a/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml b/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml
18 new file mode 100644
19 index 000000000..f5b345289
20 --- /dev/null
21 +++ b/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml
22 @@ -0,0 +1,70 @@
23 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
24 +%YAML 1.2
25 +---
26 +$id: http://devicetree.org/schemas/hwmon/starfive,jh71x0-temp.yaml#
27 +$schema: http://devicetree.org/meta-schemas/core.yaml#
28 +
29 +title: StarFive JH71x0 Temperature Sensor
30 +
31 +maintainers:
32 + - Emil Renner Berthing <kernel@esmil.dk>
33 +
34 +description: |
35 + StarFive Technology Co. JH71x0 embedded temperature sensor
36 +
37 +properties:
38 + compatible:
39 + enum:
40 + - starfive,jh7100-temp
41 + - starfive,jh7110-temp
42 +
43 + reg:
44 + maxItems: 1
45 +
46 + clocks:
47 + minItems: 2
48 + maxItems: 2
49 +
50 + clock-names:
51 + items:
52 + - const: "sense"
53 + - const: "bus"
54 +
55 + '#thermal-sensor-cells':
56 + const: 0
57 +
58 + resets:
59 + minItems: 2
60 + maxItems: 2
61 +
62 + reset-names:
63 + items:
64 + - const: "sense"
65 + - const: "bus"
66 +
67 +required:
68 + - compatible
69 + - reg
70 + - clocks
71 + - clock-names
72 + - resets
73 + - reset-names
74 +
75 +additionalProperties: false
76 +
77 +examples:
78 + - |
79 + #include <dt-bindings/clock/starfive-jh7100.h>
80 + #include <dt-bindings/reset/starfive-jh7100.h>
81 +
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";
92 + };
93 --
94 2.25.1
95