blob: b634f57cd011d738fc0dd4db633a9a805506cca5 [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
Tom Rini93743d22024-04-01 09:08:13 -040013allOf:
14 - $ref: /schemas/thermal/thermal-sensor.yaml#
15
Tom Rini53633a82024-02-29 12:33:36 -050016properties:
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
Tom Rini93743d22024-04-01 09:08:13 -040032 '#thermal-sensor-cells':
33 const: 1
34
Tom Rini53633a82024-02-29 12:33:36 -050035required:
36 - compatible
37 - reg
38 - interrupts
Tom Rini93743d22024-04-01 09:08:13 -040039 - '#thermal-sensor-cells'
Tom Rini53633a82024-02-29 12:33:36 -050040
Tom Rini93743d22024-04-01 09:08:13 -040041unevaluatedProperties: false
Tom Rini53633a82024-02-29 12:33:36 -050042
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>;
Tom Rini93743d22024-04-01 09:08:13 -040051 #thermal-sensor-cells = <1>;
Tom Rini53633a82024-02-29 12:33:36 -050052 };