dt-bindings: thermal: Convert UniPhier thermal monitor to json-schema
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / thermal / socionext,uniphier-thermal.yaml
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
7 title: Socionext UniPhier thermal monitor
8
9 description: |
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
14 maintainers:
15   - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
16
17 properties:
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     allOf:
32       - $ref: /schemas/types.yaml#/definitions/uint32-array
33       - maxItems: 2
34     description:
35       A pair of calibrated values referred from PVT, in case that the values
36       aren't set on SoC, like a reference board.
37
38 required:
39   - compatible
40   - interrupts
41   - "#thermal-sensor-cells"
42
43 additionalProperties: false
44
45 examples:
46   - |
47     // The UniPhier thermal should be a subnode of a "syscon" compatible node.
48
49     sysctrl@61840000 {
50         compatible = "socionext,uniphier-ld20-sysctrl",
51                      "simple-mfd", "syscon";
52         reg = <0x61840000 0x10000>;
53
54         pvtctl: thermal {
55             compatible = "socionext,uniphier-ld20-thermal";
56             interrupts = <0 3 1>;
57             #thermal-sensor-cells = <0>;
58         };
59     };