blob: 7538469997f9e1b11142d9f26ab77a3f7d542c76 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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
13properties:
14 compatible:
15 oneOf:
16 - enum:
17 - loongson,ls2k1000-thermal
18 - items:
19 - enum:
20 - loongson,ls2k2000-thermal
21 - const: loongson,ls2k1000-thermal
22
23 reg:
24 maxItems: 1
25
26 interrupts:
27 maxItems: 1
28
29required:
30 - compatible
31 - reg
32 - interrupts
33
34additionalProperties: false
35
36examples:
37 - |
38 #include <dt-bindings/interrupt-controller/irq.h>
39 thermal: thermal-sensor@1fe01500 {
40 compatible = "loongson,ls2k1000-thermal";
41 reg = <0x1fe01500 0x30>;
42 interrupt-parent = <&liointc0>;
43 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
44 };