xref: /linux/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml (revision 2cd86f02c017bf9733e5cd891381b7d40f6f37ad)
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
7title: Amlogic Thermal
8
9maintainers:
10  - Guillaume La Roque <glaroque@baylibre.com>
11
12description: Binding for Amlogic Thermal
13
14$ref: thermal-sensor.yaml#
15
16properties:
17  compatible:
18    oneOf:
19      - items:
20          - enum:
21              - amlogic,g12a-cpu-thermal
22              - amlogic,g12a-ddr-thermal
23          - const: amlogic,g12a-thermal
24      - const: amlogic,a1-cpu-thermal
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32  clocks:
33    maxItems: 1
34
35  power-domains:
36    maxItems: 1
37
38  amlogic,ao-secure:
39    description: phandle to the ao-secure syscon
40    $ref: /schemas/types.yaml#/definitions/phandle
41
42  '#thermal-sensor-cells':
43    const: 0
44
45required:
46  - compatible
47  - reg
48  - interrupts
49  - clocks
50  - amlogic,ao-secure
51
52unevaluatedProperties: false
53
54examples:
55  - |
56    temperature-sensor@ff634800 {
57        compatible = "amlogic,g12a-cpu-thermal",
58                     "amlogic,g12a-thermal";
59        reg = <0xff634800 0x50>;
60        interrupts = <0x0 0x24 0x0>;
61        clocks = <&clk 164>;
62        #thermal-sensor-cells = <0>;
63        amlogic,ao-secure = <&sec_AO>;
64    };
65...
66