Skip to content

Commit 72684d9

Browse files
YinboZhudlezcano
authored andcommitted
thermal: dt-bindings: add loongson-2 thermal
Add the Loongson-2 thermal binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230817021007.10350-2-zhuyinbo@loongson.cn
1 parent e7e3a7c commit 72684d9

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
7+
title: Thermal sensors on Loongson-2 SoCs
8+
9+
maintainers:
10+
- zhanghongchen <zhanghongchen@loongson.cn>
11+
- Yinbo Zhu <zhuyinbo@loongson.cn>
12+
13+
properties:
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+
29+
required:
30+
- compatible
31+
- reg
32+
- interrupts
33+
34+
additionalProperties: false
35+
36+
examples:
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+
};

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12290,6 +12290,7 @@ M: zhanghongchen <zhanghongchen@loongson.cn>
1229012290
M: Yinbo Zhu <zhuyinbo@loongson.cn>
1229112291
L: linux-pm@vger.kernel.org
1229212292
S: Maintained
12293+
F: Documentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml
1229312294
F: drivers/thermal/loongson2_thermal.c
1229412295

1229512296
LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI)

0 commit comments

Comments
 (0)