xref: /linux/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml (revision 57e04eeda515ee979fec3bc3d64c408feae18acc)
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      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
36required:
37  - compatible
38  - reg
39  - interrupts
40  - clocks
41  - amlogic,ao-secure
42
43examples:
44  - |
45        cpu_temp: temperature-sensor@ff634800 {
46                compatible = "amlogic,g12a-cpu-thermal",
47                             "amlogic,g12a-thermal";
48                reg = <0xff634800 0x50>;
49                interrupts = <0x0 0x24 0x0>;
50                clocks = <&clk 164>;
51                #thermal-sensor-cells = <0>;
52                amlogic,ao-secure = <&sec_AO>;
53        };
54...
55