xref: /freebsd/sys/contrib/device-tree/Bindings/thermal/amlogic,thermal.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/thermal/amlogic,thermal.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Amlogic Thermal
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Guillaume La Roque <glaroque@baylibre.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: Binding for Amlogic Thermal
13c66ec88fSEmmanuel Vadot
14c66ec88fSEmmanuel Vadotproperties:
15c66ec88fSEmmanuel Vadot  compatible:
16c66ec88fSEmmanuel Vadot    items:
17c66ec88fSEmmanuel Vadot      - enum:
18c66ec88fSEmmanuel Vadot          - amlogic,g12a-cpu-thermal
19c66ec88fSEmmanuel Vadot          - amlogic,g12a-ddr-thermal
20c66ec88fSEmmanuel Vadot      - const: amlogic,g12a-thermal
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot  reg:
23c66ec88fSEmmanuel Vadot    maxItems: 1
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  interrupts:
26c66ec88fSEmmanuel Vadot    maxItems: 1
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadot  clocks:
29c66ec88fSEmmanuel Vadot    maxItems: 1
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot  amlogic,ao-secure:
32c66ec88fSEmmanuel Vadot    description: phandle to the ao-secure syscon
33*fac71e4eSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
34c66ec88fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadot  '#thermal-sensor-cells':
36c66ec88fSEmmanuel Vadot    const: 0
37c66ec88fSEmmanuel Vadot
38c66ec88fSEmmanuel Vadotrequired:
39c66ec88fSEmmanuel Vadot  - compatible
40c66ec88fSEmmanuel Vadot  - reg
41c66ec88fSEmmanuel Vadot  - interrupts
42c66ec88fSEmmanuel Vadot  - clocks
43c66ec88fSEmmanuel Vadot  - amlogic,ao-secure
44c66ec88fSEmmanuel Vadot
45c66ec88fSEmmanuel VadotadditionalProperties: false
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadotexamples:
48c66ec88fSEmmanuel Vadot  - |
49c66ec88fSEmmanuel Vadot        cpu_temp: temperature-sensor@ff634800 {
50c66ec88fSEmmanuel Vadot                compatible = "amlogic,g12a-cpu-thermal",
51c66ec88fSEmmanuel Vadot                             "amlogic,g12a-thermal";
52c66ec88fSEmmanuel Vadot                reg = <0xff634800 0x50>;
53c66ec88fSEmmanuel Vadot                interrupts = <0x0 0x24 0x0>;
54c66ec88fSEmmanuel Vadot                clocks = <&clk 164>;
55c66ec88fSEmmanuel Vadot                #thermal-sensor-cells = <0>;
56c66ec88fSEmmanuel Vadot                amlogic,ao-secure = <&sec_AO>;
57c66ec88fSEmmanuel Vadot        };
58c66ec88fSEmmanuel Vadot...
59