]> git.ipfire.org Git - thirdparty/u-boot.git/blame - Bindings/thermal/loongson,ls2k-thermal.yaml
Squashed 'dts/upstream/' changes from aaba2d45dc2a..b35b9bd1d4ee
[thirdparty/u-boot.git] / Bindings / thermal / loongson,ls2k-thermal.yaml
CommitLineData
53633a89
TR
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
93743d24
TR
13allOf:
14 - $ref: /schemas/thermal/thermal-sensor.yaml#
15
53633a89
TR
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
93743d24
TR
32 '#thermal-sensor-cells':
33 const: 1
34
53633a89
TR
35required:
36 - compatible
37 - reg
38 - interrupts
93743d24 39 - '#thermal-sensor-cells'
53633a89 40
93743d24 41unevaluatedProperties: false
53633a89
TR
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>;
93743d24 51 #thermal-sensor-cells = <1>;
53633a89 52 };