xref: /linux/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml (revision 90d32e92011eaae8e70a9169b4e7acf4ca8f9d3a)
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
14properties:
15  compatible:
16    oneOf:
17      - items:
18          - enum:
19              - amlogic,g12a-cpu-thermal
20              - amlogic,g12a-ddr-thermal
21          - const: amlogic,g12a-thermal
22      - const: amlogic,a1-cpu-thermal
23
24  reg:
25    maxItems: 1
26
27  interrupts:
28    maxItems: 1
29
30  clocks:
31    maxItems: 1
32
33  amlogic,ao-secure:
34    description: phandle to the ao-secure syscon
35    $ref: /schemas/types.yaml#/definitions/phandle
36
37  '#thermal-sensor-cells':
38    const: 0
39
40required:
41  - compatible
42  - reg
43  - interrupts
44  - clocks
45  - amlogic,ao-secure
46
47additionalProperties: false
48
49examples:
50  - |
51        cpu_temp: temperature-sensor@ff634800 {
52                compatible = "amlogic,g12a-cpu-thermal",
53                             "amlogic,g12a-thermal";
54                reg = <0xff634800 0x50>;
55                interrupts = <0x0 0x24 0x0>;
56                clocks = <&clk 164>;
57                #thermal-sensor-cells = <0>;
58                amlogic,ao-secure = <&sec_AO>;
59        };
60...
61