Debian Codegraph @

Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/thermal/airoha,en7581-thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Airoha EN7581 Thermal Sensor and Monitor
8
9 maintainers:
10 - Christian Marangi <[email protected]>
11
12 properties:
13 compatible:
14 const: airoha,en7581-thermal
15
16 reg:
17 maxItems: 1
18
19 interrupts:
20 maxItems: 1
21
22 airoha,chip-scu:
23 description: phandle to the chip SCU syscon
24 $ref: /schemas/types.yaml#/definitions/phandle
25
26 '#thermal-sensor-cells':
27 const: 0
28
29 required:
30 - compatible
31 - reg
32 - interrupts
33 - airoha,chip-scu
34
35 additionalProperties: false
36
37 examples:
38 - |
39 #include <dt-bindings/interrupt-controller/arm-gic.h>
40
41 thermal-sensor@1efbd800 {
42 compatible = "airoha,en7581-thermal";
43 reg = <0x1efbd000 0xd5c>;
44 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
45 airoha,chip-scu = <&chip_scu>;
46
47 #thermal-sensor-cells = <0>;
48 };