xref: /linux/Documentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml (revision eed4edda910fe34dfae8c6bfbcf57f4593a54295)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/thermal/loongson,ls2k-thermal.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Thermal sensors on Loongson-2 SoCs
8
9maintainers:
10  - zhanghongchen <zhanghongchen@loongson.cn>
11  - Yinbo Zhu <zhuyinbo@loongson.cn>
12
13allOf:
14  - $ref: /schemas/thermal/thermal-sensor.yaml#
15
16properties:
17  compatible:
18    oneOf:
19      - enum:
20          - loongson,ls2k1000-thermal
21      - items:
22          - enum:
23              - loongson,ls2k2000-thermal
24          - const: loongson,ls2k1000-thermal
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32  '#thermal-sensor-cells':
33    const: 1
34
35required:
36  - compatible
37  - reg
38  - interrupts
39  - '#thermal-sensor-cells'
40
41unevaluatedProperties: false
42
43examples:
44  - |
45    #include <dt-bindings/interrupt-controller/irq.h>
46    thermal: thermal-sensor@1fe01500 {
47        compatible = "loongson,ls2k1000-thermal";
48        reg = <0x1fe01500 0x30>;
49        interrupt-parent = <&liointc0>;
50        interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
51        #thermal-sensor-cells = <1>;
52    };
53