treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / thermal / amlogic,thermal.yaml
blobf761681e4c0da28178c42259c5a75e9e8f1bfa90
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#
7 title: Amlogic Thermal
9 maintainers:
10   - Guillaume La Roque <glaroque@baylibre.com>
12 description: Binding for Amlogic Thermal
14 properties:
15   compatible:
16       items:
17         - enum:
18             - amlogic,g12a-cpu-thermal
19             - amlogic,g12a-ddr-thermal
20         - const: amlogic,g12a-thermal
22   reg:
23     maxItems: 1
25   interrupts:
26     maxItems: 1
28   clocks:
29     maxItems: 1
31   amlogic,ao-secure:
32     description: phandle to the ao-secure syscon
33     $ref: '/schemas/types.yaml#/definitions/phandle'
36 required:
37   - compatible
38   - reg
39   - interrupts
40   - clocks
41   - amlogic,ao-secure
43 examples:
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 ...