Skip to content

Commit 6679867

Browse files
glaroquedlezcano
authored andcommitted
dt-bindings: thermal: Add DT bindings documentation for Amlogic Thermal
Adding the devicetree binding documentation for the Amlogic temperature sensor found in the Amlogic Meson G12A and G12B SoCs. Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Amit Kucheria <[email protected]> Tested-by: Christian Hewitt <[email protected]> Tested-by: Kevin Hilman <[email protected]> Signed-off-by: Guillaume La Roque <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 634e11d commit 6679867

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
7+
title: Amlogic Thermal
8+
9+
maintainers:
10+
- Guillaume La Roque <[email protected]>
11+
12+
description: Binding for Amlogic Thermal
13+
14+
properties:
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+
36+
required:
37+
- compatible
38+
- reg
39+
- interrupts
40+
- clocks
41+
- amlogic,ao-secure
42+
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+
...

0 commit comments

Comments
 (0)