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      - socionext,uniphier-nx1-thermal
24
25  interrupts:
26    maxItems: 1
27
28  "#thermal-sensor-cells":
29    const: 0
30
31  socionext,tmod-calibration:
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
38required:
39  - compatible
40  - interrupts
41  - "#thermal-sensor-cells"
42
43additionalProperties: false
44
45examples:
46  - |
47    // The UniPhier thermal should be a subnode of a "syscon" compatible node.
48
49    #include <dt-bindings/interrupt-controller/arm-gic.h>
50    pvtctl: thermal-sensor {
51        compatible = "socionext,uniphier-ld20-thermal";
52        interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
53        #thermal-sensor-cells = <0>;
54    };
55