GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / thermal / amlogic,thermal.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/thermal/amlogic,thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Amlogic Thermal
8
9 maintainers:
10   - Guillaume La Roque <glaroque@baylibre.com>
11
12 description: Binding for Amlogic Thermal
13
14 properties:
15   compatible:
16     items:
17       - enum:
18           - amlogic,g12a-cpu-thermal
19           - amlogic,g12a-ddr-thermal
20       - const: amlogic,g12a-thermal
21
22   reg:
23     maxItems: 1
24
25   interrupts:
26     maxItems: 1
27
28   clocks:
29     maxItems: 1
30
31   amlogic,ao-secure:
32     description: phandle to the ao-secure syscon
33     $ref: '/schemas/types.yaml#/definitions/phandle'
34
35   '#thermal-sensor-cells':
36     const: 0
37
38 required:
39   - compatible
40   - reg
41   - interrupts
42   - clocks
43   - amlogic,ao-secure
44
45 additionalProperties: false
46
47 examples:
48   - |
49         cpu_temp: temperature-sensor@ff634800 {
50                 compatible = "amlogic,g12a-cpu-thermal",
51                              "amlogic,g12a-thermal";
52                 reg = <0xff634800 0x50>;
53                 interrupts = <0x0 0x24 0x0>;
54                 clocks = <&clk 164>;
55                 #thermal-sensor-cells = <0>;
56                 amlogic,ao-secure = <&sec_AO>;
57         };
58 ...