0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/thermal/amlogic,thermal.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Amlogic Thermal
0008
0009 maintainers:
0010 - Guillaume La Roque <glaroque@baylibre.com>
0011
0012 description: Binding for Amlogic Thermal
0013
0014 properties:
0015 compatible:
0016 items:
0017 - enum:
0018 - amlogic,g12a-cpu-thermal
0019 - amlogic,g12a-ddr-thermal
0020 - const: amlogic,g12a-thermal
0021
0022 reg:
0023 maxItems: 1
0024
0025 interrupts:
0026 maxItems: 1
0027
0028 clocks:
0029 maxItems: 1
0030
0031 amlogic,ao-secure:
0032 description: phandle to the ao-secure syscon
0033 $ref: '/schemas/types.yaml#/definitions/phandle'
0034
0035 '#thermal-sensor-cells':
0036 const: 0
0037
0038 required:
0039 - compatible
0040 - reg
0041 - interrupts
0042 - clocks
0043 - amlogic,ao-secure
0044
0045 additionalProperties: false
0046
0047 examples:
0048 - |
0049 cpu_temp: temperature-sensor@ff634800 {
0050 compatible = "amlogic,g12a-cpu-thermal",
0051 "amlogic,g12a-thermal";
0052 reg = <0xff634800 0x50>;
0053 interrupts = <0x0 0x24 0x0>;
0054 clocks = <&clk 164>;
0055 #thermal-sensor-cells = <0>;
0056 amlogic,ao-secure = <&sec_AO>;
0057 };
0058 ...