xref: /freebsd/sys/contrib/device-tree/Bindings/thermal/socionext,uniphier-thermal.yaml (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/thermal/socionext,uniphier-thermal.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Socionext UniPhier thermal monitor
8
9description: |
10  This describes the devicetree bindings for thermal monitor supported by
11  PVT(Process, Voltage and Temperature) monitoring unit implemented on
12  Socionext UniPhier SoCs.
13
14maintainers:
15  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
16
17properties:
18  compatible:
19    enum:
20      - socionext,uniphier-pxs2-thermal
21      - socionext,uniphier-ld20-thermal
22      - socionext,uniphier-pxs3-thermal
23
24  interrupts:
25    maxItems: 1
26
27  "#thermal-sensor-cells":
28    const: 0
29
30  socionext,tmod-calibration:
31    $ref: /schemas/types.yaml#/definitions/uint32-array
32    maxItems: 2
33    description:
34      A pair of calibrated values referred from PVT, in case that the values
35      aren't set on SoC, like a reference board.
36
37required:
38  - compatible
39  - interrupts
40  - "#thermal-sensor-cells"
41
42additionalProperties: false
43
44examples:
45  - |
46    // The UniPhier thermal should be a subnode of a "syscon" compatible node.
47
48    sysctrl@61840000 {
49        compatible = "socionext,uniphier-ld20-sysctrl",
50                     "simple-mfd", "syscon";
51        reg = <0x61840000 0x10000>;
52
53        pvtctl: thermal {
54            compatible = "socionext,uniphier-ld20-thermal";
55            interrupts = <0 3 1>;
56            #thermal-sensor-cells = <0>;
57        };
58    };
59