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