Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 13 | allOf: |
| 14 | - $ref: /schemas/thermal/thermal-sensor.yaml# |
| 15 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 16 | properties: |
| 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 Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 32 | '#thermal-sensor-cells': |
| 33 | const: 1 |
| 34 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 35 | required: |
| 36 | - compatible |
| 37 | - reg |
| 38 | - interrupts |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 39 | - '#thermal-sensor-cells' |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 40 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 41 | unevaluatedProperties: false |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 42 | |
| 43 | examples: |
| 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 Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 51 | #thermal-sensor-cells = <1>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 52 | }; |